You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you set the start date for current date it does not enable the special.
Looking at the code you can see how it could not possibly work as is.
On Oct 10, 2012 3:33 AM, "Daniel Kerr" notifications@github.com wrote:
again works fine for me.
check what the date and time is on your host.
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/179#issuecomment-9293820.
savage4pro
pushed a commit
to savage4pro/opencart
that referenced
this issue
Dec 7, 2015
Opencart 1.5.4.1 and previous.
admin/controller/catalog/product.php
ISSUE: Special will not start on current date.
SOLUTION BELOW
REPLACE THE FOLLOWING
foreach ($product_specials as $product_special) {
if (($product_special['date_start'] == '0000-00-00' || $product_special['date_start'] < date('Y-m-d')) && ($product_special['date_end'] == '0000-00-00' || $product_special['date_end'] > date('Y-m-d'))) {
$special = $product_special['price'];
WITH THE FOLLOWING
foreach ($product_specials as $product_special) {
if (($product_special['date_start'] == '0000-00-00' || $product_special['date_start'] < date('Y-m-d') || $product_special['date_start'] == date('Y-m-d')) && ($product_special['date_end'] == '0000-00-00' || $product_special['date_end'] > date('Y-m-d'))) {
$special = $product_special['price'];
The text was updated successfully, but these errors were encountered: