| ||||||||||
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 |
#11
|
|||||||||
|
|||||||||
This mod is great it comes in very handy when you consider how many times I've switch carriers
Which brings me to my question how could I get this mod to default to the customer's selected carrier instead of having to select it. I use he real time shipping feature and say for e.g. a customer selects UPS 2nd Day Air the shipping vendor would then be UPS if they had selected USPS Priority Mail hen it would be USPS. Any ideas. Thanks in advance.
__________________
X-Cart pro v4.0.17 X-Cart pro v4.1.6 X-Cart pro v4.2 |
|||||||||
#12
|
|||||||
|
|||||||
Re: Ability to select shipping carrier for tracking numbers
this should take care of the same thing without adding anything to sql table
{assign var="postal_service" value=$order.shipping|truncate:3:"":true} {if $active_modules.Order_Tracking ne ""} UPS {include file="modules/Order_Tracking/ups.tpl"} USPS {include file="modules/Order_Tracking/usps.tpl"} FEDEX {include file="modules/Order_Tracking/fedex.tpl"} {/if} {/if}
__________________
X-Cart version 4.0.19 |
|||||||
#13
|
|||||||||
|
|||||||||
Re: Ability to select shipping carrier for tracking numbers
What about this mod upgrading to work in 4.1.7 version???
Thank you!
__________________
X-card Gold 4.1.7 Batch Order Mod/Order Processing Detailed Order Management Mod Order Audit/Profit reports Advanced Product Search Ajax Username Checker Direct Product Enquiry Form FAQ Manager Social Bookmarking Tabs Mod v3 MagneticOne.com All-IN-ONE X-Cart Export Show Referrer Information on Order Details Page www.medsmarket.net |
|||||||||
#14
|
||||||||||
|
||||||||||
Re: Ability to select shipping carrier for tracking numbers
I really like this mod and I changed it to work with my 4.1.8 xcart. Here is what I have:
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. Quote:
Step 2: In admin/order.php, replace this code:
Quote:
Quote:
Step 3: Then you will need to add a template under skin1/main called 'order_shipping_vendor.tpl' containing the following code: Quote:
Step 4: Finally you will need to edit template file skin1/main/history_order.tpl. Find: Quote:
Replace with: Quote:
Find: Quote:
Replace with:
Quote:
Find:
Quote:
After the line above add:
Quote:
Many thanks to the original author of this mod. It's just what the doctor ordered for my site. I make no promises that this code will work with your site; each environment is different and your code may function differently especially if it has already been moded. I can't provide any support for this mod. Install only if you have the resources to fix any problems that may occur.
__________________
X-Cart Gold v 4.1.10 PHP 5.2.4 MySQL 5.0.45 standard Apache/2.2.6 OS - Linux |
||||||||||
#15
|
|||||||||
|
|||||||||
Re: Ability to select shipping carrier for tracking numbers
This looks great. Any ideas what effect this has on the tracking link in completed emails?
__________________
Mary Lee ------------------- Dinner and a Murder Mystery Games http://www.dinnerandamurder.com x-cart version 4.7.5 / Mac OS 10.10.5 and Windows 8/10 sometimes - Ideal Responsive Template |
|||||||||
#16
|
|||||||||
|
|||||||||
Re: Ability to select shipping carrier for tracking numbers
Does anybody now to implement tracking for Canada Post?
__________________
Jack@AquasanaCA X-CART GOLD 4.0.19 Live DSEFU, AOM, ezCheckout, ezUpsell, ezRecommends, RememberMe, RememberAnonCarts AquasanaCanada.com - Aquasana╝ - #1 Rated Water Filters in America! X-CART GOLD 4.4.5 Live CDSEO Pro v. 1.8.4 AquasanaMontreal.com Aquasana╝ & Rhino Water Filtration Systems |
|||||||||
#17
|
|||||||
|
|||||||
Re: Ability to select shipping carrier for tracking numbers
Quote:
I second that.. Any idea's!? Thanks a lot!
__________________
Samz -------------------------------------- Heavily modified X-Cart Gold v4.1.10 |
|||||||
#18
|
|||||||
|
|||||||
Re: Ability to select shipping carrier for tracking numbers
I wasn't keen to add any more tables to my database or make too many mods to my X-cart installation for fear of difficulat upgrades in the future. I was keen to get a Track It button embedded in my Order Completion email, and implemented a slight modification of MoonDog's method.
In MoonDog's method, it looks to rely on extra database fields that relate each order to the shipping method used. As I use two different trackable shipping companies, I was keen to have the Order Completion email offer just one Track It! button that was already coded to go to the correct carrier's tracking web page. Additionally, I wanted the text in the Order Completion email to still refer to the specific carrier that the customer selected (per MoonDog's original method). Each of my carriers uses a different prefix for their consignment numbers, so I just stripped out the first two characters of the consignment number to differentiate between the two companies. Any order with a con number starting with "EC" belongs to TNT, and any starting with "13" belongs to Couriers Please. Here's my version of MoonDog's Order Completion email that requires no DB mods etc: Code:
Please overlook the slight duplication of code. It works well thanks to MoonDog's hard work and my slight mods. If you're worried about having to do too many changes to your X-Cart installation to associate your trackable carrier to your orders, this is a way around it (so long as your carriers use different Con note numbering systems). Dean
__________________
X-Cart Gold v4.1.8 |
|||||||
#19
|
|||||||||
|
|||||||||
Re: Ability to select shipping carrier for tracking numbers
I'm revisiting the issue after almost a year:
Any ideas how to implement tracking for Canada Post services?
__________________
Jack@AquasanaCA X-CART GOLD 4.0.19 Live DSEFU, AOM, ezCheckout, ezUpsell, ezRecommends, RememberMe, RememberAnonCarts AquasanaCanada.com - Aquasana╝ - #1 Rated Water Filters in America! X-CART GOLD 4.4.5 Live CDSEO Pro v. 1.8.4 AquasanaMontreal.com Aquasana╝ & Rhino Water Filtration Systems |
|||||||||
#20
|
|||||||||
|
|||||||||
Re: Ability to select shipping carrier for tracking numbers
Quote:
This is one I'd like to see as well. I may take a look at it in the next few days. Jason |
|||||||||
|
|||
X-Cart forums © 2001-2020
|