enable to add product to basket

Phoca Cart - complex e-commerce extension
Surfeur1912
Phoca Member
Phoca Member
Posts: 21
Joined: 14 Dec 2023, 16:48

enable to add product to basket

Post 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
Surfeur1912
Phoca Member
Phoca Member
Posts: 21
Joined: 14 Dec 2023, 16:48

Re: enable to add product to basket

Post 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 !
Surfeur1912
Phoca Member
Phoca Member
Posts: 21
Joined: 14 Dec 2023, 16:48

Re: enable to add product to basket

Post 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
Surfeur1912
Phoca Member
Phoca Member
Posts: 21
Joined: 14 Dec 2023, 16:48

Re: enable to add product to basket

Post by Surfeur1912 »

for info my parameters are :
php Version : 8.1 (+ PHP Boost)
joomla Version : 4.4.1
Phocacart Version : 4.0.10
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48398
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: enable to add product to basket

Post 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
If you find Phoca extensions useful, please support the project
Surfeur1912
Phoca Member
Phoca Member
Posts: 21
Joined: 14 Dec 2023, 16:48

Re: enable to add product to basket

Post 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 :twisted:
Surfeur1912
Phoca Member
Phoca Member
Posts: 21
Joined: 14 Dec 2023, 16:48

Re: enable to add product to basket

Post 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
Surfeur1912
Phoca Member
Phoca Member
Posts: 21
Joined: 14 Dec 2023, 16:48

Re: enable to add product to basket

Post by Surfeur1912 »

Unfortunately still not working
Again thé samedi error : "you're not allowed to Add product in your basket", Carte empty😤
Anyway solution
Surfeur1912
Phoca Member
Phoca Member
Posts: 21
Joined: 14 Dec 2023, 16:48

Re: enable to add product to basket

Post by Surfeur1912 »

Unfortunately still not working
Again the same error : "you're not allowed to Add product in your basket", Cart empty😤
Any solution ?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48398
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: enable to add product to basket

Post 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
If you find Phoca extensions useful, please support the project
Post Reply