Posts Tagged ‘virtuemart plugin’
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