duanji8615 2015-03-24 08:47
浏览 20
已采纳

仅限定义的PIN码中的Magento产品可用性?

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.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 单片机学习顺序问题!!
  • ¥15 ikuai客户端多拨vpn,重启总是有个别重拨不上
  • ¥20 关于#anlogic#sdram#的问题,如何解决?(关键词-performance)
  • ¥15 相敏解调 matlab
  • ¥15 求lingo代码和思路
  • ¥15 公交车和无人机协同运输
  • ¥15 stm32代码移植没反应
  • ¥15 matlab基于pde算法图像修复,为什么只能对示例图像有效
  • ¥100 连续两帧图像高速减法
  • ¥15 如何绘制动力学系统的相图