Disable automatic payment for specific subscription - woocommerce

I have 2 wocoommerce subscription products with a signup fee, 6 month trial and then $25 per month. The only difference between the 2 is I want to set one to automatically take the payments after the trial and the other to have the autorenewal toggle set to off. Any ideas please?

Related

How to set Woocommerce Memberships discount OR coupon code to allow for a single freebie of every product?

I am using Woocommerce Memberships. We sell tickets to festival events. One of the perks of a specific level of membership is that you get 1 free to ticket to every event on offer. So if I had only three events (A, B & C), my members would be allowed 1 freebie ticket for each of the three but could purchase as many others as they like at the regular price.
I am not sure how to set this up either as a membership discount or a coupon...either would be fine. I would very much prefer not to have to make both free and paid versions of each event for simplicity, sanity, and recordkeeping purposes. Because they can buy multiples of each ticket, I can't set the price at Zero and limit them to one of each event.
Let's say each event cost $10. A fixed cart discount of $30 won't work, as they can only get 1 free ticket to each of the three events, and $30 off would allow 3 free entries to a single event. Nor can I limit their purchase of the events to 1 each with a cost of zero, as most will want to buy additional full price tickets to each event.
I might be overthinking things, but if anybody has a suggestion on how best to go about this, please share.

Gravity Stripe: how to make payment for several periods of subscription

I am using Grvity Forms with Stripe Add-on
I need to create a monthly subscription, but first payment should be for 3 months, so user buyes 3 months at once ($300), and then after 3 months he will be charged $100/month.
How to create such Stripe feed?
Thanks in advance
If anyone has the same problem, I've resolved it in such way:
I've placed in the form separate product item with type "Singe Product" and price $300. Then in the Stripe feed configured subscription with trial for 90 days. Subscription linked to main product item (subscription for $100), and turned on Setup Fee, linked to the second product component ($300).
You probably need to hide Total section in the form, because it will show $400 as a sum of both products, but Stripe charges only $300 and creates subscription $100/month with trial.

Woocommerce and Gravity Forms problem with deliveries

It's been a week since I'm trying to resolve this, and I'm just stuck. Please help :)
Here is the problem: I have a website with catering services, that are delivered every day to the clients. It's done using wordpress, gravity forms + addons (woocommerce and perk plugins with calendar and conditional pricing) with complicated conditional logic as the meals have different calories and so on. It's only one product, but it's coming from Gravity Forms itself. The form is calculating the number of days as a hidden field and I want to calculate the delivery cost by multiplying the number of days, that the Client placed the order for by the flat rate cost of a particular delivery zone in woocommerce (3 zones with different delivery costs in total). Let's say the cost of the delivery to one City is $5 and the order is placed for 10 meals, meaning 10 deliveries with fresh meal every day - so I want the delivery cost to be $5*10 = $50 for that order. I tried to achieve this with Gravity Perks- not possible, with Woocommerce Addon for Gravity Forms- it's possible to override the number of items ordered, but not the delivery cost itself... and I'm out of ideas :(
Does anybody have any clue how to achieve this?
Huge Thanks and a big beer in advance :)

Additional payment on top of defined Plan in Stripe using asp.net

On Stripe is there any API where customer can pay additional charges along with the Plan amount within single transaction ?
Scenario is, total amount of charge is based on number of users. Means say 1 user has $100 need to charged and base plan amount is of $3000. While purchasing the license customer has to define number of users, say 5 (So 5*100=500) + 3000 (base plan amount) So total should be $3500 should pay within single transaction. number of users may varies. So how to code for Stripe for this scenario.
First, you would create your $100 plan and set the quantity depending on the number of users your customer currently has so that with a quantity of 5 he ends up paying $500. You can update the quantity and let Stripe handle the proration.
You would then use Invoice Items to change the amount you want to charge your customer on each billing cycle. Invoice items get added automatically to the customer's next invoice so that you could charge $3000 + $500 for example.
You would then have to use Stripe's webhooks to be notified about events that happen in your Stripe account. That way you can listen for the invoice.created event and create an invoice item for this invoice to change the amount billed to this customer.
In the end, here are the steps you'd follow:
Create a customer in Stripe with the card token.
Create the first $3000 Invoice Item for the first invoice since that one is always closed by default.
Create the subscription to the $100 monthly plan with the expected quantity. This will automatically bill the Invoice Item created before.
Each month, listen for the invoice.created event and create a new Invoice Item for $3000.
Another solution which some people find easier to build would be to use the quantity parameter of the subscription to charge a different amount to each customer. You would create a $1 monthly plan for example and set the quantity to 3100 for customers who pay only for one user ($3100) or 3500 for the ones with 5 users ($3500). This is also detailed in the subscriptions guide.

Display and calculate 3 different prices for every user in Ubercart

Is there any way to display 3 different prices for every user(not per role etc)? Every product should have 3 prices: default price, wholesale price and dealer price. So I should display all of them on product page and calculate 3 total prices for every type of price. P.S.: we can add CCK field, but how to calculate total prices for each of them?
P.P.S: users are anonimous, it means I do not know whether or not the user is authorized. So I should always show and calculate 3 prices.
THis module does exactly what you're looking for, I;ve used it before for wholesale and retail prices
https://drupal.org/project/uc_price_per_role

Resources