- This topic has 4 replies, 2 voices, and was last updated 4 years, 4 months ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › Simple PayPal Shopping Cart › Simple shopping Cart Troubleshooting › Purchase Date is Incorrect in Simple Shopping Cart Order
Tagged: Simple Shopping Cart
We just had someone place an order using our Simple Shopping Cart order form. The order was placed around 9:15 PM on June 25, but the order date recorded on the order, based on the information sent in the order notification email, is June 26. It appears it’s using an incorrect time zone. I checked to make sure our WordPress is set up with the correct time zone, and it is. It appears that the shopping cart may be using UTC instead of our local time zone (indianapolis Indiana). How can I make sure orders are recorded on the correct day?
First, go here and determine the appropriate timezone string that applies to you:
https://www.php.net/manual/en/timezones.php
Then add this string to the wp_shopping_cart.php file, immediately after the first set of comments:
date_default_timezone_set('America/New_York');
You’d replace ‘America/New_York‘ with whatever timezone string that you decided on.
Thanks.
I’m not a PHP programmer, so how do I get to that file to update it? Also, if I receive an update to the plugin will that code modification be retained?
I’m not a PHP programmer, so how do I get to that file to update it?
Here is the “official” WordPress documentation:
https://wordpress.org/support/article/plugins-editor-screen/
Also, if I receive an update to the plugin will that code modification be retained?
Updates do not occur too frequently, because it is a matured project (Last update was in 2018). If you find yourself having to reinstall the plugin; repeat the 1 line change.