| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Ability to select shipping carrier for tracking numbers | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Ability to select shipping carrier for tracking numbers
X-cart chooses the shipping carrier based and the shipping selection that the customer used when checking out. However, to change the carrier and have the tracking function still work. Here is a mod that will allow you to select which shipping carrier you used: UPS, Fedex, USPS and will associate xcarts tracking functions to the option you selected.
First we need to create a new column in the database xcart_orders. The easiest way to do this is to go to 'Patch/Upgrade' under 'Administration' in your xcart admin. Copy the following in your SQL query(ies): box and click on apply. Code:
Then you need to replace the following code in your admin/order.php Code:
With this code: Code:
Then you will need to add a template under 'main' called 'order_shipping_vendor.tpl' containing the following code: Code:
Finally you will need to edit template file 'main/history_order.tpl'. Replace the following: Code:
With this Code:
And add the following: Code:
After this line in the main/history_order.tpl Code:
After applying this mod when you log in to view your order to enter tracking numbers right above your tracking number box you can select which shipping carrier was used. After applying your changes you will see a 'track it' button at the bottom of the page that allows you to track the shipment. |
|||||||
#2
|
|||||||||
|
|||||||||
Nice mod. I assume this is for 4.0.3.
|
|||||||||
#3
|
|||||||
|
|||||||
version 4.0.3
Yes, it is for 4.0.3.
|
|||||||
#4
|
|||||||
|
|||||||
3.4.11 ?
Do you guys know offhand if this mod will work with 3.4.11? It looks like it's almost a stand-alone mod.
__________________
|| E L E V E N || |
|||||||
#5
|
|||||||
|
|||||||
It was designed for 4.x but you could try on 3.4.11. You should try and post back to the forum your results. I personally have not tried it on 3.4.11.
|
|||||||
#6
|
|||||||
|
|||||||
Thank you for this mod, everything seems to be working except the Track It button does not show up.
I was wondering where exactly this track IT button shows up (I assumed it would be on the page around where I chose shipping company, and entered tracking... but I do not see it;( Any assistance would be greatly appreciated. Thanks using v4.0.4 X-CART |
|||||||
#7
|
|||||||
|
|||||||
The 'track it' button is on the bottom of the 'Order details' page (the same page that you select your shipping carrier and enter your tracking number) You need to select a carrier and enter a tracking number and click apply changes near the bottom of the page. Then go back to the same order again and you will see the 'track it' button at the bottom of the page. Please let me know if you need further assistance.
|
|||||||
#8
|
|||||||
|
|||||||
I'm using 4.0.9. In your second step, the code doesn't match up and I'm not sure how to change it. Could anyone take a stab? This is my code:
Code:
__________________
-------------------- X-Cart Gold 4.1.11 Linux/Apache -------------------- |
|||||||
#9
|
|||||||
|
|||||||
If your code doesn't match the SQL query listed above, here is what to do.
In admin/order.php, change this line: Code:
To this: Code:
Works great! |
|||||||
#10
|
|||||||
|
|||||||
Works Perfectly with 4.0.13.
__________________
Core version: 5.3.2.7 PHP: 5.6.29 MySQL server: 5.5.5-10.0.27-MariaDB-cll-lve (InnoDB engine support enabled) Web server: Apache Operating system: Linux XML parser: found GDLib: found (0) Translation driver: Database Curl version: 7.29.0 |
|||||||
|
|||
X-Cart forums © 2001-2020
|