Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#337 2009-07-09 10:58:39

trenc
Plugin Author
From: Malmö
Registered: 2008-02-27
Posts: 572
Website GitHub

Re: yab_shop (simple textpattern shop with paypal support)

Hi mfos,

mfos wrote:

Great Plugin.
Have a problem – The basket and checkout doesn’t seem to be working correctly.
I added several items to the basket and sometimes it doesn’t update properly when navigating to othe pages etc. I’ve even tried to delete an item in the checkout, says i have deleted the item but if i click on proceed to checkout again, the item appears again in the checkout table.

Problem with page caching? If so how do I stop it?

The basket is put into my ‘header’ form. Shouldn’t be causing an issue there surely.

Any ideas?

Try do disable the »Send-Last-Modified-Header« in Textpattern Admin Preferences! I Think this causes this behaviour.

Offline

#338 2009-07-09 11:44:32

mfos
Member
Registered: 2008-12-11
Posts: 34

Re: yab_shop (simple textpattern shop with paypal support)

That sorted it.
Many many many thanks.
m

Offline

#339 2009-07-09 22:28:38

mfos
Member
Registered: 2008-12-11
Posts: 34

Re: yab_shop (simple textpattern shop with paypal support)

Hi again, Paypal related question this time.

Call me dumb but i’m struggling to get this sorted.

1. Do I need to buy an SSL cert for this setup?
2. How do I get a Private key? Nothing on my hosting CP (Plesk) that enables me to set one up.
3. I take it I don’t need to generate a button from within paypal.

Also, is there a way to get a product code into the checkout? Use of a custom field etc??

Cheers
Mike

Last edited by mfos (2009-07-10 08:07:01)

Offline

#340 2009-07-10 08:12:34

trenc
Plugin Author
From: Malmö
Registered: 2008-02-27
Posts: 572
Website GitHub

Re: yab_shop (simple textpattern shop with paypal support)

Hi mfos,

1. Do I need to buy an SSL cert for this setup?

No. SSL (in the meaning of a secured connection from client to your webserver) doesn’t make really sense on yab_shop this time, because orders will be send with a non-encrypted email.

2. How do I get a Private key? Nothing on my hosting CP (Plesk) that enables me to set one up.

See below.

3. I take it I don’t need to generate a button from within paypal.

Correct, you don’t need a generated paypal button.

Using Payal:

At first you (the shop owner) need a paypal business account. With an normal user account you can’t do this.

Then follow the instructions described here

Relevant Chapters are:

  • Setting Up Certificates Before Using Encrypted Website Payments
  • Blocking Unprotected and Non-encrypted Website Payments

Summarized you have to do this:

First you need an access to a unix or linux machine with an installed openssl. Maybe you have an ssh access to your hosting or web account and this is a unix or linux so you can do this. If you have no access to a linux/unix-machine you can do this on your home-pc. If you own a windows OS download and install this windows port of OpenSSL. With this tool you can create your private key on a windows pc (not tested, I have no machine running windows, but it should work).

1. 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, where my-private-key.pem is the name of the file which will be saved in your home directory.

2. 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 file my-public-certificate.pem will also be saved in the same place as your private key.

3. Then you have to upload your public certificate to your paypal business account. After this procedure you will get your paypal certificate id (CERT ID).

4. Now you can grab the paypal public certificate (it’s a file, too) from you paypal account.

5. As the last step place the three files (your own generated my-private-key.pem, my-public-certificate.pem and the paypal certificate paypal_cert.pem) in your hosting account and configure the shop in yab_shop_config as described in the plugin help.

6. Block unprotected and non-encrypted website payments by logging in your paypal business account. Go to Tab »Profile« -> »Selling Preferences« -> »Website Payment Preferences«. There in the »Encrypted Website Payments section« you should block the non-encrypted webseite
payments.

Same information you can find here in the textpattern forum and the other relevant part in the plugin help.

