Change & skip [SUBSCRIPTION_URL] - direct link to sign up

  • reilldesign
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
3 years 4 months ago - 2 years 6 months ago #149093 by reilldesign
How do i change the system plugin »osmembershiparticles.php« to get the direct link to the ckeckout page. We want to skip the overview ([SUBSCRIPTION_URL]).
In the end, we want to make all the specifications directly in the article (blog layout) and from there make the order directly. This is much more user-friendly and we reduce the bounce rate.

article:
› plan title
› price incl vat
› link to sign up
Last edit: 2 years 6 months ago by reilldesign.

Please Log in or Create an account to join the conversation.

More
3 years 4 months ago #149107 by Tuan Pham Ngoc
Hmm

In theory, there could be multiple subscription plans, so how can we know which plan users should be subscribed for (to determine the subscription form URL) ?

Please Log in or Create an account to join the conversation.

  • reilldesign
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
3 years 4 months ago #149112 by reilldesign
we only use one plan per contribution. so a faster ordering process would be ideal.
the problem with multiple plans is of course not to be dismissed out of hand and i don't have a quick solution for it.
ideal would be to have a syntax for e.g. [PLAN_TITLE], [PRICE_VAT] and [QUICKCHECKOUT_LINK]. so it can be used with a single plan assignment.

Please Log in or Create an account to join the conversation.

  • reilldesign
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
2 years 6 months ago #154397 by reilldesign
Hi,

for a current occasion, once again the question/please: how can we get directly to the sign up page? The intermediate step via the plan disturbs the buying experience. We always have only one plan per title.

[PLAN_TITLES], [PRICE_VAT] and [QUICKCHECKOUT_URL] would be optimal.

For a tip or a plugin override we would be very grateful.

Please Log in or Create an account to join the conversation.

More
2 years 6 months ago #154404 by Tuan Pham Ngoc
Hello

As of right now, it is not possible. Maybe you can try to modify code in the file components/com_osmembership/helper/helper.php , method getPluginRestrictionRedirectUrl to see if it works ?

If Yes, that change could be implemented using override so that it won't be lost when you update to future releases of the extension.

Regards,

Tuan

Please Log in or Create an account to join the conversation.

  • reilldesign
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
2 years 6 months ago #154446 by reilldesign
I noticed that there is only a small difference between the sef urls:

YOUR_URL.html?filter_plan_ids=9
YOUR_URL/sign-up.html

changing line 367 in osmembershiparticles.php to

$signUp = PREG_REPLACE ('/.html.*/', '/sign-up.html', $redirectUrl);
$msg = STR_REPLACE ('[SUBSCRIPTION_URL]', $signUp, $msg);

does the job.

Is this the right way or can there be problems here? If no a syntax extension for the e-mail messages would be great. Like [SUBSCRIPTION_SIGNUP].

Can I also create an override for this plugin?

Please Log in or Create an account to join the conversation.

More
2 years 6 months ago #154487 by Tuan Pham Ngoc
That's not the right change and also, the change could not be implemented using override (it's not possible to override a plugin). I worked quickly on the override for you. Please try to get this file, unzip it, upload the received file to components/com_osmembership/helper/override folder , then check to see if it works as you want (you might have to create override folder yourself as this folder is not available by default)

Regards,

Tuan
Attachments:

Please Log in or Create an account to join the conversation.

  • reilldesign
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
2 years 6 months ago #154505 by reilldesign
Overriding the hepler file

[template]/html/com_osmembership/helper/helper.php

doesn't work. Replacing the original helper.php file gives me an error

0 Class 'OSMembershipHelper' not found

Please Log in or Create an account to join the conversation.

More
2 years 6 months ago #154506 by Tuan Pham Ngoc
No, that's not the right place for putting the override. It needs to be placed to components/com_osmembership/helper/override folder (the override folder is inside the component itself, not in the template)

Tuan

Please Log in or Create an account to join the conversation.

  • reilldesign
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
2 years 6 months ago #154507 by reilldesign
thank you, now it works and gives the user an improved store experience.

Please Log in or Create an account to join the conversation.