Author Topic: Base price without tax in discounted prices?  (Read 608 times)

tsimpouri

  • Beginner
  • *
  • Posts: 18
Base price without tax in discounted prices?
« on: November 08, 2018, 12:23:59 pm »
Hello i want to ask something i have a wholesale site.
The prices in product catalog is without tax and the customer can see the tax in the cart.
The tax method is tax per product.
When i have a discount with override price to be taxed in some products, the price with the line through is the Base price with tax.
Is there anyway to get there the Base price without tax?

joomla 3.9.0
Virtuemart 3.4.2

Thanks

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27426
  • Always on vacation
    • Jenkin Hill Internet
Re: Base price without tax in discounted prices?
« Reply #1 on: November 08, 2018, 15:10:40 pm »
SElect the proces you wish to display in VM Configuration/Prices  and ensure that you template will display those prices - if using a commercial template or overrides you may need to edit the sublayout at templates/[your Joomla template]/html/com_virtuemart/sublayouts/prices.php
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM 3.4.3.10057 on Joomla 3.9.8 PHP 7.0.33
Testing VM .3.6.0.10075 on Joomla 3.9.8

tsimpouri

  • Beginner
  • *
  • Posts: 18
Re: Base price without tax in discounted prices?
« Reply #2 on: November 09, 2018, 09:22:22 am »
Hello the template is showing all the prices. But the with the line through is the Base price with tax.
The same is happening with  beez3 template.
The problem is that i dont get  Base price without tax in overrided price

The code on price.php for discounted price is the following


         <?php if(!empty($discount) && $priceType != 'basePriceWithTax' && $priceType != 'salesPriceWithDiscount') : ?>
            <?php if(VmConfig::get('basePriceWithTax', 0) && !empty($product->prices['basePriceWithTax']) && round($product->prices['basePriceWithTax'], $currency->_priceConfig['salesPrice'][1]) != $product->prices['salesPrice']) : ?>
               <div class="product-price-before-discount">
                  <?php echo $currency->createPriceDiv ('basePriceWithTax', '', $product->prices) ?>
               </div>
            <?php elseif(VmConfig::get('salesPriceWithDiscount', 0) && !empty($product->prices['salesPriceWithDiscount']) && round($product->prices['salesPriceWithDiscount'], $currency->_priceConfig['salesPrice'][1]) != $product->prices['salesPrice']) : ?>
               <div class="product-price-before-discount">
                  <?php echo $currency->createPriceDiv ('salesPriceWithDiscount', '', $product->prices) ?>
               </div>
            <?php endif; ?>
         <?php elseif(!empty($discount) && $priceType == 'basePriceWithTax' && VmConfig::get('salesPriceWithDiscount', 0) && !empty($product->prices['salesPriceWithDiscount']) && round($product->prices['salesPriceWithDiscount'], $currency->_priceConfig['salesPrice'][1]) != $product->prices['salesPrice']) : ?>
            <div class="product-price-before-discount">
               <?php echo $currency->createPriceDiv ('salesPriceWithDiscount', '', $product->prices) ?>
            </div>
         <?php endif; ?>


Thanks

tsimpouri

  • Beginner
  • *
  • Posts: 18
Re: Base price without tax in discounted prices?
« Reply #3 on: November 13, 2018, 09:14:21 am »
I think that is must be a solution for this can anyone help me?

Thanks

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8892
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.4.2
Re: Base price without tax in discounted prices?
« Reply #4 on: November 13, 2018, 10:55:42 am »
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation