Just use this code:
<a href="#" onclick="history.go(-1);return true;">go back</a>
Just use this code:
<a href="#" onclick="history.go(-1);return true;">go back</a>
VirtueMart supports Manufacturer details but by default it just shows the manufacturer’s name in brackets, with a javascript pop-up window, that looks pretty ugly.
Fortunately we can add the logo by using the description field of the Manufacturers details and by hacking one file.
The following is tested and works for VirtueMart 1.1.3 and 1.1.4
So, open /administrator/components/com_virtuemart/html/shop.product_details.php
First of all, let’s open these three files first:
- shop.browse.php in /administrator/components/com_virtuemart/html/shop.browse.php
- ps_product.php (Open this for explanation purpose)
- browse_1.php (The browse page in which your browse page is using)
First open
www.yoursite.com\components\com_virtuemart\themes\default\templates\product_details\flypage.tpl.php
find the line:
<?php echo $product_image ?>
and change it with this one:
<a href=”<?php echo $mosConfig_live_site; ?>/components/com_virtuemart/shop_image/product/<?php echo $product_full_image; ?>” target=”_blank”>
<img src= ” <?php echo $mosConfig_live_site; ?>/components/com_virtuemart/shop_image/product/<?php echo $product_full_image; ?>” class=”fullvmimage” >
</a>
then style the class=”fullvmimage” somewhere in the css files
Enter this code in your .htaccess file after the
RewriteEngine On line:
RewriteCond %{HTTP_HOST} ^your-site\.com [NC,OR]
RewriteCond %{HTTP_HOST} ^(www\.)?blablabla\.bg[NC]
RewriteRule (.*) http://www.your-site.com/$1 [L,R=301]
Redirect 301 /home http://www.your-site.com/
Copy the error.php file from your-site/templates/system to your template main directory.
Then just open the error.php file from your Joomla template and edit it.
If you want to redirect to a sitemap on your site for example use this code at the top of the error.php file before everything in the file write:
<?php
defined( '_JEXEC' ) or die( 'Restricted access' );
if (($this->error->code) == '404') {
header('Location: http://www.yoursite.com/sitemap');
exit;
}
?>