- Posts: 10
- Thank you received: 0
Back button on the Checkout Steps
- pvankrugten
-
Topic Author
- Offline
Less
More
13 years 2 months ago #118520
by pvankrugten
Back button on the Checkout Steps was created by pvankrugten
I wan't to create a back button because some people don't now how the breadcrum works.
<a href="#" onclick="history.back();return false;">Go back</a>
But is there a other way?
And if it's not how can i get the same button as next?
<a href="#" onclick="history.back();return false;">Go back</a>
But is there a other way?
And if it's not how can i get the same button as next?
Please Log in or Create an account to join the conversation.
13 years 2 months ago #118534
by Xavier
Replied by Xavier on topic Back button on the Checkout Steps
Hi,
You can probably use the code:
In the view "checkout / step".
You can probably use the code:
Code:
<input type="button" value="Previous" onclick="window.location.href('<?php echo $this->params,hikashop_completeLink('checkout&task=step&step='.($this->step-1)); ?>')"/>
Please Log in or Create an account to join the conversation.
- pvankrugten
-
Topic Author
- Offline
Less
More
- Posts: 10
- Thank you received: 0
13 years 2 months ago #118542
by pvankrugten
Replied by pvankrugten on topic Back button on the Checkout Steps
the code comes a button but not with the good css and the button don't work
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 12953
- Thank you received: 1778
13 years 2 months ago #118547
by Mohamed Thelji
Replied by Mohamed Thelji on topic Back button on the Checkout Steps
Something like this will probably do the job, you'll just have to add some CSS code to customize it :
Code:
<?php if($this->step > 0){ ?>
<a href="<?php echo hikashop_completeLink('checkout&task=step&step='.($this->step-1)); ?>"> BACK </a>
<?php } ?>
Please Log in or Create an account to join the conversation.
- pvankrugten
-
Topic Author
- Offline
Less
More
- Posts: 10
- Thank you received: 0
13 years 2 months ago - 13 years 2 months ago #118548
by pvankrugten
Replied by pvankrugten on topic Back button on the Checkout Steps
When i replace the code (old code) the button disappears?
Last edit: 13 years 2 months ago by pvankrugten.
Please Log in or Create an account to join the conversation.
13 years 2 months ago #118566
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Back button on the Checkout Steps
Hi,
Can you please explain using an image what you want exactly for the result ?
I don't understand if you want a button or not.
Regards,
Can you please explain using an image what you want exactly for the result ?
I don't understand if you want a button or not.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
- pvankrugten
-
Topic Author
- Offline
Less
More
- Posts: 10
- Thank you received: 0
13 years 2 months ago #118574
by pvankrugten
Replied by pvankrugten on topic Back button on the Checkout Steps
See picture, i wan't a back button the same is next
Please Log in or Create an account to join the conversation.
13 years 2 months ago #118596
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Back button on the Checkout Steps
Hi,
You can use the code given by Xavier and Mohamed with a little modification
But you have to add a class in the input and change your CSS in order to have the look you want.
You can't use the same class than the next button. The arrow is not display in the same direction.
So it require some customization from your side.
Regards,
You can use the code given by Xavier and Mohamed with a little modification
Code:
<?php if($this->step > 0){ ?>
<input type="button" value="Previous" onclick="window.location.href = '<?php echo hikashop_completeLink('checkout&task=step&step='.($this->step-1), false, false, true); ?>'; return false;"/>
<?php } ?>
You can't use the same class than the next button. The arrow is not display in the same direction.
So it require some customization from your side.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
12 years 8 months ago #143240
by miracle
Replied by miracle on topic Back button on the Checkout Steps
If you use this, you can also make a value Previous in your language file and get the word Previous in the languages you want.
Code:
<?php if($this->step > 0){ ?>
<input type="button" value="<?php echo JText::_('Previous') ?>" onclick="window.location.href = '<?php echo hikashop_completeLink('checkout&task=step&step='.($this->step-1), false, false, true); ?>'; return false;"/>
<?php } ?>
The following user(s) said Thank You: Mohamed Thelji
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 12953
- Thank you received: 1778
12 years 8 months ago #143264
by Mohamed Thelji
Replied by Mohamed Thelji on topic Back button on the Checkout Steps
Thanks for your feedback
.
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 5
- Thank you received: 1
12 years 2 weeks ago #174185
by joomwalker
Replied by joomwalker on topic Back button on the Checkout Steps
Hi there, if you want to stay with the text "Back" and still control the text via the language files, have a look here.....
TOPIC: Add Back Button on Checkout Pages
TOPIC: Add Back Button on Checkout Pages
Please Log in or Create an account to join the conversation.
Time to create page: 0.161 seconds