- Posts: 25
- Thank you received: 0
Terms link multiple languages
- mireille76
-
Topic Author
- Offline
Less
More
11 years 5 days ago #221570
by mireille76
Terms link multiple languages was created by mireille76
-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.5
-- PHP version -- : 5.6.6
Hi,
I want to have the checkbox "Accept terms and conditions " on my checkout page with the link to the corresponding joomla page in the right language.
What I did:
Under hikashop->configuration->languages, I added for each language
PLEASE_ACCEPT_TERMS_BEFORE_FINSIHING_ORDER="<a target='_blank' href='LINK TO YOUR JOOMLA ARTICLE'>Please accept the terms</a>"
with the link to the corresponding page.
When, under hikashop->configuration->checkout, I leave empty the field: terms and conditions
- then on my checkout page I see the checkbox with the text I entered in the language file (Please accept the terms) but with no link.
When, under hikashop->configuration->checkout :terms and conditions, I enter the english joomla article "Terms"
- then on my english checkout page I see the checkbox with the default text "Please accept the terms and conditions before proceeding" and the correct link to my joomla article "terms"
- on my french checkout page I see the checkbox with the default french text and a link to an error page.
So it seems that when I enter an article under hikashop->configuration->checkout :terms and conditions, the language files are not taken into account,
and when I leave empty hikashop->configuration->checkout :terms and conditions , the language files are taken into account but there is no link.
Could you please help me to solve this ?
Thank you in advance,
Mireille
-- Joomla version -- : 3.4.5
-- PHP version -- : 5.6.6
Hi,
I want to have the checkbox "Accept terms and conditions " on my checkout page with the link to the corresponding joomla page in the right language.
What I did:
Under hikashop->configuration->languages, I added for each language
PLEASE_ACCEPT_TERMS_BEFORE_FINSIHING_ORDER="<a target='_blank' href='LINK TO YOUR JOOMLA ARTICLE'>Please accept the terms</a>"
with the link to the corresponding page.
When, under hikashop->configuration->checkout, I leave empty the field: terms and conditions
- then on my checkout page I see the checkbox with the text I entered in the language file (Please accept the terms) but with no link.
When, under hikashop->configuration->checkout :terms and conditions, I enter the english joomla article "Terms"
- then on my english checkout page I see the checkbox with the default text "Please accept the terms and conditions before proceeding" and the correct link to my joomla article "terms"
- on my french checkout page I see the checkbox with the default french text and a link to an error page.
So it seems that when I enter an article under hikashop->configuration->checkout :terms and conditions, the language files are not taken into account,
and when I leave empty hikashop->configuration->checkout :terms and conditions , the language files are taken into account but there is no link.
Could you please help me to solve this ?
Thank you in advance,
Mireille
Please Log in or Create an account to join the conversation.
11 years 5 days ago #221575
by nicolas
Replied by nicolas on topic Terms link multiple languages
Hi,
What you need to do is to edit the file "terms" of the view "checkout" via the menu Display>Views and change the line:
to:
Then, it will take into account your translation overrides.
What you need to do is to edit the file "terms" of the view "checkout" via the menu Display>Views and change the line:
Code:
<label for="hikashop_checkout_terms_checkbox"><?php echo $text; ?></label>
Code:
<label for="hikashop_checkout_terms_checkbox"><?php echo JText::_('PLEASE_ACCEPT_TERMS_BEFORE_FINSIHING_ORDER'); ?></label>
Please Log in or Create an account to join the conversation.
- mireille76
-
Topic Author
- Offline
Less
More
- Posts: 25
- Thank you received: 0
11 years 4 days ago #221737
by mireille76
Replied by mireille76 on topic Terms link multiple languages
Thank you very much.
That works fine.
(Just note that there was a little typing mistake in the message above it's _FINISHING_ not _FINSIHING_ for those reading this message and wanting to do the same).
Thanks and have a nice day,
Mireille
That works fine.
(Just note that there was a little typing mistake in the message above it's _FINISHING_ not _FINSIHING_ for those reading this message and wanting to do the same).
Thanks and have a nice day,
Mireille
Please Log in or Create an account to join the conversation.
Time to create page: 0.051 seconds