![]() |
|
Paypal integration... - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Paypal integration... (/thread-1592.html) Pages:
1
2
|
Paypal integration... - sbillard - 2008-05-30 You should not have the Paypal integration... - Vaisak - 2008-05-30 Nevermind my problem, now it seems to work. Thanks anyway! Paypal integration... - mikecp - 2008-06-03 Managed to integrate this plug-in fairly easily as a thickbox but I wondered if anyone would be kind enough to help with my struggles. What I am ideally looking for, is a set of radio buttons that take their values from the customdata field. The customer then just selects the size and finish from the options and presses the Buy Now button. Options would be, for example: My knowledge of php is very limited and the documentation on the site seems to be geared towards developers rather than photographers, so I would appreciate examples that I can play with to get the desired result. Thanks in advance Paypal integration... - sbillard - 2008-06-03 The Paypal plugin uses a selection drop-down to select the item/price. You would really have to learn PHP if you want to change that to radio buttons. However, if all you want is to have different pricing options based on the image there is a much simpler solution. (You will still have to write some PHP, though.) The documentation for the plugin is here: http://www.zenphoto.org/documentation/zenphoto/_plugins---zenPaypal.php.html You can put your 'price list' into the custom data field of the image and pass it on to the paypal button using the Paypal integration... - mikecp - 2008-06-03 Thanks for the reply. I have read the documentation but I am struggling to understand it due to my lack of php knowledge. My best guess is that I need a statement such as: zenPaypalPricelistFromString(getCustomData()) Am I close? Thanks Paypal integration... - sbillard - 2008-06-03 I think we can modify the plugin to show the price. I will look into that. Paypal integration... - mikecp - 2008-06-03 That would be excellent if you can, and well worthy of a donation. Thank you. Paypal integration... - DrSlony - 2008-06-03 I think it would be ideal if zenphoto implemented by default an extra field in the edit album page in the admin panel where we can set prices (using a string) for individual images/albums, and turn off paypal support for individual images/albums. Paypal integration... - sbillard - 2008-06-03 Tonight's build will have a new function-- DrSlony: We have such a field, it is called The only theme which has zenPaypal included is the example theme [because it is an example....] I suggest you use the following code for accomplishing what you describe: `$prices = getCustomData(); if (!empty($prices)) { $pricelist = zenPaypalPricelistFromString($prices); zenPaypal($pricelist); }` Paypal integration... - DrSlony - 2008-06-04 Thanks a lot sbillard! I will try that! Paypal integration... - landslide - 2008-07-15 Just to provide an update for this. I wanted to use PayPal's shopping cart feature rather than it's single-item buy function, so I edited the code in zenPaypal.php. I followed these instructions from the paypal site; https://www.paypal.com/us/cgi-bin/webscr?cmd=_pdn_xclick_to_cart_outside Perhaps there could be an option in the administrator panel to switch between these modes? Paypal integration... - sbillard - 2008-07-15 Perhaps you could create a ticket and attach your modified code. If you do I will look at making the mode an options. (Or perhaps the default as we did on Google Checkout.) Depends on if anyone really wants to stick with the current mode if checkout mode is available. |