• Resolved mvaneijgen

    (@mvaneijgen)


    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/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author isabel104

    (@isabel104)

    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.

    Thread Starter mvaneijgen

    (@mvaneijgen)

    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)

    Plugin Author isabel104

    (@isabel104)

    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Show alert on current page.’ is closed to new replies.