News:

Looking for documentation? Take a look on our wiki

Main Menu

Base price in cart

Started by poqo, December 15, 2015, 15:41:05 PM

Previous topic - Next topic

poqo

Hi,
Joomla: 3.4.5
VirtueMart 3.0.12
PHP: 5.3.29

Can you tell my how insert Base price in cart? Right now i have heading "Base price" but it shows price with discount. Then i have Quantity, Discount and Amount. So it's look like this:
Name | SKU | Price (and i don't know why with discount) | Quantity | Discount | Total
It will be perfect if Price shows base price without accrued discount. I think i need need edit components/com_virtuemart/views/cart/tmpl/default_pricelist.php in this line:
Quote<td class="vm-cart-item-basicprice" >
      <?php
      if (VmConfig::get ('checkout_show_origprice', 1) && $prow->prices['discountedPriceWithoutTax'] != $prow->prices['priceWithoutTax']) {
         echo '<span class="line-through">' . $this->currencyDisplay->createPriceDiv ('basePriceVariant', '', $prow->prices, TRUE, FALSE) . '</span><br />';
      }

      if ($prow->prices['discountedPriceWithoutTax']) {
         echo $this->currencyDisplay->createPriceDiv ('discountedPriceWithoutTax', '', $prow->prices, FALSE, FALSE, 1.0, false, true);
      } else {
         echo $this->currencyDisplay->createPriceDiv ('basePriceVariant', '', $prow->prices, FALSE, FALSE, 1.0, false, true);
      }
      ?>
   </td>
but don't know what exactly.
I will be very grateful for your help.

poqo

Sorry but i must ask again. Does anyone know the solution to this problem already? It's very important for me.
Thanks.