• Resolved Michel7

    (@michel7)


    Hi
    Manually transferred the site from a test environment to live environment.
    Had to do many adjustments in wp-options correcting url-links (referring back to tets instead of live).
    However have a problem left.
    In Cart, after removing a product out of the Cart, emptying the cart, you get the option/button ‘back to shop’. This button redirects the live site still to the testing environment. What record should I look at to change this?

    txs
    m.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Sorry not an expert but a few things to check out:

    – wp_options table (2/3 urls to change)

    If you use WooCommerce, that should be in something like:

    – specific Woo…(settings) table

    Don’t forget to check hardcoded files too, that might be a file like wp-config.php with a wrong base url too.

    Good luck,

    Thread Starter Michel7

    (@michel7)

    Txs, no offense, but I do need some sort of an expert ??
    I know I have to change records etc.
    I am looking for the exact table/record name for this particular issue.

    (A search on my dbase gives me up to 1600 entries I have to change the links from “test” to “live” environment. If anybody can tell me if it is really necessary to change them all and if yes, how to do this efficiently: I would highly appreciate.
    For this moment I am specificly looking for adjusting url ‘back to shop’-button in cart.

    Thank you all.
    M.

    No offense taken:)

    Without seeing the site, I can’t help with the back button issue. In general it uses the browser history to make a -1 call. Maybe you can send url to [email protected] so I give a look?

    (by the way if your db stores physical urls for each product, you could use a coder text editor tool like PSPad – great GPL freeware – to automatically replace urls, it will take some time because it saves the undo too. or make a mysql query, much faster but no undo).

    Thread Starter Michel7

    (@michel7)

    Found it
    it is in:
    Functions.php of theme
    ‘wc-empty cart redirect’

    URL is hardcoded.

    for some reason…

    Thanks for feedback, and yeah VERY bad practice

    … url hardcoding in functions.php is like controlling a super cool drone through a raspberry script, but blocking the ability to turn left by code design :p … plus it’s uber simple to call get_template() or like …

    Thread Starter Michel7

    (@michel7)

    ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘wrong link after transfer’ is closed to new replies.