WP Ecommerce Template Tags
May 22nd, 2008, By Anthony
A growing list off all the template tags you can use to design and customize wp ecommerce, The plugin is still in its infancy and documentation is a little sparse but its a great ecommerce plugin for adding a shop to Wordpress.
Display Shopping Cart
Description
The template tag nzshpcrt_shopping_basket displays the shopping cart, usually used to add the cart to the sidebar or header.
Usage
< ?php echo nzshpcrt_shopping_basket(); ?>
Display Category or Brand
Description
The template tag show_cats_brands displays a list of the categories and brands. Usually used to list all the categories in a sidebar
Usage
<?php show_cats_brands(); ? >
Display Products from a Category
Description
The template tag wpsc_category displays a list of the products from a specified category. Usually used to create category pages.
Usage
[wpsc_category=2, full ]
Display Default Products
Description
The template tag productspage displays a list of the products from your default category, you set your default category in shop settings.
Usage
[ productspage ]
Display Homepage Products
Description
The template tag homepage_products displays a list of the products you set if “display on frontpage” is ticked for each individual product. Usually used for you shop homepage.
Usage
[homepage_products ]
-
Mike Cherim replied:
Can you give a link to a store or two using this?
-
Anthony replied:
I have sent a list for you Mike, you can find an updated list on Instincts Website.
-
Tony replied:
Where on the Instincts Website? .. and none of these even appear to work on 3.6.5
-
Flash Buddy replied:
[wpsc_category=2, full ] does not work for 3.6.6 in my install.
-
Flash Buddy replied:
I take it all back. I copied and pasted which left me with a space between the text ‘full’ and the bracket. Watch out for that!
-
Setting up an e-commerce site with Wordpress and WP e-commerce « Ikool’s Blogbed replied:
[…] WP Ecommerce Template Tags Possibly related posts: (automatically generated)CNET.com: Install a WordPress blog […]
-
Josh replied:
T-H-A-N-K you for this. I’ve looked everywhere but the moon for how to set up a page with all of the products listed. The homepage_products answer is great. I have a permalink question. My permalinks are set to /%year%/%postname%/ . To get individual product pages to work, I was creating individual product pages under this structure, and then redirecting them to this: ?product_id=123. Then I upgraded to the newest e-commerce plugin and can’t find a way to get to individual product pages. I’d like to put some of the gold modules that I purchased to use, but I can’t do it if I can’t link anything to individual product pages. Any advice would be greatly appreciated.
-
Anthony replied:
Firstly, I would post this on the Instinct Forum, then others can learn from your problem too. Ive emailed you Josh.
-
Frantisek Malina replied:
-
Jairus replied:
Is there a way to list -all- the products, alphabetically?
-
Shayne replied:
We’re very excited to release the WP ECommerce Bible. Check it out…
-
Dan Milward replied:
New WP e-Commerce Coming Soon
WP e-Commerce as a plugin is not in its infancy - WP e-Commerce 3.6.7 is about to be released and it is about to blow your mind.
It comes with serious e-commerce features for people that want a serious e-commerce solution. If you want to throw up an image with a price in a page or a post then by all means use YAk.
But if you want the real deal then WP e-Commerce is built on years of e-Commerce knowledge and has plenty of important features for people wanting to SELL Online - such as the ability to interface with many payment gateways, the ability to interface with shipping companies, and much much more…
The documentation that has been in its infancy is no longer in its infancy. WP e-Commerce is the only plugin with a book. WP e-Commerce has new fourms and I’m in the process of writing more doucmenation at the moment.
Anyway thanks to Anthony for posting this list.
I’ll be updating the list of tags as soon as possible. We’ve added a few more that should hopefully be added to 3.6.7
Template tags are very important because they let you put things like the ‘goto checkout button’, or the ’shopping cart’, or the category list anywhere in your Wordpress template… these are the types of things that give you freedom baby!!
Ciao,
Dan
-
Anthony replied:
I appreciate the work Instinct are putting into this product and am a user myself. But as an experienced e-commerce designer I’m afraid the documentation is still lacking in detail and form and a simple list of template tags is still not available (Instinct,feel free to copy and paste mine).
The wp-ecommerce bible seems it has been rushed, which is not acceptable given it costs money and the documentation designers really need is still unavailable.
I’ll be giving 3.6 a full review soon but can report that the accessibility is poor and we still do not validate transitional XHTML, never mind strict XHTML, also its still reliant on Javascript for core functionality- which as we all know should act as an extra behavioral layer on top of functional PHP. Semantically it still fails with tables doing alot of the layout work.
But its still the best Wordpress shopping cart and most e-commerce carts also rubbish web standards.
-
Dan Milward replied:
Hi Anthony. Thanks for such a prompt reply.
Tomorrow we will be replacing all the tables for divs and releasing WP e-Commerce 3.6.7
Sometime probably the end of next week we aim to release a fully Semantic version.
If you have any ideas for tags let me know. You have my email address - funnily enough as I’ve been writing the documentation I have been coming up with all sorts of things I’d like to see made into tags….
Any code volunteers ;)
Ciao,… Dan
-
Anthony replied:
@Dan, I’ll email you today, I have some ideas for tags. Very glad to hear about the semantic version, I’ll hold off my full review until its ready. With the features and better quality coding in place it sounds like this next version will be a milestone indeed.
-
Josh replied:
Does anybody have any statistics on how this plugin affects conversion? Or are we just talking about aesthetic ‘milestones’?