What's New
Viewing 9 posts - 1 through 9 (of 9 total)
Viewing 9 posts - 1 through 9 (of 9 total)
You must be logged in to reply to this topic.
Hello!
I purchased some time ago you amazing module EASYCHECKOUT and I’m wondering if it would be possible to set shipping option depending on the time of day of the purchase.
I give an example so that it is better understood.
Orders placed before 1pm are shipped the same day and are received the next day. Therefore, the carrier’s time should be “receive it tomorrow”. If the order is placed after 1pm the message should be “receive it in 48h”.
Many thanks!!
It’s a customization request, it’s not about the easycheckout module, it’s about carriers.
The best solution is to hire a freelancer to create a module to change carriers’ information accordion to the time, by doing this way, you don’t need to edit any files.
If that doesn’t not sound good for you, then let us know, we can guide to to customize the easycheckout module to achieve what you wanted, you need to edit one file in the easycheckout module.
Put this code to the \modules\steasycheckout\classes\StCheckoutDeliveryStep.php file, see attached pic.
if($carrier['id_reference']==16){
$carrier['delay'] = date("H")>13 ? "Receive it in 48h" : "Receive it tomorrow";
}
How many carriers do you have, how many of them need this customization to be applied on?
If you just have on carrier and if all of them need the customization, then just use the second line.
Many thanks!
I have some carriers, applied depending the type of product.
I’ve tried to write the complete sentence and it doesn’t work, still showing the Transit time set on Prestashop carrier option.
It works if I write only the second line, but then is applied to all carriers, what I don’t want to happen.
So, what I say is that I need to apply this conditional only to some of the carriers.
What could I do?
Again, many thanks!!!!
You must be logged in to reply to this topic.