osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Shipping from 2 facilities - Canada and US

This is a discussion on Shipping from 2 facilities - Canada and US within the osCMax v2 Customization/Mods forums, part of the osCMax v2.0 Forums category; Hello, I was wondering if anyone could give me some advice as to the best route to take if I ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Customization/Mods

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 05-15-2007, 01:32 PM
Member
 
Join Date: Feb 2007
Posts: 31
Thanks: 2
Thanked 2 Times in 2 Posts
Rep Power: 0
Autoegocrat is on a distinguished road
Default Shipping from 2 facilities - Canada and US

Hello, I was wondering if anyone could give me some advice as to the best route to take if I have 2 facilites - One within Canada, and one in Illinois. They both will sell the exact same product but we wish to use CanadaPost within Canada and UPS within the US. I know you can set up the zones to only offer certain shipping methods, but how can I set it up to ship from two different locations? As far as I know, I can only set one zip code in the store configuration. I'm sure there must be a mod that is something along these lines, but I haven't been able to find it. I really don't want to set up two different shops, I'd like all orders to be filed into the correct categories.

Thanks!

Auto
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
  #2  
Old 05-18-2007, 10:42 AM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Location: Manitoba, Canada
Posts: 1,808
Thanks: 5
Thanked 105 Times in 91 Posts
Rep Power: 12
jpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to all
Default Re: Shipping from 2 facilities - Canada and US

Sorry - no "OUT OF THE BOX" solution here. You have to modify the shipping methods. Suggest to look in shipping modules and put an IF statement around (for UPS):
PHP Code:
... 
      
$country_name tep_get_countries(SHIPPING_ORIGIN_COUNTRYtrue);
      
$this->_upsOrigin(SHIPPING_ORIGIN_ZIP$country_name['countries_iso_code_2']);
      
$this->_upsDest($order->delivery['postcode'], $order->delivery['country']['iso_code_2']); 
Do (sudo code - replace CANADIAN ID and CANADIAN SHIPPING FROM POSTAL CODE with proper info)
PHP Code:
 if ($order->delivery['country']['id'] = CANADIAN ID) {
      
$country_name CANADIAN ID;
      
$this->_upsOrigin(CANADIAN SHIPPING FROM POSTAL CODE$country_name['countries_iso_code_2']);
      
$this->_upsDest($order->delivery['postcode'], $order->delivery['country']['iso_code_2']);
} else {
      
$country_name tep_get_countries(SHIPPING_ORIGIN_COUNTRYtrue);
      
$this->_upsOrigin(SHIPPING_ORIGIN_ZIP$country_name['countries_iso_code_2']);
      
$this->_upsDest($order->delivery['postcode'], $order->delivery['country']['iso_code_2']);

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to jpf For This Useful Post:
Autoegocrat (05-18-2007)
  #3  
Old 05-21-2007, 09:31 AM
Member
 
Join Date: Feb 2007
Posts: 31
Thanks: 2
Thanked 2 Times in 2 Posts
Rep Power: 0
Autoegocrat is on a distinguished road
Default Re: Shipping from 2 facilities - Canada and US

Hmm...not sure I want to mess with that. I'm not exactly a php pro, but I can hack my way through most things pretty well. I guess the best alternative would be to create two stores under the same domain ie Buystuff - Canada and Buystuff - USA?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 05-21-2007, 11:01 AM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Location: Manitoba, Canada
Posts: 1,808
Thanks: 5
Thanked 105 Times in 91 Posts
Rep Power: 12
jpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to all
Default Re: Shipping from 2 facilities - Canada and US

I have seen companies have done that. IE US store will not ship to Canada and Canada store will not Ship to US. Each sub-site has a "country" Selector or Link to the other store.

IE: www.mysite.com/canada/index.php
IE: www.mysite.com/us/index.php

Note you will have to install 2 databases and use 2 admin interfaces then.

Good Luck
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 05-21-2007, 11:08 AM
Member
 
Join Date: Feb 2007
Posts: 31
Thanks: 2
Thanked 2 Times in 2 Posts
Rep Power: 0
Autoegocrat is on a distinguished road
Default Re: Shipping from 2 facilities - Canada and US

Yeah, it will only be a pain for me if I have to administrate both sites. I'll do the setup, but I think I will get someone in Canada to maintain the non-us store. I was looking at the multi-store mod, but it doesn't suit my needs...yet. I guess I'll remain hopeful and optimistic that someone will eventually come out with a mod to this effect. I think I may just hike up my phpants and learn more about creating scripts. If I do, I will add any mods I make to the OSCMax contribution database.

Thanks for all your help!

Auto
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6  
Old 05-21-2007, 11:35 AM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Location: Manitoba, Canada
Posts: 1,808
Thanks: 5
Thanked 105 Times in 91 Posts
Rep Power: 12
jpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to all
Default Re: Shipping from 2 facilities - Canada and US

Mutli store is just that. It not really a Multi location mod. (and shopping carts with this mode can't move across sites anyway).

Your best option is hire a php guy (who specialize in osc) for a few hours. They may give you a MUCH slicker solution. Chances are much of the (re-)coding is pointed out above. After all you saves so much money on the core software already.

But also consider installing 2 sites with 2 databases and updating both and checking both may have a bit of extra cost involved. HOWEVER with cost that can vary allot between US and Canada - you profit margin might be harder to manage under one store/database. Things may cost much more or less in one country than the other. IE: Canada has much more strict regulations on ELECTRICAL certifications than US. Thus some imported products can't be landed in the US (under US regulations only) and then shipped to Canada (they are shipped direct to Canada - normally at lower volume than the US). As well Canadian made products (Like ATI graphic cards) have extra shipping/clearing cost to a US distributor to be able to sell in the US - doing a price conversion (under a single database/price) would cause a bit higher sell price under Canada dollar. Not to mention the HIGHLY fluctuating exchange rates. Canada dollar is also at a 30 year high (very close to the US dollar). Making many Canadian looking to purchase US price goods and for the people (and companies) in the US spend less for stuff in Canadian Funds.

As Well to consider that under one database and trying to keep exchange in check - price in one country would never "look nice" (ie 249.95 - but would be 250.24 one day and 249.83 the next etc....)

This is not a small problem. There is lots of PROS and CONS to consider.

Good Luck!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Export shipping info to Canada Post and UPS michael_s New osCommerce Contributions 0 03-19-2007 10:00 PM
Canada Post Shipping Module with dimensions michael_s New osCommerce Contributions 0 03-19-2007 01:53 AM
Hello from Vancouver, BC, Canada ginop Introduce yourself! 1 01-17-2007 10:49 AM
canada post shipping module with dimensions dcc osCMax v2 Customization/Mods 0 11-17-2005 08:13 AM
UPS and Canada on MSI badjuju1 osCommerce 2.2 Modification Help 0 04-08-2003 02:12 PM


All times are GMT -8. The time now is 02:33 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax