The Foxy forums are on the move!

We're in the process of moving our forums over to a new system, and so these forums are now read-only.
If you have a question about your store in the meantime, please don't hesitate to reach out to us via email.

Modifying an existing subscription

We have a site we're building using Foxycart's SSO to allow people to setup a login area on the CMS itself. We'll be passing transaction history over to the CMS from Foxycart after the purchase. Many of the products they'll be purchasing will be a recurring product subscription.

We need to allow the customers to do 2 things:

1. Cancel their existing subscription in their login area in the CMS. I believe Foxycart currently has the link in the email that is sent after the purchase to cancel their recurring purchase (?) but is there a link structure we can setup to allow them to cancel their subscription in their login area we build (and then at a later date re-instate it)?
2. Modify their order. If the customer has a monthly subscription for Widget A for quantity of 5 and they want to later change that quantity to 4 OR if they want to change the subscription from Widget A to Widget B, is that something that can be done unless they completely cancel the original subscription for Widget A?

Thanks!
Tagged:
Comments
  • brettbrett FoxyCart Team
    Hey @flinx777. Sounds like a fun project.

    1: You could do it two ways. Look for "sub_cancel" on this page: https://wiki.foxycart.com/v/2.0/products/subscriptions#subscription_billing_cancellation_management_dunning

    So you could give customers the link and they could proceed to the Foxy-hosted checkout page to confirm the cancellation (and pay any past-due amount if present).

    Or you could use the API to set the subscription to inactive. Note that this doesn't generate a transaction, email, or subscription xml datafeed. But it might make more sense depending on what you're after.

    2: That'd be the sub_token functionality if you wanted to allow them to do it themselves, OR you could do it via the API with the subscription_modify method: https://wiki.foxycart.com/v/2.0/api#subscriptions

    The API method would be better if you have predefined possibilities (like "upgrade or downgrade"), but it'd be the wrong approach if you've got a lot of possibilities.
  • flinx777flinx777 Member
    edited November 2015
    @brett

    Thanks for the info.

    1. The client is wanting a drop dead ON/OFF switch so this option might be more complex than what they'd want:
    So you could give customers the link and they could proceed to the Foxy-hosted checkout page to confirm the cancellation (and pay any past-due amount if present).
    Your 2nd option sounds more inline with what we'd want to do:
    Or you could use the API to set the subscription to inactive. Note that this doesn't generate a transaction, email, or subscription xml datafeed. But it might make more sense depending on what you're after.
    2. You wrote:
    The API method would be better if you have predefined possibilities (like "upgrade or downgrade"), but it'd be the wrong approach if you've got a lot of possibilities.
    I just looked at the subscription modification options (http://files.smashstack.com/15Gti/4MswUmSR) and it appears on the subscription_modify, the customer can only change start/end dates, active and a few other variables that have to deal with frequency and billing dates, but nothing to do with modifying the products in their subscription, correct? Just wanted to make sure we're understanding how far we can modify this.

    Looking forward to your feedback and thanks for the help!
  • brettbrett FoxyCart Team
    For #1, you'd likely just want to flip the active/inactive bit. That'd be pretty easy peasy.

    For #2, look at the transaction_template. You can peek it from the admin too. Edit a subscription and click Advanced Edit to see the XML. Let us know how it goes.
Sign In or Register to comment.