Guest Posted August 3, 2015 Share Posted August 3, 2015 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 More sharing options...
tgely Posted August 3, 2015 Share Posted August 3, 2015 Yes its good catch! 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 More sharing options...
Guest Posted August 3, 2015 Share Posted August 3, 2015 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 More sharing options...
Dan Cole Posted August 3, 2015 Share Posted August 3, 2015 @@marcello I agree and while you're at it you might want to get rid of the FILENAME defines. Dan Need help? See this thread and provide the information requested. Is your version of osC up to date? You'll find the latest osC community version (CE Phoenix) here. Link to comment Share on other sites More sharing options...
Guest Posted August 3, 2015 Share Posted August 3, 2015 @@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 More sharing options...
Guest Posted August 3, 2015 Share Posted August 3, 2015 Don't mean to over post. Just finish testing on tablet and cell phone. Need to use col-xs-6 rather than col-md-6 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.