by
KK » Tue Dec 21, 2010 9:09 pm
I can't use the variable specified in config.php ?That variable in config.php is a PHP variable, not Couch variable.
You'll have to either hand code it again or use this to call PHP for getting the variable -
- Code: Select all
<input type="hidden" name="business" value="<cms:php>echo K_PAYPAL_EMAIL; </cms:php>"/>
.. in my page 3 paypal buttons appears in a table. How i can do that ?The way paypal_button works in Couch is this (and you'll find the full discussion at
http://www.couchcms.com/docs/concepts/paypal.html ) -
Each item to be sold is given an entire page.
Thus, for example, you can have a template called products.php. Make it clonable and then create multiple pages out of it where each page will stand for a separate item.
The page's title will become the item's name and the pp_price field will be the item's price.
Point is, we can have only
one price for an item (remember it is a simple Paypal integration). If you need multiple prices, you'll have to create as many pages (i.e. multiple items).
So basically,
one item can have only one PayPal button.
Of course you can always list multiple items on a single page and then there can be as many buttons on the page as there are items being displayed.
So, if for example you have six cloned pages of template product.php, the following snippet will list all the six and show six PayPal button - one for each item:
- Code: Select all
<cms:pages masterpage='products.php'>
<h2>Product Name: <cms:show k_page_title /></h2>
<cms:paypal_button />
</cms:pages>
Hope the answer helps.