As expected, as soon as I released the alpha a bunch of bugs popped up. I’m going to list them here as a reference for people who may be having similar problems.
I just found out about this and did a clean test install. After creating a few products, clicking on the product link gives me “404 Not Found, Unknown section”. Normal articles work ok.
This is my bad. I should’ve mentioned this. As WhiteDog has already figured out articles are by default created with the section ‘store’. Even if the section doesn’t exist. (I need update the installer script so it creates that section.) To fix this error for now, just create a section called “store”.
How do I display a product?
Sorry if I’ve got everyone’s hopes up. The store is not complete. Only the admin system is in Alpha. I still need to build the following items before it can be called a complete solution:
In the meantime, here’s a cheatsheet on how to access the product variables:
<h3><txp:permlink><txp:title /></txp:permlink> · <txp:posted /></h3> <txp:body />
<p>Price: <txp:custom_field name=“price” /></p>
<p>Weight: <txp:custom_field name=“weight” /></p>
<p>Vendor: <txp:custom_field name=“vendor” /></p>
<p>SKU: <txp:custom_field name=“sku” /></p>
<p>Stock: <txp:custom_field name=“stock” /></p>
<txp:article_image />
<div><img src=”<txp:site_url />images/1.gif” width=“400” height=“1” class=“divider” alt=”—-” title=”“ /></div>
Thanks to WhiteDog!
How do you show the actual custom field data? I created the custom fields in the store/product view and entered some values, but they don’t show up.
Right now custom fields are stored in their own table so the product doesn’t have to limit their number. That means that there’s no tag for them yet. :-( Soon though!
Hang in there, everyone.
— Levi Nunnink
Ads help support TextCommerce
Commenting is closed for this article.