Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: Thinking about building an e-commerce plugin...
Really, JW? That’s strange. What version of TXP are you running?
~ Levi ———————————-
- TextCommerce is being developed
- My Portfolio
Offline
#17 2007-03-01 18:32:39
- -jw-
- Member

- From: fruitbelly, the Netherlands
- Registered: 2004-03-16
- Posts: 79
Re: Thinking about building an e-commerce plugin...
4.0.4.
mmm that much a suprise! OK, I’ll try a fresh install of both txp en textcommerce and see what happens.textile deletes my identity
Offline
Re: Thinking about building an e-commerce plugin...
That’s odd. I’m using 4.0.4 and I’m not having any problems. Did you follow all the nightly build install instuctions?
~ Levi ———————————-
- TextCommerce is being developed
- My Portfolio
Offline
#19 2007-03-01 20:34:55
- -jw-
- Member

- From: fruitbelly, the Netherlands
- Registered: 2004-03-16
- Posts: 79
Re: Thinking about building an e-commerce plugin...
Just did a fresh instal of txp and the plugin. Same issue. Maybe because it’s on a subdomain, I dont know. Will try a tld tommorow and let you know
textile deletes my identity
Offline
Re: Thinking about building an e-commerce plugin...
A subdomain could be the issue but I’m not sure. This is such a non-hardened plugin that the problem could be almost anything. I’ll be interested to hear if you turn anything up.
~ Levi ———————————-
- TextCommerce is being developed
- My Portfolio
Offline
#21 2007-03-05 12:11:04
- -jw-
- Member

- From: fruitbelly, the Netherlands
- Registered: 2004-03-16
- Posts: 79
Re: Thinking about building an e-commerce plugin...
installing from the nightly gives me this error when I do a upgrade off the already existing plugin
Parse error: syntax error, unexpected $end in /users/home/me/domains/my.subdomain.com/public_html/textpattern/lib/txplib_misc.php(512) : eval()'d code on line 2144 The above errors were caused by the plugin:ln_txp_commerce
when I do a fresh install (local dev with xampplite) it does not work at all. Error message is:
badly formed or empty plugin code
textile deletes my identity
Offline
#22 2007-03-05 14:24:27
- kevinpotts
- Member

- From: Ghost Coast
- Registered: 2004-12-07
- Posts: 370
Re: Thinking about building an e-commerce plugin...
I just want to throw in my support for this plugin — it’s shaping up to be a great piece of software.
Kevin
(graphicpush)
Offline
Re: Thinking about building an e-commerce plugin...
[update] fresh install, went through all the steps, empty (blank window with select) store tab.
Last edited by mrdale (2007-03-05 16:49:03)
Offline
Re: Thinking about building an e-commerce plugin...
Okay – I figured out the problem. There’s a size limit on the plugins (see this thread) so my plugin is getting truncated by the database. There’s a couple of ways to get around this:
- Alter the
txp_pluginstable so it accepts larger plugins. - Break the admin plugin into separate smaller plugins
I’m thinking that seeing as we’re already modifying the db schema we might as well just update the txp_plugins , unless someone has a good reason why this is a bad idea.
Here’s the fix sql (I’ll update the install instructions on the site too):
ALTER TABLE txp_plugin CHANGE code code MEDIUMTEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
CHANGE code_restore code_restore MEDIUMTEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL
Last edited by a_band (2007-03-05 17:46:49)
~ Levi ———————————-
- TextCommerce is being developed
- My Portfolio
Offline
#25 2007-03-06 01:09:04
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Thinking about building an e-commerce plugin...
(I’ve moved this discussion to the main Plugins forum, as this is discussing a work in progress, rather than a request. :) )
Offline
Re: Thinking about building an e-commerce plugin...
>a-band
OK works again, thanks, looks like you’re moving right along…
I think you should use TXPs existing “image” and “category” capabilities, rather than duplicate those functions. What do you think?
Offline
#27 2007-03-06 15:20:14
- -jw-
- Member

- From: fruitbelly, the Netherlands
- Registered: 2004-03-16
- Posts: 79
Re: Thinking about building an e-commerce plugin...
Well, I’m a bit further I think.
I found that I’m not able to acces the article event (content -> write tab) nor the admin event (admin -> site admin tab) when this plugin is installed. Here is what I do (plugin installed):
Login to textpattern gives me a blank screen (event=article)
via the adress bar go to event=store everything is fine
click the top nav bar tab admin results in a blank screen as does clicking the content tab
via the adresbar go to event=image everything is fine, wich also goes for the other events except the two mentioned above
I can live with this, don’t get me wrong. I think textpattern and it’s userbase is going to benefit a great deal from this plugin.
textile deletes my identity
Offline
Re: Thinking about building an e-commerce plugin...
Woow This sound promising! Luv it!
Just a question … wich payment methods this will use?
What about “pay and download”, I mean if you’re going to sell some kind of digital files (Eg.: MP3s) … would TextCommerce suitable to do that?
Thx in advance!
Offline
Re: Thinking about building an e-commerce plugin...
mrdale I think you should use TXPs existing “image” and “category” capabilities, rather than duplicate those functions. What do you think?
I’m totally down with that, as the kids say. I was already planning on using TXPs category functions but I did custom-write all the image upload functionality. I’ll take a look at the codebase and see what I can use.
jw I found that I’m not able to acces the article event (content -> write tab) nor the admin event (admin -> site admin tab)
That’s very strange. It must be overriding those events. I’ll look into that and get back to you.
duchamp Just a question … wich payment methods this will use?
Well, the standard ones like PayPal & Credit Cards Gateways. The goal would be that each payment method would be a separate plugin and if none suited your needs you could just write your own payment plugin. My goal is to write a few payment plugins as examples before the ‘official’ release.
What about “pay and download”, I mean if you’re going to sell some kind of digital files (Eg.: MP3s) … would TextCommerce suitable to do that?
I’ve been thinking about that. I haven’t implemented anything but it occurs to me that we could easily use TXP file upload functionality to sell digital files. You could just create a product and assign it a file to download after purchase. This would probably be version 2 functionality though…
By the way Alex, you are an amazing illustrator. Your site is astounding. If you ever want to donate a bit of e-commerce themed artwork to the project, feel free to do so… :-)
~ Levi ———————————-
- TextCommerce is being developed
- My Portfolio
Offline
Re: Thinking about building an e-commerce plugin...
a_band wrote: By the way Alex, you are an amazing illustrator. Your site is astounding. If you ever want to donate a bit of e-commerce themed artwork to the project, feel free to do so… :-)
Thanks a lot! I like the idea … I’m going to put this on my ToDo’s list!
Offline