Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter laurenceli

    (@laurenceli)

    looks like better search replace works. Thanks all!

    Thread Starter laurenceli

    (@laurenceli)

    Here’s the place in the staging environment source code I notice the production URL still being used:

    <div class="xoo-wsc-ft-buttons-cont">
    <a href="#" class="xoo-wsc-ft-btn xoo-wsc-btn button btn xoo-wsc-cart-close xoo-wsc-ft-btn-continue">Continue Shopping</a><a href="https://workshops.writetheworld.org/cart/" class="xoo-wsc-ft-btn xoo-wsc-btn button btn xoo-wsc-ft-btn-cart">View Cart</a><a href="https://workshops.writetheworld.org/checkout/" class="xoo-wsc-ft-btn xoo-wsc-btn button btn xoo-wsc-ft-btn-checkout">Checkout</a></div>

    What’s interesting is that one of our script mentions the correct staging checkout URL:

    <script type="text/javascript" id="elementor-pro-frontend-js-before">/* <![CDATA[ */var ElementorProFrontendConfig = {"ajaxurl":"https:\/\/staging-5077-writetheworldworkshops.wpcomstaging.com\/wp-admin\/admin-ajax.php","nonce":"0dad6b1a06","urls":{"assets":"https:\/\/staging-5077-writetheworldworkshops.wpcomstaging.com\/wp-content\/plugins\/elementor-pro\/assets\/","rest":"https:\/\/staging-5077-writetheworldworkshops.wpcomstaging.com\/wp-json\/"},"settings":{"lazy_load_background_images":true},"popup":{"hasPopUps":true},"shareButtonsNetworks":{"facebook":{"title":"Facebook","has_counter":true},"twitter":{"title":"Twitter"},"linkedin":{"title":"LinkedIn","has_counter":true},"pinterest":{"title":"Pinterest","has_counter":true},"reddit":{"title":"Reddit","has_counter":true},"vk":{"title":"VK","has_counter":true},"odnoklassniki":{"title":"OK","has_counter":true},"tumblr":{"title":"Tumblr"},"digg":{"title":"Digg"},"skype":{"title":"Skype"},"stumbleupon":{"title":"StumbleUpon","has_counter":true},"mix":{"title":"Mix"},"telegram":{"title":"Telegram"},"pocket":{"title":"Pocket","has_counter":true},"xing":{"title":"XING","has_counter":true},"whatsapp":{"title":"WhatsApp"},"email":{"title":"Email"},"print":{"title":"Print"},"x-twitter":{"title":"X"},"threads":{"title":"Threads"}},"woocommerce":{"menu_cart":{"cart_page_url":"https:\/\/staging-5077-writetheworldworkshops.wpcomstaging.com\/cart\/","checkout_page_url":"https:\/\/staging-5077-writetheworldworkshops.wpcomstaging.com\/checkout\/","fragments_nonce":"dee93c20e5"}},"facebook_sdk":{"lang":"en_US","app_id":""},"lottie":{"defaultAnimationUrl":"https:\/\/staging-5077-writetheworldworkshops.wpcomstaging.com\/wp-content\/plugins\/elementor-pro\/modules\/lottie\/assets\/animations\/default.json"}};/* ]]> */</script>
    Thread Starter laurenceli

    (@laurenceli)

    Great, thank you! I was able to install BSR and found that in the staging site, there were 7 instances of staging URL use in __wp_woocommerce_sessions. Could a simple find/replace of finding https://workshops.writetheworld.org/ in the table and replace it with https://staging-5077-writetheworldworkshops.wpcomstaging.com/ work, or are there additional steps? Also, please let me know if there’s other tables besides those with “woocommerce” in their name that I should search in.

    Thread Starter laurenceli

    (@laurenceli)

    Hi Shahzeen, thank you for the help! The latter (WooCommerce is still using the production URL instead of the staging one) is indeed our issue. We experienced the same issue with Elementor, but Elementor allowed us to change the base URL in the plugin settings.

    I confirmed on Settings → General that WordPress Address (URL) and Site Address (URL) are set correctly to the staging URL.

    We host on wordpress.com, and used the base staging tool they had there.

    I checked with WooCommerce, but they told me to find the answer to my query on the forums ??

Viewing 4 replies - 1 through 4 (of 4 total)