Closed (won't fix)
Project:
Commerce Ajax Add to Cart
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
22 Jul 2015 at 23:01 UTC
Updated:
27 May 2016 at 07:47 UTC
Jump to comment: Most recent
Comments
Comment #1
redhatusr commentedstarting at line 507 of dc_ajax_add_cart.module
its seems to working
Comment #2
subhojit777Re #1:
That is not the correct way to add image to the cart. The cart is rendered using
dc-ajax-shopping-cart.tpl.php, you can alter the template file and add image to it.Comment #3
doxigo commentedCan you tell us how actually it's being done? to add another custom field (Image in this case) to the template file?
Comment #4
subhojit777@doxigo You have to override the preprocess of
dc-ajax-shopping-cart.tpl.php, add your product images there, and then override the defaultdc-ajax-shopping-cart.tpl.phpand render the images there.Comment #5
mozh92 commentedin file dc_ajax_add_cart.module
we find - function template_preprocess_dc_ajax_add_to_cart_message(&$variables)
and add
Use own field from Product field (field_card_image)
and after you can add $product_image in file dc-ajax-add-to-cart-message.tpl.php
for example