如何在magento 1.4.1.1中将自定义上传的图像添加到购物车? [英] How to add custom uploaded images to cart in magento 1.4.1.1?
本文介绍了如何在magento 1.4.1.1中将自定义上传的图像添加到购物车?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在magento 1.4.1.1中将自定义字段以及自定义图像添加到购物车中?
How to add custom fields as well as custom images to cart in magento 1.4.1.1 ?
任何人对此都有任何想法吗?
Any one have any idea about this???
推荐答案
如果需要将自定义产品属性添加到购物车,只需将以下代码行添加到模块配置中即可:
If you need add you custom product attribute to shopping cart, just add the following lines of code into your module configuration:
<config>
<global>
<sales>
<quote>
<item>
<product_attributes>
<[your_custom_attribute_code] />
</product_attributes>
</item>
</quote>
</sales>
</global>
</config>
只需将 [your_custom_attribute_code] 替换为属性代码即可. 您也可以根据需要添加任意多个属性,只需在配置中添加一个以上的属性即可.
Just replace [your_custom_attribute_code] with the code of your attribute. You may also add as many attributes as you wish, just add one more attribute into configuration.
这篇关于如何在magento 1.4.1.1中将自定义上传的图像添加到购物车?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文