Can I add a shopping cart?
Would you like to give your customer the option of configuring several products at once?
The easiest way to do this is, of course, if you have the an einen Shop angeschlossen configurator.
However, if not, or if you want to make it possible to configure several products directly in the configurator and then order them together, this is also possible order them together, this is also possible.
To do this, use Produktkomponenten. You create a feature with components directly at the top level and use this as a shopping cart.
Prerequisites
- You have eine Komponenten-Liste angelegt
Configuration steps
Several Configuration steps can also be added here. They are then visible in the navigation bar in the header.
- The first step was automatically created when the component list was created and can (and should) be renamed.
- Create any number of additional steps by clicking on Loading....
- Create all the necessary characteristics in the steps.
Insert an action after configuring a component
You can use the "Back" and "Next" buttons to jump between the steps in a component. In the last step, you now want to offer to add the component to the shopping cart.
- Navigate to the last step
- Open the editor by clicking on the pencil symbol behind the tab name
- Open the Actions area: This allows you to determine what can happen with the last "Next":
- Replace Next with action selection: here you can select what is offered to the user on the last "Next" button:
- all Bestell-Aktionen you have already created
- Next: You will usually not specify this option. It corresponds to the standard function of the button and takes the user to the top level, where he sees the component list, which we do not want.
- Add product: This allows him to directly add another product to the component list (the shopping cart)
- Overwrite action name: Here you can label the button.
- Replace Next with action selection: here you can select what is offered to the user on the last "Next" button:
- You can also display the entire shopping cart in this dialog by ticking "Options" of the component list, check the box "Set as shopping cart?"
If you select several actions, a dialog appears when you click on the last "Next" button, offering the user the actions. In particular, a selection of the products that can be added to the shopping cart next appears.
Prepare to enter the configurator.
When entering the now prepared configurator, we never want to display the top level, which contains the component list. Therefore, we jump in with a Inspiration, which pre-fills the component list and indicates that this characteristic should be displayed immediately
You want to offer the user a first product directly at the start of the configurator.
- Give the component list a key
- Publish the configurator.
- Create one (or more) Inspiration. Make sure that the component list is filled with an initial product.
Now open an inspiration from the order list.
In the address bar, you will see a URL that ends with ?code=<Code>
. The Code
is the code of the inspiration.
Now add the part &part=<key>
to this address, in which key
is the key of your variable.
When you call up this address, you start directly with the component list.
The navigation bar now only contains the steps you have specified.
We have now created a shopping cart in the configurator.
Make the number of products changeable
If you want to be able to change the number of products in the shopping cart, a (usually hidden) special feature is created within the of the component list.
- Open component list
- create a numerical characteristic with minimum value = 1.
- Normally hide this characteristic, because it should only be changeable in the shopping cart.
- give the characteristic the
key
"k3_cart_count".
Now the number of articles can be changed in the shopping cart.