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.

Our next available supporter will start replying to tickets in about 4.08 hours from now. Thank you for your understanding.

This topic contains 34 replies, has 2 voices.

Last updated by Carlos Rojas 2 weeks, 4 days ago.

Assigned support staff: Carlos Rojas.

Author Posts
September 8, 2019 at 9:21 am

nikolajW

Hello,

the shop I'm making only should allow to purches one subscription of each kind.

The problem is, that after purchasing a product in the main language, the translated is still available for purchase.

This shouldn't be the case.

How to solve this issue?
Is it because the slug is different?

Regards

September 9, 2019 at 12:00 pm #4536871

Carlos Rojas
Supporter

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

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

Hello,
Thank you for contacting WPML support.

1.- Could you describe the steps you ar following to set that the product (subscription) can be purchased only one time?

2.- Please provide the debug information of the site. In this link you will find the steps to follow: https://wpml.org/faq/provide-debug-information-faster-support/

Kind regards,
Carlos

September 10, 2019 at 10:17 am #4543869

nikolajW

Products > All Products > Productname > Product Data > Advanced > Limit Subscription

Please take a look at the screenshot.

September 10, 2019 at 10:43 am #4544299

Carlos Rojas
Supporter

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

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

Hi there,
Thank you very much for your feedback.

This option is a custom field for the products CPT. Please visit this link were you will find how to translate custom fields using WPML: https://wpml.org/documentation/getting-started-guide/translating-custom-fields/

Please let me know if you need further help.
Regards,
Carlos

September 10, 2019 at 11:37 am #4544801

nikolajW

What is "products CPT"?

Please give me a instruction for solving my issue.

Regards

September 10, 2019 at 12:45 pm #4545417

Carlos Rojas
Supporter

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

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

Hi,

CPT means Custom Post Type. By following the steps described in the link shared in my previous message you will solve the issue.

Please let me know if you authorize me to apply the changes in the site and I will be more than happy to help you.
Regards,
Carlos

September 10, 2019 at 3:25 pm #4546823

nikolajW

Yes, please help me out with this.

You could help me with screenshots or a videorecord, to understand your changes.

I'll have more products in future to implement to the site. 🙂

September 10, 2019 at 3:26 pm #4546871

nikolajW

But just for better understanding:
If for example Youtube or Instagram Subscription is purchased, it shouldn't be purchaseable in any language anymore.

I hope I could describe it clearly enough. 🙂

September 10, 2019 at 3:52 pm #4547053

Carlos Rojas
Supporter

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

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

Hi,

Regarding this: "If for example Youtube or Instagram Subscription is purchased, it shouldn't be purchaseable in any language anymore." -> Do you mean that this product shouldn't be sold to any other customer or that the customer can't buy it anymore?

Regards,
Carlos

September 11, 2019 at 12:09 am #4549247

nikolajW

Good question.

Only the customer himself can't buy it anymore, because he have purchased the product already.

September 11, 2019 at 8:44 pm #4556469

Carlos Rojas
Supporter

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

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

Hi there,

Great! Could you tell me how you configure this option?

Please provide some screenshots so I can have a better understanding.

Regards,
Carlos

September 12, 2019 at 1:14 am #4556889

nikolajW

Sorry, I don't get it.
The screenshot shows how I configured it.

September 12, 2019 at 1:17 am #4556913

nikolajW

Each subscription, regardless of the language, can be purchased only one time by each customer.
And of course, if a customer cancel his subscription, it is open to be purchased again.

Regards

September 12, 2019 at 12:04 pm #4560791

Carlos Rojas
Supporter

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

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

Hi,
Thank you very much for your feedback.

In this case I would like to ask you to follow this steps:
- Re-save the product in the default language -> Update the translation

If the issue persists then:
- Go to WPML -> Settings -> Custom Fields Translation -> Click on "Show systems fields" link -> Search for "_subscription_limit" -> Click on the 'lock' button -> Set this field to "Don't translate" -> Save the changes.
- Repeat the first steps.

Could you tell me the results of the steps above?

Regards,
Carlos

September 14, 2019 at 1:53 am #4571065

nikolajW

Hey,

I tried this with the "YouTube"-Product, but still the issue persist. :/

I think it's a matter of the product ID.
Maybe if the ID is the same, it could work.

Regards