Terms link multiple languages

  • Posts: 25
  • Thank you received: 0
9 years 6 days ago #221570

-- 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

Please Log in or Create an account to join the conversation.

  • Posts: 82908
  • Thank you received: 13379
  • MODERATOR
9 years 5 days ago #221575

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:

<label for="hikashop_checkout_terms_checkbox"><?php echo $text; ?></label>
to:
<label for="hikashop_checkout_terms_checkbox"><?php echo JText::_('PLEASE_ACCEPT_TERMS_BEFORE_FINSIHING_ORDER'); ?></label>
Then, it will take into account your translation overrides.

Please Log in or Create an account to join the conversation.

  • Posts: 25
  • Thank you received: 0
9 years 5 days ago #221737

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

Please Log in or Create an account to join the conversation.

Time to create page: 0.057 seconds
Powered by Kunena Forum