div elements, class names and IDs.
This page first describes these two large tags and how to style the result via CSS. After that come the details that result from the selection: delivery date, shipping costs, weight and volume. At the end are the minimum order value and the follow-up order, which both define the scope of the order.
- Reference: The introduction to the
WS-prefix is on Shop, page and technology - Reference: Terms and conditions, addresses and age verification are on Order process, addresses and checks
Displaying the payment methods
WS-PaymentFields generates the complete selection of all configured payment methods. The order results from the order of the sections in the shop configuration. The tag belongs exactly once on the payment and shipping method page, inside FORM-PayDeliv.PAY-Data tags is described on PAY- (payment methods)
The structure per payment method
For each available payment method, a main container is created with these components, in this order:
Further containers can be located inside
remarks: suffix for an additional description, inputsuffix1 to inputsuffix3 for up to three additional input fields, costcentername and costcenteremail for the cost center payment method, and up to ten paymentcountryrule containers for country-dependent additional details.
The class names
Each container gets up to four classes following a fixed pattern:
In addition, each container gets an ID:
The numbered class is the way to alternating background colors: give the odd numbers a different color than the even ones. The number depends on the position in the shop configuration, not on the payment method code.
The
_active class is the reason why the selected payment method can be highlighted without your own JavaScript. If the highlighting should change as soon as the buyer clicks, without reloading the page, store your own script for this via the RadioOnClick or ImgOnClick parameters in the shop configuration.Displaying the selected payment method
WS-BankInfo only applies if prepayment was selected. The bank details are in the PaymentPrepayment-Txt section of the shop configuration, not in the template. That is how it should be, because they change independently of the design.WS-PaymentConfirmText is the place for notes that only belong to one payment method, for example the request to specify the payment reference. The text is located in the respective payment method section of the shop configuration.Displaying the shipping methods
WS-DeliveryFields works on the same principle as WS-PaymentFields, only leaner. For each shipping method, five containers are created: logo, radio, text, the optional suffix and clear.The ID in the
id is only created if an ID is assigned in the +Deliverer section of the shop configuration. Without an ID, there is no id, and you cannot target the individual shipping method.Displaying the selected shipping method
WS-Delivery outputs two details together: the name from the Name-Txt parameter and the delivery area from the optional Country-Txt parameter, separated by a space. Both are in the +Deliverer section of the shop configuration.WS-DeliveryIndex exists in the shop system but is not described in the previous documentation. It returns the internal number of the shipping method. Unlike the other two tags, it also outputs 0, i.e. the state with no shipping method selected. This makes it more meaningful than WS-DeliveryID for troubleshooting, but unsuitable for display in the shop.The first time one of these tags is evaluated, the shop system calculates the shipping costs and filters the available shipping methods. This happens once per page build, so using them multiple times costs nothing extra.
The preferred delivery date
There are two variants, a simple one and an advanced one. Both consist of one tag for the selection and one for the display.The selection tags generate the finished selection list. Which dates it contains and how far into the future they reach is set in the corresponding section of the shop configuration.
Defaults for fast ordering
A buyer who orders frequently can store payment method and shipping method as defaults in their account. Four tags offer this to them.The four tags exist in the shop system but are not described in the previous documentation. The
_input tags return fixed field names, the _checked tags return checked and also work as bracketing.The checkmark appears if the currently selected method matches the default stored in the account. For the shipping method, the shop system does not compare the individual shipping method but its group. If several shipping methods are in the same group, the default applies to all of them.
WS-FastOrderConfigurationLink leads to the page on which the buyer manages these defaults. The link is permitted on all templates and belongs at least on the customer account page.The minimum order value
WS-MinOrder-Base and WS-MinOrder-Remaining also work as bracketing. WS-MinOrder-Value is exclusively a single tag.Free shipping
WS-FreeDeliveryRest requires a scale to be stored in the shop configuration that goes to 0 at a certain amount, for example BasicCost-List = (0:10)(200:8)(300:0).Weight, volume and pallets
The volume either comes from a direct volume specification on the product or is calculated from length, width and height. Which method applies depends on what is maintained in the product data.
WS-Pallets works as bracketing if any pallets are needed at all. For shops with bulky goods, this is the note that saves a query to customer service.Price type and VAT country
The two country tags differ when the delivery address is in a country other than the default country. Comparing them lets you explain on the order overview page why a different tax rate applies than on the product page.
Follow-up orders
If a buyer orders again shortly after their last order, the shop can treat this as a follow-up order and, for example, offer special shipping conditions. Six tags describe this state.All time details are seconds or timestamps. For readable output, convert them with the
DC-Int tags or insert the timestamp into the DC-DateTime tags, as in the example.The two period tags also work as bracketing if the function is set up at all. If the period is set to 0 in the shop configuration, they remain silent. This lets you restrict a note to shops in which the function is active.
The tags at a glance
WS-PaymentFields, WS-DeliveryFields and WS-DelivDateFields apply on the payment and shipping method page, WS-AdvDelivDateFields also on the order overview page. WS-DelivDate and WS-AdvDelivDate apply on the order overview page and the confirmation page, WS-PaymentConfirmText and WS-DeliveryCost on the confirmation page, and WS-BankInfo also on the order overview page and in the confirmation email. WS-TotalWeight and WS-TotalVolume apply on the shopping cart page, the order overview page and in the mail confirmation template. All other tags are permitted on all templates.
Related topics
- Guide: Creating payment methods
- Guide: Creating shipping methods
- Guide: Offering a preferred delivery date
- Guide: Fast ordering
- Reference: PAY- (payment methods)
- Reference: DELIV- (shipping methods)
