Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Is this normal - checkout to index?


carryG

Recommended Posts

When I add something to my cart, create a new account and add all data and click continue, I get success page. Then I click continue and it dumps me back at index page. Is there a way of having customer actually continue the checkout (after success page - goto payment/shipping pages?).

 

I just thought it was strange that it would dump a customer back at index page.

 

Any suggestions?

 

C

Link to comment
Share on other sites

I changed create_account_success to this: Will it cause any problems, does anyone know?

 

require('includes/application_top.php');

 

require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CREATE_ACCOUNT_SUCCESS);

 

$breadcrumb->add(NAVBAR_TITLE_1);

$breadcrumb->add(NAVBAR_TITLE_2);

 

if (sizeof($navigation->snapshot) > 0) {

$origin_href = tep_href_link($navigation->snapshot['page'], tep_array_to_string($navigation->snapshot['get'], array(tep_session_name())), $navigation->snapshot['mode']);

$navigation->clear_snapshot();

} else {

$origin_href = tep_href_link(FILENAME_CHECKOUT_SHIPPING); <----------------THIS WAS CHANGED FROM FILENAME_DEFAULT

}

Link to comment
Share on other sites

  • 1 month later...
I changed create_account_success to this: Will it cause any problems, does anyone know?

 

require('includes/application_top.php');

 

require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CREATE_ACCOUNT_SUCCESS);

 

$breadcrumb->add(NAVBAR_TITLE_1);

$breadcrumb->add(NAVBAR_TITLE_2);

 

if (sizeof($navigation->snapshot) > 0) {

$origin_href = tep_href_link($navigation->snapshot['page'], tep_array_to_string($navigation->snapshot['get'], array(tep_session_name())), $navigation->snapshot['mode']);

$navigation->clear_snapshot();

} else {

$origin_href = tep_href_link(FILENAME_CHECKOUT_SHIPPING); <----------------THIS WAS CHANGED FROM FILENAME_DEFAULT

}

 

That's the way to do it and it won't cause any problems.

Link to comment
Share on other sites

  • 11 months later...

That's the way to do it and it won't cause any problems.

 

With all due respect, could a super helper confirm that this solution is sound?

 

I also have the same issue with an established account login. What's worse is, when redirected to the index, it incorrectly reports the cart empty. (It doesn't dump)

 

Thanks!

My experience relates to osCommerce Online Merchant v2.2 RC2

Link to comment
Share on other sites

Okay, I did that, and it fixed it for new accounts only. I'm going to try it on...hmmm...the login page I guess.

 

Please save me from myself if I'm causing another problem.

 

Wish me luck.

My experience relates to osCommerce Online Merchant v2.2 RC2

Link to comment
Share on other sites

  • 1 year later...

Hi everyone

 

Just testing PWA on my live site and came across this problem. The solution posted by CarryG didn't work for me so tried various backups of create_accout_success.php - all of them failed but the item was still in the cart and could be checked out. Even the backup from Dec 2010. Never seen this before so really have no idea what caused it.

 

 

Anyway, solved. The link on the continue button was pointing at FILENAME_HOME.

      <tr>
       <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="main">
         <tr class="main">
           <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
             <tr>
               <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
               <td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_HOME) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td>
               <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
             </tr>
           </table></td>
         </tr>
       </table></td>
     </tr>

 

Changed the button link to FILENAME_CHECKOUT_SHIPPING as CarryG suggested and it all works

 

Also *MAY HAVE* solved why this could happen or is it a problem with PWA?

 

The create_account_success.php in my zip of osc rc2.2a from Feb 2010 AND a FRESH download of osc from github (filename osCommerce-oscommerce2-v2.2rc2a-0-g27e4f99.zip - if that means anything) is coded as shown. Sorry, bold and red colour not working for me.

 

 

  require('includes/application_top.php');

 require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CREATE_ACCOUNT_SUCCESS);

 $breadcrumb->add(NAVBAR_TITLE_1);
 $breadcrumb->add(NAVBAR_TITLE_2);

 if (sizeof($navigation->snapshot) > 0) {
   $origin_href = tep_href_link($navigation->snapshot['page'], tep_array_to_string($navigation->snapshot['get'], array(tep_session_name())), $navigation->snapshot['mode']);
   $navigation->clear_snapshot();
 } else {
   $origin_href = tep_href_link(FILENAME_DEFAULT);}

 

 

      <tr>
       <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
         <tr class="infoBoxContents">
           <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
             <tr>
               <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
               <td align="right"><?php echo '<a href="' . $origin_href . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td>                <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
             </tr>
           </table></td>
         </tr>
       </table></td>
     </tr>

 

Anyway, all done and working again

 

 

Cheers

 

Ian

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...