A shortcode is a bit of text you can put in your posts that get filtered and changed into something useful. For example, a lot of forums use "bbcode" which stands for bulletin board code, which is a type of short code. They have tags like [b] for bold, [i] for italic and so on.
LBAK Google Checkout uses its own shortcode system to let you easily post your products to your blog. Simply enter:
[checkout product="1"]
To post the product with an ID of 1 to your blog. The product attribute also supports lists of comma separated values for posting multiple products to your blog. Example:
[checkout product="1, 2, 23, 5"]
This will print out 4 products with the respective 1, 2, 23 and 5 product IDs. Product also supports the "all" value which is seld explanatory . You can also print out everything in a category by specifying the category attribute:
[checkout category="Example"]
This will print out everything in the category "Example". You can combine this with the product attribute to print out items not in the specified category.
Other attributes:
price - let's you specify pricing rules such as price=">20" will only print out products that cost more than 20 of whatever currency it is you are trading in. You can use >, <, >=, <= or specify a range like "x-y" with x and y being 2 numbers, eg "20-30". This can only be used in conjunction with product and or category. Just typing [checkout price="<20"] will show nothing, you would have to do [checkout product="all" price="<20"] to display all of your products under 20 of whatever currency you're trading in.
style - The style attribute will apply CSS styles to the outer most div on the product. This is useful for
specifying things like size: [checkout product="all" style="width: 50%"] for example.
Back to top