Jump to content

Quick question on how to get product quantity


keepyourhead

Recommended Posts

Hi at all! I'm new to PrestaShop.

I need a very very quick thing.

I have the Product ID. As you can see in the attached screenshot, I have colours and sizes for that product.

I need to get the product availability (quantity) for each color, for each size.

And I need the TOTAL availability (all colors and sizes). How can I do this?

I tried with getAttributesGroups , but I'm not able to distinguish colours (it gives me the product quantity for sizes, but I have nothing to say "this is color black", "this is color white", etc...). Even though I'm filtering by id_attribute_group !!

Can someone more experienced than me give me this advice?

This is a very quick thing and I need it. I have no need to learn PrestaShop. I have the need for this thing:

I need to get the product availability (quantity) for each color, for each size.

Thanks in advance!!

test.jpg

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...