Missing Line of Code in Cart

  • Posts: 109
  • Thank you received: 5
10 years 10 months ago #176300

-- 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.

  • Posts: 13201
  • Thank you received: 2322
10 years 10 months ago #176313

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.055 seconds
Powered by Kunena Forum