Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Available Time Period To Specific Hours And Minute Rate Topic   - - - - -

 

Posted 09 September 2018 - 09:47 AM #1

how i can set the time period of cs cart end in specif hours of the day , all time period end at 12 AM . 



 
  • oleg.gorshkov
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 06-Dec 13
  • 2960 posts

Posted 10 September 2018 - 05:50 AM #2

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"?


Simtech Development | sales@simtechdev.com | www.simtechdev.com
CERTIFIED CS-CART PARTNER | LICENSES | DEVELOPMENT | ADD-ONS | DESIGN | UPGRADE

Mega SEO Package - All you need for your SEO


 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 17999 posts

Posted 10 September 2018 - 06:17 AM #3

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


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 

Posted 10 September 2018 - 06:31 AM #4

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 

Attached Thumbnails

  • 1.PNG
  • 2.PNG


 

Posted 10 September 2018 - 07:01 AM #5

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. ) 



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 17999 posts

Posted 10 September 2018 - 01:07 PM #6

Please make sure that code is copied correctly. E.g. semicolon in the end. It should work


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 

Posted 12 September 2018 - 06:18 AM #7

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 . 



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 17999 posts

Posted 12 September 2018 - 01:35 PM #8

So did you add code, save new time  in admin panel and see 404 error on the page in the store-front?


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 

Posted 13 September 2018 - 05:58 AM #9

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-k...00v/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 



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 17999 posts

Posted 13 September 2018 - 06:10 AM #10

Please PM me temporary access. These changes should not generate any errors


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 

Posted 13 September 2018 - 06:13 AM #11

Please PM me temporary access. These changes should not generate any errors

 

error on make new promotion    : https://test.alphast...er/Capture3.PNG

error on add product to the cart : https://test.alphast...er/Capture2.PNG



 

Posted 13 September 2018 - 09:21 AM #12

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. 



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 17999 posts

Posted 13 September 2018 - 01:10 PM #13

and it work without any problem. 

 

Thank you for keeping us updated


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.