Hide duration and price from subscription plan view

  • Adam McGill
  • Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 3 months ago #108995 by Adam McGill
Hi Tuan

How can I hide the duration from the subscription plan view and hide the price from the subscription plan view if the price = Free?

How can I also ensure that these changes remain after an update?

Thanks and regards

Adam

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

More
7 years 3 months ago #109038 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Hide duration and price from subscription plan view
Hi

You would have to edit code to remove it. The modification could be implemented using override so that the change won't be lost when you update to future releases of the extension

Please send us the link to the page so that we can look at it and guide you

Regards,

Tuan

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

More
6 years 7 months ago #117939 by Tony
Is there an answer to this question how to edit the code using override?

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

More
6 years 7 months ago #117941 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Hide duration and price from subscription plan view
Hello Tony

That depends on the layout you are using. Below are the two files which you can try to look at it and remove the code:

- components/com_osmembership/view/common/tmpl/default_plans.php
- components/com_osmembership/view/plan/tmpl/default.php

Please note that once the modification is done, you should move the modified file to PATH_TO_TEMPLATE/html/com_osmembership/common and PATH_TO_TEMPLATE/html/com_osmembership/plan folder so that the change won't be lost when you update to future releases of the extension

Tuan

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