Julie Posted March 22, 2019 Share Hello, Do you have an idea to change inside the shopping header, the product title by an image ? Thank you. Quote Link to post
Patrick Posted March 22, 2019 Share (edited) @Julie, This code can help you, replace the product name by this : <?php $products = $CLICSHOPPING_ShoppingCart->get_products(); foreach ($products as $k => $v) { $name = $v['name']; $image = HTML::image($CLICSHOPPING_Template->getDirectoryTemplateImages() . $v['image'], HTML::outputProtected($name), 50, 50, null, true); echo ' <div class="row"> <div class="col-md-12"> <li class="headerMultiTemplateDefaultLi"> <div class="float-md-left">' . $v['quantity'] . ' - ' . $name . '</div> <div class="float-md-right text-md-right">' . $CLICSHOPPING_Currencies->display_price($v['final_price'], $CLICSHOPPING_Tax->getTaxRate($v['tax_class_id']), $v['quantity']) . '</div> </li> </div> </div> '; } ?> Edited March 22, 2019 by Patrick 1 Quote Link to post
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.