I've been trying to put together a Back and aFinish button into my checkout process.
I've culled together different posts (mostly from Xavier), edited Checkout/step .php, and here is what I have so far...
<?php
if($this->nextButton){
if($this->step==2){
echo $this->cart->displayButton('Finish','next',$this->params,hikashop::completeLink('checkout&task=step&step='.$this->step+1),'document.forms[\'hikashop_checkout_form\'].submit(); return false; ','id="hikashop_checkout_next_button"');
}
else{echo $this->cart->displayButton(JText::_('NEXT'),'next',$this->params,hikashop::completeLink('checkout&task=step&step='.$this->step+1),'document.forms[\'hikashop_checkout_form\'].submit(); return false;','id="hikashop_checkout_next_button"');
}
if($this->step!=0){
echo $this->cart->displayButton(JText::_('BACK'),'next',$this->params,hikashop::currentUrl(),'history.back();return false;','id="hikashop_checkout_back_button"');
}
}
?>
</form>
Everything ALMOST works perfectly.
checkout: has [Next Button] and it works fine.
step-1: has [Back Button] & [Next Button] - Both works fine.
step-2: has [Back Button] & [Finish Button] - [Finish] works ok. But [Back Button] gives error.
Confirm Form Resubmission
This webpage requires data that you entered earlier in order to be properly displayed. You can send this data again, but by doing so you will repeat any action this page previously performed. Press Reload to resend that data and display this page
This is the same error I would get if I just clicked the Back button on the browser navigation.
my Checkout Workflow: cart,login_address_shipping_coupon,payment_status_fields_confirm,end
I've tried messing with things, but I'm at a loss.
Any assistance would be great.