Home Documentation PAPs Installation (Premium Version) Optional PAPs Installation Steps (Virtuemart)
Optional PAPs Installation Steps (Virtuemart)

Optional Installation Steps

The following steps are not required to get PAPs working, but may increase or enhance performance if required.


Enable Automatic Price Update When Attribute Option Images Are Clicked - In components/com_virtuemart/themes/YOUR_THEME/templates/product_details/flypage.tpl.php:

Find the following line:
<?php echo $product_price ?>

and replace it with:
<span id="price_display"><?php echo $product_price ?></span>

Enable 'Detached From Enlarged Image' as a Thumbnails Position Option - In /catalog/product_info.php:

If you want the position of your thumbnails to not be directly adjacent to the enlarged image, you need to select the 'Detached From Enlarged Image' position from the dropdown menu in the PAPs admin panel. In this case, the position of the line:

include('modules/mod_paps/includes/modules/paps.php');

within the components/com_virtuemart/themes/YOUR_THEME/templates/product_details/flypage.tpl.php file (which is placed in step 2 of the Fresh Installation process above) determines only the position of the thumbnails. A separate file must be included in the product_info.php page which will generate the enlarged picture wherever you place it. To include the enlarged picture elsewhere in your page, add the following line:

<?php include('modules/mod_paps/includes/modules/paps_layout/enlarged_pic.php'); ?>

to your components/com_virtuemart/themes/YOUR_THEME/templates/product_details/flypage.tpl.php file. As with the paps.php file included earlier, this display begins and ends with 'tr' tags, so should be placed within 'table' tags. Using this method, you can easily replace the default product image with the enlarged PAPs image.

 
Share

Copyright © 2012 Product Attribute Pictures. All Rights Reserved.