• I can edit the product download URL when editing the product (a pdf file) but the shortcode keeps producing the original URL — which is wrong. Help!
    PS — Running in test mode.

    • This topic was modified 3 years, 10 months ago by vdugar.
    • This topic was modified 3 years, 10 months ago by vdugar.
    • This topic was modified 3 years, 10 months ago by vdugar.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter vdugar

    (@vdugar)

    Apparent FIX: In settings, I checked the box: “Prefetch Payment Popup Scripts”.
    Now the edited product URL is used in “Please click here to download.”

    Plugin Contributor Alexander C.

    (@alexanderfoxc)

    Hi.

    This might be related to caching plugins you use on your site.

    Every time you edit a product, make sure you clear cache in caching plugins.

    If you don’t use caching plugins, this might be related to caching settings on your server (Nginx, Apache etc).

    “Prefetch Payment Popup Scripts” helped you in this situation because it adds cache key to every payment popup. The key is regenerated every time you make a change to product or general plugin settings, which prevents situations you described.

    Thread Starter vdugar

    (@vdugar)

    Thank you Alexander. I’d like to not have to manage server/client caching to get URL changes to take effect. So it sounds like even if I keep “Prefetch Payment Popup Scripts” checked, I’d still have to make and save some edit in the product or settings screen. — Vince D.

    Plugin Contributor Alexander C.

    (@alexanderfoxc)

    I’d like to not have to manage server/client caching to get URL changes to take effect.

    Well, WP docs says you probably have to, otherwise you can expect similar issues: https://wordpress.org/support/article/i-make-changes-and-nothing-happens/

    So it sounds like even if I keep “Prefetch Payment Popup Scripts” checked, I’d still have to make and save some edit in the product or settings screen.

    Unless product page cached by a cache plugin or excessive server cache config (both of which our plugin obviously can’t control), you don’t need to take any additional actions for the changes in product to be reflected on the site.

    Thread Starter vdugar

    (@vdugar)

    Thank you Alexander. Indeed, indeed the caches are doing their thing and I guess there’s no way around that. I’ll be back looking at this probably tomorrow. Busy day!
    – V

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Can’t change product download URL’ is closed to new replies.