Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#85 2007-04-25 13:36:51
- WhiteDog
- Member
- From: Maine
- Registered: 2005-09-07
- Posts: 174
Re: Thinking about building an e-commerce plugin...
First I want to say it is simply amazing the amount of work thus far and options! I was blown away by what you had done.
I too am running into the same problem as rr
as an added note I realized that since the section was missing I added the appropriate section called store
at which point the error resolved to “The requested page was not found”
Last edited by WhiteDog (2007-04-25 14:15:18)
Grrr RRR nnndth grrr Skeek!
Offline
#86 2007-04-25 14:22:22
- WhiteDog
- Member
- From: Maine
- Registered: 2005-09-07
- Posts: 174
Re: Thinking about building an e-commerce plugin...
rr wrote:
Great work! 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.
OK to resolve this you need to, add a section called store and use default page, then go to admin and switch to messy urls. It should now display it as an article. Use <txp:article_image /> to display images.
I am not sure though how to call such things as price or weight, but I will keep looking into it.
Last edited by WhiteDog (2007-04-25 14:35:37)
Grrr RRR nnndth grrr Skeek!
Offline
#87 2007-04-25 18:26:27
- WhiteDog
- Member
- From: Maine
- Registered: 2005-09-07
- Posts: 174
Re: Thinking about building an e-commerce plugin...
Ok I figured out how to display the rest of the fields, the only thing I can’t figure is how to actually buy an item. To see vendor, price, weight, sku, and any other fields you need to do the following add custom fields
The fields you need to add are called price, weight, vendor, sku, and stock. I can’t say if this will be how the final version pans out but this is what you need to do for now.
Hope that helps.
Grrr RRR nnndth grrr Skeek!
Offline
#88 2007-04-25 19:05:48
- -rr-
- Member
- Registered: 2005-09-11
- Posts: 73
Re: Thinking about building an e-commerce plugin...
Anybody got an example of a form for product info display?
Offline
Re: Thinking about building an e-commerce plugin...
@WhiteDog: from my understanding Levi only developed the admin part of the plugin and all the other things are yet to be implemented…
Offline
#90 2007-04-25 19:31:37
- -rr-
- Member
- Registered: 2005-09-11
- Posts: 73
Re: Thinking about building an e-commerce plugin...
Ok, created “store” section, added a section link to the store section and voilá, it works, no 404 error.
Cant’ make the item info: price, weight, vendor, sku, and stock show up yet, never mind buying. A basic guide on how this is done would be nice.
Offline
#91 2007-04-25 19:31:50
- WhiteDog
- Member
- From: Maine
- Registered: 2005-09-07
- Posts: 174
Re: Thinking about building an e-commerce plugin...
rr wrote:
Anybody got an example of a form for product info display?
This is what I threw together
<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>
On an added note i have been able to turn messy urls off now
Last edited by WhiteDog (2007-04-25 19:32:22)
Grrr RRR nnndth grrr Skeek!
Offline
#92 2007-04-25 20:22:08
- -rr-
- Member
- Registered: 2005-09-11
- Posts: 73
Re: Thinking about building an e-commerce plugin...
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.
I would suppose this whole custom field step is unnecessary since the price/weight etc. info are entered in the product form already. We need to know what functions to use to call them up.
Last edited by -rr- (2007-04-25 20:22:26)
Offline
Re: Thinking about building an e-commerce plugin...
Good morning, everyone. I’ll try to answer all the questions as best I can.
I downloaded the patched install of TxP – which installed fine – now I just need a couple of pointers to work out how to start playing with it.
On a standard install of the patched version, the ‘Store’ tab just gives me a 404, and I don’t see any other hints for operation…
This is really odd. I don’t think it should never give you a 404 error. At worst TXP just won’t recognize the action and give you a blank screen with the logo at the bottom. The correct url should be: <code>http://yoursite.com/textpattern/index.php?event=store</code>. Is that the URL that’s giving you the 404?
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”.
from my understanding Levi only developed the admin part of the plugin and all the other things are yet to be implemented…
Sven is right. Sorry to get everyone’s hopes up. The store is not complete. I still need to build the following items before it can be called a complete solution:
- A PayPal checkout system
- A shopping cart
- Product display tags
In the meantime WhiteDog has posted a great 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, 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!
~ Levi ———————————-
- TextCommerce is being developed
- My Portfolio
Offline
#94 2007-04-25 20:32:41
- WhiteDog
- Member
- From: Maine
- Registered: 2005-09-07
- Posts: 174
Re: Thinking about building an e-commerce plugin...
I assumed the data was in it too, but for now in the admin under advanced preferences you need to add the custom fields price, sku, weight etc…
Then once you do that in a form add the above data I listed and it will show the form info. When the plug-in is finished i am sure this will all be uneccesary
Grrr RRR nnndth grrr Skeek!
Offline
Re: Thinking about building an e-commerce plugin...
a_band wrote:
I downloaded the patched install of TxP – which installed fine – now I just need a couple of pointers to work out how to start playing with it.
On a standard install of the patched version, the ‘Store’ tab just gives me a 404, and I don’t see any other hints for operation…
This is really odd. I don’t think it should never give you a 404 error. At worst TXP just won’t recognize the action and give you a blank screen with the logo at the bottom. The correct url should be: <code>http://yoursite.com/textpattern/index.php?event=store</code>. Is that the URL that’s giving you the 404?
Hi Levi,
Yep that’s the URL being displayed, and this is a screenshot of the error…
Thanks for any help…
Offline
#96 2007-04-25 21:34:53
- -rr-
- Member
- Registered: 2005-09-11
- Posts: 73
Re: Thinking about building an e-commerce plugin...
Any estimate in what time table there might be something complete to try out?
a_band wrote:
Sorry to get everyone’s hopes up. The store is not complete. I still need to build the following items before it can be called a complete solution:
- A PayPal checkout system
- A shopping cart
- Product display tags
Offline