| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Order today and Receive By Calculator? | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() Has anyone been able to find a javascript which could take the current date, add two days (shipping time) and output the result as "Orders placed today will arrive by X, X, 2009"
The script would also have to compensate for not being able to ship Saturday/Sunday, so when the date = Thursday it will know Monday is the earliest time to deliver. For Friday delivery would be Tuesday, etc. if anyone has a handle on something like this and can share that would be very helpful!
__________________
- www.nerdseven.com - Gadgets & Gizmos from Out of This World - Sound Sensitive T-Shirts That Flash to the Beat of Music (http://www.tqualizer.com) X-Cart Version 4.1.10 |
|||||||||
#2
|
|||||||||
|
|||||||||
![]() I did a similar mod not long ago. PM me if interested for details
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#3
|
|||||||
|
|||||||
![]() Totally off topic, but I bought one of the Tqualizer shirts for my son here in Minnesota. He wore it to school and the teachers and other kids loved it! Really fun product!
__________________
Evolve Systems Xcart: (50+ installs, ranging from 4.0.9 to 4.5.x) php: 5.2.13 (Mostly) MySQL: 5.0.95 (Mostly) |
|||||||
#4
|
|||||||||
|
|||||||||
![]() Pleas make a backup of all files you are changing.
I added this $config['date'] = '%D'; $smarty->assign('config', $config); $smarty->assign('holDate', strtotime('+2day')); $smarty->assign('holDateSat', strtotime('+3day')); $smarty->assign('holDateFri', strtotime('+4 day')); to home.php at the end right before func_display("customer/home.tpl",$smarty); ?> then added this to head.tpl <b>{$lng.lbl_holiday_bar} {if $smarty.now|date_format:"%A" eq "Friday"}{$holDateFri|date_format:$config.date } {elseif $smarty.now|date_format:"%A" eq "Thursday"}{$holDateFri|date_format:$config.da te} {elseif $smarty.now|date_format:"%A" eq "Saturday"} {$holDateSat|date_format:$config.date}{else}{$holD ate|date_format:$config.date}{/if}</b> PLEASE NOTE:there is a space in the line above that should no be there $holD ate|date_format - ^^^^^I tried to fix it but it won't go away!!! The holiday_bar language variable is something like this. If you purchase today, then receive by - the rest displays the date. You may have to play with the php to suit your date needs. It does take into account the weekend for non business days. If you want this to show up on static pages, cart page... etc you will need to add the php to those pages also. I think you could add it to auth.php to get it site wide. Not sure if it's a good idea to add stuff to auth.php tho, need one of the php gurus to answer that. Ash
__________________
xcart 5.1.2 |
|||||||||
|
|||
X-Cart forums © 2001-2020
|