0

ご挨拶、

残念ながら、これが必要です:

    Product has (lets say) 6 attributes with "Yes/No" values.
    I need a dropdown on that product's page that will populate with attributes with "yes" value.

    attributes are :bundle1,bundle2....,bundle6.
    When selection is made - I need to know whats have been selected to pass that to php on that page.

解決策を探して、これに使用できる (Ajax スニペットに関して) Magento に既存のものはわかりません...

追加の request.js を使用し、DB で新しく作成されたテーブルから属性を取得しました (手動で、1 つの製品に対して、テストのためだけに) 動作します。しかし、それは考えではありません。毎回手動でやりたくありません。

構文は私を殺しています。

ありがとうございました。

4

1 に答える 1

1

これはまったく役に立たないかもしれません...しかし、最近、Magento の ajax autopopulate 機能を利用するモジュールを作成しました。このモジュールが行うことは、入力している文字列に応じて、すべてのメーカーの自動入力を行うことです。これが直接やりたいことではないことはわかっていますが、少なくとも ajax を使用する場合は、次のように始めるのに役立ちます。

/app/etc/modules/Ash_Manufacturers.xml http://pastie.org/841014

/app/code/local/Ash/Manufacturers/etc/config.xml http://pastie.org/841017

/app/code/local/Ash/Manufacturers/controllers/IndexController.php http://pastie.org/841018

/app/code/local/Ash/Manufacturers/Block/Manufacturers.php http://pastie.org/841020

/app/design/frontend/default/ash/template/catalog/layer/filter.phtml : http://pastie.org/841027の行 79 ~ 92 を見てください。

于 2010-02-24T19:25:18.197 に答える