Pack type products

Modified on Tue, 12 May at 4:44 PM

It is possible to generate a product pack in Sales Layer by choosing the product type as pack.

To add associated products or variants to that pack, add the number of required fields according to their names in the product tab when configuring the channel: pack_product_x, pack_format_x, and/or pack_quantity_x. The X is the unique identifier that establishes the relationship between product, variant, and quantity.

You can add the number of required fields as long as they have the right prefix. It is compulsory to define pack_product or pack_format. The pack_quantity field is only required if you need more than one unit per product or variant in the pack.

The synchronization system works using a hierarchy: variant information prevails over product information. If a product is associated and not a variant, the pack is linked to the product units. If it has a variant, with or without a product, the quantity is connected to the variant.


Example


Sending:

pack_product_1 => "SKU789"
pack_format_1 => ""
pack_quantity_1 => "3"

The result is:
3 units of the product SKU789

Sending:

pack_product_2 => ""
pack_format_2 => "SKU445-FORMAT589"
pack_quantity_2 => "2"

The result is:
2 units of the variant SKU445-FORMAT589

Sending:

pack_product_3 => "SKU457"
pack_format_3 => "SKU457-FORMAT589"
pack_quantity_3 => "1"

The result is:
1 unit of the variant SKU457-FORMAT589

To fill the pack_product_x or pack_format_x field of the product so it works as a pack, the best option is to use related item fields configured as a table of products. This makes it easier to find products and variants when linking the products and variants that belong to the pack.

When exporting in PrestaShop, synchronization is done between the reference of the product pack and the product that contains that reference.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article