- Posts: 6
- Thank you received: 0
View Cart
- bridgemics
-
Topic Author
- Offline
Less
More
14 years 9 months ago #34096
by bridgemics
View Cart was created by bridgemics
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.
14 years 9 months ago #34135
by nicolas
Replied by nicolas on topic Re: View Cart
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 = "window.addEvent('domready', 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.
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 = "window.addEvent('domready', 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.
- bridgemics
-
Topic Author
- Offline
Less
More
- Posts: 6
- Thank you received: 0
14 years 9 months ago #34292
by bridgemics
Replied by bridgemics on topic Re: View Cart
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.
14 years 9 months ago #34323
by nicolas
Replied by nicolas on topic Re: View Cart
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).
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.172 seconds