Welcome to the MetaMod and Chameleon Support Forums.

Before posting, please check out the FAQs.

helpme

 

Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.

 

Virtuemart shipping

Virtuemart shipping

Hello,
I am trying to have different shipping options within Virtuemart for Canadian user versus US users.  We have shipping centers in the US and Canada so I would like to make one UPS virtuemart shipping module available to US and the other(copied version with different ship from) available to Canada.  I'd like to wrap an if around the two files like if($fromCountryID =="US")...
Am I on the right track, can you complete my statement?
Thanks,
Chris
Our Specs-
Joomla 1.5.22
Virtuemart 1.1.6
Metamod 2.3

chrisjungle
Beginner Modder
ranks
useravatar
Offline
1 Posts
Administrator has disabled public posting

Re: Virtuemart shipping

Hi Chris,

if it's honestly just a matter of which of 2 modules are displayed, then this will be easy to do in MetaMod.

if ( $fromCountryId == "US" ) return XXX;
if ( $fromCountryId == "CA" ) return YYY;
return ZZZ; // this line is optional


Then replace XXX with the module id of the shipping module for the US, and YYY for the shipping module for Canada. If you want to display a different module for people who are from the rest of the world, then include the 3rd line with a module id to display (replace ZZZ with the module id).

Hope that helps,
Stephen

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3319 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1675
Total Polls:
6
Total Posts:
5917
Posts this week:
6
User Info:
 
Total Users:
11571
Newest User:
craig6111
Members Online:
2
Guests Online:
232


Forum Legend:

 Topic
 New
 Locked
 Sticky
 Active
 New/Active
 New/Locked
 New Sticky
 Locked/Active
 Active/Sticky
 Sticky/Locked
 Sticky/Active/Locked