Skip to main content

Missing Line of Code in Cart

More
11 years 11 months ago #176300 by Ed_Hika
-- HikaShop version -- : 2.3.3
-- Joomla version -- : 3.3.6

Hello, there.

Good morning!

Just to let you know that there is a line missing in the product/cart.php. This is not important unless one wants to include a "Unit Price" column, in which case the existing code will display the unit price as well, rather than the intended total price.

The section of code from line 553 is reproduced below.

~~~~~~~~~ START OF EXISTING CODE ~~~~~~~~~
if($this->params->get('show_price',1)){ ?>
<td class="hikashop_cart_module_product_price_value hikashop_cart_value">
<?php
$this->row=&$row;
echo $this->loadTemplate();
?>
</td>
~~~~~~~~~~ END OF EXISTING CODE ~~~~~~~~~~

I have inserted the line "$this->unit=false;" to ensure that this code properly displays the total price rather than unit price.

~~~~~~~~~ START OF MODIFIED CODE ~~~~~~~~~
if($this->params->get('show_price',1)){ ?>
<td class="hikashop_cart_module_product_price_value hikashop_cart_value">
<?php
$this->row=&$row;
$this->unit=false;
echo $this->loadTemplate();
?>
</td>
~~~~~~~~~~ END OF MODIFIED CODE ~~~~~~~~~~

Take care!

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

More
11 years 11 months ago #176313 by Xavier
Replied by Xavier on topic Missing Line of Code in Cart
Hi,

Thank you for this report, I have corrected it on our end.
The following user(s) said Thank You: Ed_Hika

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

Time to create page: 0.166 seconds
Powered by Kunena Forum