- Posts: 8
- Thank you received: 0
No Label on Terms Checkbox
13 years 4 months ago - 13 years 4 months ago #101365
by kerryb
No Label on Terms Checkbox was created by kerryb
I have a problem on my checkout page
I dont have a label beside the Terms & Canditions Checkbox.
the terms and conditions pop-up box appears and opens to the selected article. But right at the bottom of the page above "Continue Shopping is a lonely little checkbox with no label. (as per the attached screenshot)
I would prefer as a first option to be able to display the checkbox with the article so they are clearly associated. But as a fall back i need a label beside the checkbox.
Can you help please?
The checkout/terms.php looks as follows:
<?php
/**
* @package HikaShop for Joomla!
* @version 2.1.2
* @author hikashop.com
* @copyright (C) 2010-2013 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 dont have a label beside the Terms & Canditions Checkbox.
the terms and conditions pop-up box appears and opens to the selected article. But right at the bottom of the page above "Continue Shopping is a lonely little checkbox with no label. (as per the attached screenshot)
I would prefer as a first option to be able to display the checkbox with the article so they are clearly associated. But as a fall back i need a label beside the checkbox.
Can you help please?
The checkout/terms.php looks as follows:
<?php
/**
* @package HikaShop for Joomla!
* @version 2.1.2
* @author hikashop.com
* @copyright (C) 2010-2013 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>
Last edit: 13 years 4 months ago by kerryb. Reason: i put it in the wrong section
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 12953
- Thank you received: 1778
13 years 4 months ago #101410
by Mohamed Thelji
Replied by Mohamed Thelji on topic No Label on Terms Checkbox
Please Log in or Create an account to join the conversation.
13 years 4 months ago #101414
by kerryb
Replied by kerryb on topic No Label on Terms Checkbox
Hi Mohamed,
my website is www.thebooktrader.co.nz
if you email me at admin@thebooktrader.co.nz i can give you the admin access
Cheers
my website is www.thebooktrader.co.nz
if you email me at admin@thebooktrader.co.nz i can give you the admin access
Cheers
Please Log in or Create an account to join the conversation.
13 years 4 months ago #101599
by Xavier
Replied by Xavier on topic No Label on Terms Checkbox
Hi,
Can you give us an account (frontend) to test the checkout ?
And a screenshot of your checkout & terms custom field ?
Can you give us an account (frontend) to test the checkout ?
And a screenshot of your checkout & terms custom field ?
Please Log in or Create an account to join the conversation.
13 years 4 months ago #101731
by kerryb
Replied by kerryb on topic No Label on Terms Checkbox
use the guest account:
username: admin@thebooktrader.co.nz
PW: guest2013
I have no custom field for checkout. My understanding is that I need Hikashop Business to create one in the Orders Table?
username: admin@thebooktrader.co.nz
PW: guest2013
I have no custom field for checkout. My understanding is that I need Hikashop Business to create one in the Orders Table?
Please Log in or Create an account to join the conversation.
13 years 4 months ago #101800
by nicolas
Replied by nicolas on topic No Label on Terms Checkbox
The problem comes from your template CSS which styles the links with the class "modal" where it should only style divs with the class "modal".
More information about the issue can be found here:
www.hikashop.com/en/forum/4-how-to/80674...button-floating.html
More information about the issue can be found here:
www.hikashop.com/en/forum/4-how-to/80674...button-floating.html
Please Log in or Create an account to join the conversation.
Time to create page: 0.193 seconds