| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
UPS XML Tracking Integration | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() I was able to get my hands on a PHP script which will allow customers to track their UPS packages directly through the site. This does not redirect the customer to UPS, but instead returns the tracking information to the script.
My question is... can anyone shed any light on how to "embed" this PHP script within the store so that the normal layout flows around the output of the script??? I notice during the patch/upgrade process, X-cart kind of does something to this effect. Any ideas? Craig Elliott FireCompanies.com |
|||||||
#2
|
|||||||||
|
|||||||||
![]() Code:
Edit common_templates.tpl and add a new {elseif $main eq "trackingnum"} and include your new .tpl that outputs the $trackingnum values you passed from the php. hth. ![]() |
|||||||||
#3
|
|||||||
|
|||||||
![]() Boomer,
Thanks for the point in the right direction... but... should my API code shouldn't actually do any output. Am I correct? I'm a little confused about how to actually do the output still. Craig Elliott FireCompanies.com |
|||||||
#4
|
|||||||||
|
|||||||||
![]() Quote:
Code:
Using $smarty->assign(); will pass the variable/array to smarty so that you may use it in your .tpl however you need. Lets just display the results: Code:
![]() |
|||||||||
|
|||
X-Cart forums © 2001-2020
|