Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.


joshspies

Recommended Posts

Hi all,

 

When I attempt to test-order a product to test if the shipping functions correctly, I get this error http://puu.sh/g7I9C/c033a63f30.png

 

However, I have set 'UK Mainland' as a zone http://puu.sh/g7Ibp/e622de9df8.png and have configured shipping specifically just for the 'UK Mainland' option as shown here http://puu.sh/g7IcS/8c0a62ffeb.png

 

Why does this not work?

 

Thanks,

Josh

Link to comment
Share on other sites

Did you add that UK Mainland Country to the Tax Zones?

 

Under Locations/Tax Zones create a folder named UK Mainland and click on the details button on the right.

Then add the UK Mainland country and choose All Zones.

 

Then try it again....

Link to comment
Share on other sites

Did you add that UK Mainland Country to the Tax Zones?

 

Under Locations/Tax Zones create a folder named UK Mainland and click on the details button on the right.

Then add the UK Mainland country and choose All Zones.

 

Then try it again....

 

Hi Tsimi,

 

Yes I have tried this. I'll add screenshots below...

 

- I've set UK Mainland as a Country (I know it isn't a country, however my client only ships to regions within the UK http://puu.sh/g7KWY/d544affb89.png

 

- I've set UK Mainland as a Tax Zone http://puu.sh/g7L5Q/5db0d4551d.png

 

- And I've sert UK Mainland as a Zone http://puu.sh/g7L6I/7e533ea704.png

 

Thanks,

Josh

Link to comment
Share on other sites

There is your problem...2nd picture. You added a "folder" but with nothing inside it. It says "Number of Zones: 0"

That is a common mistake made by many people. Adding a new folder but not putting any country inside it.

Select that folder and click on the details button on the right side. What do you have inside it?

Link to comment
Share on other sites

Ah, absolutely nothing! By that logic, I need to insert something inside of that folder! Ah...

 

So I have done that, inside of the 'UK Mainland' folder, I made a 'UK Mainland' zone. Is that correct? http://puu.sh/g7VUg/4ce448a1bd.png and inside the folder http://puu.sh/g7VVn/ca2752813d.png

 

If it IS correct, which for some odd reason I don't feel is, the error still occurs http://puu.sh/g7VwM/7ab57c74e8.png

 

Thanks,

Josh

Link to comment
Share on other sites

Here is my attempt

 

countries

http://i61.tinypic.com/sfi4px.jpg

zones

http://i57.tinypic.com/27yx449.jpg

tax classes

http://i61.tinypic.com/157p092.jpg

tax rates

http://i57.tinypic.com/negr3n.jpg

tax zones

http://i62.tinypic.com/25jxy77.jpg

shipping (flat rate)

http://i57.tinypic.com/npjkb6.jpg

checkout_shipping

http://i62.tinypic.com/4n674.jpg

 

As you can see it works just fine. For me at least :P

I used the flat rate shipping module that comes with osC.

I am not so familiar with addresses in the UK but when i created an account it asked me to select a state from the drop down.

And i had only 1 choice which was UK Mainland. So my address shows GBR UK Mainland. UK Mainland as state and UK Mainland as country. (which is stupid if you ask me)

But in your picture i see Tamworth is this a zone? If yes is that Zone added inside the UK Mainland folder inside the Tax Zones?

If you have only UK Mainland as Tax Zone but you checkout with Tamworth then shipping won't show, i think...just theory so far.

Link to comment
Share on other sites

So I deleted everything and started from scratch, in terms of the countries and zones that I had defined. I also deleted the UK Mainland shipping option, and copied in the original flat.php file that is used for a flat rate shipping option.

 

However, upon doing this, I get an error whenever I try and edit the flat rate module in the admin http://puu.sh/gaL1z/71d417cac8.png

 

Or, if you cannot view the screenshot, I get this error:

Warning: include(C:/xampp/htdocs/oscommerce/oscommerce-2.3.4/catalog/includes/languages/english/modules/shipping/flat.php): failed to open stream: No such file or directory in C:\xampp\htdocs\oscommerce\oscommerce-2.3.4\catalog\admin\modules.php on line 141

Warning: include(): Failed opening 'C:/xampp/htdocs/oscommerce/oscommerce-2.3.4/catalog/includes/languages/english/modules/shipping/flat.php' for inclusion (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\oscommerce\oscommerce-2.3.4\catalog\admin\modules.php on line 141

 

I assume this is the main reason why it didn't work when I tried it with all of your settings applied.

Link to comment
Share on other sites

the error message means that you are missing the language file for the flat rate shipping.

Every shipping module has it's own language file.

 

the module itself is inside catalog/includes/modules/shipping/

the language file should be inside catalog/languages/english/modules/shipping/

Link to comment
Share on other sites

2nd attempt, this time on a normal osC 2.3.4 again with flat rate shipping module but this time I didn't add any Zones (see 2nd image) but added all zones to the UK Mainland Tax Zone and again it works just fine....

 

http://i62.tinypic.com/j5kwef.jpg

http://i57.tinypic.com/esvosi.jpg

http://i57.tinypic.com/2i1f9l1.jpg

http://i57.tinypic.com/xfrevo.jpg

Link to comment
Share on other sites

Ok, so I went through and changed the flat.php file to ukmainland.php. I then went into the two files located at:

catalog/includes/modules/shipping/

catalog/languages/english/modules/shipping/

And changed all mentions of 'flat' or 'FLAT' to 'ukmainland' and 'UKMAINLAND'.

 

I went into the shipping configuration and added the module: http://puu.sh/gaWET/081400660a.png

 

I really, really do not understand what is going wrong. I seem to have followed all of your steps, and still it does not work. I have replicated to the point what I have seen in your screenshots and it does not work for me...

Link to comment
Share on other sites

Ok, so I got around this by deleting everything in the following directories:

 

catalog\includes\modules\shipping

catalog\includes\languages\english\modules\shipping

 

And replacing them with the default files. By doing so, you revert the shipping back to how it was when you first installed osCommerce.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...