Product not adding to the basket on the second site

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
pamirsawar
Posts: 15
Joined: 17 Aug 2022, 04:19

Product not adding to the basket on the second site

Post by pamirsawar » 25 Aug 2022, 09:22

Hello aimeos,
When I try to add a product to the basket it's not showing me the product.
I have added a price and did not set any stock value.
Screenshot_21.png
Screenshot_21.png (111.32 KiB) Viewed 2650 times

Aimeos version: 2022.07.2
php: 8.1
windows 10

User avatar
aimeos
Administrator
Posts: 8636
Joined: 01 Jan 1970, 00:00

Re: Product not adding to the basket on the second site

Post by aimeos » 26 Aug 2022, 10:20

If it's out of stock or if there's no stock at all, an error should be displayed.
How did you set up your products and sites because you said "on the second site"?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

pamirsawar
Posts: 15
Joined: 17 Aug 2022, 04:19

Re: Product not adding to the basket on the second site

Post by pamirsawar » 29 Aug 2022, 04:42

aimeos wrote: 26 Aug 2022, 10:20 If it's out of stock or if there's no stock at all, an error should be displayed.
How did you set up your products and sites because you said "on the second site"?
I added a new site through admin backend. Ran setup command. and added products into that site.
In default site if product doesn't have stock value it still adds a product in the basket. but in the second site I have to add stock value in order for basket functionality to work for that product.

User avatar
aimeos
Administrator
Posts: 8636
Joined: 01 Jan 1970, 00:00

Re: Product not adding to the basket on the second site

Post by aimeos » 30 Aug 2022, 07:21

By default, a stock entry is always required (even if empty which means "unlimited" stock) as long as you didn't configure Aimeos otherwise.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply