Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / Cant Add Paypal Buy Now Button

Cant Add Paypal Buy Now Button

Locked

Views: 4,332

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
22 Nov 2008, 5:47 PM
#1
snarfy avatar

snarfy

Zen Follower

Join Date:
Apr 2008
Posts:
178
Plugin Contributions:
0

Cant Add Paypal Buy Now Button

I’m trying to add a buy now button on my site, I have the code from PayPal and have added it to the page you see after you have created an account, which is fine and works like a dream, but my problem is if people move away from the Your Account Has Been Created! Page they can no longer get to the buy now button,

I have added the buy now button code to an item I am selling in the categories but when people click on this link it say your shopping cart is empty,

Here’s the link

http://www.scrap-archives.com/index.php?main_page=product_info&cPath=4&products_id=1

Here’s the link to the page where to button is working

http://www.scrap-archives.com/index.php?main_page=create_account_success

All the stuff on my site is free so, when people join they need to be approved but before I approve them they also need to pay the membership fee, this is why I’m trying to add the pay now button
Does anybody know how I can change the code so it will take them to the PayPal page?

Here’s the code I have from the button I have created from PayPal,

<form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_s-xclick"> <input type="hidden" name="hosted_button_id" value="1356039"> <input type="image" src="https://www.paypal.com/en_GB/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt=""> <img alt="" border="0" src="https://www.paypal.com/en_GB/i/scr/pixel.gif" width="1" height="1"> </form>
22 Nov 2008, 6:02 PM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,607
Plugin Contributions:
0

Re: Cant Add Paypal Buy Now Button

That's because Zen Cart doesn't support PayPal buy now buttons - you need to use the built in add to cart and go through the Zen Cart checkout process ...

22 Nov 2008, 7:25 PM
#3
snarfy avatar

snarfy

Zen Follower

Join Date:
Apr 2008
Posts:
178
Plugin Contributions:
0

Re: Cant Add Paypal Buy Now Button

Hi Kim,
Many thanks for your help,
The problem I have is that I cannot authorise the customer until they have paid, because every thing on the site is marked as free,
Can I not alter the code?
Also how come I can get the code to work on the checkout success page?

25 Nov 2008, 10:21 AM
#4
snarfy avatar

snarfy

Zen Follower

Join Date:
Apr 2008
Posts:
178
Plugin Contributions:
0

Re: Cant Add Paypal Buy Now Button

Anybody have any ideas on this one?

25 Nov 2008, 10:32 AM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Cant Add Paypal Buy Now Button

Here's a concept that might work, with some custom coding required:

  • set your customers-authorization mode to 3= Customer May Browse and May see Prices but Must be Authorized to Buy
  • customize the create-account logic so that the default customers-authorization mode is not-authorized
  • alter the core logic so that it allows prices and purchasing (overriding the CUSTOMERS_APPROVAL_AUTHORIZATION rule) for just the one product, ie: your membership
  • after the customer has purchased the membership, flip their customers-authorization status to authorized, so they can then see/buy the rest of your products

Admin->Configuration->Customer Details->Customer Approval Status - Authorization Pending
Customer must be Authorized to shop? (CUSTOMERS_APPROVAL_AUTHORIZATION)
0= Not required
1= Must be Authorized to Browse
2= May browse but no prices unless Authorized
3= Customer May Browse and May see Prices but Must be Authorized to Buy
(default=0)

27 Nov 2008, 12:03 AM
#6
snarfy avatar

snarfy

Zen Follower

Join Date:
Apr 2008
Posts:
178
Plugin Contributions:
0

Re: Cant Add Paypal Buy Now Button

Excellent, many thanks DrByte, I’ll start working on this now,
I’ll let you know how it goes,

28 Dec 2008, 10:25 PM
#7
snarfy avatar

snarfy

Zen Follower

Join Date:
Apr 2008
Posts:
178
Plugin Contributions:
0

Re: Cant Add Paypal Buy Now Button

I found a way around my problem,

I set the customer approval status to authorization pending

Then I added a pay now button on an ez-page and it’s currently working fine for me,

I’ve put several link around my site that take people to page where the buy it now button is,

Hope this may help somebody else.

10 Dec 2009, 7:47 AM
#8
anewstone avatar

anewstone

New Zenner

Join Date:
Mar 2007
Location:
hz,zj,China
Posts:
89
Plugin Contributions:
0

Re: Cant Add Paypal Buy Now Button

Is there a way that we can add "Buy Now" button at the product description ? When customer clicks it, open a new window , directly to paypal.

10 Dec 2009, 8:44 AM
#9
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Cant Add Paypal Buy Now Button

anewstone:

Is there a way that we can add "Buy Now" button at the product description ? When customer clicks it, open a new window , directly to paypal.
DrByte explains how in post #5

11 Dec 2009, 12:47 AM
#10
anewstone avatar

anewstone

New Zenner

Join Date:
Mar 2007
Location:
hz,zj,China
Posts:
89
Plugin Contributions:
0

Re: Cant Add Paypal Buy Now Button

It's a bit different. I just want to add a "Buy Now" button, and don't want to change the logic. Thanks.

11 Dec 2009, 12:54 AM
#11
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Cant Add Paypal Buy Now Button

You can't make the cart behave in a fundamentally different way without changing the logic. We're just talking about how ...