Home Arrow Icon FAQ Arrow Icon Installation & Troubleshooting Arrow Icon Wishlist Translate/Customize

Wishlist Translate/Customize

Q. How can I localize it? Where can i find the language file?

A. Wishlist language files are en-GB.com_vmwishlist.ini and en-GB.mod_vmwishlist.ini in /language/en-GB/ folder. You need to change their name and copy these files to your language folder. For example, to translate into french, you need to copy those files to /language/fr-FR/ as fr-FR.com_vmwishlist.ini and fr-FR.mod_vmwishlist.ini.


Q. How can I customize the layout/css?

A. You can modify these files:

/modules/mod_vmwishlist/tmpl/default.php
/components/com_vmwishlist/views/mywishlist/tmpl/default.php


Q. Can I place an "Add to wish list" link somewhere else? I need to place it at a different position.

A. Our extension automatically places a red heart icon in each product details page and all category pages. However, you can turn it off from plug_vmwishlist parameter named "Automatic 'Add to wish list' icon?". 

If you want to add a custom link or image in product detail page for 'Add to wishlist' operation, you need to add the following line in your virtuemart template php file.

<a title="Add to wish list" onclick="addToWishlist(<?php echo $this->product->virtuemart_product_id ?>); return false;" href="#">Add to wish list</a>

Important:
1) Make sure that you add above html link outside of php tags.
2) Set "Automatic 'Add to wish list' icon?" parameter to NO in plug_vmwishlist options in Joomla back end.

Details:
First look for product details template in your templates override folder, i.e.

/<your-website-path>/templates/<your-template>/html/com_virtuemart/productdetails/default.php

If the file is not available then edit the following file;

/<your-website-path>/components/com_virtuemart/views/productdetails/tmpl/default.php

and add the link that is mentioned above.

Of course change <your-website-path> and <your-template> with actual path and your website template folder name.

Custom "Add to Wishlist" link in category pages:

Our extension automatically adds an 'Add to wishlist' heart icon also in category pages. If that does not appear in your template or if you want to change it with your own custom link, please add the following link in your virtuemart category page template file.

<a title="Add to wish list" onclick="addToWishlist(<?php echo $product->virtuemart_product_id ?>); return false;" href="#">Add to wish list</a>

Details:
First look for product details template in your templates override folder, i.e.

/<your-website-path>/templates/<your-template>/html/com_virtuemart/sublayouts/products.php

If this file is not available then edit the following file;

/<your-website-path>/components/com_virtuemart/sublayouts/products.php

and add the link that is mentioned above.

Q. How to change images for "Add to Wishlist" link?

A. Connect with FTP and go to following folder;

/plugins/system/plug_vmwishlist

There you see two images, wishlist-add.png   and  wishlist-added.png. You can replace them with your own images while keeping the names same.

Q. How to customize My Wishlist details view?

A. Please do the following;

1) Make this folder
/templates/<template name>/html/com_virtuemart/mywishlist/

2) copy the following file 
/components/com_virtuemart/views/mywishlist/tmp/default.php
to
/templates/<template name>/html/com_virtuemart/mywishlist/

3) edit
/templates/<template name>/html/com_virtuemart/mywishlist/default.php
to hide whatever things you want.

Note: change   <template name> to your actual template name  in above instructions.

If any problem, feel free to contact us.