I’m using simple commerce subscriptions with Paypal for recurring donations on a client’s site. Everything seems to be working, however I want to know if its possible to make the {item_regular_price} a field that a visitor can fill in on the frontend? As of now, when you click the subscription link, it will only add the price that was specified in the simple commerce module.
In the module I set the price to $.02. On the frontend I tried to change it to $4, but it shows $.02 in the Paypal check out.
My code:
{exp:channel:entries channel="give" enable="custom_fields" disable="categories|member_data|pagination|trackbacks" sort="asc"}
{exp:simple_commerce:purchase entry_id="{entry_id}" success="give/success" cancel="give/index"}
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="paypal">
{item_name}
$ <input type="text" name="a3" value="{item_regular_price}" class="input" size="30" ></p>
{if item_type == "purchase"}
<a >Buy Now</a>
<a >Add to Cart</a>
<a >View Cart</a>
{/if}
{if item_type == "subscription"}
<!-- Set the terms of the regular subscription. -->
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="a3" value="4.00">
<input type="hidden" name="p3" value="1">
<input type="hidden" name="t3" value="M">
<!-- Set recurring payments until canceled. -->
<input type="hidden" name="src" value="1">
<a class="btn">Pay Weekly</a>
{/if}
</form>
{/exp:simple_commerce:purchase}
{/exp:channel:entries}