Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod
- » MetaMod General Support
- » Virtuemart shipping
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
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
- Index
- » MetaMod
- » MetaMod General Support
- » Virtuemart shipping
Board Info
- Board Stats:
- Total Topics:
- 1699
- Total Polls:
- 6
- Total Posts:
- 5967
- Total Posts Today:
- 2
- User Info:
- Total Users:
- 8025
- Newest User:
- chavez1304
- Members Online:
- 1
- Guests Online:
- 116
- Online:
- chavez1304
Forum Legend:
Topic
New
Locked
Sticky
Active
New/Active
New/Locked
New Sticky
Locked/Active
Active/Sticky
Sticky/Locked
Sticky/Active/Locked