Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

Purchase Date is Incorrect in Simple Shopping Cart Order

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

  • This topic has 4 replies, 2 voices, and was last updated 2 years, 9 months ago by wzp.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • June 26, 2020 at 1:31 am #14265
    adamspOV

    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?

    June 26, 2020 at 2:57 am #80740
    wzp
    Moderator

    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.

    June 27, 2020 at 3:45 pm #80741
    adamspOV

    Thanks.

    June 27, 2020 at 3:48 pm #80742
    adamspOV

    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?

    June 27, 2020 at 10:37 pm #80743
    wzp
    Moderator

    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.

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • WP PDF Stamper Documentation
  • WP Photo Seller Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial
  • WP Photo Seller Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2023 | Tips and Tricks HQ