j2fb
Forum Replies Created
-
I see, thanks! Looking forward to it. Will that be in the next update? 🙂
Hi, thanks for your reply!
I’ve identified that the script works in our local dev environment (the sales end correctly at the right moment and the lookup table data goes back to normal), but not on our live website (the product lookup table “onsale” and prices doesn’t go back to normal). Any ideas of what could be causing this? (we already tried disabling our cache, cloudflare, etc, so it doesn’t seem to be related to that).
Thanks for your reply, that would be helpful for sure!
Here is what the script looks like:
update_post_meta($product->get_id(), '_price', $discounted_price); update_post_meta($product->get_id(), '_sale_price', $discounted_price); update_post_meta($product->get_id(), '_sale_price_dates_from', date("Y-m-d H:i:s", strtotime($start))); update_post_meta($product->get_id(), '_sale_price_dates_to', date("Y-m-d H:i:s", strtotime($end))); wc_delete_product_transients($product->get_id());Maybe a key piece of code is missing here? 🙂
(Please note that we didn’t use wc_product->save() because it was a lot slower than updating the prices directly and we process 100s of products at once, so the save function took too long for us).
Sure, thanks, I have sent you the support ticket again.
Regards,
JonHi there,
Thanks for your reply. It’s the transactions/thank you page that isn’t being tracked (it seems to work OK until the checkout page).I also sent a support ticket via your website, but still waiting for an answer 🙂