Guest Posted January 12, 2005 Posted January 12, 2005 Hi I installed the PURCHASE WITHOUT ACCOUNT v0.82 contribution to my website www.flat4online.co.uk http://www.oscommerce.com/community/contri...heckout+without If I go directly to checkout without purchasing using the checkout button in the header it takes me to the checkout page without the purchase without account option, but the option for purchase without account should be there so I think I may have missed some code somehwere but I cant see it!! If I first browse the products first, add one to the cart and checkout using the checkout button below the subtotal and not the checkout button in the header it takes me to the checkout page with the option for purchase without account!! Has anyone had seen this before and found a solution? TIA Windows
Guest Posted January 13, 2005 Posted January 13, 2005 Hi I installed the PURCHASE WITHOUT ACCOUNT v0.82 contribution to my website www.flat4online.co.uk http://www.oscommerce.com/community/contri...heckout+without If I go directly to checkout without purchasing using the checkout button in the header it takes me to the checkout page without the purchase without account option, but the option for purchase without account should be there so I think I may have missed some code somehwere but I cant see it!! If I first browse the products first, add one to the cart and checkout using the checkout button below the subtotal and not the checkout button in the header it takes me to the checkout page with the option for purchase without account!! Has anyone had seen this before and found a solution? TIA Windows <{POST_SNAPBACK}>
Guest Posted January 13, 2005 Posted January 13, 2005 Hi I installed the PURCHASE WITHOUT ACCOUNT v0.82 contribution to my website www.flat4online.co.uk http://www.oscommerce.com/community/contri...heckout+without If I go directly to checkout without purchasing using the checkout button in the header it takes me to the checkout page without the purchase without account option, but the option for purchase without account should be there so I think I may have missed some code somehwere but I cant see it!! If I first browse the products first, add one to the cart and checkout using the checkout button below the subtotal and not the checkout button in the header it takes me to the checkout page with the option for purchase without account!! Has anyone had seen this before and found a solution? TIA Windows <{POST_SNAPBACK}> I remember having the same problem. I can't recall for sure but I think it had to do with some of the code being commented out. I'll see if I can find my notes.
Guest Posted January 13, 2005 Posted January 13, 2005 I remember having the same problem. I can't recall for sure but I think it had to do with some of the code being commented out. I'll see if I can find my notes. <{POST_SNAPBACK}> thanks!!
Guest Posted January 13, 2005 Posted January 13, 2005 I remember having the same problem. I can't recall for sure but I think it had to do with some of the code being commented out. I'll see if I can find my notes. <{POST_SNAPBACK}> I don't think this is the source of your problem, but I did find a note that on line 29 of checkout_success.php you should uncomment the line that reads: // tep_redirect(tep_href_link(FILENAME_DEFAULT, $notify_string));
Guest Posted January 14, 2005 Posted January 14, 2005 I don't think this is the source of your problem, but I did find a note that on line 29 of checkout_success.php you should uncomment the line that reads: // tep_redirect(tep_href_link(FILENAME_DEFAULT, $notify_string)); <{POST_SNAPBACK}> Thanks for that, did you get a chance to find anythithing in your notes about the login problem? Some of the code in my login.php file points to some files I dont have in my includes folder, but when I edit them the site throws up errors. This is the code that was in the new login.php file in PWA. <?php if (PWA_ON == 'false') { require(DIR_WS_INCLUDES . FILENAME_PWA_ACC_LOGIN); } else { require(DIR_WS_INCLUDES . FILENAME_PWA_PWA_LOGIN); } ?>
Guest Posted January 14, 2005 Posted January 14, 2005 Thanks for that, did you get a chance to find anythithing in your notes about the login problem? Some of the code in my login.php file points to some files I dont have in my includes folder, but when I edit them the site throws up errors. This is the code that was in the new login.php file in PWA. <?php if (PWA_ON == 'false') { require(DIR_WS_INCLUDES . FILENAME_PWA_ACC_LOGIN); } else { require(DIR_WS_INCLUDES . FILENAME_PWA_PWA_LOGIN); } ?> <{POST_SNAPBACK}> That code should be okay. Did you do the manual edits (step 4)?
Guest Posted January 15, 2005 Posted January 15, 2005 That code should be okay. Did you do the manual edits (step 4)? <{POST_SNAPBACK}> Line 29 reads tep_redirect(tep_href_link(FILENAME_DEFAULT, $notify_string, 'SSL')); Do I make it read?: tep_redirect(tep_href_link(); Still havent found what is causing the different login pages, if anyone can help it would be greatly appreciated. Basicaly when I load my site and go direct to checkout using the checkout link in the header I dont have the option to procceed directly to checkout without creating an account first, but if I add a product to my basket and then proceed to checkout using either the link in the header or the link underneath the subtotal in the shopping cart page the option is now there to procceed directly to checkout without creating an account first. TBH I cant think why anyone would want to go direct to checkout first anyway but I have seen other sites set up with purchase without account and mines is deffinately set up wrong. I still think its something to do with the login.php file but I dont have enough knowledge yet to know what to add or change.
boxtel Posted January 15, 2005 Posted January 15, 2005 Line 29 reads tep_redirect(tep_href_link(FILENAME_DEFAULT, $notify_string, 'SSL')); Do I make it read?: tep_redirect(tep_href_link(); Still havent found what is causing the different login pages, if anyone can help it would be greatly appreciated. Basicaly when I load my site and go direct to checkout using the checkout link in the header I dont have the option to procceed directly to checkout without creating an account first, but if I add a product to my basket and then proceed to checkout using either the link in the header or the link underneath the subtotal in the shopping cart page the option is now there to procceed directly to checkout without creating an account first. TBH I cant think why anyone would want to go direct to checkout first anyway but I have seen other sites set up with purchase without account and mines is deffinately set up wrong. I still think its something to do with the login.php file but I dont have enough knowledge yet to know what to add or change. <{POST_SNAPBACK}> but this is normal behaviour, PWA will only show the option if there is something in the cart. If the cart is empty, the login page will not show the PWA option. In checkout_shipping I have this code : // if the customer is not logged on, redirect them to the login page if (!tep_session_is_registered('customer_id')) { $navigation->set_snapshot(); if ((PWA_ON == 'true') and ($cart->count_contents() > 0)) { tep_redirect(tep_href_link(FILENAME_CHECKOUT, '', 'SSL')); } else { tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL')); } } // if there is nothing in the customers cart, redirect them to the shopping cart page if ($cart->count_contents() < 1) { tep_redirect(tep_href_link(FILENAME_SHOPPING_CART)); } Treasurer MFC
Recommended Posts
Archived
This topic is now archived and is closed to further replies.