Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Checkout problem with PURCHASE WITHOUT ACCOUNT v0.


Guest

Recommended Posts

Posted

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

Posted
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

Posted
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

 

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.

Posted
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.

 

thanks!!

Posted
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.

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));

Posted
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));

 

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);

}

?>

Posted
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);

}

?>

That code should be okay. Did you do the manual edits (step 4)?

Posted
That code should be okay.  Did you do the manual edits (step 4)?

 

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.

Posted
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.

 

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

Archived

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

×
×
  • Create New...