Jump to content

Wrong price in cart if reduction_to=TODAY


Recommended Posts

There is something wrong with my shop's reduction expiration. I had 17 products reduced from Oct 12th to 17th. Now today somebody ordered one of them and it says about the discounted price on the product page etc, but not after adding the product to the cart. Prices-drop is also empty. If I move the expiration day forward by 1 day it is back to normal again. I can't figure it out, in cart.php it says

foreach ($products as $product)
               if ((intval($product['reduction_price']) OR intval($product['reduction_percent'])) AND ($product['reduction_from'] == $product['reduction_to'] OR ($currentDate >= $product['reduction_from'] AND $currentDate <= $product['reduction_to']))



and here we see that the discount should be valid if today is less or equal to reduction_to date.

Anybody else had this kind of trouble? Found nothing on the forums.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...