This is a HOW TO on adding Paypal Integration in Lightbox v2.03.3. If anyone wants to transport the modifications to Lightbox v2.04 by all means
(send me a link) I must admit something I did not do the original mods I found it on lancemissionart.com. And I decided to write this walkthrough - it's too important not to share.
See a sample of it on my site WARNING!!! The shopping cart is ACTIVE so be careful please.Chrislangsdale.com
Step 1 -
Download the most recent zip of lightbox here
Follow the installation directions...
Step 2 -
Replace lightbox.js with the modified v2.03.3 attachment
Step 3 -
Code:
<a rel="lightbox[Image Category 1]" title="Image 1" paypalform="" href="images/image-1.jpg"" ><img src="images/image-1thumbnail.jpg" border="0" /></a>
Step 4 -
Go to http://www.paypal.com
Create a Paypal Add to Cart button or a Buy it now button
Step 5 - Once the button is created copy the html and insert in Here Html Entities Converter
Step 6 - Take the newly converted code and cut and paste it in between the quotes of from Step 3
For example:
Code:
<a rel="lightbox[Image Category 1]" title="Image 1" paypalform="<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr"
method="post">
<!-- Identify your business so that you can collect the payments. -->
<input type="hidden" name="business" value="kin@kinskards.com">
<!-- Specify a PayPal Shopping Cart Add to Cart button. -->
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="add" value="1">
<!-- Specify details about the item that buyers will purchase. -->
<input type="hidden" name="item_name"
value="Birthday - Cake and Candle">
<input type="hidden" name="amount" value="3.95">
<input type="hidden" name="currency_code" value="USD">
<!-- Provide a dropdown menu option field, without prices. -->
<input type="hidden" name="on0" value="Color">Color scheme <br />
<select name="os0">
<option
value="Select a color scheme">-- Select a color scheme --
<option value="Blue">Blue</option>
<option value="Pink">Pink</option>
<option value="Yellow">Yellow</option>
</select> <br />
<!-- Display the payment button. -->
<input type="image" name="submit" border="0"
src="https://www.paypal.com/en_US/i/btn/btn_cart_LG.gif"
alt="PayPal - The safer, easier way to pay online">
<img alt="" border="0" width="1" height="1"
src="https://www.paypal.com/en_US/i/scr/pixel.gif" >
</form>"" href="images/image-1.jpg"" ><img src="images/image-1thumbnail.jpg" border="0" /></a>
Step 7 -
Be sure to add a view cart button somewhere on the page - replace "notes@poconotes.com" with your paypal id number or email address on record with paypal.
Code:
<form name="_xclick" target="paypal" action="https://www.paypal.com/us/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="notes@poconotes.com">
<input type="image" src="images/btn_viewcart_SM.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<input type="hidden" name="display" value="1">
</form>
Optional -
If like me you want to change the font color of the text above the drop down box of the paypal button - just add
Code:
<font color="#FFFFFF">Text</font>
around the label for the paypal button then go and convert it Step 5
Bookmarks