The following code uses the PayPal Javascript SDK together with JReviews custom fields to generate dynamic PayPal buy buttons.
Create a new banner custom field and paste the code below in the description field.
The code below uses the following tags which are automatically replaced from the listings' fields. Update them based on your fields' names and requirements.
- {title} - for the product name
- {jr_price|value} - unformatted value for the jr_price field
- {alias} - used for the product unique SKU - fill free to replace with a custom field or the {listing_id}.