- Posts: 131
- Thank you received: 0
Change & skip [SUBSCRIPTION_URL] - direct link to sign up
- reilldesign
- Topic Author
- Offline
- Premium Member
-
Less
More
3 years 4 months ago - 2 years 6 months ago #149093
by reilldesign
Change & skip [SUBSCRIPTION_URL] - direct link to sign up was created 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
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.
- Tuan Pham Ngoc
- Offline
- Administrator
-
3 years 4 months ago #149107
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Chang & skip [SUBSCRIPTION_URL] - direct link to sign up
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) ?
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
-
Less
More
- Posts: 131
- Thank you received: 0
3 years 4 months ago #149112
by reilldesign
Replied by reilldesign on topic Chang & skip [SUBSCRIPTION_URL] - direct link to sign up
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.
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
-
Less
More
- Posts: 131
- Thank you received: 0
2 years 6 months ago #154397
by reilldesign
Replied by reilldesign on topic Change & skip [SUBSCRIPTION_URL] - direct link to sign up
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.
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.
- Tuan Pham Ngoc
- Offline
- Administrator
-
2 years 6 months ago #154404
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Change & skip [SUBSCRIPTION_URL] - direct link to sign up
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
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
-
Less
More
- Posts: 131
- Thank you received: 0
2 years 6 months ago #154446
by reilldesign
Replied by reilldesign on topic Change & skip [SUBSCRIPTION_URL] - direct link to sign up
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?
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.
- Tuan Pham Ngoc
- Offline
- Administrator
-
2 years 6 months ago #154487
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Change & skip [SUBSCRIPTION_URL] - direct link to sign up
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
Regards,
Tuan
- reilldesign
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 131
- Thank you received: 0
2 years 6 months ago #154505
by reilldesign
Replied by reilldesign on topic Change & skip [SUBSCRIPTION_URL] - direct link to sign up
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
[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.
- Tuan Pham Ngoc
- Offline
- Administrator
-
2 years 6 months ago #154506
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Change & skip [SUBSCRIPTION_URL] - direct link to sign up
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
Tuan
Please Log in or Create an account to join the conversation.
- reilldesign
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 131
- Thank you received: 0
2 years 6 months ago #154507
by reilldesign
Replied by reilldesign on topic Change & skip [SUBSCRIPTION_URL] - direct link to sign up
thank you, now it works and gives the user an improved store experience.
Please Log in or Create an account to join the conversation.
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.