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 gwas 分析-数据质控之过滤稀有突变中出现的问题
  • ¥15 没有注册类 (异常来自 HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))
  • ¥15 知识蒸馏实战博客问题
  • ¥15 用PLC设计纸袋糊底机送料系统
  • ¥15 simulink仿真中dtc控制永磁同步电机如何控制开关频率
  • ¥15 用C语言输入方程怎么
  • ¥15 网站显示不安全连接问题
  • ¥15 51单片机显示器问题
  • ¥20 关于#qt#的问题:Qt代码的移植问题
  • ¥50 求图像处理的matlab方案