| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
String formatting in X-Cart/Smarty | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() I'm trying to reformat a string and then pass it to our shipping companies web site for tracking.
I have done it previously in asp / vb but am new to smarty and am finding the syntax a little hard going. Heres the vb code Code:
Can someone give me a "translation" for Smarty ? Seems from (my very limited) expereince I will need to set it up as a plugin and do it under php ??? Thanks
__________________
4.3.1 rounded white template one page checkout |
|||||||
#2
|
|||||||
|
|||||||
![]() use replace and substr
ie: replace:" ":"" substr:8 you can pipe these together as well, ie: {$ticketnumber|replace:" ":""|substr:8} |
|||||||
#3
|
|||||||
|
|||||||
![]() That pointed me in the right direction. all working now.
Thanks ![]()
__________________
4.3.1 rounded white template one page checkout |
|||||||
|
|||
X-Cart forums © 2001-2020
|