News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

continue shopping

Started by supermac, January 20, 2012, 17:41:46 PM

Previous topic - Next topic

supermac

I'd like to change the link "continue shopping" that appears in the overlayed window when I insert a product in the cart.
I'd like to remain in the productdetail's page so I should change the link to make the current page reload.
Is it possible?
Where have I to change the code?
thx you all

jstratos

Not quite sure what you are asking in the second part of your post, but if you want to change the link for Continue Shopping, there are many references to this already in the Forum.

Briefly, there are 2 places where this can be done depending on the theme you are using, as some themes respond differently.

Here is what you can do using VM 1.1.7a:

Navigate to the /administrator/components/com_virtuemart/HTML/shop.cart.php - line 27

Change:
$continue_link = $sess->url( $_SERVER['PHP_SELF'].'?page=shop.browse&category_id='.$category_id );

To:
$continue_link = $sess->url( $_SERVER['PHP_SELF'].'your_store_location'.$category_id ); // Omit the www.domain.com


Another location is: /components/com_virtuemart/themes/your_theme/templates/pages/shop.cart.tpl.php - line 32

I personally use the follow to replace the line of code - this returns the user to the last page.

$continue_link = $sess->url( $_SERVER['PHP_SELF'].'?page=shop.product_details&flypage=flypage.tpl&product_id='.$product_id.'&category_id='.$category_id );

To change the name of Continue Shopping go here: /administrator/components/com_virtuemart/languages/shop/english.php around line 45.

Other references for older versions: http://forum.virtuemart.net/index.php?topic=55956.0 and http://forum.virtuemart.net/index.php?topic=80606.0

supermac