Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#289 2009-05-03 12:59:37
Re: yab_shop (simple textpattern shop with paypal support)
trenc wrote:
Hi midmood,
I need to customize the emails that are sent once the client buy choosing a different method than paypal. I know how to use ZCR, but don’t know how to find the code to do this customization… can you help me?
yab_shop doesn’t use functions of ZCR. The email component is extra coded (or better mainly copied), ‘cause of the paypal/google checkout. These need some required fields, which will be checked from yab_shop.
You could hardcode your changes in the corresponding yab_shop function for the mail output. The function is named yab_shop_build_mail_body() and begins in the source code of v0.6.2 at line 1409.
thank you very much trenc. :-)
Offline
#290 2009-05-04 11:16:22
- gomedia
- Plugin Author
- Registered: 2008-06-01
- Posts: 1,373
Re: yab_shop (simple textpattern shop with paypal support)
trenc wrote:
New version v0.7.0 with a bunch of changes
Nice work, thanks.
Some observations:
- on product article listings, anchors (such as “select-size”/“select-colour”) really need to be unique
- the checkout
<table>
needs a “summary” attribute - the 0.6 config setting “use_property_prices” defaulted to 1, but the new 0.7.0 default is 0. It didn’t used to matter if it was switched on & Property Prices not used but now loads of errors are generated in this case (you can tell I blindly copied the config settings across!). Not really an issue, but worth noting for the upgrade instructions.
Cheers,
Adi
Offline
#291 2009-05-04 18:38:01
- immarabi
- Member
- Registered: 2008-04-29
- Posts: 57
Re: yab_shop (simple textpattern shop with paypal support)
trenc:
Thanks for the help so far. I sent my hosting company the directions on how to create the private key, etc. They say that they cannot perform these actions because I have a shared server. They said that I should just not encrypt the button.
I have never used Google Checkout. Is it as secure as Paypal? Why do you suggest having an encrypted PayPal button and not a Google Checkout one?
Offline
#292 2009-05-04 19:29:02
Re: yab_shop (simple textpattern shop with paypal support)
Hi Adi,
on product article listings, anchors (such as “select-size”/“select-colour”) really need to be unique
Oh sure, I’ve overseen this, thanks.
the checkout <table> needs a “summary” attribute
Ah ok, this attribute is new for me, but it makes sense.
the 0.6 config setting “use_property_prices” defaulted to 1, but the new 0.7.0 default is 0. It didn’t used to matter if it was switched on & Property Prices not used but now loads of errors are generated in this case (you can tell I blindly copied the config settings across!). Not really an issue, but worth noting for the upgrade instructions.
Hm, that’s true. But if it switched always on, it will call some never used functions and will produce some html code overhead (javascript snippets) especially on article listings.
Digital nomad, sailing the world on a sailboat: 32fthome.com
Offline
#293 2009-05-04 20:11:24
Re: yab_shop (simple textpattern shop with paypal support)
Hi immarabi,
Thanks for the help so far. I sent my hosting company the directions on how to create the private key, etc. They say that they cannot perform these actions because I have a shared server. They said that I should just not encrypt the button.
try to create the private key by yourself. Download the Win23OpenSSL and install it. With this tool you can generate the key by yourself (as described) on a windows computer, you don’t need a linux/unix computer.
I have never used Google Checkout. Is it as secure as Paypal? Why do you suggest having an encrypted PayPal button and not a Google Checkout one?
I recommended the encrypted paypal button before google checkout was implemented in yab_shop. Google checkout is using another method of sending his data to the google checkout account. This method is not so easy to modify from outside unlike an unencrypted paypal checkout button. So it’s your choice. Google checkout or encrypted paypal checkout. I’m not a security/encryption expert but I think both are similar safe.
And a good advice: Change your hosting company!
- Never ever let other people see or generate your own private key!
- It doesn’t matter if you are on a shared server or not, if you ask them to use a simple shell/bash comand (the unix/linux command line) — and nothing other is a key generation. Normally they can use every unix/linux server on their server farm.
- The advice not to encrypt the button is careless and negligent.
Either they want to get rid of you, or — in summary — the security in this company plays no real role (in the meaning of ignorance).
Both is crap and not nice for you!
Digital nomad, sailing the world on a sailboat: 32fthome.com
Offline
#294 2009-05-13 00:22:31
- samwieck
- New Member
- Registered: 2009-02-24
- Posts: 9
Re: yab_shop (simple textpattern shop with paypal support)
Hi everyone,
First off big thanks to trenc. Amazing plug-in and continued development. This is why I love TXP.
Just wondering if anyone has successfully integrated yab_shop with automatic file delivery (mp3s etc). Have an upcoming client project where they would like to sell CDs digitally and would love to use grassroots TXP stuff as opposed to building FoxyCart into the site.
Thanks in advance :)
Offline
#295 2009-05-13 05:10:19
- kostas45
- Member
- From: Greece
- Registered: 2007-11-08
- Posts: 61
Re: yab_shop (simple textpattern shop with paypal support)
samwieck wrote:
Just wondering if anyone has successfully integrated yab_shop with automatic file delivery (mp3s etc).
None, according to this
-Kostas
Offline
#296 2009-05-13 05:55:09
Re: yab_shop (simple textpattern shop with paypal support)
Great work Trenc!
After installing 0.7.0 I’m seeing the following warning in Testing mode:
Tag error: <txp:yab_shop_cart> -> Warning: array_flip(): Can only flip STRING and INTEGER values! on line 649
Everything appears to be still working but thought I would let you know.
Offline
#297 2009-05-13 07:54:35
Re: yab_shop (simple textpattern shop with paypal support)
Hi hidalgo,
thanks for the feedback. Can you say me what entries in your config do you have? I’m interessted in the following.
‘custom_field_price_name’
‘custom_field_property_1_name’
‘custom_field_property_2_name’
‘custom_field_property_3_name’
‘custom_field_shipping_name’
But the problem can depend on another txp-preference, ‘cause the complete prefs-array will be flipped.
Digital nomad, sailing the world on a sailboat: 32fthome.com
Offline
#298 2009-05-13 09:11:00
Re: yab_shop (simple textpattern shop with paypal support)
Hi trenc,
Thanks for your quick reply, the values are as follows:
‘custom_field_price_name’ => ‘Price’,
‘custom_field_property_1_name’ => ‘’,
‘custom_field_property_2_name’ => ‘’,
‘custom_field_property_3_name’ => ‘’,
‘custom_field_shipping_name’ => ‘’,
I’ve also tested re-uploading the default ‘yab_shop_config’ and it returns the same warning.
Offline
#299 2009-05-13 14:47:00
Re: yab_shop (simple textpattern shop with paypal support)
Hm, I think the usage of array_flip in this case was a mistake.
I will fix this in the next version.
Thank you for your reply!
Last edited by trenc (2009-05-13 14:47:42)
Digital nomad, sailing the world on a sailboat: 32fthome.com
Offline
#300 2009-05-19 10:32:57
- gomedia
- Plugin Author
- Registered: 2008-06-01
- Posts: 1,373
Re: yab_shop (simple textpattern shop with paypal support)
Hi trenc,
Couple of feature ideas:
Something to help promote the free shipping, e.g. along the lines of:
<txp:yab_shop_if_free_shipping>
Congratulations you've qualified for free shipping.
<txp:else/>
If you spend XX or more shipping is free.
</txp:yab_shop_if_free_shipping>
Also, a nice way of getting config settings into articles would be great. At the moment all I can think of is, for example:
Postage & Handling is charged at a flat rate of ==<txp:php>echo '$'.yab_shop_config('shipping_costs');</txp:php>==.
Cheers,
Adi
Offline