hi
After going through numerous posts online, I am cluless on how to change the "continue shopping" links in VM2. I would like to take my site visitor to the site homepage at all instants of pressing the "continue shopping"
Please guide me with a step-by-step guide on this.
Using Joomla ver 2.5.17
Virtuemart ver 2.0.26a
Thanking you in anticipation.
Edit components/com_virtuemart/views/cart/tmpl/padded.php
In echo '<a class="continue" href="' . $this->continue_link . '" >' . JText::_('COM_VIRTUEMART_CONTINUE_SHOPPING') . '</a>';
replace ' . $this->continue_link . ' with your required link, possibly just index.php
Use the edited file as a template override. See http://docs.virtuemart.net/tutorials/33-templating-layouts.html and http://www.ostraining.com/blog/joomla/overrides
Thanks for the reply.
But, the solution given by you only works when the product is added to cart and facebox asks to "continue shopping". it doesn't edit the link in the cart at checkout. where do I make a change for that?
regards
For the benefit of others, here's a useful link:
http://virtuemart2.blogspot.in/2012/03/templates.html
You really can't work that out? It is in /components/com_virtuemart/views/cart/tmpl/default.php and is obviously labelled.
Sorry for sounding dumb. but since I am not a coder, I still can't figure it out.
This is what I am guessing is the code in the default.php that needs to be changed:
// Continue Shopping Button
if (!empty($this->continue_link_html)) {
echo $this->continue_link_html;
Are you suggesting:
echo $this->index.php ?
or should it be
echo index.php ?
btw, I am using onepagecheckout plugin; I hope it shouldn't make a difference.
Thanking you in anticipation !!
regards
Rajesh
In that case you will will have to edit the OPC template which should be in your joomlatemplate/html/ directory. The code will almost certainly be different there so if you can't work it out ask the OPC plugin supplier. http://forum.virtuemart.net/index.php?topic=108212.0
For those who use the default VM templates the file to edit to make an override is /components/com_virtuemart/views/cart/tmpl/default.php
The code to edit is clearly labelled as // Continue Shopping Button
The plugin supplier says I need to change it in the standard virtuemart files only !!
So, please help me with this...
regards
Rajesh