joshspies Posted February 22, 2015 Posted February 22, 2015 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
♥Tsimi Posted February 22, 2015 Posted February 22, 2015 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....
joshspies Posted February 22, 2015 Author Posted February 22, 2015 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
♥Tsimi Posted February 22, 2015 Posted February 22, 2015 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?
joshspies Posted February 22, 2015 Author Posted February 22, 2015 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
♥Tsimi Posted February 24, 2015 Posted February 24, 2015 Here is my attempt countrieshttp://i61.tinypic.com/sfi4px.jpgzoneshttp://i57.tinypic.com/27yx449.jpgtax classeshttp://i61.tinypic.com/157p092.jpgtax rateshttp://i57.tinypic.com/negr3n.jpgtax zoneshttp://i62.tinypic.com/25jxy77.jpgshipping (flat rate)http://i57.tinypic.com/npjkb6.jpgcheckout_shippinghttp://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.
joshspies Posted February 24, 2015 Author Posted February 24, 2015 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 141Warning: 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.
joshspies Posted February 24, 2015 Author Posted February 24, 2015 Ok, I got around this by deleting the flat.php and using the Multiple Flate Rates addon, However, it still does not work! GRR! http://puu.sh/gaLYS/5f71b4a804.png
♥Tsimi Posted February 24, 2015 Posted February 24, 2015 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/
♥Tsimi Posted February 24, 2015 Posted February 24, 2015 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.jpghttp://i57.tinypic.com/esvosi.jpghttp://i57.tinypic.com/2i1f9l1.jpghttp://i57.tinypic.com/xfrevo.jpg
joshspies Posted February 24, 2015 Author Posted February 24, 2015 What is it that I'm doing wrong then? I really do not understand...
joshspies Posted February 24, 2015 Author Posted February 24, 2015 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...
joshspies Posted March 1, 2015 Author Posted March 1, 2015 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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.