Interaction between related products and cart

  • Posts: 292
  • Thank you received: 5
  • Hikashop Business
12 years 10 months ago #19263

Have a screen showing a product and below it a list of related products.
On the right hand side is a cart module.

The product always displays correctly.
When the cart is either empty or the module disabled the related products display correctly.
Related product prices show as:

£6.78 each ADD TO CART


When the cart is populated related products do not display correctly.
Related product prices show as:

£6.78 ADD TO CART

The each is missing.

In the template file list_price.php there is a check:
if(isset($price->price_min_quantity) && empty($this->cart_product_price)){
if($price->price_min_quantity>1){
This works correctly for the cart but for related products it looks like the value of $this->cart_product_price has leaked across as it is set when processing related products.

Please Log in or Create an account to join the conversation.

  • Posts: 292
  • Thank you received: 5
  • Hikashop Business
12 years 10 months ago #19264

A quick fix is to put the following line at the end of the product cart.php view file.

unset($this->cart_product_price);

Please Log in or Create an account to join the conversation.

  • Posts: 81621
  • Thank you received: 13084
  • MODERATOR
12 years 10 months ago #19289

Thanks. We'll change that for next release.

Please Log in or Create an account to join the conversation.

Time to create page: 0.055 seconds
Powered by Kunena Forum