chrometweaks.org

Am I about to buy the right website package from iPage?

Click Here To View All Answers...


Got a question... Am I about to buy the right website package from iPage? Looking forward for any answer or 2. Another question on my mind: Hi guys,.

I'm planning to use multiple duplicates of the zones.php shipping file because I'm using the zones system, but will be offering various options like surface mail, registered air mail, EMS and the likes..

Aside from creating new zones.php files (renamed differently of course) and putting them under the modules/shipping folder for both the catalog and the catalog language folder, what else must I do?..

Comments (106)

Good question... I dunno what is the answer to your question. I'll do some Googling and get back to you if I bump into an decent answer. You should email the people at iPage as they probably can help you..

Comment #1

Can't you just use USPSMethods Contribution?.

It includes all the Int'l mailing options....

Comment #2

Well I posted this a couple of topics below - the USPS international module is currently not functioning properly on my install. It comes back with "ERROR" whenever you try to check out. It's worked fine for the past year and a half and suddenly started screwing up - I haven't touched the code on my iPage site since we launched, so I'm guessing the USPS is doing something different..

Paul..

Comment #3

So... does anyone have any idea if multiple zones.php will work?..

Comment #4

Hi,.

Yes, you can have multiple zone files, but you will need to rename the constants throughout..

For instance, wherever you find things like:.

MODULE_SHIPPING_ZONES_TEXT_TITLE.

MODULE_SHIPPING_ZONES_TEXT_DESCRIPTION.

MODULE_SHIPPING_ZONES_SORT_ORDER.

MODULE_SHIPPING_ZONES_TAX_CLASS.

Etc, you would need to give them new names such as:.

MODULE_SHIPPING_ZONES2_TEXT_TITLE.

MODULE_SHIPPING_ZONES2_TEXT_DESCRIPTION.

MODULE_SHIPPING_ZONES2_SORT_ORDER.

MODULE_SHIPPING_ZONES2_TAX_CLASS.

This is so that separate entries are held in the database for the 2 different zone arrangements..

Note, you have to make these changes in both the file in /catalog/includes/modules/shipping/ and the one in /catalog/includes/languages/english/modules/shipping.

HTH,..

Comment #5

Paulrus,.

Have you contacted the USPS. They have made some changes and they will be happy to help.. They are familiar with OSCommerce. What OSC version are you running? The USPS Methods for MS! & MS2 version runs great. One question, have you recently added any new contributions?.

I have USPSMethods running on a test sight and when I load MasterProducts I lost functions from the general.php in both catalog and admin and the same for both modules.php. Now, I log each file that has been changed when contributions are added. Then when I want to load a new contribution for testing I run a text comparison program on any files that are going to change in the new contribution against the same existing file I already have running. It sure eliminates a lot of problems later. My USPSMethods I added several lines of code to include, in the costs presented to the customer, preset standards for insurance, registered, delivery confirmation, delivery receipt, signature confirmation. Right now the $$$ levels are hard coded but I am working on making it configurable from admin, i.e.

I had to fly by the seat of my pants on this one, other than insurance there just aren't any other contributions that fit..

If I can be of help please let me know..

This post has been edited by.

Bloodshoteyes.

: 31 January 2004, 02:11..

Comment #6

Thanks. I haven't actually touched any of the code in well over a year. I'm running OSC 2.2 CVS June 2002 release. Because we did a lot of customization for the Japanese market we've never been able to update it beyond what we're running..

I went with zones for now - basically there is only 1 zone and that is Japan. I'll probably add multiple zones, but I don't know if I'll add multiple versions to compensate for various shipping options. I'll probably just leave it with airmail for under 4 pounds and parcel post for everything over that..

Thanks.

Paul..

Comment #7

HYE GUYS.

I try do do exactaly as you said .Duplicate zone.php , rename zone2.php ,change in adim/modeles/language and in calatog/includes/modules/shipping/ I change all reference in zone2.php to zone2 whereeer it was but .em I log in modules this show up.

Warning: main(/home/hammocks/public_html/catalog/includes/languages/english/modules/shipping/zone2.php): failed to open stream: No such file or directory in /home/hammocks/public_html/catalog/admin/modules.php on line 128.

Warning: main(): Failed opening '/home/hammocks/public_html/catalog/includes/languages/english/modules/shipping/zone2.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hammocks/public_html/catalog/admin/modules.php on line 128.

Fatal error: Cannot redeclare class zones in /home/hammocks/public_html/catalog/includes/modules/shipping/zones.php on line 97.

What I missed ? .

Thansk for any help.

Cass..

Comment #8

Hi Cass,.

It sounds like mainly you missed the language files and also something else, which I will cover in due course..

First of all, make copies of the /catalog/includes/languages/english/modules/shipping/zones.php and call it zones2.php (in the same folder obviously). Then change add the 2's as required inside the file, like before..

The last error message you quote there is something different. I think you need to revisit your /catalog/modules/shipping/zones.php file. You should have changed the name of the class itself from zones to zones2 but I suspect this is not the case..

HTH,..

Comment #9

And I also change in language/.

<?php.

