Skip to Content Skip to Menu

CB Package Builder - Download Button

13 hours 25 minutes ago #342141 by jamesmoeller
CB Package Builder - Download Button was created by jamesmoeller
A question about the CB Package Builder download button.
How do I dynamically change the text of the download button based on the user's subscription status via CBSub Package Builder?
What I'd like to do is very similar to the Joomlapolis Downloads button where if the user is a visitor then the button says "Subscribe". If the user is subscriber the button text is "Download".
I'd like to do this on both the page that lists all the packages (via the CB Package Builder plugin used as a menu item) and on the individual package displays. See the following links.
www.alphadataiq.com/index.php/adiq-downloads
www.alphadataiq.com/index.php/crispr-cas9-v01-plar-download

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 49621
  • Thanks: 8489
  • Karma: 1465
12 hours 54 minutes ago #342148 by krileon
Replied by krileon on topic CB Package Builder - Download Button
Edit your package then under Integrations > CBSubs Package Builder set "Plans" to the plans that will control access to the package. Once done you should see a set of conditional override parameters below it. Those parameters let you override package content when they don't have an active subscription to any of the selected plans. So for example you'd set "Button Title" to "Subscribe" to have the button show "Subscribe" if they're not actively subscribed to the plan. This will apply anywhere the button is rendered.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

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

Moderators: beatnantkrileon
Powered by Kunena Forum