Welcome to the MetaMod and Chameleon Support Forums.

Before posting, please check out the FAQs.


chrisjungle
Beginner Modder
ranks
useravatar
User Info

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


Administrator has disabled public posting
metamodguy
useravatar
User Info

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

Administrator has disabled public posting

Board Info

Board Stats:   Total Users: 3074  Total Topics: 1195  Total Polls: 7  Total Posts: 4448  Posts this week: 19
User Info:   Newest User :  toutlu   Members Online: 1   Guests Online: 82
Online 
toutlu
Topic
New
Locked
Topic
New
Locked
Sticky
Active
New/Active
Sticky
Active
New/Active
New/Closed
New Sticky
Closed/Active
New/Locked
New Sticky
Locked/Active
Active/Sticky
Sticky/Locked
Sticky Active Locked
Active/Sticky
Sticky/Locked
Sticky/Active/Locked