zounars Posted May 30, 2012 Share Posted May 30, 2012 Hello, I'm looking to display product location and product manufacturer to the Shopping cart summary. I have already those information in product-list.tpl with the following code. <p id="product_location" {if isset($groups) OR !$product->location}style="display: none;"{/if}> <label for="location">{l s='Location :'} </label><span class="editable">{$product->location|escape:'htmlall':'UTF-8'}</span></p> <p class="manufacturer_name" {if isset($groups) OR !$product.manufacturer_name}style="display: none;"{/if}><label for="manufacturer_name">{l s='Manufacturer :'} </label><span class="editable">{$product.manufacturer_name|escape:'htmlall':'UTF-8'}</span></p> Any help, please.... PS 1.4.8.2 Link to comment Share on other sites More sharing options...
zounars Posted June 4, 2012 Author Share Posted June 4, 2012 Any help please... Link to comment Share on other sites More sharing options...
scopweb Posted October 5, 2012 Share Posted October 5, 2012 Change in classes/Cart.php - function getProduts() $result = Db::getInstance()->ExecuteS(' SELECT cp.`id_product_attribute`, cp.`id_product`, cu.`id_customization`, cp.`quantity` cart_quantity, cu.`quantity` customization_quantity, pl.`name`, by $result = Db::getInstance()->ExecuteS(' SELECT cp.`id_product_attribute`, cp.`id_product`, cu.`id_customization`, cp.`quantity` cart_quantity, cu.`quantity` customization_quantity, pl.`name`, p.`location`, and in tpl shopping-cart-product-line.tpl, {$product.location} insert it where you need it. Greetings from Spain Link to comment Share on other sites More sharing options...
[email protected] Posted February 28, 2013 Share Posted February 28, 2013 Change in classes/Cart.php - function getProduts() $result = Db::getInstance()->ExecuteS(' SELECT cp.`id_product_attribute`, cp.`id_product`, cu.`id_customization`, cp.`quantity` cart_quantity, cu.`quantity` customization_quantity, pl.`name`, by $result = Db::getInstance()->ExecuteS(' SELECT cp.`id_product_attribute`, cp.`id_product`, cu.`id_customization`, cp.`quantity` cart_quantity, cu.`quantity` customization_quantity, pl.`name`, p.`location`, and in tpl shopping-cart-product-line.tpl, {$product.location} insert it where you need it. Greetings from Spain Change in classes/Cart.php - function getProduts() $result = Db::getInstance()->ExecuteS(' SELECT cp.`id_product_attribute`, cp.`id_product`, cu.`id_customization`, cp.`quantity` cart_quantity, cu.`quantity` customization_quantity, pl.`name`, by $result = Db::getInstance()->ExecuteS(' SELECT cp.`id_product_attribute`, cp.`id_product`, cu.`id_customization`, cp.`quantity` cart_quantity, cu.`quantity` customization_quantity, pl.`name`, p.`location`, and in tpl shopping-cart-product-line.tpl, {$product.location} insert it where you need it. Greetings from Spain And If i need to display location in "product-list.tpl" ? Where to add db request for it? thank you scopweb Martin Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now