TECHNICAL TASK
Project:
Implementation of product variations in OpenCart 3.x (one card — multiple product variations)
Goal:
To configure product variations so that each volume/package has:
— its own price
— its own article (SKU)
— its own photo
— its own stock
— correct display in the cart and order
Website:
zumagro.ua
CMS: OpenCart 3.x
Functionality to be implemented:
On the product page, the buyer selects a variant:
the packaging, for example, in the UltraClear product there are 5 variants 100ml, 400ml, 1l, 3l, 20l, in other products there are different volumes or packages
2. After selecting a variant on the product page, the following should change automatically:
• price
• main product photo
• article (SKU)
3. In the cart, the following should be passed:
• correct price of the variant
• correct article of the variant
• selected volume of the product
• corresponding stock of this variant
4. In the admin panel, the order should also store:
• SKU of the selected variant
• product name linked to the volume
5. Important:
• variants are not created as separate products
• everything is configured in one product card through the module (variations/combinations)
Technical requirements:
• Compatibility with OpenCart 3.x and the current theme (via OCMOD/VQMOD)
• Modular solution, without editing the core
• Scalability to other products
• Documentation: how to add variants to new products
Without:
• manual coding each time
• “+ to price” instead of fixed prices
• duplication of products in the catalog
It would be good to look at some examples, because I have already experimented with modules and everything is not quite right, either product cards need to be made for each variety, or the photo does not show, or the stock is not deducted, or the article