how i can set the time period of cs cart end in specif hours of the day , all time period end at 12 AM .
how i can set the time period of cs cart end in specif hours of the day , all time period end at 12 AM .
Hello!
What do you mean by "time period of cs cart"?
app/functions/fn.common.php
please replace
list($h, $m, $s) = $end_time ? array(23, 59, 59) : array(0, 0, 0);
with
list($h, $m, $s) = $end_time ? array(12, 00, 00) : array(0, 0, 0);
Then dates should be re-saved
as attach ,
i make promotion today 10/9 at 9:16 clock and will end tomorrow 11/9 also at 9:16 . to take 24 hours .
in cs-cart if i used available period it will end 12 AM, so it takes 14 hours and 43 minute to end today and 24 hours to end next day at 12 AM . it will be confused to customer .
we need to change the period to end at 12 pm or,
i want to put the hours and the minute manually . to make promo end next 6 hours an so on .
and thank you simtech for your reply
app/functions/fn.common.php
please replace
list($h, $m, $s) = $end_time ? array(23, 59, 59) : array(0, 0, 0);with
list($h, $m, $s) = $end_time ? array(12, 00, 00) : array(0, 0, 0);Then dates should be re-saved
it did not make change eCome labs .
after i add the line code there is error message appear when i want to make group condition ( ErrorOops, something went wrong (SyntaxError: Unexpected end of JSON input). Please try again. )
Please make sure that code is copied correctly. E.g. semicolon in the end. It should work
Please make sure that code is copied correctly. E.g. semicolon in the end. It should work
same error eCome labs
test.alphastore-kw.com/images/companies/1/banner/Capture.PNG
please check the code after i put it .
So did you add code, save new time in admin panel and see 404 error on the page in the store-front?
So did you add code, save new time in admin panel and see 404 error on the page in the store-front?
soory eCom lab
here is the url : https://alphastore-kw.com/images/companies/1/product%20images/pqi%20power%2010000v/Capture.PNG
same error eCom lab however , its work on promotion that already work running perfectly time end to 12 pm .
but i can not make new promotion its show the same message error . and i can not take any action in website like add new promotion add product to cart etc...
and thank you for your help
Please PM me temporary access. These changes should not generate any errors
Please PM me temporary access. These changes should not generate any errors
error on make new promotion : https://test.alphastore-kw.com/images/companies/1/banner/Capture3.PNG
error on add product to the cart : https://test.alphastore-kw.com/images/companies/1/banner/Capture2.PNG
Please PM me temporary access. These changes should not generate any errors
i already pm you eCom lab , and thank you for your help and i make it work for me now .
what i did is > if i edit the file via FileZilla cause the error message and , if i edit the file via file manager on host cause the problem 500 Internal Server Error .
the best practice it to download the file fn.common.php from file manager on host and edit it , and upload it again .
and it work without any problem.
and it work without any problem.
Thank you for keeping us updated