Jump to content

Delivery date module - Remove week end days


Recommended Posts

Hi,

I've a problem with delivery date module. The days for delivery in the rules also count the week end. So if I choose delivery from 3 to 4 days, today (is Thursday, 1st October) the estimated delivery day is from 4 to 5 October, but the working days are only two (Friday and Monday).

Is possible to modify the module so it doesn't count the week end days?

 

Thank you

Matteo

Link to comment
Share on other sites

What's your prestashop version? They might have changed the name, I do recall one like that, but now we only have "shipping estimate". Could you check if its real name is "carriercompare"? Just hit configure, ans see what it reads in the url

Edit: sorry my 1.6.1 was broken :D It was missing.

Did you uncheck these config options?
 

Preparation option

Saturday preparation
Sunday preparation
 
 

 

 

If it's still broken, you need to modify the times in

_getDatesOfDelivery

But you also need to know when it's saturday, sunday, which might get tricky

Link to comment
Share on other sites

What's your prestashop version? They might have changed the name, I do recall one like that, but now we only have "shipping estimate". Could you check if its real name is "carriercompare"? Just hit configure, ans see what it reads in the url

 

Edit: sorry my 1.6.1 was broken :D It was missing.

Did you uncheck these config options?

 

Preparation option

Saturday preparation
Sunday preparation
 
 

 

 

If it's still broken, you need to modify the times in

 

_getDatesOfDelivery

 

But you also need to know when it's saturday, sunday, which might get tricky

 

Yes, the preparation options are unchecked.

I'm not able to modify _getDatesOfDelivery, hope you and someone else can help me ;-)

Edited by marketing_gs (see edit history)
Link to comment
Share on other sites

I'll try to come up with a tut if I can next week!

Edit: it's odd, mine seems to be adding the extra time for weekends.
I used a 4-5 days delivery for the carrier, tried placing an order today, and it says between friday 9 and monday 12, which is correct

Link to comment
Share on other sites

  • 2 weeks later...

I'll try to come up with a tut if I can next week!

 

Edit: it's odd, mine seems to be adding the extra time for weekends.

I used a 4-5 days delivery for the carrier, tried placing an order today, and it says between friday 9 and monday 12, which is correct

 

Mine doesn't work.

Today (15/10) if I try to make an order with 4/5 day for delivery, the estimated date of delivery is  from 19 to 20, but if I add the two days of week end it must to be from 21 to 22. :(

Link to comment
Share on other sites

Hmmm, isn't that right? 21-22 is correct

 

16 (today) + 1 for preparation + 4-5 for delivery = 21-22 but it doesn't count the two days of week end.

The correct estimated delivery date is: 16 + 2 (saturday and sunday) + 1 preparation + 4-5 for delivery = 23-24 (24 is saturday so it moves to monday 26)

Edited by marketing_gs (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...