Checkout for mini-cart not working in IE

  • Posts: 25
  • Thank you received: 0
13 years 6 months ago #16012

Hi, I've setup a mini-cart to display when customers are not in the product pages, but the checkout button is not working in IE7 and IE8. Here are the steps to reproduce, do you know what's wrong?

1. URL: kennethpho.com/Joomla/index.php?option=c...ut=listing&Itemid=62
2. Add any product to Cart
3. Navigate to 'Contact Us' on the top menu
4. Click on Checkout button of mini-cart

Please let me know if you need more info. Thanks!

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

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
13 years 6 months ago #16025

Hi,

There is no checkout button for the mini cart in HikaShop. That means that you added it yourself.
The problem is probably that you're using a button of the type submit and that on IE it takes the precedence over the link around it.
You shoudl try to use input="button" instead of input="submit" on your input button code.

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

  • Posts: 25
  • Thank you received: 0
13 years 6 months ago #16043

Yes, I remember now, I think I got help from you on adding the below lines of code to the minicart. Where can I modify the input type?

$this->params->set('show_quantity_field', 0);

echo $this->cart->displayButton(JText::_('PROCEED_TO_CHECKOUT'),'checkout',$this->params,hikashop::completeLink('checkout'.$url_itemid),'');

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

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
13 years 6 months ago #16045

Instead of that, you should directly use the HTML:
?><input type="button" class="button hikashop_cart_input_button" name="checkout" value="Checkout"><?php

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

  • Posts: 25
  • Thank you received: 0
13 years 6 months ago #16110

Hi Nicolas, I tried replacing it with the HTML you specified but the issue still persists in IE7 and IE8. Is there something I'm missing?

Last edit: 13 years 6 months ago by hoken.

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

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
13 years 6 months ago #16120

I didn't say it would work, just that it would help to have the correct type on that button.

Now, when you click on it the page is not submitted so we're almost there. You need now to add an onlcick attribute to the button like that:

?><input type="button" class="button hikashop_cart_input_button" name="checkout" value="Checkout" onclick="window.location='<?php echo hikashop::completeLink('checkout'.$url_itemid); ?>';"><?php

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

Time to create page: 0.059 seconds
Powered by Kunena Forum