Jump to content
Sign in to follow this  
heliosquare

[Contribution] UPS XML Tracking

Recommended Posts

Tom,

If you are using MS2 then the 12/3 version contains everything you need (except for the info. box). You should ignore all previous versions.

 

If you are using a version prior to MS2 then you should install the original and then my 11/04 version.

 

Would you mind giving me a link to your site. I'd like the see the main tracking.php page as well as the popup


Do you ship UPS?

Give your customers order tracking without leaving your site. Track multi-package shipments. XML, cURL

 

Download the contribution here:

UPS Tracking

Share this post


Link to post
Share on other sites

Package Update

Please see the contrib. link above for a complete package download. The new package contains the missing tracking.php page...


Do you ship UPS?

Give your customers order tracking without leaving your site. Track multi-package shipments. XML, cURL

 

Download the contribution here:

UPS Tracking

Share this post


Link to post
Share on other sites

Steve,

I am using MS2 so I will be good there,

however, I do not find the catalog/tracking.php you spoke of either,, just the one in the classes.

 

in the dowload,, there are 4 files to add to the catalog folder,

account history

account history info

stylesheet.css

which are all edits of current files

then there is

popup tracker

 

but I do not find the tracking.php

 

was that by chance left out as well?

 

Regards

Tom


no bugs in my stuff,,, just random features ;)

Share this post


Link to post
Share on other sites

LOL

we were both at it at the same time

sorry Steve

 

Tom


no bugs in my stuff,,, just random features ;)

Share this post


Link to post
Share on other sites

Steve

The tracking.php in the catalog works fine,

I get tracking results

but I am still getting the blank white popup when clicking on the icon or tracking number itself in the account info.

 

??

Tom


no bugs in my stuff,,, just random features ;)

Share this post


Link to post
Share on other sites

I just uploaded yet another package that contains everything (knock on wood). The /includes/boxes/information.php was still missing as well as the language file for it.

 

If you are getting tracking results from the main tracking page then it means that /classes/tracking.php is working properly. The popup window simply calls that file so I can't think of any reason why it shouldn't work too...


Do you ship UPS?

Give your customers order tracking without leaving your site. Track multi-package shipments. XML, cURL

 

Download the contribution here:

UPS Tracking

Share this post


Link to post
Share on other sites

Steve

The info.php and lang files wasnt an issue for me

I use a tab to call the tracking.php and it worked fine.

 

just the popup,, and its not even showing the aplications top that is called,, its a total white blank popup window.

 

dont make sense,,,

confused,, lol

Tom


no bugs in my stuff,,, just random features ;)

Share this post


Link to post
Share on other sites

Qwiz, I just went to your site and got tracking results through your popup_tracker.php page:

 

popup.jpg


Do you ship UPS?

Give your customers order tracking without leaving your site. Track multi-package shipments. XML, cURL

 

Download the contribution here:

UPS Tracking

Share this post


Link to post
Share on other sites

Steve,,

log in to account test@qwiz.us password tests

account history,, and click on the tracking number or icon,,,

I got tracking info on this same number by use of the tracking tab, witch is the tracking.php in catalog

but when i click on the icons or tracking number,, i get that plain white popup,

 

how did you access the popup without using the tracking icon in an account?

maybe if i do that i can see what is wrong

Tom


no bugs in my stuff,,, just random features ;)

Share this post


Link to post
Share on other sites

I just noticed something,, in the url when on the icon,, it has a / after.php instead of a ?

going to check the code for error in that now

Tom


no bugs in my stuff,,, just random features ;)

Share this post


Link to post
Share on other sites

looks like you have 'use search engine safe urls' turned on...


Do you ship UPS?

Give your customers order tracking without leaving your site. Track multi-package shipments. XML, cURL

 

Download the contribution here:

UPS Tracking

Share this post


Link to post
Share on other sites

if it worked for you,, you must have typed it in a url direct.. so that means the way the track info is passed from the icon click is not correct.

 

??

Tom


no bugs in my stuff,,, just random features ;)

Share this post


Link to post
Share on other sites

yes

I figured out the format, now to get the link to pass the proper format

 

If i type it in direct,, it does work

so,, the javascript button passing information is not passing the correct information to popup_tracker.php

 

any ideal why it went wrong?

 

Tom


no bugs in my stuff,,, just random features ;)

Share this post


Link to post
Share on other sites

yes,, it was the serch safe url's on,, i turned it off and it worked

 

sorry

Didnt know about that one

 

Regards

Tom


no bugs in my stuff,,, just random features ;)

Share this post


Link to post
Share on other sites

Tim

There are some updates posted so download and update

also,, looks like our problem with the white pop up is due to serch eng. safe url's option turned to true,,,

with that to false,, it works

 

Regards

Tom


no bugs in my stuff,,, just random features ;)

Share this post


Link to post
Share on other sites

Yeah, I did type it in directly. Since you are using search engine safe urls you can change the following in account_history:

 

change this:

<a href="java script:popupTrackerWindow(\'' . tep_href_link(FILENAME_POPUP_TRACKER, 'action=track&tracknum=' . $code) . '\')">

 

change to:

<a href="java script:popupTrackerWindow(\'popup_tracker.php?action=track&tracknum=' . $code . '\')">

 

 

and in account_history_info:

 

change this:

<a href="java script:popupTrackerWindow('<?php echo tep_href_link(FILENAME_POPUP_TRACKER, 'action=track&tracknum=' . $order->info['ups_track_num']); ?>')">

 

change to:

<a href="java script:popupTrackerWindow('popup_tracker.php?action=track&tracknum=<?php echo $order->info['ups_track_num']; ?>')">

 

