Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / Paypal Subscription Button in Product not working

Paypal Subscription Button in Product not working

Locked

Views: 4,180

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
9 Apr 2009, 8:14 PM
#1
tyankee avatar

tyankee

Zen Follower

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

Paypal Subscription Button in Product not working

In order to set up a paypal subscription for 1 of my products, i created a subscription button in paypal and added to the coding to that product in the description. See http://www.skinzee.com/link-packages-c-43/link-package-high-pr-home-page-p-161

When you click on the 'buy now' paypal button, it redirects you to the shopping cart. How do i get this to stop doing this and just go to paypal??

12 Apr 2009, 5:58 AM
#2
tyankee avatar

tyankee

Zen Follower

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

Re: Paypal Subscription Button in Product not working

i need to have a subscription type payment for a few of my products, so i went to paypal and created a link and added to the description of the products. see one example here:

http://www.skinzee.com/link-packages-c-43/link-package-pr1-pr5-50-sites-all-pages-p-167

but when you click on the paypal button, it redirects you to the shopping cart page and NOT paypal like it's supposed to.

i'm sure this is something simple???

12 Apr 2009, 6:01 AM
#3
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Paypal Subscription Button in Product not working

you cant do that, because the description is actually inside the whole product form. You will have to re-arrange your current elements in a way so that the description has to be outside of the product form. And then the subs form has to be a separated form.

12 Apr 2009, 8:12 PM
#4
tyankee avatar

tyankee

Zen Follower

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

Re: Paypal Subscription Button in Product not working

thank you but that was 'greek' to me.. there MUST be a way to make an item a subscription??? somebody out there must have done it?? or how do i get around this 'forms' thing you are talking about - it is only for 1 category of items.

29 Apr 2009, 2:52 PM
#5
propinsanity avatar

propinsanity

New Zenner

Join Date:
Apr 2009
Posts:
9
Plugin Contributions:
0

Re: Paypal Subscription Button in Product not working

Hello,
Did you ever resolve this? I am having the same problem... paypal buttons not working when integrated into the product descrip.

tia

29 Apr 2009, 3:47 PM
#6
propinsanity avatar

propinsanity

New Zenner

Join Date:
Apr 2009
Posts:
9
Plugin Contributions:
0

Re: Paypal Subscription Button in Product not working

Looking for the same answers.... I have a ZC that hosts diff vendors, therefore NEED to use PP buttons in each product.... could you describe your answer in "lame" so I can try to understand :)

tia!

29 Apr 2009, 8:13 PM
#7
tyankee avatar

tyankee

Zen Follower

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

Re: Paypal Subscription Button in Product not working

PropInsanity:

Hello,
Did you ever resolve this? I am having the same problem... paypal buttons not working when integrated into the product descrip.

tia

never got it working and never got any answers except to say that zen cart doesn't support this.. so i created a new page on my site and put all my subscriptions there.. very clunky but i don't have any other options..

29 Apr 2009, 8:52 PM
#8
chuck avatar

chuck

Totally Zenned

Join Date:
Jul 2005
Posts:
255
Plugin Contributions:
0

Re: Paypal Subscription Button in Product not working

yellow1912:

you cant do that, because the description is actually inside the whole product form. You will have to re-arrange your current elements in a way so that the description has to be outside of the product form. And then the subs form has to be a separated form.

Like yellow1912 said, you'd have to rearrange the product info template -- maybe use document-general for those products. Put the product_desscription field outside the <form> already on the page. Then you could embed your button into the description.

29 Apr 2009, 9:04 PM
#9
propinsanity avatar

propinsanity

New Zenner

Join Date:
Apr 2009
Posts:
9
Plugin Contributions:
0

Re: Paypal Subscription Button in Product not working

This is GREAT news that it can "possibly" be done.

not to make myself sound more of a dummy.... but what php or css do I need to do this in? Any more of a detailed descrip so I know where to change/move things around?

THANKS BUNCHES! you just made my day :)
~Tracy

chuck:

Like yellow1912 said, you'd have to rearrange the product info template -- maybe use document-general for those products. Put the product_desscription field outside the <form> already on the page. Then you could embed your button into the description.

30 Apr 2009, 1:45 PM
#10
propinsanity avatar

propinsanity

New Zenner

Join Date:
Apr 2009
Posts:
9
Plugin Contributions:
0

Re: Paypal Subscription Button in Product not working

I DID IT!!!
Thanks Chuck :)

This is what I did... from form
includes/template/tpl_product_info_display

took the "product description (in red) and moved it AFTER the </form> closed. Showing below:

<!--bof Form close--> </form>

<!--bof Product description -->

<?php if ($products_description != '') { ?> <div id="productDescription" class="productGeneral biggerText"><?php echo stripslashes($products_description); ?></div> <?php } ?> <!--eof Product description --> <br class="clearBoth" /> <!--bof Form close--> </div>
30 Apr 2009, 7:23 PM
#11
tyankee avatar

tyankee

Zen Follower

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

Re: Paypal Subscription Button in Product not working

propinsanity, are you saying you implemented the paypal recurring payments module and changed this one file?? or you did not implement the recurring payments module and just had to change this one file???

also, are you sure of the path to the file?? isn't it includes/templates/yourtemplate/tpl_product_info_display.php

PropInsanity:

I DID IT!!!
Thanks Chuck :)

This is what I did... from form
includes/template/tpl_product_info_display

took the "product description (in red) and moved it AFTER the </form> closed. Showing below:

<!--bof Form close--> </form>

<!--bof Product description -->

<?php if ($products_description != '') { ?> <div id="productDescription" class="productGeneral biggerText"><?php echo stripslashes($products_description); ?></div> <?php } ?> <!--eof Product description --> <br class="clearBoth" /> <!--bof Form close--> </div>
30 Apr 2009, 8:51 PM
#12
propinsanity avatar

propinsanity

New Zenner

Join Date:
Apr 2009
Posts:
9
Plugin Contributions:
0

Re: Paypal Subscription Button in Product not working

I just moved the produ description OUT of the <form> fields.. so now that its outside the formfield, the button will work. And YES that is the correct path (sorry).

tyankee:

propinsanity, are you saying you implemented the paypal recurring payments module and changed this one file?? or you did not implement the recurring payments module and just had to change this one file???

also, are you sure of the path to the file?? isn't it includes/templates/yourtemplate/tpl_product_info_display.php

1 May 2009, 3:05 AM
#13
tyankee avatar

tyankee

Zen Follower

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

Re: Paypal Subscription Button in Product not working

i got it to work but i had to change the tpl_product_info_display NOT in my custom template folder but in the default template folder.. not sure why, but it works now.. thanks..