Refresh Mini-Cart automatically

  • Posts: 299
  • Thank you received: 2
11 years 5 months ago #103840

Hi,
Is it possible to make a refresh automatically when you add the first product to the cart?
The reason I want this is because I have the mini cart enabled and I have made a language override in order to just show a cart icon and a Cart text behind it.
It display in the right hand side of the horizontal menu bar so everything is exactly as I want it except that when the first product is added you don't see
the Cart unless you make a F5, refresh the browser manually or go to another page of the webshop.
To make it clearer for the customer I would like this done automatically.
Is that possible?

Last edit: 11 years 5 months ago by LAMF.

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

  • Posts: 299
  • Thank you received: 2
11 years 5 months ago #103845

Hi again,
I solved by adding some script in the php of the file View => checkout notice.php
Guess it can be usable for someone else as well so here it is:

    <?php
    if($cart_type == 'wishlist'){
      echo hikashop_display(JText::_('PRODUCT_SUCCESSFULLY_ADDED_TO_WISHLIST'),'success',true);
    }else{
      echo hikashop_display(JText::_('PRODUCT_SUCCESSFULLY_ADDED_TO_CART'),'success',true);
    echo '
<script type="text/javascript">
   parent.window.location.reload(true);
</script>
';
    }
    ?>

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

Time to create page: 0.063 seconds
Powered by Kunena Forum