Last edited by trenc (2009-07-10 08:16:24)

Offline

#341 2009-07-10 10:25:17

mfos
Member
Registered: 2008-12-11
Posts: 34

Re: yab_shop (simple textpattern shop with paypal support)

Hi,
Ah, should have read further into the thread, sorry.

I use a mac so is there a way I can generate the key and cert in terminal or elsewhere?

Cheers
Mike

Offline

#342 2009-07-10 10:30:20

trenc
Plugin Author
From: Malmö
Registered: 2008-02-27
Posts: 572
Website GitHub

Re: yab_shop (simple textpattern shop with paypal support)

Hi,
Ah, should have read further into the thread, sorry.

No problem, the thread is meanwhile very long.

I use a mac so is there a way I can generate the key and cert in terminal or elsewhere?

I think so. IIRC OpenSSL is included in a MacOS installation.

So try it!:)

Offline

#343 2009-07-11 11:54:42

mfos
Member
Registered: 2008-12-11
Posts: 34

Re: yab_shop (simple textpattern shop with paypal support)

Hi,

All sorted with the certificates thanks.

1. Is there a way to easily remove the tax line from checkout?

2. Can I create a custom field for a product code which will be sent to paypal?

Cheers
Mike

Offline

#344 2009-07-12 11:45:02

trenc
Plugin Author
From: Malmö
Registered: 2008-02-27
Posts: 572
Website GitHub

Re: yab_shop (simple textpattern shop with paypal support)

Hi mfos,

1. Is there a way to easily remove the tax line from checkout?

You can comment out the lines in the code. But you have to comment out the lines for the order mails too. But after an yab_shop-update it will be removed again. :(

Another way would be to set the row unvisible via css.

2. Can I create a custom field for a product code which will be sent to paypal?

No sorry, product id or code support is not supported this time.

Offline

#345 2009-07-13 09:41:59

mfos
Member
Registered: 2008-12-11
Posts: 34

Re: yab_shop (simple textpattern shop with paypal support)

Hi again, sorry about this.

I’ve commented out the line on the checkout table which is cool.

I can see the line in the config line for the email, but i’ve realised that I’m not actually getting any emails. I only appear to receive paypal sandbox emails. Should I be receiving emails from the site itself only if payment isn’t paypal?

Cheers
Mike

Last edited by mfos (2009-07-13 09:43:54)

Offline

#346 2009-07-14 12:18:07

trenc
Plugin Author
From: Malmö
Registered: 2008-02-27
Posts: 572
Website GitHub

Re: yab_shop (simple textpattern shop with paypal support)

Hi mfos,

Should I be receiving emails from the site itself only if payment isn’t paypal?

Yes.

Quote of me

An email will not be sent if the payment methods are Google checkout or Paypal checkout for the following reasons: If an customer is on the third party payment page (say Paypal) and he decide not to finish the order so I have no feedback from Paypal this time about the cancel of the order. So it would be logical Paypal would manage the customer and admin order mails.

Last edited by trenc (2009-07-14 12:20:14)

Offline

#347 2009-07-18 19:40:36

dl33
Member
Registered: 2006-06-17
Posts: 192
Website

Re: yab_shop (simple textpattern shop with paypal support)

I get the following error message in the shop section:

 <txp:yab_shop_cart output="none" /> ->  Textpattern Warning: Unknown column 'yab_shop_price' in 'field list'
select ID as id, Title as name, yab_shop_price as price from hofundart_textpattern as textpattern where ID = 3  on line 82

Has anyone see this before?

Offline

#348 2009-07-19 10:38:51

trenc
Plugin Author
From: Malmö
Registered: 2008-02-27
Posts: 572
Website GitHub

Re: yab_shop (simple textpattern shop with paypal support)

Hi dl33,

does correspondent the 'custom_field_price_name' in your yab_shop_config with the name of your created custom field for prices?

Offline

Board footer

Powered by FluxBB