[英]How to save a product with its custom option information to an another table programmatically in magento
I create a table in database and save a product by simple product id. 我在数据库中创建一个表,并通过简单的产品ID保存产品。 Now I want to save custom option information of this product.
现在,我想保存该产品的自定义选项信息。 When show this product on front-end I will be show its selected custom option.
在前端显示该产品时,将显示其选定的自定义选项。 Actually I want to save a product as an wishlist item in custom table.
实际上,我想将产品另存为自定义表中的愿望清单项。
Anybody can help me?? 有人可以帮助我吗?
Take a look at this : http://snipplr.com/view/56959/ You are interested in catalog_product_save_after event. 看一下这个: http : //snipplr.com/view/56959/您对catalog_product_save_after事件感兴趣。 Get the product from the event, extract the options that you need and than save them in your custom table.
从事件中获取产品,提取所需的选项,然后将其保存在自定义表中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.