Order confirmation shows delivery time only when it applies
Order confirmation shows delivery time only when it applies
The order confirmation ("Thank you for your order.") used to always end with
"Your campaign will be online on all channels within {daysToProcess} working
days." For a campaign that contained only a My Contract product there is no
delivery estimate, so the sentence rendered with the number missing. After a
marketplace product was added to the basket and removed again, it could also
show the figures of that removed product.
What changed
The confirmation now shows a delivery sentence only when there is an estimate for the products that were ordered:
- Contract-only order: no delivery sentence. The confirmation reads "Thank you for your order."
- Order with a delivery time: unchanged. "Your campaign will be online on all channels within N working days." and, where a first-use setup time applies, the additional setup sentence.
- Order that is online immediately (0 days): instead of "within 0 working
days", the confirmation shows "Campaign will be online immediately.", the
same text the Basket already shows for this basket. This is the existing
basket.immediate-delivery-timetranslation key, available in all supported languages. - Basket widget: when the delivery time of the basket cannot be calculated (for example the request fails), the Delivery Time section now stays empty. It previously showed "Campaign will be online immediately". "Immediately" is shown only for a real 0-day estimate.
- Basket widget: "Delivery can take up to N working days" is shown only when the processing time is above zero. When only the first-use setup time is above zero, that sentence is omitted and the setup footnote stays.
In a basket that mixes a contract with marketplace products, the delivery sentences describe the marketplace products only.
SDK state
hapi.basket.state.deliveryAndProcessingTimes is now reset to null when the
basket is not empty and contains no marketplace product (for example after the
last product is removed and only a contract is left), and when the delivery
time of the basket cannot be calculated. Previously it kept the value from the
last successful calculation. The value is left untouched when the basket is
emptied, so it is still available on the confirmation after an order.
Assigning null to deliveryAndProcessingTimes is now accepted by its
validation. If your integration reads this state, treat null as "no delivery
estimate".
Notes
- Custom confirmation text: if you replaced the translation
user-journey.job-posting.order-confirmation-explanation-1with text that has no{daysToProcess}number, it is no longer shown on contract-only orders. The key itself is unchanged and still used for orders that have a delivery time. - No translation keys were added, removed or renamed, and no element IDs or class names changed.