Page 1 of 1

[SOLVED] PayPal Button Maker, pass attribute?

Posted: Tue Dec 06, 2011 6:33 pm
by swanriver
Hello,

Just finishing up a website and tried the PP Button Maker, which I like very much. (thanks JeremyBASS) and will more than likely be using again.

I'm stuck on one silly thing, and can't seem to get passed it. This site is for a local photographer who would like to sell prints of their photos. I have many prints loaded into the Products module, and would like to process payment using PP Button Maker.

I have assigned the following variables:
{assign var='price_var' value='95.00}
{assign var='desc_var' value='Matted: Print 8x10 - Mat 11x14'}
Awesome! Works great. (Thank to this post: http://forum.cmsmadesimple.org/viewtopic.php?t=46391)

I have figured out a way to make a pull down menu for different sizes of prints (thanks to this post: http://forum.cmsmadesimple.org/viewtopi ... =7&t=51531) and that works really well.

But now I need some way to identify the print by title or SKU #. Sooooo: Is there a way to pass entry->$product_name (or any other identifier) from the Products module to PPBM? Or would I have to make a button for each product?

Just a point in the right direction would be greatly appreciated. :)

Cms Version: 1.10.1
CGExtensions: 1.27.2
Orders: 1.13
Products: 2.15.1
PaypalGateway: 2.3.5
CGEcommerceBase: 1.3.9
PayPalButtonMaker: 0.6

Re: PayPal Button Maker, pass attribute?

Posted: Tue Dec 06, 2011 9:17 pm
by swanriver
I think I may have answered my own question, but wanted to share in case this would help someone else.

In PPBM, in the make the button section, under "Item Name" I put in "{$entry->id} - {$entry->product_name}", which spits out the Product ID # and Product Name in PayPal Sandbox at least.

Now I'm going to have a beer in hopes this well cure my brain cramp.

Cheers everyone!