Link with VM

Phoca Gallery - image gallery extension
d70photographie
Phoca Member
Phoca Member
Posts: 12
Joined: 18 Apr 2011, 07:38

Link with VM

Post by d70photographie »

Hello,

If you click on the icon Shopping Cart at the bottom of the image we get in Virtuemart. This is normal.
If we want to return to the gallery, you must use the page in the browser, for a normal user it is not easy.
I added the function in flypage.tpl.php previous page.
This is not a standard way.
Thank you to do so in a way correct.

Ph. Dougoud

Code: Select all

if( $this->get_cfg( 'product_navigation', 1 )) {
	if( !empty( $previous_product )) {
		echo '<a class="previous_page" href="'.$previous_product_url.'">'.shopMakeHtmlSafe($previous_product['product_name']).'</a>';
	}
	
	echo '<a class="back_page" href="Javascript:history.go(-1)">  page pr&eacute;c&eacute;dente</a>';

	if( !empty( $next_product )) {		
		echo '<a class="next_page" href="'.$next_product_url.'">'.shopMakeHtmlSafe($next_product['product_name']).'</a>';
	}
}

Code: Select all

.back_page {
	background: url( 'images/backpage_16x16.png' ) no-repeat left;
	padding-left: 30px;
	line-height: 20px;
	float: center;
	width: auto;
}
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49190
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Link with VM

Post by Jan »

Hi, thank you for this guide.

Jan
If you find Phoca extensions useful, please support the project
Post Reply