Interaction between related products and cart
- brainforge
-
Topic Author
- Offline
Less
More
15 years 3 months ago #19263
by brainforge
Interaction between related products and cart was created by brainforge
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:
When the cart is populated related products do not display correctly.
Related product prices show as:
In the template file list_price.php there is a check:
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.
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:
The each is missing.£6.78 ADD TO CART
In the template file list_price.php there is a check:
Code:
if(isset($price->price_min_quantity) && empty($this->cart_product_price)){
if($price->price_min_quantity>1){
Please Log in or Create an account to join the conversation.
- brainforge
-
Topic Author
- Offline
15 years 3 months ago #19264
by brainforge
Replied by brainforge on topic Re: Interaction between related products and cart
A quick fix is to put the following line at the end of the product cart.php view file.
Code:
unset($this->cart_product_price);
Please Log in or Create an account to join the conversation.
15 years 3 months ago #19289
by nicolas
Replied by nicolas on topic Re: Interaction between related products and cart
Thanks. We'll change that for next release.
Please Log in or Create an account to join the conversation.
Time to create page: 0.177 seconds