/*.

$Id: zones.php,v 1.3 2002/11/19 01:48:08 dgw_ Exp $.

OsCommerce, Open Source E-Commerce Solutions.

Http://www.oscommerce.com.

Copyright © 2002 osCommerce.

Released under the GNU General Public License.

*/.

Define('MODULE_SHIPPING_ZONES2_TEXT_TITLE', 'EMS MAIL 3-5 DAYS');.

Define('MODULE_SHIPPING_ZONES2_TEXT_DESCRIPTION', 'Zone Based Rates');.

Define('MODULE_SHIPPING_ZONES2_TEXT_WAY', 'Shipping to');.

Define('MODULE_SHIPPING_ZONES2_TEXT_UNITS', 'lb(s)');.

Define('MODULE_SHIPPING_ZONES2_INVALID_ZONE', 'No shipping available to the selected country');.

Define('MODULE_SHIPPING_ZONES2_UNDEFINED_RATE', 'The shipping rate cannot be determined at this time');.

?>..

Comment #10

I was wondering if ,prior upload those new files you suppose to have zone rate uninstalled ..

Because I doing with a zone rate installed already ..

Might be this?.

Thanks mark..

Comment #11

Hye guys ,we almost there ...

What I did ...was.

Delete from the server and see that it back to the normal.

Well ..I check all changes and all was perfect ..

So I start to try new things.

I did unistall the zone rate moduleI upload the files and it doesn't show the first erroOnly the class error show up ..

Well , I find the erro ... I rename files zone2.php NOT ZONES2.PHP ... dummyy.

I get back to zones2.php and change the class to zones2 too to see if I can fix the second erro ..

It work......I was quit happy when show one new file.

I can add name in the language/english/ I did but it wont change ..I change in the zones.php and it workSo I find some is wrong.

Final teste ( install ) first zone rates installed ....Second zone rate ( with no name blank ) it wont install ,It goes back to same install file.

Now the question is ... What happen now ? It suppose to rename and install ...where is my mistake ?????/ thanks .....

Comment #12

Guys ,,,I put some sublime music and start to figure what might be wrong.

Well class ????/ lets try :.

// class constructor.

Function zones2() {.

$this->code = 'zones2';.

$this->title = MODULE_SHIPPING_ZONES2_TEXT_TITLE;.

$this->description = MODULE_SHIPPING_ZONES2_TEXT_DESCRIPTION;.

$this->sort_order = MODULE_SHIPPING_ZONES2_SORT_ORDER;.

$this->icon = '';.

$this->tax_class = MODULE_SHIPPING_ZONES2_TAX_CLASS;.

$this->enabled = ((MODULE_SHIPPING_ZONES2_STATUS == 'false') ? true : false);..

Comment #13

Dont forget to add 2 to the class on top too.

Class zones2 {.

Var $code, $title, $description, $enabled, $num_zones;.

// class constructor.

Function zones2() {.

$this->code = 'zones2';.

$this->title = MODULE_SHIPPING_ZONES2_TEXT_TITLE;.

$this->description = MODULE_SHIPPING_ZONES2_TEXT_DESCRIPTION;.

$this->sort_order = MODULE_SHIPPING_ZONES2_SORT_ORDER;.

$this->icon = '';.

$this->tax_class = MODULE_SHIPPING_ZONES2_TAX_CLASS;.

$this->enabled = ((MODULE_SHIPPING_ZONES2_STATUS == 'false') ? true : false);..

Comment #14

Guys.

Everything looks perfect.

I have shipping module without error message ,and two zones modules installed.

Regular shipping.

EMS shipping.

Perfect until I procide to check outI set my adress to US ..

I set both shipping modules to US ..

Problem :.

Upon check out ,only ONE ( the zones.php ) shows up ....

The Second ( zones2.php ) is not been add to be a choice upon check out.

What I missing >?? SHould I change anything in check_out_shipping.php ? .

Thanks for any tip.

Cass.

PS : I will post the whole process after conclude ,to help others..

Comment #15

I have a similar Problem and maybee someone can help:.

I dublicated the zones.php and renamed to zones_ups.php. I defined the countries and shipping cocts and it also shows on the certain plaace where the customer can choose the shipping..

BUT.

When he comes to the last page of the ordering process and he had chosen the dublicated zones module the shipping module is set back to the original zones.php module and it's costs..

Can somepn explain ths= I renamed all zones into zones_ups in the zones_ups file, also the class and code and texts and so on. Also created the language files. AND I HAVE NO ERRORS; BUT IT DOESN'T WORK.

Please help me..

Comment #16

Maybe you still need to install the new zones2 module from the admin shipping modules section?..

Comment #17

Hi guys,.

I'm planning to use multiple duplicates of the zones.php shipping file because I'm using the zones system, but will be offering various options like surface mail, registered air mail, EMS and the likes..

Aside from creating new zones.php files (renamed differently of course) and putting them under the modules/shipping folder for both the catalog and the catalog language folder, what else must I do?..

Comment #18

I hate to add a "me too" post - but since I'm having problems with the USPS International module I need to create some zones ASAP to fix the problem..

We only ship to Japan, but I need to set up the option of Airmail, Economy Mail, EMS, and Parcel Post..

Thanks for any replies..

Paul..

Comment #19


This question was taken from a support group/message board and re-posted here so others can learn from it.