Jump to content


Public support for Maximum product quantity module. With this addon you can control maximum quantity of product and/or combination by groups in cart, or maximum quantity to purchase during specific time (last year, month, etc.)
Photo

"undefined" message when add item to cart


  • Please log in to reply
1 reply to this topic

#1 Peter

Peter

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 13 September 2021 - 10:05 AM

Hello, We using the Maximum product quantity module in a little "special" way. We use it for our sample products to allow only one sample per product. The "special" way is that we using a module to show the sample in the product page, e.g. with an "order-button" named in Swedish "Beställ provbit". So it's possible to buy the sample product from the main product page. Our problem is that your error message "You can maximum buy 1 product" doesn't work. The customer gets a error message with the text "Undefined". How shall we be able to solve this? Best regards, Peter


#2 Milosz

Milosz

    Advanced Member

  • Members
  • PipPipPip
  • 117 posts

Posted 13 September 2021 - 10:06 AM

 

Hello, We using the Maximum product quantity module in a little "special" way. We use it for our sample products to allow only one sample per product. The "special" way is that we using a module to show the sample in the product page, e.g. with an "order-button" named in Swedish "Beställ provbit". So it's possible to buy the sample product from the main product page. Our problem is that your error message "You can maximum buy 1 product" doesn't work. The customer gets a error message with the text "Undefined". How shall we be able to solve this? Best regards, Peter

 

 

The problem is strictly related to the theme (the way of how the error is handled).
can you please, for a second, turn off option to smarty cache combine for .js files (i will be able to analyse the code that is behind cart scripts).
you can turn off this option under adv. parameters > performance: https://i.imgur.com/Z05ayDh.png 

 

also, for test purposes, can you please also test how the 'add to cart' process behaves if you will switch this option: https://i.imgur.com/cg3b3oI.png ?






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users