PD- tags ask them this question in the order process. They first check whether the question makes sense at all, then build the selection, and finally return the decision for display.
Guide: Offering partial delivery
When the selection is offered
The question only makes sense if the basket is actually mixed. If it contains only products that are available immediately, there is nothing to decide, and the same applies if everything has to be waited for. This is exactly whatPD-Available checks. The range tag applies if both conditions are met: partial delivery is set up in the shop, and the basket contains products with different delivery statuses.
The decisive factor is the delivery status, i.e. the traffic light of green, yellow, and red. If the basket contains at least two different status groups, the range tag applies. In the shop configuration, statuses can be combined into groups, and then they count as one. If, for example, yellow and green are combined, the question only appears if there is also something red in the basket.
PD-Available is exclusively a range tag. As a single tag, it outputs nothing.Offering the selection
Four tags build the two radio buttons. The field name is the same for both; the values distinguish them.The field name and values are fixed in the shop system. Always take both from the tags and do not write them by hand.
As a single tag, the two
radioselected tags output checked with a leading space. You can therefore place them directly after the preceding attribute.The preselection
If the buyer has not clicked anything yet, the shop configuration determines which of the two radio buttons appears selected. There, you can store complete delivery or partial delivery as the default, or leave both open.If you leave the default open, no radio button appears selected initially. This forces the buyer to make a conscious decision, but also means that they may be able to proceed without having made one. In this case, check how your order process behaves.
Evaluating the selection made
On the order overview, you want to show what the buyer has decided on. There are two more range tags for this.In addition, the two tags hide themselves automatically if the selection is not offered at all. You therefore do not need to wrap them again with
PD-Available.Both are exclusively range tags. As a single tag, they output nothing.
Excluding products from the decision
Some products should not influence whether the question is asked at all. A download, for example, is always available immediately and would make every basket appear mixed. Such products can be excluded from the check in the product data. Whether this applies to a product is shown by two range tags, which are described under their respective prefix.- in the basket:
BASKET-PR-IgnoreForPartialDeliveryis described under BASKET- (Items in the basket) - in the product view:
PR-IgnoreForPartialDeliveryis described under PR- (Product data)
Both apply if the product is excluded from the check. This is rarely of interest to the buyer. They are mainly useful during setup, when you want to understand why the selection appears in a particular basket or why it does not.
The tags at a glance
All tags are permitted on all templates. The radio button group belongs in a form that leads to the payment and shipping method page or to the order overview.
Related topics
- Guide: Offering partial delivery
- Guide: Displaying the delivery status
- Reference: BASKET- (Items in the basket)
- Reference: PR- (Product data)
