Baseprice with Tax, but without discounts in Cart table

Started by idor, May 02, 2020, 18:32:48 PM

Previous topic - Next topic

idor

Hi,
In cart page, no matter if I check Baseprice with Tax, but without discounts, in the cart page, doesn´t appear in price/unit column.
The price shown is the final pice with disount and in seperate column the discount, which is confusing, because the user asumes there is a discount on the already discounted price..
I need to show the Sales Price with tax but without discounts* in the Price/unit column and the discount in the separate column as is.

*(it is the same with Baseprice with Tax, but without discounts, right?)

(All prices I need to include tax)

GJC Web Design

VP templates have their own settings in the TEMPLATE for price display.. maybe that has something to do with it

what cart are u using?

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 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
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

idor

Finally I had to modify html/com_virtuemart/cart/default_pricelist.php

around line 237 I replaced this
<?php if(VmConfig::get('checkout_show_origprice', 1) && $prow->prices['discountedPriceWithoutTax'] != $prow->prices['priceWithoutTax'])

with this

<?php if(VmConfig::get('checkout_show_origprice', 1) && $prow->prices['basePriceWithTax'] != $prow->prices['priceWithoutTax'])


And also around line 241 I replaced this

                  if($prow->prices['discountedPriceWithoutTax'])   
                     {   
                        echo $this->currencyDisplay->createPriceDiv('discountedPriceWithoutTax', '', $prow->prices, false, false);


with this


                  if($prow->prices['basePriceWithTax'])
                     {
                        echo $this->currencyDisplay->createPriceDiv('basePriceWithTax', '', $prow->prices, false, false);


I don´t know if this is the solution. I also contacted to the template support and waiting for their solution.

Thank you!

idor

The cart is OK now, but the problem I have is in the order (website & email received).
Which is the file I have to change in order to show basepriceWithTax, instead of product_discountedPriceWithoutTax?

idor

Hi GJC,
thank you for your reply,
Quote from: GJC Web Design on May 02, 2020, 21:56:43 PM
VP templates have their own settings in the TEMPLATE for price display.. maybe that has something to do with it

what cart are u using?

I had Final Sales Price selected. Now I changed it to "Base Price with tax but without discount" which would be OK for me because I am using a separate column for the discount.
No matter what, I always get the price without tax, in the order website & email.

I don´t understand to which price the VP setting is reffering. What I need to change is the column price/unit in order to include tax.