Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #864127

    Hello,
    On my WooCommerce+Enfold site I’m trying to build a pricing table, and I’m testing a series of WooCommerce Variable Products I’d like to sell through my site.
    In order to show all the product variants on the same page (I do not like the default dropdown menu), following WooCommerce rules, for each “buy” button I was forced to use a basic URL structure as follows:

    https://www.mysite.com/?add-to-cart=1234&variation_id=5678&attribute_pa_format=name

    However, using this method, after a click on the “buy” button the buyer is being redirected to the home page, while I would like very much to keep him/her on the same product page, possibly showing the top box “XYZ product has been added to your cart”, as in your single product demo page:

    Using WooCommerce variable products, is there any method to update the cart without leaving the page from where the order has been made? Please see my test page linked on the private content area of this post. The basic pricing table with the standard links is the first one from the top.

    Thanks!

    #864316

    I have succeeded in redirecting to the product page using this URL structure:

    https://www.mysite.com/product_page/?add-to-cart=1234&variation_id=5678&attribute_pa_format=name

    But the top box “XYZ product has been added to your cart” is still missing. Any idea?

    Thanks!

    #864949

    Hi,

    You are correct, that message is been missing when using ALB to modify the WooCommerce page.
    Can I ask if u are using ALB or not?

    Best regards,
    Basilis

    #864951

    If ALB=Advanced Layout Builder or =Avia Layout Builder then yes, I have built my standard WooCommerce product page using ALB.

    Is it a bug? Do you have any suggestion on how to trigger that “XYZ product has been added to your cart” message?

    Thanks for your help,
    Diego

    #866292

    Hi Diego,

    Here are some threads to consider:

    WooCommerce/Product-Addons – No Errors shown at AVIA built productlayouts

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #866354

    Thank you Victoria, the tip in the first thread you suggested just saved the day. I had only to make this short addition to CSS in order to avoid the appearence of an unwanted blank space below the WooCommerce “XYZ product has been added to your cart” message:

    #top div.woocommerce-message {margin: 0 !important;}

    Thanks again for the excellent support!

    #867267

    Hi nightjar,

    Glad you got it working for you! And thank you for sharing! :)

    If you need further assistance please let us know.

    Best regards,
    Victoria

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.