Page 1 of 1

paypalbuttonmaker details

Posted: Mon Jan 31, 2011 8:38 pm
by Tracy
I am just starting with this paypalbuttonmaker module and it seems it would work well, I'm not sure what to enter into the fields for the button defaults and am asking for a bit of guidance now. Versions are below.
version 1.9.2
paypalbuttonmaker 0.6

Quesions are;
In the Primary section I am fine with the column 'Required for the button to work' but in the Suggestion section I'm a bit lost;
Quantity; Wouldn't the person purchasing the item input this number at the checkout?
UpgradeMess; What goes here? I have set up a page and given the URL to be directed to after the checkout is complete. How is this different? Any explanations?
The Action?? maybe more importantly - What is a UDT?
Params; yest I should know what these are now but I don't know what to put here either.

Then below that as well, The 'user options parameters' and the 'passthou parameters' I'm lost

Please help, I have a ton of buttons to build and I'm sure, more questions. I appreciate it :-[

Re: paypalbuttonmaker details

Posted: Tue Feb 01, 2011 8:22 pm
by JeremyBASS
Hello, This module is made so it can take smarty in the fields. What this lets you do is put in {$some_foo_cost} in the amount field. Every field is like this so you can do one of 2 things.. make hardcode buttons where you fill out the options and do one by one, or you can use smarty and make a profile by placing smarty tags in the fields that match the smarty tags that go in the template you're placing the paypalbuttonmaker tag in.

So with that,
-Quantity, yes and no that is up to you and our need.
-UpgradeMess is a sample, you don't have to use that it just shows a possible usage.
-"The Action?? maybe more importantly - What is a UDT?" --- "The Action??" the form action.. what needs to be run afterwards. It can be a file or it can be a User Defined Tag (UDT) found in the admin area.
-'passthou parameters' is paypals deal, you can pass parameters over then have then passed back without the user see that side data.

In short, if all you know is the amount and give it a name it'll work.. and you'd just make 50 buttons.. This module is very flexible like that. The new version I'll be working on the interface so there is more information on what is there and what they mean. HTH cheers -Jeremy

Re: paypalbuttonmaker details

Posted: Tue Feb 01, 2011 8:59 pm
by Tracy
Jeremy; I so much appreciate your reply. I will go over it and try to get a grasp on it all again. This website is for selling fabrics and patterns so for the fabrics common quantities sewers buy are fat quarter, half yard, yard, 2 yards etc. I have no idea how I would specify anything like this using the buttons. Would you know? And would it even be possible?

Re: paypalbuttonmaker details

Posted: Tue Feb 01, 2011 10:34 pm
by JeremyBASS
There are two possible ways to do this, one make a button profile for each and use smarty to pass the amount/cost and anything else .. then use JS with a drop down to only show the right button. If you make them all the same the user never knows there was a change, but if you get fancy then you can make them look different and you end up with a "best buy" icon over the button image, as an example. So this would be what would be in the template..

Code: Select all

<select id='fibricType' name='fibricType'>
<option value='0' name='none' lable='none' />
<option value='1' name='fibric1' lable='this ammount' />
<option value='2' name='fibric2' lable='this other ammount' />
</select>

<div id='button1' class='buttons'>
{PayPalButtonMaker Mode="default" Btn="fibric1"}
</div>
<div id='button2' class='buttons'>
{PayPalButtonMaker Mode="default" Btn="fibric2"}
</div>
and some jquery to drive it.

Code: Select all

$(document).ready(function(){
    $("select#fibricType").live('change',function() {
        var sp=$("select#fibricType").val();
        $('.buttons').hide();
        if(sp!='none'){
            $("#button"+sp).fadeIn('fast');
        }
    });
});
and there you have a javascript with fall back option. Well you need some CSS too. but that is just some display:none on the class buttons. Each button can look different and have very different fields used, ie: drive or shipping costs and free shipping.
The other is to do it via ajax but that is alot more in-depth and I see no cause to do that here.

I was going to add the cart controls but never got a sponsor so it's still a baby module. Hope this helps.. Cheers -Jeremy