Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Back Button for checkout_shipping_address and checkout_payment_address


Guest

Recommended Posts

When checking out and one clicks on change address in either the checkout_shipping or checkout_payment pages, the system does not allow the customer to return back to the prior page easily.  This is extremely minor; however, if the customer decides not to add the address it would be nice to send them back to the prior page or to the specific shipping or payment page. 

 

Something like this for checkout_shipping_address:

 

  <div class="buttonSet row">
    <div class="col-md-6 text-left">
        <?php echo tep_draw_button(IMAGE_BUTTON_BACK, 'glyphicon glyphicon-chevron-left', tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL')); ?>
    </div>
    <div class="col-md-6 text-right"><?php echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'glyphicon glyphicon-chevron-right', null, 'primary', '', 'btn-success'); ?></div>
  </div>
 

and

 

for checkout_payment_address:

 

  <div class="buttonSet row">
    <div class="col-md-6 text-left">
        <?php echo tep_draw_button(IMAGE_BUTTON_BACK, 'glyphicon glyphicon-chevron-left', tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL')); ?>
    </div>
    <div class="col-md-6 text-right"><?php echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'glyphicon glyphicon-chevron-right', null, 'primary', '', 'btn-success'); ?></div>
  </div>
 

I'm open for using java or the breadcrumb to grab the prior page; however, if customer tries to change the address on the checkout_confirmation page they may get an form resubmission page (though I'm sure we could code around it)

 

Thoughts???

 

Note this is for 2.3.4BS version.

Link to comment
Share on other sites

Yes its good catch!

:blink:
osCommerce based shop owner with minimal design and focused on background works. When the less is more.
Email managment with tracking pixel, package managment for shipping, stock management, warehouse managment with bar code reader, parcel shops management on 3000 pickup points without local store.

Link to comment
Share on other sites

Thanks G.  I'd gladly create a fork and update github.   I'll wait to see if anyone has other ideas regarding the checkout_confirmation page. 

 

I realize I left out the action submit when pasting.  Oops.  This is corrected code.

 

Something like this for checkout_shipping_address:

 

  <div class="buttonSet row">
    <div class="col-md-6 text-left">
        <?php echo tep_draw_button(IMAGE_BUTTON_BACK, 'glyphicon glyphicon-chevron-left', tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL')); ?>
    </div>
    <div class="col-md-6 text-right"><?php echo tep_draw_hidden_field('action', 'submit') . tep_draw_button(IMAGE_BUTTON_CONTINUE, 'glyphicon glyphicon-chevron-right', null, 'primary', null, 'btn-success'); ?></div>
  </div>
 

and

 

for checkout_payment_address:

 

  <div class="buttonSet row">
    <div class="col-md-6 text-left">
        <?php echo tep_draw_button(IMAGE_BUTTON_BACK, 'glyphicon glyphicon-chevron-left', tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL')); ?>
    </div>
    <div class="col-md-6 text-right"><?php echo tep_draw_hidden_field('action', 'submit') . tep_draw_button(IMAGE_BUTTON_CONTINUE, 'glyphicon glyphicon-chevron-right', null, 'primary', null, 'btn-success'); ?></div>
  </div>

 

Link to comment
Share on other sites

@@Dan Cole 

 

I understand we are moving away from using it; however, didn't want to rock the boat too much as FILENAME is still used heavily in these pages.

 

 

For the record, I'm all for it and have no issues with your suggestion.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...