Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

Option sets for products

Make it easier to supporting products where you buy the same products multiple times but with different options (e.g. contact lenses, one for each eye). Currently the user must manually buy the product with the…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/features/3.8/shop_option_sets.txt

*Title: Option sets for products

*Incentive:

Make it easier to supporting products where you buy the same products multiple
times but with different options (e.g. contact lenses, one for each eye).
Currently the user must manually buy the product with the different options.

*Documentation:

When listing the options for a product it is now possible to add
sets by  inserting another key entry in the eZOption array with the
name of the set. The set must start with 'set_' and then a name, if
you have multiple options with the same set name they will all be part
of the same set.

For instance instead of using:

<select name="eZOption[<attributeID>]">...</select>

One can now use:

<select name="eZOption[set_one][<attributeID>]">...</select>
<select name="eZOption[set_two][<attributeID>]">...</select>

This will add the same product to the basket twice but with different
options, one with the options from 'set_one' and the other from
'set_two'.


Note: There is no user interface for defining these sets so it must be
      manually added to a template.

Something wrong on this page? Report an error

Documentation license

This page was inherited from the documentation of the original software. It is not covered by the GNU Free Documentation License; it is distributed under the GNU General Public License, version 2.

Copyright (C) 1999 - 2014 eZ Systems AS and contributors