- Posts: 64
- Thank you received: 0
Remove "Article" in Popup Terms and Condition.
Please Log in or Create an account to join the conversation.
- Posts: 127
- Thank you received: 12
It required a very minor code change but don't recall the detail.
I found the answer by searching the forum and I do remember I found it quickly, so worth a go if in a hurry.
Tony
Please Log in or Create an account to join the conversation.
How can I remove the word "Article"??
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Display -> View and apply to change: "terms"
My original file:
<?php
/**
* @package HikaShop for Joomla!
* @version 1.5.8
* @author hikashop.com
* @copyright (C) 2010-2012 HIKARI SOFTWARE. All rights reserved.
* @license GNU/GPLv3 www.gnu.org/licenses/gpl-3.0.html
*/
defined('_JEXEC') or die('Restricted access');
?>
<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" value="1" <?php echo $this->terms_checked; ?> />
<?php
$text = JText::_('PLEASE_ACCEPT_TERMS_BEFORE_FINISHING_ORDER');
$terms_article = $this->config->get('checkout_terms');
if(!empty($terms_article)){
JHTML::_('behavior.modal');
$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>';
}
?>
<label for="hikashop_checkout_terms_checkbox"><?php echo $text; ?></label>
</div>
I have replaced 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>';
with:
$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 my ItemID (nr.
Nothing is change.
When I display the terms I read "ARTICLE" but I don't know where this word is taken
i45.tinypic.com/24zyg04.png
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Following your advice I added the ID of my article (
Please Log in or Create an account to join the conversation.
What can I do...to solve?
Please Log in or Create an account to join the conversation.
- Posts: 127
- Thank you received: 12
Is 48 your MENU ID. That's what I did. Not ARTICLE ID.
Controlling headers/titles is easy with a menu - it lets you set many more publishing options.
Guessing your are in a hurry?
Show a screenshot of what your ID of 48 actually refers to!
Tony
www.thoth-management.com
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
In admin panel (HikaShop) I need to select an article as "terms and conditions"
The popup is open popup and select a menu item and not a menu.
So the frontend get that Article.
The article has ID = 8
I have no menu "terms and conditions." I only have one item and Hika get that item.
Please Log in or Create an account to join the conversation.
Doesn't work
I tried with: 1 (my Main Menu ID)
Doesn't work
I tried with: 8 (my ID item)
Doesn't work
Please Log in or Create an account to join the conversation.
- Posts: 127
- Thank you received: 12
Add an item for a single article.
Select your terms and conditions article.
Save & Close.
Note the ID of that menu item.
Update that line of code as explained above and in previous post.
Do not create a module to publish that menu unless you wish to. Personally I think waiting until checkout to show customers the Ts&Cs is a little late.
This is what I had initially, before I decided to publish Ts&Cs as a true menu item and it worked.
Please Log in or Create an account to join the conversation.
I think it's a bug.
However, nothing has changed. The problem remains
i49.tinypic.com/2zs8by8.jpg
Please Log in or Create an account to join the conversation.
XMAster wrote: I'm making everything you said but it's really so difficult?
I think it's a bug.
However, nothing has changed. The problem remains
i49.tinypic.com/2zs8by8.jpg
Hi!
Same here... Yesterday I still tried everything to remove the "article" but it doesn`t work
Please Log in or Create an account to join the conversation.
@foleys: Follow XMAster screenshot and then do like I just said.
It's not a bug. It's joomla who is displaying the article. And it's adding the Article text because in the menu's options, the option to display that text is turned on.
Please Log in or Create an account to join the conversation.
nicolas wrote: @XMAster : You did well. Now that you have your menu id in the code, you need to edit the menu and in the options of the menu, you need to turn off the display of the title/page heading with the help of the options on the right of the screen.
@foleys: Follow XMAster screenshot and then do like I just said.
It's not a bug. It's joomla who is displaying the article. And it's adding the Article text because in the menu's options, the option to display that text is turned on.
Take a look. All HIDE / OFF
i47.tinypic.com/2rmtmk5.jpg
Please Log in or Create an account to join the conversation.
thank you very much!
Please Log in or Create an account to join the conversation.
XMAster wrote: I tried with: 48
Doesn't work
I tried with: 1 (my Main Menu ID)
Doesn't work
I tried with: 8 (my ID item)
Doesn't work
at your last screenshot you`ve got 168 as menue id?
Edit: Sorry, I´ve seen you tried that id, too.
Please Log in or Create an account to join the conversation.
Maybe there is something else interfering but I'm out of ideas. Can you give a backend access to your website via our contact form (specify this thread URL) so that I can have a look ?
Please Log in or Create an account to join the conversation.