thanks for the reply, i had hoped umbraco would allow me to do something without the need for a control...and i had hoped to do it without going to a detail page for each product.
I have my own .net code that does what i want, guess i can adapt it and import it into Umbraco.
This can definitly be done in XSLT. The way I would approach it is have a node type for products with properties for each product price, name, category etc. You can then interate through the product nodes in XSLT and output the paypal button code, pulling down the property values as you go....
Yeah Max thats roughly the way i ended up doing it as seen here...however the slight issue i had was with regards paypal requiring its own forms on the page...got round it with a javascript version, really happy with the outcome.
Simple Paypal integration
Hey all,
Looking to do a simple Paypal integration.
I've looked at uCommerce (which looks great) but is a bit overkill for what i want. All i need is a simple list of products with a purchase button.
Is there a way i can do this by attaching code to the buttons, which are within my XSLT file. I have the items listed like below...
http://davidorrgolfcoaching.com/buy-golf-coaching-vouchers.aspx
Any help would be appreciated.
Stephen
I usually created an asp.net usercontrol to do this. example below:
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="[email protected]">
<input type="hidden" name="lc" value="NZD">
<input type="hidden" name="item_name" value="Name of purchased item">
<input type="hidden" name="amount" value="11.90">
<input type="hidden" name="currency_code" value="NZD">
<input type="hidden" name="bn"
value="PP-BuyNowBF:btn_buynow_LG.gif:NonHostedGuest">
<input type="hidden" name="return" value="http://www.mycompany.co.nz/return.aspx" />
<input type="hidden" name="notify_url" value="http://www.mycompany.co.nz/process.aspx" />
<asp:ImageButton ValidationGroup="eigh" ID="ImageButton1" runat="server"
ImageUrl="https://www.paypal.com/en_US/i/btn/btn_buynow_LG.gif"
PostBackUrl="https://www.paypal.com/cgi-bin/webscr" />
thanks for the reply, i had hoped umbraco would allow me to do something without the need for a control...and i had hoped to do it without going to a detail page for each product.
I have my own .net code that does what i want, guess i can adapt it and import it into Umbraco.
Thanks again.
S
could i do this by reading from the nodes in .net?
S
This can definitly be done in XSLT. The way I would approach it is have a node type for products with properties for each product price, name, category etc. You can then interate through the product nodes in XSLT and output the paypal button code, pulling down the property values as you go....
You can do something like:
This will add the attribute "value" to the input tag with the node's name as the attributes content.
Yeah Max thats roughly the way i ended up doing it as seen here...however the slight issue i had was with regards paypal requiring its own forms on the page...got round it with a javascript version, really happy with the outcome.
http://davidorrgolfcoaching.com/buy-golf-coaching-vouchers.aspx
Cheers,
Glad its sorted. Enjoy!
is working on a reply...