Schedule Sale Price Error
-
Hello, I have found an error in the scheduled discounts function. I investigated and saw that there are other topics with the same problem but I have not found the solution.
WooCommerce Schedule Sale Price – Not working | www.remarpro.com
To rule out problems I am trying with a clean and updated installation. The problem is that when the discount date arrives, the price is not modified as seen in the attached screenshots.
Thank you and I await your response
https://imgur.com/dFBczB8
https://imgur.com/6lnFh9d
https://imgur.com/ACc3NQq
https://imgur.com/0jcJaBUThe page I need help with: [log in to see the link]
-
Hi @cismaestudio,
Thank you for reaching out.
I’m sorry to hear that you’re having issues with the scheduled discounts function. It can be frustrating when things don’t work as expected.
It seems like the sale price isn’t being updated correctly when the discount date arrives. This is quite unusual as I tried making a sale and prices were reduced correctly.
With that said, I’d like to understand your site properly. Please share with us the necessary information below for us to investigate the issue further:
- System Status Report, which you can find via WooCommerce > Status > Get system report > Copy for support.
- Fatal error logs (if any) under WooCommerce > Status > Logs. You could copy and paste your reply here or paste it via?https://gist.github.com/?and send the link here.
Once we have more information, we’ll be able to assist you further.
Hi thanks for the reply this is te system report:
WordPress Environment<br><br>WordPress address (URL): https://cismaestudio.com.ar/citas<br>Site address (URL): https://cismaestudio.com.ar/citas<br>WC Version: 9.4.2<br>Legacy REST API Package Version: The Legacy REST API plugin is not installed on this site.<br>Action Scheduler Version: ? 3.8.2<br>Log Directory Writable: ?<br>WP Version: 6.7.1<br>WP Multisite: –<br>WP Memory Limit: 256 MB<br>WP Debug Mode: –<br>WP Cron: –<br>Language: en_US<br>External object cache: – Server Environment<br><br>Server Info: Apache<br>PHP Version: 7.4.33<br>PHP Post Max Size: 512 MB<br>PHP Time Limit: 300<br>PHP Max Input Vars: 1500<br>cURL Version: 7.45.0<br>OpenSSL/1.0.1e<br><br>SUHOSIN Installed: –<br>MySQL Version: 5.7.36-log<br>Max Upload Size: 512 MB<br>Default Timezone is UTC: ?<br>fsockopen/cURL: ?<br>SoapClient: ?<br>DOMDocument: ?<br>GZip: ?<br>Multibyte String: ?<br>Remote Post: ?<br>Remote Get: ? Database<br><br>WC Database Version: 9.4.2<br>WC Database Prefix: wp_<br>Total Database Size: 5.00MB<br>Database Data Size: 3.28MB<br>Database Index Size: 1.72MB<br>wp_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB<br>wp_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB<br>wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_actionscheduler_actions: Data: 0.02MB + Index: 0.11MB + Engine InnoDB<br>wp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_actionscheduler_logs: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB<br>wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_options: Data: 2.20MB + Index: 0.06MB + Engine InnoDB<br>wp_postmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_posts: Data: 0.05MB + Index: 0.06MB + Engine InnoDB<br>wp_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_usermeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>wp_wc_admin_notes: Data: 0.06MB + Index: 0.00MB + Engine InnoDB<br>wp_wc_admin_note_actions: Data: 0.05MB + Index: 0.02MB + Engine InnoDB<br>wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_wc_orders: Data: 0.02MB + Index: 0.11MB + Engine InnoDB<br>wp_wc_orders_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_wc_order_addresses: Data: 0.02MB + Index: 0.06MB + Engine InnoDB<br>wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_wc_order_operational_data: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB<br>wp_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_wc_product_meta_lookup: Data: 0.02MB + Index: 0.11MB + Engine InnoDB<br>wp_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB Post Type Counts<br><br>attachment: 1<br>page: 7<br>post: 2<br>product: 3<br>wp_navigation: 1 Security<br><br>Secure connection (HTTPS): ?<br>Your store is not using HTTPS. Learn more about HTTPS and SSL Certificates.<br>Hide errors from visitors: ? Active Plugins (1)<br><br>WooCommerce: by Automattic – 9.4.2 Inactive Plugins (0) Dropin Plugins ()<br><br>advanced-cache.php: advanced-cache.php Settings<br><br>Legacy API Enabled: –<br>Force SSL: –<br>Currency: USD ($)<br>Currency Position: left<br>Thousand Separator: ,<br>Decimal Separator: .<br>Number of Decimals: 2<br>Taxonomies: Product Types: external (external)<br>grouped (grouped)<br>simple (simple)<br>variable (variable)<br><br>Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)<br>exclude-from-search (exclude-from-search)<br>featured (featured)<br>outofstock (outofstock)<br>rated-1 (rated-1)<br>rated-2 (rated-2)<br>rated-3 (rated-3)<br>rated-4 (rated-4)<br>rated-5 (rated-5)<br><br>Connected to WooCommerce.com: –<br>Enforce Approved Product Download Directories: ?<br>HPOS feature enabled: ?<br>Order datastore: Automattic\WooCommerce\Internal\DataStores\Orders\OrdersTableDataStore<br>HPOS data sync enabled: – Logging<br><br>Enabled: ?<br>Handler: Automattic\WooCommerce\Internal\Admin\Logging\LogHandlerFileV2<br>Retention period: 30 days<br>Level threshold: –<br>Log directory size: 543 B WC Pages<br><br>Shop base: #7 - /tienda/<br>Cart: #8 - /carrito/ - Contains the woocommerce/cart block<br>Checkout: #9 - /finalizar-compra/ - Contains the woocommerce/checkout block<br>My account: #10 - /mi-cuenta/<br>Terms and conditions: ? Page not set Theme<br><br>Name: Twenty Twenty-Five<br>Version: 1.0<br>Author URL: https://www.remarpro.com<br>Child Theme: ? – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme<br>WooCommerce Support: ? Not declared Templates<br><br>Overrides: /home/b5000007/public_html/citas/wp-content/plugins/woocommerce/templates/block-notices/error.php<br>/home/b5000007/public_html/citas/wp-content/plugins/woocommerce/templates/block-notices/notice.php<br>/home/b5000007/public_html/citas/wp-content/plugins/woocommerce/templates/block-notices/success.php Admin<br><br>Enabled Features: activity-panels<br>analytics<br>product-block-editor<br>coupons<br>core-profiler<br>customize-store<br>customer-effort-score-tracks<br>import-products-task<br>experimental-fashion-sample-products<br>shipping-smart-defaults<br>shipping-setting-tour<br>homescreen<br>marketing<br>mobile-app-banner<br>navigation<br>onboarding<br>onboarding-tasks<br>pattern-toolkit-full-composability<br>product-custom-fields<br>remote-inbox-notifications<br>remote-free-extensions<br>payment-gateway-suggestions<br>printful<br>shipping-label-banner<br>subscriptions<br>store-alerts<br>transient-notices<br>woo-mobile-welcome<br>wc-pay-promotion<br>wc-pay-welcome-page<br>launch-your-store<br><br>Disabled Features: product-data-views<br>experimental-blocks<br>minified-js<br>product-pre-publish-modal<br>settings<br>async-product-editor-category-field<br>product-editor-template-system<br>blueprint<br>reactify-classic-payments-settings<br>use-wp-horizon<br><br>Daily Cron: ? Next scheduled: 2024-11-28 18:14:39 +04:30<br>Options: ?<br>Notes: 55<br>Onboarding: - Action Scheduler<br><br>Complete: 11<br>Oldest: 2024-11-27 22:45:45 +0430<br>Newest: 2024-11-28 23:32:55 +0430<br><br>Failed: 1<br>Oldest: 2024-11-27 22:45:45 +0430<br>Newest: 2024-11-27 22:45:45 +0430<br><br>Pending: 1<br>Oldest: 2024-11-29 23:30:30 +0430<br>Newest: 2024-11-29 23:30:30 +0430 Status report information<br><br>Generated at: 2024-11-29 16:56:07 +04:30<br><br>and this are the log messages<br>
https://imgur.com/qO2UEht
https://imgur.com/NIGzUnT
https://imgur.com/fNgjyxP
thanks in advance!Hello cismaestudio,
Thank you for your reply.
Could you confirm which one of these products has issues?
Please edit the product and share a screenshot of the price section.Could you go to WooCommerce > System Status > Scheduled Actions and check for any failed or pending actions? Share a screenshot if you find anything.
Looking forward to your response. ??
This happens on all products. The problem was discovered on one of my client’s sites when they use that feature for the first time. To rule out site errors, I tested it on a clean installation and also found the same problem.
All the information provides comes from a fresh new site with only woocommerce installed and dummy products.
The only error in scheduled actions is:
woocommerce_admin/stored_state_setup_for_products/async/run_remote_notifications
Wi1QkN5.png (1912×2683)Hello cismaestudio,
Thank you for your reply.
The test site you created, is it on the same server or a different server?
I want to make sure if this issue is related to the server or not.Please edit the product and share a screenshot of the price section.
Lastly, please answer the following questions:
– What timezone was selected in WP Admin > Settings > General > Timezone option?
– What is the system timezone of your WP server?Looking forward to your response. ??
Hi is another server.
What I noticed when I entered again today is that the price was affected but after the scheduled date, the product was “test-3” when the date arrived showed the reduced price in this way
$1?0?0? – $100 and now that at least one day has passed since its programming the price is correct $1?0?0? – $30 and the date of start is blank
Now I scheduled the product “test 2” to be discounted tomorrow, I will share screenshots of how the discount is applied
https://imgur.com/PRfzrQL
https://imgur.com/QnHeg1nWell the scheduled time was a few minutes ago and this is the error, I will wait for a few hours to pass and see if it is corrected as before
https://imgur.com/m7lyMjJ
https://imgur.com/bHKDpKH
https://imgur.com/Ol9CcBdHello cismaestudio,
Thank you for you reply.
Could you please confirm at what time you check the sale price?
Please note that the sale price will expire at 11:59 pm (UTC).Looking forward to your response. ??
Yes i checked about 00:30 and the morning after abour 08:00 am. So far the price has not been corrected
Hi @cismaestudio,
Thanks for sharing an update on this with us here.
As a next step, I’d suggest installing the WP Crontrol plugin to see if there are any errors causing?
WP Cron
?not to run as expected.Please try this and do let us know how it goes.
Thank you, I have scheduled discounted products for tomorrow. This is the status of the scheduled tasks that WP Crontol informs us. Once the scheduling date comes, I will share the changes with you.
https://drive.google.com/file/d/1VDXgqtrc5vP2Et2wovQJZrKUxKa-ThY0/view?usp=sharingHello cismaestudio,
Thank you for your reply.
Please let me know how it goes.
I am here if you need further assistance with sale price scheduling.Have a great day!
- You must be logged in to reply to this topic.