marketing_gs Posted October 1, 2015 Share Posted October 1, 2015 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 More sharing options...
NemoPS Posted October 2, 2015 Share Posted October 2, 2015 Are you talking about the default shipping estimate module? Carriercompare? Link to comment Share on other sites More sharing options...
marketing_gs Posted October 2, 2015 Author Share Posted October 2, 2015 Are you talking about the default shipping estimate module? Carriercompare? It's the default module Date of Delivery. Link to comment Share on other sites More sharing options...
NemoPS Posted October 2, 2015 Share Posted October 2, 2015 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 urlEdit: sorry my 1.6.1 was broken 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_getDatesOfDeliveryBut you also need to know when it's saturday, sunday, which might get tricky Link to comment Share on other sites More sharing options...
marketing_gs Posted October 2, 2015 Author Share Posted October 2, 2015 (edited) 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 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 October 2, 2015 by marketing_gs (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted October 3, 2015 Share Posted October 3, 2015 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 More sharing options...
marketing_gs Posted October 15, 2015 Author Share Posted October 15, 2015 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 More sharing options...
NemoPS Posted October 16, 2015 Share Posted October 16, 2015 What is the module's version? Mine is 1.6.0, and it works with these settingshttp://screencast.com/t/5co0y7pc Link to comment Share on other sites More sharing options...
marketing_gs Posted October 16, 2015 Author Share Posted October 16, 2015 (edited) What is the module's version? Mine is 1.6.0, and it works with these settings http://screencast.com/t/5co0y7pc Mine is 1.7.0. http://postimg.org/image/5v4k36is1/ Edited October 16, 2015 by marketing_gs (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted October 16, 2015 Share Posted October 16, 2015 Hmmm, isn't that right? 21-22 is correct Link to comment Share on other sites More sharing options...
marketing_gs Posted October 16, 2015 Author Share Posted October 16, 2015 (edited) 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 October 16, 2015 by marketing_gs (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted October 16, 2015 Share Posted October 16, 2015 It seems it's not counting preparation then, can you change that and see what happens? Link to comment Share on other sites More sharing options...
marketing_gs Posted October 16, 2015 Author Share Posted October 16, 2015 It seems it's not counting preparation then, can you change that and see what happens? The preparation day is set on 1. The problem is whit the week end day. http://postimg.org/image/n03ljh4rr/ Link to comment Share on other sites More sharing options...
NemoPS Posted October 17, 2015 Share Posted October 17, 2015 Here is the old version, which works for me. dateofdelivery.zip Link to comment Share on other sites More sharing options...
marketing_gs Posted October 19, 2015 Author Share Posted October 19, 2015 Here is the old version, which works for me. I've installed your version but it doesn't work for me. I've tried to set 6-7 day for delivery, it calculates 26-27 oct, but it doesn't add the two days of week end. Link to comment Share on other sites More sharing options...
Recommended Posts