Thank I will give it a try. What might you suggest for a new constant name? something like flat_1d or what do you think is safe?
Thanks
Is the laguage file in the sub-folder called shipping under languages/mudules?
Thank I will give it a try. What might you suggest for a new constant name? something like flat_1d or what do you think is safe?
Thanks
Is the laguage file in the sub-folder called shipping under languages/mudules?
Something NOT related to other items the cart does (things like FREE, SHIP, etc.. ) are not good ideas.
Maybe name your CONSTANTS something like
Ups Ground = "MODULE_SHIPPING_PROMOGROUND_[The rest of the constant here]"
UPS 2 Day = "MODULE_SHIPPING_PROM2ODAY_[The rest of the constant here]"
UPS Overnight = ""MODULE_SHIPPING_PROMOOVERNIGHT_[The rest of the constant here]"
You'll need to create 3 new cloned module for this (and include the language file for each as well)
The language files for shipping are found under
/includes/languages/english/modules/shipping/[THE NAME OF THE SHIPPING MOD HERE].php
Eric
20 Ways to Increase Sales Using Zen Cart
Zen Cart contribs: Simple Google Analytics, Export Shipping Information
I have created clones off the flat rate files myself.
The code file located in:
/includes/modules/shipping/flat.php
The language file located in:
/includes/languages/english/modules/shipping/flat.php
And made them flat, flatasia and flatworld. All seems to work great in the cart and they say (title & description) what they need too. But in the shipping module in admin they display as:
MODULE_SHIPPING_FLATASIA_TEXT_TITLE
MODULE_SHIPPING_FLATASIA_TEXT_DESCRIPTION
Can someone let me know if this can be fixed.
Scott
Eric
20 Ways to Increase Sales Using Zen Cart
Zen Cart contribs: Simple Google Analytics, Export Shipping Information
Eric, Thanks for the quick reply.
When I added details to /includes/languages/english/modules/CUSTOM/shipping/flat.php it showed the new values in Admin/Modules/Shipping (eg. Padded Post Bag - Australia) However it has not done the same for flatasia.php and flatworld.php. I am not to sure what other details to add and where to add them without screwing around with the code. Do I add the actual constants definitions to the includes/modules/CUSTOM/shipping/flatasia.php page instead of /includes/languages/english/modules/shipping/CUSTOM/flatasia.php
Regards, Scott
Each new cloned shipping module needs to have its own unique language file. As well, you will need to make sure you define (and alter the constant accordingly) to the new "terminology" you want to use.
Basically, do the exact same thing you did for the first module (which you said worked), and duplicate that for the remaining two. It should do the trick. Make sure you are careful in naming and using the proper constants associated with each new mod you created.
Eric
20 Ways to Increase Sales Using Zen Cart
Zen Cart contribs: Simple Google Analytics, Export Shipping Information
Could you show a more specific example with code changed in one 'flatasia.php' file or similar as an example?
Changed everything including the function names but it still conflicts with the original flat.php and kicks errors when you '+Install'
Do you need to change the configuration install strings as well (beyond the variable names?)
I have been reading the different messages regarding cloning the shipping files. I have tried cloning, and I would see the clone in the admin of zen-cart, but when I pass the cart to Google Checkout V1.4.5, I would only see one option for flat rates instead of multiple.
Google Checkout permits Multiple Carrier Calculated Shipping, but will it allow me to do multiple flat rate shipping?