Taking the tep_href_link() function out should solve your problem


Do you ship UPS?

Give your customers order tracking without leaving your site. Track multi-package shipments. XML, cURL

 

Download the contribution here:

UPS Tracking

Share this post


Link to post
Share on other sites

Thanks Steve,,

Ill give that a go amorrow,,, till then,, i just turned the safe url off

 

Most greatful for all the work into this

 

Regards

Tom


no bugs in my stuff,,, just random features ;)

Share this post


Link to post
Share on other sites

Steve

Doing that only causes me to get a error msg in the popup window

 

1109

unknown table'popup_tracker' in where clause

 

select c.customers_password from orders o, customers c where o.customers_id=c.customers_id and o.orders_id=popup_tracker.phpactoin+tracker&tracknum=(my tracking number here)

tep stop

 

any thought on that?

regards

Tom


no bugs in my stuff,,, just random features ;)

Share this post


Link to post
Share on other sites
Tim

There are some updates posted so download and update

also,, looks like our problem with the white pop up is due to serch eng. safe url's option turned to true,,,

with that to false,, it works

 

Regards

Tom

awesome, it works now.

 

one slight problem. My default text color is white. when the tracking page pops up, the background is white and so is the text. How can i change just the popup's page text to be black?

 

thanks a bunch,

 

Tim

Share this post


Link to post
Share on other sites

Tim

 

He gave a solution to change it so we could use the url safe option,,, but that dont work yet,, he may have another ideal

for now i just have my safe url turned off.

I assume you do as well

 

as for changing the text of the popup,,, i think that is in the .css sheets if i am not mistaking.

 

dont hold me to that,, but i think thats where its controlled

 

give that a look

 

Regards

Tom


no bugs in my stuff,,, just random features ;)

Share this post


Link to post
Share on other sites

Tim,

 

Take a look at your popup_tracker.php file...I think that this is where you might be having the problem. Or, there could be a conflict (with what you have text color set to) with "smallText" and "main" text in your stylesheet and what's in popup_tracker.php (below):

 

In popup_tracker.php, you should have (about line 21):

 

<link rel="stylesheet" type="text/css" href="stylesheet.css">

 

And around line 33:

 

<td align="left" width="100%" class="main">

 

Try changing "main" to "smallText" (in popup_tracker.php) to see if this helps.

Share this post


Link to post
Share on other sites
Steve

Doing that only causes me to get a error msg in the popup window

 

1109

unknown table'popup_tracker' in where clause

 

select c.customers_password from orders o, customers c where o.customers_id=c.customers_id and o.orders_id=popup_tracker.phpactoin+tracker&tracknum=(my tracking number here)

tep stop

 

any thought on that?

regards

Tom

you are getting errors because you added the changes to a mysql query...not sure where you even see a query with password in either account_history or account_history_info

 

Take another look at my previous post and just change the javascript lines...


Do you ship UPS?

Give your customers order tracking without leaving your site. Track multi-package shipments. XML, cURL

 

Download the contribution here:

UPS Tracking

Share this post


Link to post
Share on other sites
awesome, it works now.

 

one slight problem. My default text color is white. when the tracking page pops up, the background is white and so is the text. How can i change just the popup's page text to be black?

 

thanks a bunch,

 

Tim

the font colors are controlled by the additions to stylesheet.css I provided in the contrib. package. The text is black and brown and none of it is white. If you are getting white text then I can only assume that you haven't edited your stylesheet with the additions...


Do you ship UPS?

Give your customers order tracking without leaving your site. Track multi-package shipments. XML, cURL

 

Download the contribution here:

UPS Tracking

Share this post


Link to post
Share on other sites
the font colors are controlled by the additions to stylesheet.css I provided in the contrib. package. The text is black and brown and none of it is white. If you are getting white text then I can only assume that you haven't edited your stylesheet with the additions...

Hey,

 

in the stylesheet modifications, theres no mention of black text in it. I haven't done any serious stylesheet modifications to the website other than altering colors. Currently it is a blue background w/ white text. If i change the white text on the stylesheet to black, then it works, but is not readable w/ the blue background (regular site)

Share this post


Link to post
Share on other sites

Tim,

 

Make sure you've added the following to your stylesheet:

 

TABLE.trackingBox {
 background: #bbc3d3;
}

TABLE.trackingBoxContents {
 background: #f4f7fd;
}

TD.trackingBoxHeading {
 font-family: Verdana, Arial, sans-serif;
 font-size: 11px;
 color: #ffffff;
 line-height: 1.5;
}

TD.trackingBoxHeading2 {
 font-family: Verdana, Arial, sans-serif;
 font-size: 11px;
 background: #C0C0C0;
 color: #ffffff;
 line-height: 1.5;
}

TD.trackingBox {
 font family: Verdana, Arial, sans-serif;
 font size: 11px;
 color: #000000;
 line-height: 1.5;
}

TD.trackingBoxContents {
 font family: Verdana, Arial, sans-serif;
 font size: 11px;
 color: #000000;
 line-height: 1.5;
}

TD.trackingBoxContents-odd {
 font family: Verdana, Arial, sans-serif;
 font size: 11px;
 background: #f4f7fd;
 color: #000000;
 line-height: 1.5;
}

TD.trackingBoxContents-even {
 font family: Verdana, Arial, sans-serif;
 font size: 11px;
 background: #ffffff;
 color: #000000;
 line-height: 1.5;
}


TR.trackingBoxContents-odd {
 background: #f4f7fd;
}

TR.trackingBoxContents-even {
 background: #ffffff;
}

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×