we are using magento 1.8.1ce.

Is there a way to use a shipment method which only is available between specific times on specific days.

We are looking for a method which is only available between thursday 15:00 and friday 16:00.

How can i do this?

i did see an post which uses an attribute for filtering. But we need it to be applied to all products ...


It is kind of a duplicate. How to filter:


You just have to adjust the check and include date and the correct shipping code. If you have any problems with this, please open another question, describe what you have done (maybe link this or the other question) and explain what you expected and what happened instead.

You need to add to the method:

if ($carrierCode === 'YOUR_CODE' && $nowBetweenThursdayFiveTeenAndFridaySixTeen){
    return false;

I'm letting you implement $nowBetweenThursdayFiveTeenAndFridaySixTeen

  • This post is mainly about using an attribute for a specific item .... For us it has to do with all items
    – Ronny
    Sep 30 '16 at 11:55
  • Updated the post, I hope now is clear what you have to do. Sep 30 '16 at 21:15
  • Thank you. I Will try this. I guess I have to put this in the shipping file of the checkout extension.
    – Ronny
    Sep 30 '16 at 21:28
  • You need to rewrite shipping/shipping Sep 30 '16 at 21:33
  • Do you mean this file: checkout/onepage/shipping_method/available.phtml?
    – Ronny
    Oct 2 '16 at 13:18

Not the answer you're looking for? Browse other questions tagged or ask your own question.