Author Topic: discount 10% per category rule working in backend not frontend  (Read 88 times)

Digi-web

  • Beginner
  • *
  • Posts: 28
    • Digi Web
discount 10% per category rule working in backend not frontend
« on: October 05, 2018, 12:43:18 pm »
Hello everyone!

What i wish to achieve is set per selected categories a discount, eg10%.

Now as you can see in the print screens i have create the discount and set the category.
In the product i have selected a general VAT 24% (there are two vats to select from) and i have left apply generic rules. Now the backed does see the generic rule in the final price (salesPrice) but in the front end the sales price is calculated only with the 24% vat.

Do you have any ideas or it is a bug?

Info: no template overrides set. The var dump is made in the sublayouts path: components\com_virtuemart\sublayouts\products.php 
If i select the discount 10% instead of apply generic rules then the price is also correctly visible in the front end (but i cannot do this for many products it will take much time).
Joomla 3.8.12
VM 3.4.0 Stable
php 7.0.26 and 7.2.9 tested
Servers Wamp and Demosite live hosting.

BR,
Alexander


 
Custom Joomla - Virtuemart Development and Templates
Website: http://www.digi-web.gr

Digi-web

  • Beginner
  • *
  • Posts: 28
    • Digi Web
Re: discount 10% per category rule working in backend not frontend
« Reply #1 on: October 05, 2018, 13:23:05 pm »
Ok i found the issue, i had selected country in the rule and it was not applied since one could not select country prior to being in the basket i guess. :)
By removing the country from the rule it was applied automatically - although it makes me an impression why it works when specifically selected for he product...
Custom Joomla - Virtuemart Development and Templates
Website: http://www.digi-web.gr