Page 1 of 1

Help understanding In Stock display with product attributes

Posted: 07 Nov 2019, 15:41
by dmlwebal
PHP 7.3
Joomla 3.9.13
Phoca Cart 3.4
Premier Template base
Gantry5

Hi,

I have a site that is running attributes on certain products and this works great,but I have one problem

In Category View, products with attributes show Out of Stock. On Product View, they show In Stock

I have turned off all caching for now to test properly and cannot figure out why this is.

I have set products with attributes this way
Product parent has stock of 1
Attributes have their correct stock number. each product only has one attribute (Size, Colour or Flavour for example)
Stock Calculation for product is set to Product Variation
Minimum Quantity Calculation is set to Product Variation
Stock Status field are set correctly

In Main Options in Phoca Dashboard stock is set to show in All Views.

Has anyone else come across this and fixed it?

Regards
David

Re: Help understanding In Stock display with product attributes

Posted: 12 Nov 2019, 16:14
by Jan
Hi, can you paste a screenshot of category and item view.

Testing now, get no problem, the stock status changes dynamically when the attribute option is changed :idea:

Image

https://www.phoca.cz/documents/116-phoc ... management

Jan

Re: Help understanding In Stock display with product attributes

Posted: 14 Nov 2019, 10:57
by dmlwebal
Hi Jan

Thank you for your reply. I should explain more clearly. Firstly, I do not show exact stock levels, only that a product is 'In Stock' or 'Out of Stock'

The problem is shown below

Image

The image on the left is the product in product list view, the image on the right is the product view

On the Product List view the item is shown as Out of Stock, but on Product View is shown as In Stock

I have set products with attributes this way
Product parent has stock of 1
Attributes have their correct stock number. each product only has one attribute (Size, Colour or Flavour for example)
Stock Calculation for product is set to Product Variation
Minimum Quantity Calculation is set to Product Variation
Stock Status field are set correctly

In Main Options in Phoca Dashboard stock is set to show in All Views.

The cart behaves correctly so the only problem is the stock calculation in Product List View

Regards
David

Re: Help understanding In Stock display with product attributes

Posted: 15 Nov 2019, 13:59
by Jan
Hi, the problem is, I am testing it now and cannot get such behaviour.

If main product has some items on stock
If product variation even has some items on stock, there is no reason to display out of stock information.

The only idea is, if you can share the super user login to your site for me, so I can test it directly on the site (via PM message) :idea:

Jan

Re: Help understanding In Stock display with product attributes

Posted: 15 Nov 2019, 15:32
by dmlwebal
Hi Jan,

Thank you, I have a copy of the live site on a test server. I shall pm it to you

Regards
David

Re: Help understanding In Stock display with product attributes

Posted: 22 Nov 2019, 00:26
by Jan
Ok