CB- exist exclusively for this case: they tell the buyer what is missing and why their basket is smaller than expected.
Guide: Using the cookie basket
The two messages
The cookie basket comes with two notices to the buyer, and only one of them comes from this tag group.The two are not mutually exclusive. If three of five saved products were restored and two were not, both areas apply. Therefore, build the message as one coherent notice and not as two separate boxes.
The complete example
CB-Notify
Applies if at least one product could not be restored when the cookie basket was read in. The area is only displayed once.For the area to apply, the cookie basket must actually have been read in during this page request. On every further request in the session, it stays empty, even if the products are still missing.
CB-NotifyData
The central tag of the group, in three roles.The difference from
CB-Notify lies in the duration. CB-Notify applies once at the moment of reading in, CB-NotifyData as long as the data is present in the session. For a one-time message, use CB-Notify; for a list that the buyer should still be able to view later, use CB-NotifyData.The details per item
Five tags return the data of the individual item. All five are only permitted within the loop{@CB-NotifyData}.
CB-NotifyProdName, CB-NotifyProdNumber and CB-NotifyProdIndex can also be used as area tags and then apply if a value is present. This is not possible with CB-NotifyPosition and CB-NotifyQuantity; they are single tags only.Making good use of the product index
CB-NotifyProdIndex is the only detail you can use for something beyond the plain message.
A product that is currently sold out still exists. A link to it gives the buyer the opportunity to sign up for the back-in-stock notification instead of merely taking note of the message. For products that have been removed from the range, however, the link leads nowhere; check this for your shop.
What you should know about the cookie basket
The tags at a glance
All tags are permitted on all templates. The five tags for the individual item only apply within the loop
{@CB-NotifyData}.
Related topics
- Guide: Using the cookie basket
- Guide: Saveable basket
- Materials: Cookies used
- Reference: WS-BasketFromCookie
