Support » Plugin: WooCommerce Address Book » Clicking “Make Primary” does not refresh page

  • Resolved lychee128

    (@lychee128)


    Hi,

    Is there a way to refresh the page after “Make Primary” is clicked for a shipping address? Is seems like the address is correctly selected but the old shipping address still shows on the screen until I refresh the page.

    This way customers will know that their selection was properly registered.

    Thanks,

    Paul

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Matt Harrison

    (@matt-h-1)

    Make Primary doesn’t refresh the page as it uses javascript to make the ajax call and automatically swap the address so the primary address displays the new selected address. Perhaps something custom in your theme prevents this from happening?

    Feel free to see it in action in its default state on our demo site: https://woo-address-book.hallme.com/

    Thread Starter lychee128

    (@lychee128)

    Yes, I think it’s some issue with my theme. I switched to the default Storefront theme and it works as expected.

    I know this may be a bit of a general question (and outside the scope of your plug-in)… but any suggestions on where my theme may be breaking this process (or perhaps where you’ve seen errors before).

    Any suggestions would be appreciated.

    Thanks,

    Paul

    Plugin Contributor Matt Harrison

    (@matt-h-1)

    Hard to say without seeing it, but it could have had a JavaScript error which just breaks all JavaScript on the page.

    Or it could have customized the template for the address page which changed either classes or IDs or the structure of the html elements for displaying the address causing the script to not be able to find the elements needed to update it.

    Thread Starter lychee128

    (@lychee128)

    Ok, got it. I’ll poke around the theme. Thanks for your help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Clicking “Make Primary” does not refresh page’ is closed to new replies.