I have a Magento based site and Products are limited to Set of Pin codes. These PIN differ from product to product. What I need is to get an option to input set of PIN Codes, while defining a product. And on every product page there must be a Text field to check whether the product is available for the PIN Code, which is entered by the visitor.
1条回答 默认 最新
- dongmou2389 2015-03-24 11:40关注
HI For this first of all
1 create a new product attribute with multi-select type 2 assign all pin codes in there values under attribute options 3 assign that attribute to the desired attribute set 4 than for assigning attributes you need to go to product section and assign a desired zip options for that particular product from the multi-select attribute 5 on product page you need to problematically get all the selected values of that attribute 6 create a array of that values 7 create a simple form and when user post some value in that form , match that value in the array you defined above. 8 if the value finds in array than show the cart button and if not do what you want.
i hope this will give you a very fair idea. Let me know if i can do any other thing for you.
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报