Jump to content

Updating of attributes in combinations, or how to disable them like products


Recommended Posts

Hello!
We are creating an online shop using Prestashop 1.3.6 with automatic update using PHP Simple HTML DOM Parser and supplier's website. Supplier's products can be In stock, "Not available temporarily" (they usually change to "In stock" after 5-7 days) and Out of Stock, will not be restocked.
The products in our shop have 4 statuses.
1. when the product is in our stock, it has quantity >1 and our status in front office is "In stock". We do not update these products from supplier until we sell them.
2. when the product is out of stock, its qty is 0 and such products are updated from supplier's website with a script that uses parser. In this case it can have 3 statuses in our website depeding on the suppliers' statuses.
2a. Supplier: "In stock" - Our shop: "Available for order, shipping 7-14 days". Customer can add such product to cart, the button is enabled.
2b. Supplier: "Not available temporarily" - Our shop: "Not available temporarily". Add to cart button is disabled.
2c. Supplier: "Out of stock, will not be restocked" - Our shop - disable such product.
I describe all this so you can see that we managed to apply this update system fully and it is working properly, when the products don't have attributes. But attributes (colors, in our case), are entities just like separate products but they do not have separate fields to disable them. We do not know how to solve this problem by now. We even managed to update attributes somehow, but if update finds attribute that is "Not available", they all become not available. We need a separate status for each one.
My question is, anyone knows what to do in this case? That is, making attributes act more like separate products.

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...