View Cart

  • Posts: 6
  • Thank you received: 0
12 years 10 months ago #34096

I can see there is a menu item to allow printing of the cart, which will allow the user to view the cart contents and then just not print it, but is it possible to simply view the cart, in a separate window perhaps?

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

  • Posts: 82909
  • Thank you received: 13379
  • MODERATOR
12 years 10 months ago #34135

You can create a new link like that:
www.demo.hikashop.com/index.php?option=c...ckout&task=printcart

However, it will still try to print the cart.
To avoid that, you would have to remove the code below from the file components/com_hikashop/views/checkout/view.html.php :
$js = "do_nothing( function() {window.focus();window.print();setTimeout(function(){try{ window.top.document.getElementById('sbox-window').close(); }catch(err){ window.top.SqueezeBox.close(); }}, 1000);});";
$doc =& JFactory::getDocument();
$doc->addScriptDeclaration("<!--\n".$js."\n//-->\n");

An alternative would be to change your checkout workflow int he Checkout tab of the configuration so that you have a first step with only the cart and then create a menu going to your checkout.

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

  • Posts: 6
  • Thank you received: 0
12 years 10 months ago #34292

I have tried to do as you suggest but I cannot find the code that you say should be removed. I have the file view.html.php but cannot find the exact cod that you suggest, I can see some text very similar but not the same can you assist further?

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

  • Posts: 82909
  • Thank you received: 13379
  • MODERATOR
12 years 10 months ago #34323

Then maybe you're not using the latest version of HikaShop ?

You should try to delete the very similar code (make a copy/paste to your notepad in case that's not the one you're looking for).

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

Time to create page: 0.063 seconds
Powered by Kunena Forum