Jump to content

Display product location and product manufacturer to the Shopping cart summary and bill


Recommended Posts

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

  • 4 months later...

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

  • 4 months later...

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...