News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

hide PricebasePrice

Started by marvays, March 11, 2020, 04:14:37 AM

Previous topic - Next topic

marvays

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

I am trying add line into /templates/my_template3/html/com_virtuemart/sublayouts/prices.php
on line around:
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 :(