Author Topic: hide PricebasePrice  (Read 392 times)

marvays

  • Jr. Member
  • **
  • Posts: 324
    • richta.cz
  • Skype Name: marvays
hide PricebasePrice
« on: March 11, 2020, 04:14:37 am »
Hi all.
When I need setup discount price on any product, have problem with display PricebasePrice.

When I have discount product, I see PricebasePriceWithTax with css "text-decoration: line-through;"
But PricebasePrice havnet it. Why?

When I have a discounted product, it is logical to cross out the base "PricebasePrice" and "PricebasePriceWithTax" and below it show "PricediscountedPriceWithoutTax"

How i can setup "PricebasePrice" in discounted product with css "text-decoration: line-through;" or hide this price?

marvays

  • Jr. Member
  • **
  • Posts: 324
    • richta.cz
  • Skype Name: marvays
Re: hide PricebasePrice
« Reply #1 on: March 11, 2020, 05:11:21 am »
I am trying add line into /templates/my_template3/html/com_virtuemart/sublayouts/prices.php
on line around:
Code: [Select]
if ($product->prices['discountAmount']){
      if (round($product->prices['basePriceWithTax'],$currency->_priceConfig['salesPrice'][1]) != $product->prices['salesPrice']) {
    echo '<div class="price-crossed" >' . $currency->createPriceDiv ('basePriceWithTax', 'COM_VIRTUEMART_PRODUCT_BASEPRICE_WITHTAX', $product->prices) . "</div>";
    }
    }

and add "PricebasePrice" ot not work for me. I am bad coder :(