No Label on Terms Checkbox

  • Posts: 8
  • Thank you received: 0
11 years 6 months ago #101365

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>

Attachments:
Last edit: 11 years 6 months ago by kerryb. Reason: i put it in the wrong section

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

  • Posts: 12953
  • Thank you received: 1778
11 years 6 months ago #101410

Hi,

one thread is enough, we will continue through this thread :).

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

  • Posts: 8
  • Thank you received: 0
11 years 6 months ago #101414

Hi Mohamed,

my website is www.thebooktrader.co.nz

if you email me at This email address is being protected from spambots. You need JavaScript enabled to view it. i can give you the admin access

Cheers

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

  • Posts: 13201
  • Thank you received: 2322
11 years 6 months ago #101599

Hi,

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.

  • Posts: 8
  • Thank you received: 0
11 years 6 months ago #101731

use the guest account:
username: This email address is being protected from spambots. You need JavaScript enabled to view it.
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.

  • Posts: 82728
  • Thank you received: 13343
  • MODERATOR
11 years 6 months ago #101800

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

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

Time to create page: 0.085 seconds
Powered by Kunena Forum