[Skip to main content](#vessel-content)

#   Withdrawal window based on order creation date

##

- **[NTV](/forum/user/69623-ntv "View NTV's Profile")**
- [![NTV's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/69623-ntv "View NTV's Profile") Topic Author
- [ Offline](/forum/user/69623-ntv)

Less More

- Posts: 47
- Thank you received: 6
-

5 months 3 weeks ago [\#371882](#371882) by [NTV](/forum/user/69623-ntv "View NTV's Profile")  *[Withdrawal window based on order creation date](/forum/35-orders-management/910514-withdrawal-window-based-on-order-creation-date#371882 "-- HikaShop version -- : 6.3.0 -- Joomla version -- : 5.4.5 -- PHP version -- : 8.3.6 -- Browser(s) name and version -- : Firefox 150.0.1 (64-bit)  Hi, in the configuration there is a setting called 'Number of days after delivery for withdrawal window' which (I assume) starts counting after an order has its status set to 'Delivered'.  How would I go about changing this to start counting from order creation instead?  Cheers.")* was created by *[NTV](/forum/user/69623-ntv "View NTV's Profile")*

-- HikaShop version -- : 6.3.0
-- Joomla version -- : 5.4.5
-- PHP version -- : 8.3.6
-- Browser(s) name and version -- : Firefox 150.0.1 (64-bit)

Hi,
in the configuration there is a setting called 'Number of days after delivery for withdrawal window' which (I assume) starts counting after an order has its status set to 'Delivered'.

How would I go about changing this to start counting from order creation instead?

Cheers.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkxMDUxNC13aXRoZHJhd2FsLXdpbmRvdy1iYXNlZC1vbi1vcmRlci1jcmVhdGlvbi1kYXRlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86323
- Thank you received: 14283
-
-

5 months 3 weeks ago [\#371888](#371888) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Withdrawal window based on order creation date](/forum/35-orders-management/910514-withdrawal-window-based-on-order-creation-date#371888 "-- HikaShop version -- : 6.3.0 -- Joomla version -- : 5.4.5 -- PHP version -- : 8.3.6 -- Browser(s) name and version -- : Firefox 150.0.1 (64-bit)  Hi, in the configuration there is a setting called 'Number of days after delivery for withdrawal window' which (I assume) starts counting after an order has its status set to 'Delivered'.  How would I go about changing this to start counting from order creation instead?  Cheers.")*

Hello,

You can do this entirely from the backend with a mass action, no code change needed. The withdrawal window is calculated from the reference date stored on the order ("order_shipped" for the Shipped status, "order_delivered" for the Delivered status, "order_invoice_created" for the Confirmed status). HikaShop only writes those date columns once, when the order first reaches each status (see back/classes/order.php:168, the assignments are guarded by an empty() check). So if you pre-fill them with the order creation date before the order ever reaches those statuses, HikaShop will leave them alone afterwards and the withdrawal window will naturally start from order creation.

Steps to set this up:

1. Go to HikaShop &gt; System &gt; Mass actions and click New.
2. Give it a name (e.g. "Align shipping/delivery dates to order creation"), make sure it is published and set Trigger to "After an order is created".
3. Set the table to Order. You can leave the filters empty so it applies to every order, or add a "Filter on a specific order field" if you want to scope it (for example only orders below a given order id, etc.).
4. Add two actions of type "Update values":
- Field: order_delivered = (operation) order.order_created
- Field: order_shipped = (operation) order.order_created
The "operation" type tells HikaShop to evaluate the right side as a column reference rather than a literal value, so each new order gets its own creation timestamp copied over.
5. Save the mass action.

After that, the system will compute the 14-day window from the value of order_delivered (or order_shipped), which is now the order creation timestamp. The standard "Number of days after delivery for withdrawal window" setting in HikaShop &gt; Configuration &gt; Main keeps working as the duration of the window, only its starting point shifts.

One legal note worth flagging, in case it is relevant to your shop: the EU Directive 2023/2673 (and the older 2011/83/EU it replaces) sets the 14-day withdrawal window to start when the consumer takes physical possession of the goods, not when the order is placed. Starting the window from the order creation date can give EU consumers less than 14 days of actual withdrawal time after delivery, which would not be compliant with the directive for physical goods. If you are selling digital goods or services only, or if you are outside the EU, the rule is different and this approach is fine. Worth double-checking against your jurisdiction before pushing it live.

The following user(s) said Thank You: [NTV](/forum/user/69623-ntv "View NTV's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkxMDUxNC13aXRoZHJhd2FsLXdpbmRvdy1iYXNlZC1vbi1vcmRlci1jcmVhdGlvbi1kYXRlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[NTV](/forum/user/69623-ntv "View NTV's Profile")**
- [![NTV's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/69623-ntv "View NTV's Profile") Topic Author
- [ Offline](/forum/user/69623-ntv)

Less More

- Posts: 47
- Thank you received: 6
-

5 months 3 weeks ago [\#371896](#371896) by [NTV](/forum/user/69623-ntv "View NTV's Profile")  Replied by *[NTV](/forum/user/69623-ntv "View NTV's Profile")* on topic *[Withdrawal window based on order creation date](/forum/35-orders-management/910514-withdrawal-window-based-on-order-creation-date#371896 "-- HikaShop version -- : 6.3.0 -- Joomla version -- : 5.4.5 -- PHP version -- : 8.3.6 -- Browser(s) name and version -- : Firefox 150.0.1 (64-bit)  Hi, in the configuration there is a setting called 'Number of days after delivery for withdrawal window' which (I assume) starts counting after an order has its status set to 'Delivered'.  How would I go about changing this to start counting from order creation instead?  Cheers.")*

Hi nicolas,

got it set up, should be working now - thanks!

Next step:
What about digital goods, is there a way to set the 'no_refund' value automatically once a product is downloaded?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkxMDUxNC13aXRoZHJhd2FsLXdpbmRvdy1iYXNlZC1vbi1vcmRlci1jcmVhdGlvbi1kYXRlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86323
- Thank you received: 14283
-
-

5 months 3 weeks ago [\#371902](#371902) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Withdrawal window based on order creation date](/forum/35-orders-management/910514-withdrawal-window-based-on-order-creation-date#371902 "-- HikaShop version -- : 6.3.0 -- Joomla version -- : 5.4.5 -- PHP version -- : 8.3.6 -- Browser(s) name and version -- : Firefox 150.0.1 (64-bit)  Hi, in the configuration there is a setting called 'Number of days after delivery for withdrawal window' which (I assume) starts counting after an order has its status set to 'Delivered'.  How would I go about changing this to start counting from order creation instead?  Cheers.")*

Hi,

There is no no_refund field as such, but we just pushed an update that does exactly what you describe automatically, no configuration needed. The new behaviour:

For fully-digital orders (no shipping method on the order), the "Withdraw from contract" button now disappears as soon as the customer downloads one of the files attached to a product of the order. This matches the EU Directive 2023/2673 rule that the withdrawal right on digital content is lost as soon as the consumer starts the download. Orders with a shipping method keep their existing withdrawal window unchanged, since the physical part of the order may still be returned.

Please download the latest 6.4.1 build from your member area and reinstall it. The download log HikaShop has been keeping for every frontend download is what the check reads, so this also retroactively closes the withdrawal window on orders whose customers had already downloaded before the update.

The following user(s) said Thank You: [NTV](/forum/user/69623-ntv "View NTV's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkxMDUxNC13aXRoZHJhd2FsLXdpbmRvdy1iYXNlZC1vbi1vcmRlci1jcmVhdGlvbi1kYXRlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[NTV](/forum/user/69623-ntv "View NTV's Profile")**
- [![NTV's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/69623-ntv "View NTV's Profile") Topic Author
- [ Offline](/forum/user/69623-ntv)

Less More

- Posts: 47
- Thank you received: 6
-

5 months 2 weeks ago [\#371962](#371962) by [NTV](/forum/user/69623-ntv "View NTV's Profile")  Replied by *[NTV](/forum/user/69623-ntv "View NTV's Profile")* on topic *[Withdrawal window based on order creation date](/forum/35-orders-management/910514-withdrawal-window-based-on-order-creation-date#371962 "-- HikaShop version -- : 6.3.0 -- Joomla version -- : 5.4.5 -- PHP version -- : 8.3.6 -- Browser(s) name and version -- : Firefox 150.0.1 (64-bit)  Hi, in the configuration there is a setting called 'Number of days after delivery for withdrawal window' which (I assume) starts counting after an order has its status set to 'Delivered'.  How would I go about changing this to start counting from order creation instead?  Cheers.")*

Very cool, thanks!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkxMDUxNC13aXRoZHJhd2FsLXdpbmRvdy1iYXNlZC1vbi1vcmRlci1jcmVhdGlvbi1kYXRlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[NTV](/forum/user/69623-ntv "View NTV's Profile")**
- [![NTV's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/69623-ntv "View NTV's Profile") Topic Author
- [ Offline](/forum/user/69623-ntv)

Less More

- Posts: 47
- Thank you received: 6
-

3 months 3 weeks ago -  3 months 3 weeks ago [\#372549](#372549) by [NTV](/forum/user/69623-ntv "View NTV's Profile")  Replied by *[NTV](/forum/user/69623-ntv "View NTV's Profile")* on topic *[Withdrawal window based on order creation date](/forum/35-orders-management/910514-withdrawal-window-based-on-order-creation-date#372549 "-- HikaShop version -- : 6.3.0 -- Joomla version -- : 5.4.5 -- PHP version -- : 8.3.6 -- Browser(s) name and version -- : Firefox 150.0.1 (64-bit)  Hi, in the configuration there is a setting called 'Number of days after delivery for withdrawal window' which (I assume) starts counting after an order has its status set to 'Delivered'.  How would I go about changing this to start counting from order creation instead?  Cheers.")*

Hi,

I tested this after updating and it does not seem to be working - orders can still be cancelled after the product is downloaded.

My HikaShop version is 6.5.0.

Side question: Where can I change the text that appears in the dialog to confirm order cancellation? The german translation is quite bad.

EDIT: Found out how to set the Language Override - the Constant in question is "HIKA_CONFIRM_CANCEL_ORDER".

EDIT2: Noticed there are some modifications to the View in question, will write again when I removed those and tested again.

Last edit: 3 months 3 weeks ago by [NTV](/forum/user/69623-ntv "View NTV's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkxMDUxNC13aXRoZHJhd2FsLXdpbmRvdy1iYXNlZC1vbi1vcmRlci1jcmVhdGlvbi1kYXRlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86323
- Thank you received: 14283
-
-

3 months 3 weeks ago [\#372551](#372551) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Withdrawal window based on order creation date](/forum/35-orders-management/910514-withdrawal-window-based-on-order-creation-date#372551 "-- HikaShop version -- : 6.3.0 -- Joomla version -- : 5.4.5 -- PHP version -- : 8.3.6 -- Browser(s) name and version -- : Firefox 150.0.1 (64-bit)  Hi, in the configuration there is a setting called 'Number of days after delivery for withdrawal window' which (I assume) starts counting after an order has its status set to 'Delivered'.  How would I go about changing this to start counting from order creation instead?  Cheers.")*

Hi,

The download check is working, it just acts on a different button than the one you tested.

An order can show two different buttons:

- "Withdraw from contract", the legal right of withdrawal. This is the one the update closes: on a fully digital order (no shipping method), it disappears as soon as the customer downloads a file of that order through the frontend.
- "Cancel order", the one whose confirmation dialog you found (HIKA_CONFIRM_CANCEL_ORDER). This one is separate. It is shown purely from the order status, via the config setting that lists which statuses allow cancellation, and downloads do not affect it.

So "still cancellable after a download" is expected: cancelling and withdrawing are two different actions. To check the new behaviour, look at "Withdraw from contract", not "Cancel order". Use a digital order that has reached Confirmed or Shipped (the default download-eligible statuses), download a file as the customer, then reload the order. The withdraw button should be gone.

If your downloadable orders sit in another status such as Created or Delivered, the check is skipped for them by design. Tell me which status they are in and I will point you to the setting that aligns it.

On the German text: you are right, the default was a stiff, literal translation of the English and did not read naturally. We have reworded the shipped German (de-DE, de-AT, de-CH) to "Möchten Sie die Bestellung ORDER_NUMBER wirklich stornieren?", so a future update will carry it. HIKA_CONFIRM_CANCEL_ORDER is the correct override to use in the meantime.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkxMDUxNC13aXRoZHJhd2FsLXdpbmRvdy1iYXNlZC1vbi1vcmRlci1jcmVhdGlvbi1kYXRlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[NTV](/forum/user/69623-ntv "View NTV's Profile")**
- [![NTV's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/69623-ntv "View NTV's Profile") Topic Author
- [ Offline](/forum/user/69623-ntv)

Less More

- Posts: 47
- Thank you received: 6
-

3 months 3 weeks ago [\#372620](#372620) by [NTV](/forum/user/69623-ntv "View NTV's Profile")  Replied by *[NTV](/forum/user/69623-ntv "View NTV's Profile")* on topic *[Withdrawal window based on order creation date](/forum/35-orders-management/910514-withdrawal-window-based-on-order-creation-date#372620 "-- HikaShop version -- : 6.3.0 -- Joomla version -- : 5.4.5 -- PHP version -- : 8.3.6 -- Browser(s) name and version -- : Firefox 150.0.1 (64-bit)  Hi, in the configuration there is a setting called 'Number of days after delivery for withdrawal window' which (I assume) starts counting after an order has its status set to 'Delivered'.  How would I go about changing this to start counting from order creation instead?  Cheers.")*

Hi,
a bit confusing that there are two similar functions. If it has to be this way I would suggest changing the name of the setting "Number of days after delivery for withdrawal window" as it (also) applies to order cancellation, if I'm not mistaken.

Is it possible to mirror the withdrawal behavior for cancellation?

Example:
Order confirmed -&gt; User downloads file -&gt; Cancellation becomes unavailable

The new German translation is very good.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkxMDUxNC13aXRoZHJhd2FsLXdpbmRvdy1iYXNlZC1vbi1vcmRlci1jcmVhdGlvbi1kYXRlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86323
- Thank you received: 14283
-
-

3 months 3 weeks ago [\#372621](#372621) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Withdrawal window based on order creation date](/forum/35-orders-management/910514-withdrawal-window-based-on-order-creation-date#372621 "-- HikaShop version -- : 6.3.0 -- Joomla version -- : 5.4.5 -- PHP version -- : 8.3.6 -- Browser(s) name and version -- : Firefox 150.0.1 (64-bit)  Hi, in the configuration there is a setting called 'Number of days after delivery for withdrawal window' which (I assume) starts counting after an order has its status set to 'Delivered'.  How would I go about changing this to start counting from order creation instead?  Cheers.")*

Hi,

Order cancellation has been in HikaShop for years. And it is used all over the world.
"Withdrawal" is a mechanism with strict rules, specific to the EU and with things that people outside the EU don't want.
So both systems live side by side.
The setting you're talking about is specific to "withdrawal".
I don't see the point of mirroring the withdrawal behavior for cancellation. The whole point of having them side by side is that you can choose to use one or the other based on your needs. If both do the same thing, then there is no point in having both anymore.

As a German shop, I would recommend turning off order cancellation and only using withdrawal.

The following user(s) said Thank You: [NTV](/forum/user/69623-ntv "View NTV's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkxMDUxNC13aXRoZHJhd2FsLXdpbmRvdy1iYXNlZC1vbi1vcmRlci1jcmVhdGlvbi1kYXRlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[NTV](/forum/user/69623-ntv "View NTV's Profile")**
- [![NTV's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/69623-ntv "View NTV's Profile") Topic Author
- [ Offline](/forum/user/69623-ntv)

Less More

- Posts: 47
- Thank you received: 6
-

3 months 2 weeks ago -  3 months 2 weeks ago [\#372643](#372643) by [NTV](/forum/user/69623-ntv "View NTV's Profile")  Replied by *[NTV](/forum/user/69623-ntv "View NTV's Profile")* on topic *[Withdrawal window based on order creation date](/forum/35-orders-management/910514-withdrawal-window-based-on-order-creation-date#372643 "-- HikaShop version -- : 6.3.0 -- Joomla version -- : 5.4.5 -- PHP version -- : 8.3.6 -- Browser(s) name and version -- : Firefox 150.0.1 (64-bit)  Hi, in the configuration there is a setting called 'Number of days after delivery for withdrawal window' which (I assume) starts counting after an order has its status set to 'Delivered'.  How would I go about changing this to start counting from order creation instead?  Cheers.")*

Hi,
that makes sense.

While I do see the value of disabling order cancellation after the user has downloaded his E-Book, we can make do with only offering a withdrawal form.

EDIT: Concerning the mass action setting order_delivered to order_created: I recommend using another mass action to retroactively set that value for all previous orders, otherwise you will receive cancellation requests for orders that have been created years ago.

Last edit: 3 months 2 weeks ago by [NTV](/forum/user/69623-ntv "View NTV's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkxMDUxNC13aXRoZHJhd2FsLXdpbmRvdy1iYXNlZC1vbi1vcmRlci1jcmVhdGlvbi1kYXRlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.101 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
