简体   繁体   English

如何在magento中以编程方式将带有自定义选项信息的产品保存到另一个表

[英]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.

相关问题 如何在Magento中获取产品的自定义选项值? - How to get custom option values of the product in Magento? Magento2 如何以编程方式更新产品信息(PHP 脚本)? - Magento2 How to update product information programmatically (PHP Script)? 如何在Magento 2中以编程方式从产品信息中获取缺货状态 - How to get backorder status from product information programmatically in Magento 2 Magento:如何从捆绑的产品中检索选项信息? - Magento : How to retrieve option information from a bundled product? 在Magento中将自定义选项隐藏在产品上 - Hiding a custom option on a product in Magento 马杰托。 如何使用自定义选项以编程方式在购物车中添加简单产品 - Magento. How to add simple product in cart programmatically with custom options 如何以编程方式将带有自定义选项的产品添加到Magento中的购物车? - How to programmatically add a product with custom options to cart in Magento? 如何在magento中将输入文件附加到产品自定义选项? - How to attach input file to product custom option in magento? 如何导入带有自定义选项的magento1.7产品? - How import magento1.7 product with custom option? Magento 2使用自定义选项以编程方式将产品添加到购物车 - Magento 2 add product to cart programmatically with custom options
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM