This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 7 replies, has 2 voices.

Last updated by Carlos Rojas 1 year ago.

Assigned support staff: Carlos Rojas.

Author Posts
October 4, 2018 at 4:14 pm #2788187

vicenteA-7

Hello,

I opened a TT with Woocommerce (Prospress) related to the subscription amount not being correctly calculated when you downgrade or upgrade subscriptions. The subject is the same as the one above (Conversation #17715).

The cause of that miscalculated amount is due, according to Prospress, to WPML changing the name of the line item, and you're now working together on correcting that bug.

Unfortunately, I don't have much time and I need a solution this week.

- One option is to completely remove WPML from my WP site and replace the plugin by another one.
- The other option is to know if there is a specific string or part of your plugin I may disable to avoid that error occurring.

If you have any hint in regards to the second option, please let me know. Also, if you have any timeframe in regards to when that bug may be corrected.

Regards,

Vicente

October 5, 2018 at 9:40 pm #2791747

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: America/Montevideo (GMT-03:00)

Hello Vicente,
Thank you very much for contacting WPML support.

I'm sorry to hear that you have issue related to WPML. I will do my best to help you with this.

Could you provide the direct link to the ticket you created already? This way I will have more information to ask our compatibility specialists.

Looking forward to your answer.
Best regards,
Carlos

October 5, 2018 at 10:50 pm #2791844

vicenteA-7

Hello Carlos,

As I said in my initial email, that's not a TT I opened with WPML but with Woocommerce (Prospress) so, there is no link to that TT.

The original TT opened to Prospress was the one below. I can confirm this is directly related to WPML since when I remove the WPML plugin, the amount is correctly calculated.

Hello,

I'm facing the following issue:

We sell recurring subscriptions to use an application
Plans Startup/Teams/Pro subscriptions are set at recurring prices of $79, $199 and $490

- Switching is allowed between Subscription Variations (Startup | Teams | Pro)
- Prorate Recurring payment is set on "For Upgrades and Downgrade of Virtual Products Only"
- Prorate Signup Fee: Never (do not charge a sign up fee)
- Prorate Subscription Length to Never
- Switch Button Text Upgrade or Downgrade
- We don't allow multiple subscriptions and products to be purchased simultaneously
- Everything else is unchecked.

The logic is simple and there is no specific renewal dates configured:

- I buy a Team subscription, I pay 199 on a monthly basis
- If I upgrade to the Pro plan during that month, I would pay the difference between $490 and $199, i.e. $291

Until there, everything works fine.

Nonetheless, When I get my order details via email, I get the following:

Order #331 (September 30, 2018)
Product Quantity Price
Kantask plans - Pro 1 $291.00
Subtotal: $291.00
Payment method: Credit Card (Stripe)
Total: $291.00
Subscription Information:
Subscription Start Date End Date Price
#329 September 30, 2018 When Cancelled $689.00 / month
New Subscription Details
Subscription #329
Product Quantity Price
Kantask plans - Teams 1 $199.00 / month
Kantask plans - Pro

tenant_name:

test18093003

1 $490.00 / month
Subtotal: $689.00
Payment method: Credit Card (Stripe)
Total: $689.00 / month

If I'm not allowing multiple subscriptions to be bought simultaneously, why:

1. Is there a total of 689.00? The new total should be $490 per month, not the sum of two subscriptions.
2. Are there 2 subscriptions since i replaced my subscription plan, I did not buy a new one.

Best regards,

Vicente

October 8, 2018 at 11:52 am #2795884

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: America/Montevideo (GMT-03:00)

Hi Vicente,
Thank you very much for your message.

I have created a test site with WPML and Woocommerce + Woocommerce Subscriptions. Also, I already setup WPML with the same languages you have on your site and I finished the Woocommerce installation.

I would like to ask you to setup Woocommerce Subcriptions in this test site and describe the steps I need to follow in order to reproduce the issue.

You can access the test site by click in this link: hidden link

Looking forward to your answer.
Best regards,
Carlos

October 8, 2018 at 7:38 pm #2797177

vicenteA-7

Hello Carlos,

I have created the variations we use but for some reason I'm unable to limit the subscriptions to only one active subscriptions, and when I add multiple subscriptions into the cart, it continues adding multiple of them.

To make this easier, you'll find below the links to access our WP site and see how it is configured so as you can reproduce it. I've created an admin user for you.

Site: hidden link
User: ***
Pass: ***

Admin user: ***
Pass: ***

When you create an order, there are real instances created. Please try not to create too many if you test with our WP site.

Steps to reproduce the issue:

1. Go to PRICING
2. Click on Select options in KANTASK PLANS
3. Select TEAMS plan = US$199/month
4. SIGNUP For TEAMS plan completing the payment process

Until this step, everything works fine. You're billed 199US$/month.

5. Go to PRICING again
6. Select a different plan, i.e. STARTUP or PRO. Logically, since there is only one active subscription per user you can only downgrade or Upgrade and subscriptions prices should be prorated, and never summed up since you only can have ONE subscription active.
7. Complete the payment process.
8. Go to your orders and you will see something wrong as the attached image is showing, i.e. summing up two susbcriptions prices instead of replacing one by the other.

Please give priority to this.

Regards,

Vicente

October 8, 2018 at 8:24 pm #2797260

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: America/Montevideo (GMT-03:00)

Hi Vicente,
Thank you very much for your detailed message.

I created a copy of the site to follow the steps you provided in a local environment, this way I won't affect the live site.

I will get back to you as soon as I have an answer.

Thank you very much for your patience and understanding!
Best regards,
Carlos

October 8, 2018 at 8:54 pm #2797303

vicenteA-7

Hello Carlos,
I got a patch from Woocommerce a couple of minutes ago and they resolved the issue. I tested it and everything works fine. Thank you for your efforts and good follow up.
Best regards,
Vicente

October 8, 2018 at 8:56 pm #2797307

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: America/Montevideo (GMT-03:00)

Hi Vicente,
Thank you for keeping me updated.

I'm glad to hear that the issue is solved 🙂

Please don't hesitate to contact us if you need our help in the future with WPML. We will be more than happy to help.
Best regards,
Carlos