WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce Max Quantity
[resolved] Show alert on current page. (4 posts)

  1. mvaneijgen
    Member
    Posted 5 months ago #

    Is it possible to show the error normally shown on the 'cart' page on the page where the user adds it to cart?

    Im doing some custom stuff for a webshop that really has only one product and directly redirects to the check out page, so customers never see the cart page.

    Hope i explained my self well, i want the error message shown on a custom page that is not the 'cart'

    https://wordpress.org/plugins/woocommerce-max-quantity/

  2. isabel104
    Member
    Plugin Author

    Posted 5 months ago #

    Currently, the plugin does show the error on either page: the cart page, and the product page where the user adds it the to the cart. Is this not working for you?

    I'm not sure what other custom page you mean.

  3. mvaneijgen
    Member
    Posted 5 months ago #

    I redirect users directly to the check out page and when they go back to the home page and hit the add to cart button again nothing happens because it is trying to show the error on he cart but the user is not there.

    so i like to show the error on a page i choose (for example the home page)

  4. isabel104
    Member
    Plugin Author

    Posted 5 months ago #

    Okay. How are you adding the "add to cart" button on the home page? With a shortcode? Such as:

    [add_to_cart id"###"]

    If yes, then please try using this shortcode instead. This will work:

    [product_page id="###"]

    I hope this helps.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.