ajax-cart-template liquid change {{ img }} to product.featured_image or? not working

Shopify Partner
145 5 47

Ok so I am working on Impulse theme -->  ajax-cart-template.liquid.


I have this code:


    <div class="grid__item one-quarter">
                    <a href="{{url}}" class="ajaxcart__product-image"><img src="{{img}}" alt=""></a>


And just want to change  {{ img }}    to be the featured image for the product and not the img from the variants when chosen. It has been driving me nuts. I get close but then no bueno.


Thank you,

James Byrne, Owner, Information Architect (USMC VET)
After Dark Grafx - Since 1992
"We Work After Dark, So You Don't Have To!"

Services: Website Design, Mobile App Development (iOS, Android, Windows), Ecommerce, Magento, Shopify, Miva, BigCommerce, Search Engine Optimization, Wordpress, Hosting, Graphic Design, Merchant Accounts, Consulting and all things web related!

Certified Partner/Developer/Affiliates: Shopify, Google Integrator, Wordpress, Zoho, AuthorizeNet, Geotrust and a Member of the San Diego Regional Chamber of Commerce, Veteran Owned Businesses, Veteran's In Business Network.

I also build custom apps for Shopify!
Reply 1 (1)
New Member
7 0 0