Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#133 2008-06-18 23:36:43
Re: yab_shop (simple textpattern shop with paypal support)
Here is an idea for allowing price point such as:
1-5 of item A at $10
6-10 item A at $9
11-99 item A at $7
This way there are different price points with a reduction in cost as the number of same items bought increases.
I think this can be accomplished already but noticed there has been no mention of ‘price points’ in the thread. This would be a useful feature for this plugin. Also, the ability to relate separate items in a way that allows for a price reduction. For example if you buy 5 oranges and 5 apples you get the rate for ten ‘fruit’ items.
Last edited by whaleen (2008-06-19 01:45:49)
txtstrap (Textpattern + Twitter Bootstrap + etc…)
Offline
#134 2008-06-19 01:44:45
Re: yab_shop (simple textpattern shop with paypal support)
I am getting the following returned from Google Checkout:
<error xmlns=“http://checkout.google.com/schema/2” serial-number=“8d1f8617-0425-4d12-a7a6-c12e9e57964a”> <error-message>Error parsing XML; message from parser is: cvc-complex-type.2.4.b: The content of element ‘item’ is not complete. One of ‘{http://checkout.google.com/schema/2, http://checkout.google.com/schema/2, http://checkout.google.com/schema/2, http://checkout.google.com/schema/2, http://checkout.google.com/schema/2, http://checkout.google.com/schema/2, http://checkout.google.com/schema/2, http://checkout.google.com/schema/2, http://checkout.google.com/schema/2, http://checkout.google.com/schema/2, http://checkout.google.com/schema/2, http://checkout.google.com/schema/2’ is expected.</error-message>
</error>
It seems that “The content of element ‘item’ is not complete.”
This is the XML that Google received:
<?xml version=“1.0” encoding=“UTF-8”?>
<checkout-shopping-cart xmlns=“http://checkout.google.com/schema/2”><shopping-cart><items><item><item-name>Mega Green Organic Fish Fertilizer</item-name><unit-price currency=“USD”>159.00</unit-price><quantity>3</quantity></item></items></shopping-cart></checkout-shopping-cart>
Some data is getting through. Any idea why others are not?
txtstrap (Textpattern + Twitter Bootstrap + etc…)
Offline
#135 2008-06-19 11:36:48
Offline
#136 2008-06-19 17:43:22
Re: yab_shop (simple textpattern shop with paypal support)
That’s great trenc. We’re all bug free from my perspective. I can’t thank you enough.
txtstrap (Textpattern + Twitter Bootstrap + etc…)
Offline
#137 2008-06-25 17:50:51
- donkeyd
- New Member
- Registered: 2008-06-22
- Posts: 5
Re: yab_shop (simple textpattern shop with paypal support)
Is it possible for anybody to implement the useage of authorize.net with this plugin?
im trying to keep everything contained within textpattern and dont really want to use another cart script.
please help
thanks
Offline
#138 2008-06-26 18:38:10
- mauricenaef
- Member
- Registered: 2008-01-31
- Posts: 23
Re: yab_shop (simple textpattern shop with paypal support)
- First create a private key with the following command:
openssl genrsa -out my-private-key.pem 1024
– this will produce a 1024bit long RSA key for you, wheremy-private-key.pem
is the name of the file which will be saved in your home directory. - With this key/file you can create your public certificate now:
openssl req -new -key my-private-key.pem -x509 -days 365 -out my-public-certificate.pem
– During the generating process you will be asked some questions about the owner of the certificate. The filemy-public-certificate.pem
will also be saved in the same place as your private key. - Then you have to upload your public certificate to your paypal account. After this procedure you will get your paypal certificate id (CERT ID).
- Now you can grab the paypal public certificate (it’s a file, too) from you paypal account.
- As the last step place the three files (your own generated
my-private-key.pem
,my-public-certificate.pem
and the paypal certificatepaypal_cert.pem
) in your hosting account and configure the shop in yab_shop_config as described in the plugin help.
hi trenc
Im having some problems on the paypal encription side. Somehow I keep on getting the error message from paypal “We were unable to decrypt the certificate id”.
I have followed the steps you describe above so I wonder if I have done something wrong? I have created the .pem keys with my Mac (terminal), could that be a problem?
My paypal should be configed okay, but ill tripple check!
Thanks in advance,…
regards Marcel
Offline
#139 2008-06-26 23:20:47
- donkeyd
- New Member
- Registered: 2008-06-22
- Posts: 5
Re: yab_shop (simple textpattern shop with paypal support)
question….
when an order goes thru, do i receive an email or some kind of notification that an order has gone thru?
and also i am having issues setting up the encrypted button. i can send with non encrypted but confused about the setup for encrypted button.
can someone please explain how to set this up?
i guess what i need to know is how to make the pem file that gets uploaded to paypal
thanks
Offline
#140 2008-06-28 09:28:15
Re: yab_shop (simple textpattern shop with paypal support)
Hi there,
authorize.net is not planned to implement this time, credit card payments can be done via paypal IIRC.
Paypal:
I myself followed the description of the paypal site Encrypting Buttons Dynamically with Encrypted Website Payments and all works fine.
@mauricemaef:
Maybe you uploaded your private key instead of your certificate. Both are .pem.
The Mac-OpenSSL should not be the problem. I can’t really figure it out.
@donkeyd:
An admin notification will always (after a successfull order) be sent (to the given mail adress in config 'admin_mail'
), if your hosting are able to send mails (php mail function). If zem_contact_reborn does send mail so this plugin will work too.
For the encrypted paypal function I can only refer to the official paypal site Encrypting Buttons Dynamically with Encrypted Website Payments and to the relevant post in this forum. You have to create two certificates and one private key with OpenSSL (a tool for encryption). The approache is described in this post and a link to the windows port of OpenSSL.
Offline
#141 2008-07-07 06:10:50
Re: yab_shop (simple textpattern shop with paypal support)
trenc Is it possible to have one of the properties add an additional price to the product…an example:
You have a product called Widget that costs $10
You have a color property select box
Widget comes in Black and Red
Red costs $5 more
so you select the Color property Red and $5 is added to the Widget Price making the total price when added to cart $15
I hope that made sense….let me know thanks
Offline
#142 2008-07-08 12:57:15
Offline
#143 2008-07-15 21:41:06
- grinstead
- Member
- From: UK
- Registered: 2006-10-06
- Posts: 19
Re: yab_shop (simple textpattern shop with paypal support)
Hi, 1st if all, great plugin and thanks for your time spent on it.
Just a quick question, I don’t seem to be getting email notification on orders. Is this done on completion of Paypal payment or once the checkout redirects to Paypal? Either way both don’t work, my host does allow php mail function!
Thanks
Offline
#144 2008-07-16 13:18:19
- grinstead
- Member
- From: UK
- Registered: 2006-10-06
- Posts: 19
Re: yab_shop (simple textpattern shop with paypal support)
Me again, is it possible to have one of the custom fields as a text input? Cheers
[Update]
Ok seems that I’ve managed to find a way for the text input,
Changed this..
function yab_shop_type_select_custom($array, $name = 'type')
{
$out = '<select name="'.$name.'" id="select-'.$name.'">'.n;
foreach ($array as $option)
{
$option = trim(htmlspecialchars($option));
$out .= t.'<option value="'.$option.'">'.$option.'</option>'.n;
}
$out .= '</select>'.n;
return $out;
}
to
function yab_shop_type_select_custom($array, $name = 'type')
{
$out = '<input type="text" name="'.$name.'" id="select-'.$name.'" />'.n;
return $out;
}
Then I simply add a character in the custom field on the product I want to have a text input applied to.
Not sure if this is the best way but seems to work :)
Last edited by grinstead (2008-07-16 16:09:55)
Offline