Terms and conditions link not working properly

  • Posts: 60
  • Thank you received: 1
10 years 9 months ago #146124

-- url of the page with the problem -- : oliviaodiweillustration.co.uk/for-sale
-- HikaShop version -- : 2.2.3
-- Joomla version -- : 3.2.2
-- PHP version -- : 5.4.17
-- Browser(s) name and version -- : Firefox V27.01
-- Error-message(debug-mod must be tuned on) -- : None

Hi

During checkout, the terms and conditions link doesn't work properly.

If I changed the pop up settings to mootols, the pop up works but in a couple of seconds it loads in full page.
If i select mootools or inherit the link doesn't work at all.

Can you please help as soon as possible?

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

  • Posts: 2334
  • Thank you received: 403
10 years 9 months ago #146158

Hi there,

I checked your website and you may have a conflict between jQuery and mootools.
You can try to install JqueryEasy to solve this.
You can also download the last version of Hikashop (it mights solve few things).

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

  • Posts: 60
  • Thank you received: 1
10 years 9 months ago #146168

Hello Elliot

Thanks for your reply

I downloaded and updated Hikashop even though the inbuilt update/info said that I had the latest version (screenshot attached). That didnt solve the problem.

I will try the jQueryEasy and get back to you.

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

  • Posts: 60
  • Thank you received: 1
10 years 9 months ago #146182

I tried jQuery Easy as per your suggestion but no joy. It still happens and give below debug information

jQuery Easy Modifications Report
jQuery is loaded by the template
Bootstrap is loaded by the template
re-ordered header libraries
removed JCaption
removed 1 jquery-noconflict.js script(s)
removed jQuery library /media/jui/js/jquery.min.js
added the jQuery library //ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js
removed 1 Migrate script(s)
added the script /plugins/system/jqueryeasy/jquerynoconflict.js
removed 3 empty script tag(s)
removed 14 blank line(s)
Execution time (in seconds): 0.0120301246643

To be honest with you, I dont have a clue what it means. I have disabled the plugin for now.

Any other suggestions please?

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

  • Posts: 13201
  • Thank you received: 2322
10 years 9 months ago #146241

Hi,

That's a strange thing, I don"t see javascript errors.
Your template seems to be a Bootstrap one, thanks to put the popup settings to Bootstrap.
Then thanks to update this topic when it's done, we will check why the popup don't work in bootstrap mode.

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

  • Posts: 60
  • Thank you received: 1
10 years 8 months ago #146555

Is there a quick fix for now or I have to wait for an update?

I cant deliver the website with this minor but annoying issue.

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

  • Posts: 13201
  • Thank you received: 2322
10 years 8 months ago #146643

Hi,

Do you had/have edited the view "checkout / terms" ?
In that view, you should have the following code:

<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');
	$terms_article = $this->config->get('checkout_terms');
	$terms_width = $this->config->get('terms_and_conditions_width',450);
	$terms_height = $this->config->get('terms_and_conditions_height',480);
	if(!empty($terms_article)){
		$popupHelper = hikashop_get('helper.popup');
		$text = $popupHelper->display(
			$text,
			'HIKASHOP_CHECKOUT_TERMS',
			JRoute::_('index.php?option=com_content&view=article&id='.$terms_article.'&tmpl=component'),
			'shop_terms_and_cond',
			$terms_width, $terms_height, '', '', 'link'
		);
	}
?>
	<label for="hikashop_checkout_terms_checkbox"><?php echo $text; ?></label>
</div>
Your version don't seem to be correct, the html returned is not the same than on my version.

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

  • Posts: 60
  • Thank you received: 1
10 years 8 months ago #146734

Thanks Xavier, I have replaced the code as per your suggestion but that did not solve the problem...

I am desperate now... The customer is totally pissed off as this tiny issue has delayed the delivery by a week now.

Please provide a solution instead as soon as possible.

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

  • Posts: 82910
  • Thank you received: 13379
  • MODERATOR
10 years 8 months ago #146740

I checked the problem on your checkout and you have the error:
Uncaught TypeError: Object [object Object] has no method 'chosen' step-2:65
Which indicates a problem with the "chosen" library which is apparently missing on your website. Turn off the "use chosen library" option of the HikaShop configuration and that will avoid that error and hopefully it will then work.

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

  • Posts: 60
  • Thank you received: 1
10 years 8 months ago #146743

Hello Nicolas

I tried disabling the chosen library but that did not solve the problem either. Please see the screen capture video here youtu.be/Pw0lmd6Ipwg

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

  • Posts: 82910
  • Thank you received: 13379
  • MODERATOR
10 years 8 months ago #146745

Hi,

No need for a video. I saw the issue with my own eyes on your website.
The javascript error is now gone. So that's good.
There is now a second problem.
You have the code:

<script type="text/javascript">
	if (top!==self) {
		top.location=location;
	}
</script>
added at the end of your pages.
This code generates the issue by redirecting the whole page to the page inside the popup each time a popup is displayed.
So the problem is not in HikaShop.
You'll have to remove the stuff which is adding that code on your website. As far as I know, another user previously reported that the extension AntiCopy was doing that.

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

  • Posts: 60
  • Thank you received: 1
10 years 8 months ago #146746

Hello Nicolas

Thanks for your quick response.

There are not many extension installed in this site.

HTML Map 2 - tried disabling it
Responsive EU Cookie Notify - tried disabling it
JCE Editor
Hikashop
Akeeba Backup
jQuery Easy - disabled
AJAX Popup Contact Form - tried disabling it

Do you think any of the above extensions could cause the problem?

Last edit: 10 years 8 months ago by in2computing.

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

  • Posts: 82910
  • Thank you received: 13379
  • MODERATOR
10 years 8 months ago #146747

Maybe it's the template ? Or a module ? Or a system plugin ?

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

Time to create page: 0.095 seconds
Powered by Kunena Forum