Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

multiple shipping methods tables problem


nhwi

Recommended Posts

Posted

OSC v.2.2

 

I required to have different table rates for 2 different zones as well as 2 different rates.

 

- i duplicated the catalog/includes/modules/shipping/table.php file, renamed it ../table_express.php and updated all necessary "MODULE_SHIPPING_TABLE_" to "MODULE_SHIPPING_TABLE_EXPRESS"

- then i did the same with the catalog/includes/languages/english/modules/shipping/table.php file

 

this worked all very well. so i decided to add 2 more international tables. i did the exact same procedure and assigned the correct zones to it and all the jazz.

 

this all works very well until i register as a international customer on my store. when i do that, i get the 2 international shipping options displayed (express and ground) but when i select either of then and click on continue, it just kicks me back to the same page.

 

i checked the sessions and get these two different entries.

first is the correct for national shipping:

cart|O:12:"shoppingCart":5:{s:8:"contents";a:1:{i:1;a:1:{s:3:"qty";s:1:"1";}}s:5:"total";d:25;s:6:"weight";d:0.0899999999999999966693309261245303787291049957275390625;s:6:"cartID";N;s:12:"content_type";s:8:"physical";}language|s:7:"english";languages_id|s:1:"1";currency|s:3:"USD";navigation|O:17:"navigationHistory":2:{s:4:"path";a:2:{i:0;a:4:{s:4:"page";s:21:"checkout_shipping.php";s:4:"mode";s:3:"SSL";s:3:"get";a:1:{s:6:"osCsid";s:32:"210c3363a590c703de6958c7d6aa47c4";}s:4:"post";a:5:{s:6:"action";s:7:"process";s:8:"shipping";s:27:"table_express_table_express";s:8:"comments";s:13:"comments here";s:1:"x";s:2:"19";s:1:"y";s:1:"6";}}i:1;a:4:{s:4:"page";s:20:"checkout_payment.php";s:4:"mode";s:3:"SSL";s:3:"get";a:1:{s:6:"osCsid";s:32:"210c3363a590c703de6958c7d6aa47c4";}s:4:"post";a:0:{}}}s:8:"snapshot";a:0:{}}customer_id|s:1:"1";customer_default_address_id|i:4;customer_first_name|s:3:"joe";customer_country_id|N;customer_zone_id|s:1:"0";sendto|s:1:"2";cartID|N;comments|s:13:"comments here";billto|s:1:"4";shipping|a:3:{s:2:"id";s:27:"table_express_table_express";s:5:"title";s:51:"Canada / USA Rate (Ground Mail (3-4 Business Days))";s:4:"cost";d:2;}

 

then i get this one for the international shipping.

cart|O:12:"shoppingCart":5:{s:8:"contents";a:1:{i:1;a:1:{s:3:"qty";s:1:"1";}}s:5:"total";d:25;s:6:"weight";d:0.0899999999999999966693309261245303787291049957275390625;s:6:"cartID";N;s:12:"content_type";s:8:"physical";}language|s:7:"english";languages_id|s:1:"1";currency|s:3:"USD";navigation|O:17:"navigationHistory":2:{s:4:"path";a:1:{i:0;a:4:{s:4:"page";s:21:"checkout_shipping.php";s:4:"mode";s:3:"SSL";s:3:"get";a:1:{s:6:"osCsid";s:32:"210c3363a590c703de6958c7d6aa47c4";}s:4:"post";a:5:{s:6:"action";s:7:"process";s:8:"shipping";s:29:"table_internat_table_internat";s:8:"comments";s:13:"comments here";s:1:"x";s:2:"18";s:1:"y";s:1:"1";}}}s:8:"snapshot";a:0:{}}customer_id|s:1:"1";customer_default_address_id|i:4;customer_first_name|s:3:"joe";customer_country_id|N;customer_zone_id|s:1:"0";sendto|s:1:"4";cartID|N;comments|s:13:"comments here";billto|s:1:"4";shipping|s:29:"table_internat_table_internat";

 

all i have done is changed the shipping address.

as you can see the session stops after the selection of the international table rate.

 

the funny thing is that the duplicated table works for the national express selection. just not the international selections

 

any help or suggestions are very appreciated.

Archived

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

×
×
  • Create New...