- Posts: 27
- Thank you received: 0
Edit first and last checkout page
I wonder how to edit the first and last checkout page. In the first one (where the customer types its personal information in) I would like to add a checkbox with "Accepting the...." which must be activated to proceed.
In the last page (before clicking on "buy") I would like to duplicate the "I accept the terms & conditions" but change the text and link.
The code for this row is:
<a onclick="return window.hikashop.openBox(this,null,false);" id="shop_terms_and_cond" href="/index.php/component/content/article?id=x&tmpl=component" rel="{handler: 'iframe', size: {x: 450, y: 480}}">Accepted terms and conditions...</a>
(found out via Firebug)
But when I look in the file "step" or "status" I can´t find it. How is it included and where is the correct file?
Looking forward to hear from you soon
Please Log in or Create an account to join the conversation.
There is no code to add.
For the registration, you can add a custom field of the table "user" or "address" and of the type "checkbox" via the menu Display->Custom fields.
For the T&C checkbox before the finish button, you can add the "Terms and Conditions" view in your checkout workflow in the last step of your checkout and that should handle it automatically.
Please Log in or Create an account to join the conversation.
Please look at the attachment, there, I have explained it more exactly
Thanks
Please Log in or Create an account to join the conversation.
You'll also want to add there (or maybe in the step view file) some PHP to check that the checkboxes were checked.
For the button position, it should actually already be set to the right by default. So it means that you already changed something which resulted in it being on the left. I don't know what you did but I don't think that you need to change any HTML/PHP. Just add a bit of CSS to float it to the right should be enough:
#hikashop_checkout_next_button {
float: right !important;
}
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
In that case, you want to edit the file "terms" of the view "checkout" via the menu Display>Views and add your checkboxes HTML there.
You'll also want to add there (or maybe in the step view file) some PHP to check that the checkboxes were checked.
That´s right so far but how to realize this concretely? Via Firebug, I can edit the page like I imagine but I can´t find the position where to add the html.
EDIT:
- I´m on the right path. Could you please tell me where the overrides PLEASE_ACCEPT_TERMS_BEFORE_FINISHING_ORDER and PLEASE_ACCEPT_TERMS are saved?
Please Log in or Create an account to join the conversation.
The original translations are saved in your translation file languages/en-GB/en-GB.com_hikashop.ini and the override file is in language/overrides/en-GB.override.ini
Please Log in or Create an account to join the conversation.
- Posts: 21
- Thank you received: 0
#hikashop_checkout_next_button {
float: right !important;
}
thanks
Please Log in or Create an account to join the conversation.
You can add it in the frontend CSS file of HikaShop.
Here is a tutorial about this:
www.hikashop.com/support/support/documen...ize-the-display.html
Please Log in or Create an account to join the conversation.
- Posts: 21
- Thank you received: 0
I tried in checkout / terms.php writting:
?><div id="hikashop_checkout_terms" class="hikashop_checkout_terms">
<input class="hikashop_checkout_terms_checkbox" id="hikashop_checkout_terms_checkbox" type="checkbox" name="hikashop_checkout_terms" align: "right" value="1" <?php echo $this->terms_checked; ?> />
but nothing happens...
is that the reason I ask the name of the file..
thanks!
Please Log in or Create an account to join the conversation.
There is only one file called "frontend CSS file".
You are looking at the menu Display>Views, not at the Display tab of the HikaShop configuration.
Please look at the CSS edition section of the link I gave, not the layout customization section
Please Log in or Create an account to join the conversation.
- Posts: 21
- Thank you received: 0
I wrote like this (line 481) but still not working:
#hikashopcpanel li {
list-style-type: none !important;
}
#hikashop_checkout_next_button {
float: right !important;
}
#hikashopcpanel div.icon {
float:left;
margin-bottom:5px;
margin-right:5px;
..........
any idea...?
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- Posts: 21
- Thank you received: 0
Please Log in or Create an account to join the conversation.
Let us know when you do.
Please Log in or Create an account to join the conversation.
- Posts: 21
- Thank you received: 0
Please Log in or Create an account to join the conversation.