How To Add a Virtuemart Product to a Joomla Article
How do you add a virtuemart product to a regular Joomla article or module ? I have seen sites where they try and add the HTML code created by virtuemart for a product into an article, there is a simplier way of doing this.
Use the vmproductsnapshots plugin in the Joomla Plugin Manager. Ensure the plugin is enabled, the plugin has options to configure how the product is displayed - you can set product name to display, thumbnails, a short description and whether to show the proce and an add to cart button.
So to display a product in an article enter the following tag format into the body of the article
{product_snapshot:id=10}
This would display Product with id equal to 10 in the article where you positioned this code, and it would display the product in relation to the options that are set on the product plugin.
Showing multiple products try :
{product_snapshot:id=24|25|26}
or you can even set your own options that will override the plugin paramaters, use this format
{product_snapshot:id=xx,showname=y|n,showimage=y|n,
showprice=y|n,showdesc=y|n,showaddtocart=y|n,
displayeach=h|v,displaylist=v|h,width=90%,
border=0,style=color:black;align:left}

Virtuemart Product Plugin Options











Thank you for such a simple explanation. Been searching everywhere to find out how to do that…!
Thank you thank you!
Thanks for this I needed exactly this function to link from our International Trade Course description to our shopping cart and it worked great!
Thomas Smith
eBSI Export Academy
http://www.ebsi.ie/international-trade-course
thanks a lot ;]
Where can I find the download link for the vmproductsnapshots plugin?
When you download VirtueMart, you will get in the package the VirtueMart component, a set of 10 or so modules, and 2 plugins. These plugins are VM Product SnapShots (vmproductsnapshots_1.1.3.j15.zip) and VM Extended Search (vmxsearch_1.1.3.j15.zip). (I am referring to the plugin versions that come in the latest package of VirtueMart 1.1.3, but the plugins for previous versions work similarly).
Source:
http://forum.virtuemart.net/index.php?topic=50921.0
God be praised.
Nice article. I was looking for this solution since long time. Thanks for posting.
Simple solution for Virtuemart 2.0 : https://forum.virtuemart.net/index.php?topic=94539.0