| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
XCart 5 - Enable/Disable Shipping & Payment Methods Based On Country Selected | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
XCart 5 - Enable/Disable Shipping & Payment Methods Based On Country Selected
I want to decide at run time during country selection, to show only my shipping method for limited countries and disable rest of the shipping methods, even if they are suppose to be shown for countries conflicting with my plugin.
E.g. My plugin is enabled for USA, GBR. Then in that case only my shipping and payment methods should be shown for those countries and rest of all the shipping and payment methods should be disabled. Please let me know how to go about it
__________________
Regards, Aneel Sarwar X-Cart version: 5.2.10 Windows: 7 Modules: Free version modules |
|||||||||
#2
|
|||||||||
|
|||||||||
Re: XCart 5 - Enable/Disable Shipping & Payment Methods Based On Country Selected
Without testing, just taking a glance at the code, it looks like the template is default/en/shipping_list.tpl
In that template I see {foreach:getRates(),rate} I believe I see this getRates() method defined in XLite\View\ShippingList.php There may be a more elegant solution, but my starting point would be to attempt to expand the logic of this getRates() method. Right now it is a simple return, we could start modifying it like this (psuedocode warning): Code:
Again, this is just a quick look, not sure if these files or methods are even related to your task! -Mike
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey XcartGuru X-cart Tutorials | X-cart 5 Tutorials Check out the responsive template for X-cart. |
|||||||||
|
|||
X-Cart forums © 2001-2020
|