I'm trying to set a custom price for a recurring subscription in CartThrob. I've currently got the following code:
{exp:cartthrob:add_to_cart_form
return="/become-member/checkout"
subscription="yes"
subscription_allow_modification="yes"
shipping_exempt="yes"
tax_exempt="yes"
allow_user_price="yes"
plan_id="{id}"
subscription_interval_units="{interval_units}"
subscription_interval_length="{interval_length}"
subscription_price="{price}"
}
<input type="hidden" name="price" value="70.00" />
<input type="hidden" name="subscription_price" value="70.00" />
....
{/exp:cartthrob:add_to_cart_form}
That works fine, it'll set the price of $70.00 as dictated by 'subscription_price'.
My problem is that users are able to add a concession card code to the product in the add to cart form and that will reduce the price to $66.50 (using javascript). Upon checkout this price is saved in the CartThrob order in the CP but the recurring subscription price is still the full $70.00 amount.
Is there a way to set the recurring price to the concession price if it's set in the checkout form or do I need to look into other options?
Thanks in advance!