- Posts: 44
- Thank you received: 0
"Articles" word on my terms of use title...
Why is the word "articles" displayed on my terms of use title?
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
I don't know where it came from...
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
There is a module on the top left colunm with a sample of a product you can add to cart. Jusk click checkout on the cart module, and at the bottom of the checkout page you will see the terms and conditions.
Thanks.
Please Log in or Create an account to join the conversation.
You need to edit the file terms of the view checkout via the menu Display->Views and change the line:
$text = '<a href="'.JRoute::_('index.php?option=com_content&view=article&id='.$terms_article.'&tmpl=component').'" class="modal" rel="{handler: \'iframe\', size: {x: 450, y: 480}}" target="_blank">'.$text.'</a>';
to include an Itemid of one of your article menu there. So for example, if you had a menu 48 with an article, you would have:
$text = '<a href="'.JRoute::_('index.php?option=com_content&view=article&id='.$terms_article.'&Itemid=48&tmpl=component').'" class="modal" rel="{handler: \'iframe\', size: {x: 450, y: 480}}" target="_blank">'.$text.'</a>';
Then, the options of that menu would apply to your T&C article.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- Posts: 32
- Thank you received: 0
I tried adding the line and articles also shows up on mines. I did use the "menuid" as well.
Please Log in or Create an account to join the conversation.
In the mean time, you have to do like explained there to solve the problem:
www.hikashop.com/support/forum/4-how-to/...e.html?lang=en#18645
Please Log in or Create an account to join the conversation.
Any suggestions? Thanks.
Please Log in or Create an account to join the conversation.
www.hikashop.com/en/forum/4-how-to/57121...s-and-condition.html
Please Log in or Create an account to join the conversation.
1. Create the article for Terms and Conditions.
2. Create a Menu Item of type 'Simple Article' and link it to the article Terms and Conditions.
3. Now you can configure the parameters for the menu item for not showing the word 'Articles' (if this config is not the same as Global)
4. Edit the file ‘terms’ of your front end template (access from Hikashop->Display->Views) and replace the line:
$text = '<a href="'.JRoute::_('index.php?option=com_content&view=article&id='.$terms_article.'&tmpl=component').'" class="modal" rel="{handler: \'iframe\', size: {x: 450, y: 480}}" target="_blank">'.$text.'</a>';
by:
$text = '<a href="'.JRoute::_('index.php?option=com_content&view=article&id='.$terms_article.'&Itemid=8&tmpl=component').'" class="modal" rel="{handler: \'iframe\', size: {x: 450, y: 480}}" target="_blank">'.$text.'</a>';
(Add &Itemid=8 before &tmpl=component), where 8 is the ID of the menu item that you have just created.
With these steps it may work. My error was that I created a menu item but I didn't link it to the article Terms and Conditions, and browser couldn't show anything, only a 404 error.
I hope these steps will help somebody.
Thanks.
Please Log in or Create an account to join the conversation.