开发者

How to add custom uploaded images to cart in magento 1.4.1.1?

开发者 https://www.devze.com 2023-01-21 19:06 出处:网络
How to add custom fields as well as custom images to cart in magento 1.4.1.1 ? Any one 开发者_StackOverflowhave any idea about this???If you need add you custom product attribute to shopping cart, ju

How to add custom fields as well as custom images to cart in magento 1.4.1.1 ?

Any one 开发者_StackOverflowhave 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>

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消