Guest Posted November 8, 2005 Posted November 8, 2005 Hi php Guru's, The checkout_shipping is overlooked even though I have flat rate enabled so the checkout goes straight to checkout_payment.php. I have tried several different configurations. With flat rate, w/out, with post etc, etc, etc. Strange... If I manually type www.mysite.com/chechout_shipping.php the browser will go straight to the checkout_payment.php page. This also happens if I am in the checkout_payment.php and click "Delivery Information". Refreshes into the payment page again. I am wondering if there is a bug somewhere that needs fixing. Sorry, I would not have a clue where to start. Thanks for any help. :thumbsup:
boxtel Posted November 8, 2005 Posted November 8, 2005 Hi php Guru's, The checkout_shipping is overlooked even though I have flat rate enabled so the checkout goes straight to checkout_payment.php. I have tried several different configurations. With flat rate, w/out, with post etc, etc, etc. Strange... If I manually type www.mysite.com/chechout_shipping.php the browser will go straight to the checkout_payment.php page. This also happens if I am in the checkout_payment.php and click "Delivery Information". Refreshes into the payment page again. I am wondering if there is a bug somewhere that needs fixing. Sorry, I would not have a clue where to start. Thanks for any help. :thumbsup: I believe that can only be caused if all your products in the order are "virtual" (for download) via : // if the order contains only virtual products, forward the customer to the billing page as // a shipping address is not needed 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')); } Treasurer MFC
Guest Posted November 9, 2005 Posted November 9, 2005 I believe that can only be caused if all your products in the order are "virtual" (for download) via : // if the order contains only virtual products, forward the customer to the billing page as // a shipping address is not needed 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')); } Ok Boxtel, What do I have to do to get this "False" to "True"? From Virtual to Real. Thanks for this.
boxtel Posted November 9, 2005 Posted November 9, 2005 Ok Boxtel, What do I have to do to get this "False" to "True"? From Virtual to Real. Thanks for this. The setting of virtual, mixed or physical is done in the shopping cart class. It is set to virtual if downloads are enabled and all products in the cart have the download attribute. BEFORE messing with it though, first check if it is set to "virtual" by adding a command like : echo $cart->content_type; somewhere on your shopping cart page. that should display the text "virtual", "mixed" or "physical" on your page. Treasurer MFC
Guest Posted November 10, 2005 Posted November 10, 2005 The setting of virtual, mixed or physical is done in the shopping cart class.It is set to virtual if downloads are enabled and all products in the cart have the download attribute. BEFORE messing with it though, first check if it is set to "virtual" by adding a command like : echo $cart->content_type; somewhere on your shopping cart page. that should display the text "virtual", "mixed" or "physical" on your page. Hi Boxtel, Still having trouble understanding this. I can't see any Vitual, Mixed or Physical anywhere. However, I have figured it out. I never had a Weight for each item in the catalog, Thus making the item Virtual ( I suppose) . Thanks for your help. Bela : :thumbsup:
boxtel Posted November 10, 2005 Posted November 10, 2005 Hi Boxtel, Still having trouble understanding this. I can't see any Vitual, Mixed or Physical anywhere. However, I have figured it out. I never had a Weight for each item in the catalog, Thus making the item Virtual ( I suppose) . Thanks for your help. Bela : :thumbsup: well, that looks like a reasonable assumption, yet, the code which determines this characteristic does not take any weight into account. It only considers downloadable products as virtual and considers the order as such when all the products in it have that attribute. Treasurer MFC
Guest Posted November 10, 2005 Posted November 10, 2005 well, that looks like a reasonable assumption, yet, the code which determines this characteristic does not take any weight into account. It only considers downloadable products as virtual and considers the order as such when all the products in it have that attribute. Hi Boxtel, Believe it or not, it also fixed another problem I was having. The Direct Bank Deposit was not showing in checkout_payment page. Now it is. Which is what I wanted. B)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.