Page 1 of 2
enable to add product to basket
Posted: 20 Dec 2023, 03:50
by Surfeur1912
Hello
Everything was OK with Phocacart, it was working without problem but a new problem happens now
When I test to add a product to my basket I have a poup answering : "Error, Product not added to cart. You do not have the right to order this product".
And when I check the basket, the answer is "no product in your basket" !!
I add that the stock of the product is 10, so not out of stock
If anybody has a solution ?
Thank you in advance
Re: enable to add product to basket
Posted: 20 Dec 2023, 11:28
by Surfeur1912
Sorry to up my topic but anyone has a solution ?
Because I have another problem, the buttons +1 and -1 buttons do not work. The figure (and the number of articles) do not add or remove one article !!
I become to be completely lost !
Re: enable to add product to basket
Posted: 21 Dec 2023, 12:26
by Surfeur1912
To add information, I saw a error message on console saying :
Uncought TypeError : j is not a function
at n.value (content.js:1.143768)
at content.js:1.132176
Anybody understand how to fix that error ?
Thanks in advance for your help
Re: enable to add product to basket
Posted: 21 Dec 2023, 12:27
by Surfeur1912
for info my parameters are :
php Version : 8.1 (+ PHP Boost)
joomla Version : 4.4.1
Phocacart Version : 4.0.10
Re: enable to add product to basket
Posted: 22 Dec 2023, 12:25
by Jan
Hi,
1) "Error, Product not added to cart. You do not have the right to order this product" - check access rights to the product, check if the product can be sell the the customer group, you are, etc.
2) Do you have a link to the website, to see from which part the JS error comes. Yes, when there is Javascript error on your site, it can prevent then all other Javascript scripts from running successfully, so the error needs to be fixed.
Jan
Re: enable to add product to basket
Posted: 23 Dec 2023, 01:08
by Surfeur1912
Hi Jan
Thanks for your answer and your help,
Yes all products and categories have public access in general options
Here is the link to the shop :
https://www.johaneblanc-ceramics.com/boutique-phocacart
You'll see that after choosing a product, you'll reach the detail of the product and when you try to click on buttton "
ajouter au panier" (add to cart), you get the popup warning "
Produit non ajouté au panier" (product no added to basket) and "
Produit non trouvé" (product not found)
And also the two buttons + and - (to add or remove one item) are not working
Thank you very very much if you can help me to solve that big problem
Re: enable to add product to basket
Posted: 26 Dec 2023, 16:51
by Surfeur1912
Finally, I found a rough solution !!!
I desintalled all the component and plug ins and re-installed the whole package from the beginning.
I'll hope it will work now !
I'll let you know
Re: enable to add product to basket
Posted: 27 Dec 2023, 17:04
by Surfeur1912
Unfortunately still not working
Again thé samedi error : "you're not allowed to Add product in your basket", Carte empty
Anyway solution
Re: enable to add product to basket
Posted: 27 Dec 2023, 17:09
by Surfeur1912
Unfortunately still not working
Again the same error : "you're not allowed to Add product in your basket", Cart empty
Any solution ?
Re: enable to add product to basket
Posted: 28 Dec 2023, 00:47
by Jan
Hi, I don't see Phoca Cart products page on the site?
Can you switch to English language (for test only) and copy the exact error message you get there.
There can be a lot of reasons why products cannot be added to cart:
- not accessible
- only assigned to some groups
- not on stock
- price on demand products, etc. etc.
Jan