tuxer Posted October 12, 2002 Posted October 12, 2002 I got the shipping module to work but only under certain circumstances. If you are logged out(and you already have an account) when you click on a item to purchase it prompts you to enter in your password, then you proceed to the checkout page where it gives you the option of selecting which shipping method you want. If you are already logged into your user name before clicking on checkout it display all the shipping options but does not give you the option of selecting which one. http://www.tuxcomputers.com/catalog/default.php And don't worry I know it's pretty lame, it's not even close to being ready for prime time yet.
Guest Posted October 12, 2002 Posted October 12, 2002 Hi Could you please show how you fix the problem cause i will install it soon ! Regard's
tuxer Posted October 12, 2002 Author Posted October 12, 2002 Donwload the module and follow the steps in the readme file. After that do this: Here's a quick fix: in catalog/modules/shipping/cadanapost.php, from line 127 to 135: Quote: if (tep_count_shipping_modules() > 1) { $display_string .= tep_draw_radio_field('shipping_selected', 'canadapost_' . (string)$i) . tep_draw_hidden_field('shipping_canadapost_cost_' . (string)$i, $shipping_canadapost_products[$i][rate]) . tep_draw_hidden_field('shipping_canadapost_method_' . (string)$i, $shipping_canadapost_products[$i][name]) . '</td>' . "n"; } else { $display_string .= tep_draw_hidden_field('shipping_selected', 'canadapost_' . (string)$i) . tep_draw_hidden_field('shipping_canadapost_cost_' . (string)$i, $shipping_canadapost_products[$i][rate]) . tep_draw_hidden_field('shipping_canadapost_method_' . (string)$i, $shipping_canadapost_products[$i][name]) . '</td>' . "n"; } Change it to (Keep 3 lines (128-130) and delete others): Quote: $display_string .= tep_draw_radio_field('shipping_selected', 'canadapost_' . (string)$i) . tep_draw_hidden_field('shipping_canadapost_cost_' . (string)$i, $shipping_canadapost_products[$i][rate]) . tep_draw_hidden_field('shipping_canadapost_method_' . (string)$i, $shipping_canadapost_products[$i][name]) . '</td>' . "n"; The credit goes to bd4rr. He's the one that explained it to me step by step. Here is the threadhttp://www.oscommerce.com/forums/viewtopic.php...er=asc&start=10
Recommended Posts
Archived
This topic is now archived and is closed to further replies.