|
It seems that every time I go to add a VirtueMart product to a content item, I cannot remember the specific syntax to be used in the product snapshot mambot.
So, in the interests of jogging my memory in the future, I'm going to document the link to the documentation here.
As you would expect, this information is available on the VirtueMart forums:
http://forum.virtuemart.net/index.php?topic=39493.0
vmProductSnapShot for VirtueMart 1.1
USAGE INSTRUCTIONS
Change the y/n as per the instructions below to turn on/off things like the add to cart button, price and etc.
Syntax:
[product_snapshot:id=XX,
showname=y|n,
showimage=y|n,
showprice=y|n,
showdesc=y|n,
showaddtocart=y|n,
displayeach=h,
displaylist=v,
width=90%,
border=0,
style=color:black;,
align=left]
Example:
[product_snapshot:id=7,showname=y,showimage=y,showprice=y]
Note: Use {} instead of []
string id (product_id) replace XX with the product you want to show, to show more than one prodcut, separate with vertical bar |
string showname (show the product name? y or n)
string showimage (show product thumbnail? y or n)
string showprice (show the product price? y or n)
string showdesc (show the product short description? y or n)
string quantity (the quantity to add to cart. Separate with vertical bar when there's more than one product eg 1|2|1)
string showaddtocart (show an "Add-to-cart" link? y or n)
string align (can be default (empty), left, right or center)
Sets the alignment of the product snapshot table within the content.
string displayeach (the horizontal or vertical orientation of the product attributes. h or v)
string displaylist (the horizontal or vertical orientation of the products.
It only applies when there is more than one sku. h or v)
string width (The width of the Table element)
string border (The value of the Border attribute of the Table element)
string style (the value for the style attribute of the Table element)
Upgrading from earlier version.
In
VirtueMart 1.0.x 'vmproductsnapshots' was 'mosproductsnap' hence you
need to unpublish 'mosproductsnap' and install/publish
'vmproductsnapshots'
THANK YOU TO PETER for posting this!
There is also a product_link mambot if you just want a link in your content item that jumps to the product:
Usage:
{product_link:id=XX, my link text} >> insert a link to product with id=xx and show "my link text" as link text
{product_link:sku=XX, my link text} >> insert a link to product with sku=xx and show "my link text" as link text
{product_link:id=XX} >> insert a link to product with id=xx and show product name as link text
{product_link:sku=XX} >> insert a link to product with sku=xx and show product name as link text
See this VirtueMart forum article for details and the mambot:
http://forum.virtuemart.net/index.php?topic=35883.0
Views: 4817
Only registered users can write comments. Please login or register. Powered by AkoComment Tweaked Special Edition v.1.4.6 AkoComment © Copyright 2004 by Arthur Konze - www.mamboportal.com All right reserved |