Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: yab_shop (simple textpattern shop with paypal support)
works nice… what about backyard?
Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?
Offline
Re: yab_shop (simple textpattern shop with paypal support)
As all guys here I’m interested too :)
Patrick.
Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.
Offline
Re: yab_shop (simple textpattern shop with paypal support)
I’ve rewrite the error message handling for required fields. I think i can release the plugin this weekend.
Digital nomad, sailing the world on a sailboat: 32fthome.com
Offline
#16 2008-02-29 20:47:11
- lee
- Member
- From: Normandy, France
- Registered: 2004-06-17
- Posts: 831
Re: yab_shop (simple textpattern shop with paypal support)
Can’t wait. Does it work with PayPal?
Offline
Re: yab_shop (simple textpattern shop with paypal support)
@the_ghost:
What do you mean with backyard?
@lee:
Not yet. A non encrypted paypal form would be relativly simple to implement, but i don’t want it, because it’s not secure. You can easily edit the hidden inputs fields (prices, sums etc.), bevor the order is send to paypal. I have in mind to implement an encrypted paypal form or button or maybe something like a php post request to paypal. It seems to me that could be more secure.
Digital nomad, sailing the world on a sailboat: 32fthome.com
Offline
Re: yab_shop (simple textpattern shop with paypal support)
i guess by backyard he means how things are handled in the backend…
Last edited by sthmtc (2008-03-01 09:38:20)
Offline
Re: yab_shop (simple textpattern shop with paypal support)
Ah, ok.
Backend handling (Localisation, Config) are handled in an additional plugin, that you have to edit. Similar to zem_contact_reborn and zem_contact_lang. The only interface i want to implement by the time is a small admin interface for order management .
Digital nomad, sailing the world on a sailboat: 32fthome.com
Offline
Re: yab_shop (simple textpattern shop with paypal support)
so every product is an article? how about the different variants, like color, etc? custom fields? (i’m just curious :) )
Offline
Re: yab_shop (simple textpattern shop with paypal support)
Can you add there nonce support as it takes out easy remote form submitting? We don’t want to get 10 000 orders in five minutes, or do we?
By nonce I just mean simple random md5 string check. The same string is on hidden input and also as variable. If they are same, then the form is submitted. Simple but powerful. Also textpattern uses that on comment system, and also it’s a one step on login validating.
Last edited by Gocom (2008-03-01 10:16:52)
Offline
Re: yab_shop (simple textpattern shop with paypal support)
@sthmtc:
Products are handled like normal articles. Only assigned to a specific section that you have to create and then named in the config. So all related plugins for articles, categories etc. should work, i hope so. :)
One custom field is required for price. Naming and custom field number are on your own. Variant, color, size are custom fields too (naming on your own, too), but these are not required. So there must be one custom field available at least (for price) or up to four available custom fields if you want all three additional product properties and the price field.
@Gocom:
Remote form submitting should not work, i think. The order form will showed only if the cart is not empty and after a successfully form submit the cart will be depleted.
But maybe i have errors in reasoning in this issue, ‘cause i’m not really skilled in this.
Digital nomad, sailing the world on a sailboat: 32fthome.com
Offline
Re: yab_shop (simple textpattern shop with paypal support)
This sounds awesome trenc, many thanks in advance for your hard work. On my record label site I think I’ll be able to use “Variant” as either “CD” or “mp3 download” for the music tracks/albums. The shopping cart I originally put together from various JavaScript solutions I found on the web is a little awkward for management of inventory.
A few things:
- Can discount rules be applied for bulk purchases / buy one get one free, etc?
- Where are the shipping costs calculated/set up? Can it do shipping costs per type/variant?
- Is there a way of handing off control to another article/script on successful payment (e.g. after successfully buying an mp3 I’d need to deliver the correct file to the buyer)
- PayPal integration: I’ve done this before and it’s not very tricky. As long as you tell PayPal your product codes and configure it to allow the other stuff (size, colour, shipping, etc) to be sent via form fields you can add a PayPal button to your site that takes the person to a customised portal on PayPal’s own site for secure payment processing, then redirect back to your site for a “thanks” message/subsequent processing. Not sure how it fits in with the plugin, but if you want any help with this, or to to see how I’ve done it in the past so it can be improved, just let me know
- I kind of agree with Gocom about the nonce checking. It might be a useful safeguard to build in as this plugin progresses. With an integrated payment system it’s probably not much of a worry because if a bot makes 10 000 requests for 3 Circles and a Pentagon, they’ve still got to pay for them before the order completes and 3rd party sites shouldn’t permit that. I’m not expert enough in XSS attacks to assess whether this is a problem or not.
Looking forward to trying this out when I get a chance. It looks very slick, thanks again.
Last edited by Bloke (2008-03-01 12:21:54)
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
Re: yab_shop (simple textpattern shop with paypal support)
Yep, looks pretty good.
Offline