• Resolved presscode

    (@saschinger)


    Hey there,

    in my current installation, I use WooCommerce, WP24-domain-check, Germanized (make Woo compliant with German law) and Launchflows (LF) installed. I have created a few “domain” products and connected them with domains in WP24-settings appropriately.

    LF allows me to create custom checkout-pages, so I can accomplish the following:

    Whenever a client purchases a “hosting” product, they will be redirected to a checkout-page, that has the WP24 domain-field/selector placed above the checkout-items.

    The problem is, whenever a new domain is selected and “added to the cart”, the products in the “review” area are not being updated automatically, after the domain has been added to the cart.

    This is probably, because I needed to disable the AJAX add to cart, as this was causing too many conflicts.

    In WP24->WooCommerce->settings I can only use one of the “Stay on current page” options, otherwise the other purchase-flows will be interrupted, which I have applied to the single-domain-product and other product-pages.

    Would it be possible to add an option to the Woo-Settings of WP24, which allows to “Stay on current page” (checkbox or link) AND refresh the page automatically?

    Maybe by providing a simple checkbox underneath the “Add to cart behaviour” options? This would solve the issue perfectly without using AJAX.

    Thank you in advance and kind regards,
    Sascha

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author WP24

    (@wp24dotorg)

    I can add a “Add to cart behaviour” like “Stay on current page (reload)”.
    But this could take some time, since I’am working on a bigger update of the plugin.

    If you need a fast solution I could tell you what to change in the code of the plugin, it’s only one line. So that you can work on until the update is released.

    Thread Starter presscode

    (@saschinger)

    Hey, thank you soo much for your prompt reply ??

    “If you need a fast solution I could tell you what to change in the code of the plugin, it’s only one line. So that you can work on until the update is released.”

    That would be dope ??

    Thank you in advance and kind regards,
    Sascha

    Plugin Author WP24

    (@wp24dotorg)

    Set “Add to cart behaviour” to “Redirect to custom page” and “Custom page link” to “#”.
    In the domaincheck.js of the plugins code, change line 694 from “window.location.href = settings.customPageLink;” to “location.reload();”.

    Thread Starter presscode

    (@saschinger)

    Thanks, it’s working!

    It’s just taking quite some time for the page to refresh. Any idea how to speed up the Auto-Add-to-checkout? Here’s the link to the checkout-page with the wp24-shortcode. I have created this custom checkout-page using the Launchflows-plugin.

    Plugin Author WP24

    (@wp24dotorg)

    Since the page is completely reloading, this takes some time.
    Maybe a caching plugin could speed up the whole page.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Auto-Updating Cart / Checkout?’ is closed to new replies.