celshader Posted March 3, 2008 Posted March 3, 2008 I got this one half solved so I need a little help. I would like to remove the checkout_shipping.php from the checkout process. I have set only 1 'flat rate' option for shipping on my cart so that there are no options to choose from on the shipping page. That is why I would like to skip it but still have it appear on the 'confirmation page' and 'order process' email and be calculated in the grand total. The following code is in the checkout_shipping.php page. if ($order->content_type == 'virtual') { if (!tep_session_is_registered('shipping')) tep_session_register('shipping'); $shipping = false $sendto = false tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL')); } This code is normally used to skip the shipping page if you have virtual goods for people to download. I can change it to skip the shipping page and go to checkout_payment.php by removing the condition for virtual content like so. if (!tep_session_is_registered('shipping')) tep_session_register('shipping'); $shipping = false $sendto = false tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL')); This works fine. It skips the checkout_shipping.php page. However no shipping then appears on the confirmation page and no shipping cost is calculated in the final total. I am assuming I need to change the $shipping and $sendto variables from 'false' to another value. I have tried. $shipping = 'flat_flat'; $sendto = $customer_default_address_id; but with limited effect. Shipping does appears in the confirmation page but it is simply called 'f' and adds 0.00 to the total. I do feel however that I am not far off. This will be a good one to answer as I imagine it is a common thing Oscommerce developers would like to do.
celshader Posted March 3, 2008 Author Posted March 3, 2008 I got this one half solved so I need a little help. I would like to remove the checkout_shipping.php from the checkout process. I have set only 1 'flat rate' option for shipping on my cart so that there are no options to choose from on the shipping page. That is why I would like to skip it but still have it appear on the 'confirmation page' and 'order process' email and be calculated in the grand total. The following code is in the checkout_shipping.php page. if ($order->content_type == 'virtual') { if (!tep_session_is_registered('shipping')) tep_session_register('shipping'); $shipping = false $sendto = false tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL')); } This code is normally used to skip the shipping page if you have virtual goods for people to download. I can change it to skip the shipping page and go to checkout_payment.php by removing the condition for virtual content like so. if (!tep_session_is_registered('shipping')) tep_session_register('shipping'); $shipping = false $sendto = false tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL')); This works fine. It skips the checkout_shipping.php page. However no shipping then appears on the confirmation page and no shipping cost is calculated in the final total. I am assuming I need to change the $shipping and $sendto variables from 'false' to another value. I have tried. $shipping = 'flat_flat'; $sendto = $customer_default_address_id; but with limited effect. Shipping does appears in the confirmation page but it is simply called 'f' and adds 0.00 to the total. I do feel however that I am not far off. This will be a good one to answer as I imagine it is a common thing Oscommerce developers would like to do. Never mind. I got an answer in the 'Tips and Tricks' forum http://www.oscommerce.com/forums/index.php?showtopic=193155 Thanks anyway guys.
MindTwist Posted March 3, 2008 Posted March 3, 2008 Makes me wonder, if you skip that step, can the buyer chooose a different shipment address than his billing address? MindTwist of Twisted Reality and Twisted Tienda
Recommended Posts
Archived
This topic is now archived and is closed to further replies.