[Skip to main content](#vessel-content)

#   Private content tag not workig with subscription?

##

- **[oxido](/forum/user/29793-oxido "View oxido's Profile")**
- [![oxido's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/29793-oxido "View oxido's Profile") Topic Author
- [ Away](/forum/user/29793-oxido)

Less More

- Posts: 282
- Thank you received: 42
-
-

1 year 1 month ago [\#368526](#368526) by [oxido](/forum/user/29793-oxido "View oxido's Profile")  *[Private content tag not workig with subscription?](/forum/58-hikasubscription/909706-private-content-tag-not-workig-with-subscription#368526 "-- HikaShop version -- : 6.1.0 -- HikaSerial version -- : 6.0.0 -- Joomla version -- : 5.3.3 -- PHP version -- : 8.3.25 -- Browser(s) name and version -- : Google chrome  Hi, When I use the Private Content button in the editor and select a subscription plan to restrict the content, and to make it visible only for that subscription, the content does not display for users who actually purchased the product and have an active subscription. The order is confirmed and the subscription is active, but the restricted content is still not visible. You can see the attached gif.  This option &quot;Private content&quot;, it only works with serials?  Thank you!")* was created by *[oxido](/forum/user/29793-oxido "View oxido's Profile")*

-- HikaShop version -- : 6.1.0
-- HikaSerial version -- : 6.0.0
-- Joomla version -- : 5.3.3
-- PHP version -- : 8.3.25
-- Browser(s) name and version -- : Google chrome

Hi,
When I use the **Private Content** button in the editor and select a subscription plan to restrict the content, and to make it visible only for that subscription, the content does not display for users who actually purchased the product and have an active subscription. The order is confirmed and the subscription is active, but the restricted content is still not visible.
You can see the attached gif.

This option "Private content", it only works with serials?

Thank you!

- [ ![hikaserial&#95;sub&#95;private&#95;content&#95;oxido.gif](/forum/attachment/60802) ](/forum/attachment/60802 "...tent&#95;oxido.gif") [ ](/forum/attachment/60802?download=1 "...tent&#95;oxido.gif")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzU4LWhpa2FzdWJzY3JpcHRpb24vOTA5NzA2LXByaXZhdGUtY29udGVudC10YWctbm90LXdvcmtpZy13aXRoLXN1YnNjcmlwdGlvbj90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

1 year 1 month ago [\#368528](#368528) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Private content tag not workig with subscription?](/forum/58-hikasubscription/909706-private-content-tag-not-workig-with-subscription#368528 "-- HikaShop version -- : 6.1.0 -- HikaSerial version -- : 6.0.0 -- Joomla version -- : 5.3.3 -- PHP version -- : 8.3.25 -- Browser(s) name and version -- : Google chrome  Hi, When I use the Private Content button in the editor and select a subscription plan to restrict the content, and to make it visible only for that subscription, the content does not display for users who actually purchased the product and have an active subscription. The order is confirmed and the subscription is active, but the restricted content is still not visible. You can see the attached gif.  This option &quot;Private content&quot;, it only works with serials?  Thank you!")*

Hello,

You are selecting a serial pack, not a subscription plan.
The plugin (serial private content) is only for serials ; there is no "subscription private content" since the subscription can update the user's group, so you can use Joomla ACL.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzU4LWhpa2FzdWJzY3JpcHRpb24vOTA5NzA2LXByaXZhdGUtY29udGVudC10YWctbm90LXdvcmtpZy13aXRoLXN1YnNjcmlwdGlvbj90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[oxido](/forum/user/29793-oxido "View oxido's Profile")**
- [![oxido's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/29793-oxido "View oxido's Profile") Topic Author
- [ Away](/forum/user/29793-oxido)

Less More

- Posts: 282
- Thank you received: 42
-
-

1 year 1 month ago [\#368529](#368529) by [oxido](/forum/user/29793-oxido "View oxido's Profile")  Replied by *[oxido](/forum/user/29793-oxido "View oxido's Profile")* on topic *[Private content tag not workig with subscription?](/forum/58-hikasubscription/909706-private-content-tag-not-workig-with-subscription#368529 "-- HikaShop version -- : 6.1.0 -- HikaSerial version -- : 6.0.0 -- Joomla version -- : 5.3.3 -- PHP version -- : 8.3.25 -- Browser(s) name and version -- : Google chrome  Hi, When I use the Private Content button in the editor and select a subscription plan to restrict the content, and to make it visible only for that subscription, the content does not display for users who actually purchased the product and have an active subscription. The order is confirmed and the subscription is active, but the restricted content is still not visible. You can see the attached gif.  This option &quot;Private content&quot;, it only works with serials?  Thank you!")*

Yes, I understand that the plugin currently only works with serials. However, it would be very useful to have something like a "subscription private content" feature as well.

With serials, I can reveal part of the content and keep the rest restricted, encouraging the user to purchase access in order to view the full content. This flexibility is exactly what I would like to achieve with subscriptions too.

Using Joomla ACL for subscriptions does not allow this: the entire item (article) is either fully visible or completely hidden. There is no way to show a preview and then restrict only a part of the content or suggest that the rest is available with a subscription.

Regards,

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzU4LWhpa2FzdWJzY3JpcHRpb24vOTA5NzA2LXByaXZhdGUtY29udGVudC10YWctbm90LXdvcmtpZy13aXRoLXN1YnNjcmlwdGlvbj90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[oxido](/forum/user/29793-oxido "View oxido's Profile")**
- [![oxido's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/29793-oxido "View oxido's Profile") Topic Author
- [ Away](/forum/user/29793-oxido)

Less More

- Posts: 282
- Thank you received: 42
-
-

1 year 1 month ago [\#368530](#368530) by [oxido](/forum/user/29793-oxido "View oxido's Profile")  Replied by *[oxido](/forum/user/29793-oxido "View oxido's Profile")* on topic *[Private content tag not workig with subscription?](/forum/58-hikasubscription/909706-private-content-tag-not-workig-with-subscription#368530 "-- HikaShop version -- : 6.1.0 -- HikaSerial version -- : 6.0.0 -- Joomla version -- : 5.3.3 -- PHP version -- : 8.3.25 -- Browser(s) name and version -- : Google chrome  Hi, When I use the Private Content button in the editor and select a subscription plan to restrict the content, and to make it visible only for that subscription, the content does not display for users who actually purchased the product and have an active subscription. The order is confirmed and the subscription is active, but the restricted content is still not visible. You can see the attached gif.  This option &quot;Private content&quot;, it only works with serials?  Thank you!")*

Hi Jerome,

While testing further, I noticed that the Serial Private Content plugin actually seems to already contain the basis for a kind of "subscription private content."
In the file serialprivatecontent.php, inside the onContentPrepare function (around line 170), there is a condition written as: Code:

's.subscription_end_date = 0 OR s.subscription_end_date &lt;= ' . time(),

From my tests, this comparison appears to cause the subscription check to fail. If it is adjusted to: Code:

's.subscription_end_date = 0 OR s.subscription_end_date &gt;= ' . time(),

then the content visibility correctly follows the user’s subscription status, meaning that the content is shown or hidden depending on whether the subscription is active and its end date is in the future.

Could you please confirm if my understanding is correct, or if I might be doing something wrong?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzU4LWhpa2FzdWJzY3JpcHRpb24vOTA5NzA2LXByaXZhdGUtY29udGVudC10YWctbm90LXdvcmtpZy13aXRoLXN1YnNjcmlwdGlvbj90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[oxido](/forum/user/29793-oxido "View oxido's Profile")**
- [![oxido's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/29793-oxido "View oxido's Profile") Topic Author
- [ Away](/forum/user/29793-oxido)

Less More

- Posts: 282
- Thank you received: 42
-
-

1 year 1 month ago [\#368536](#368536) by [oxido](/forum/user/29793-oxido "View oxido's Profile")  Replied by *[oxido](/forum/user/29793-oxido "View oxido's Profile")* on topic *[Private content tag not workig with subscription?](/forum/58-hikasubscription/909706-private-content-tag-not-workig-with-subscription#368536 "-- HikaShop version -- : 6.1.0 -- HikaSerial version -- : 6.0.0 -- Joomla version -- : 5.3.3 -- PHP version -- : 8.3.25 -- Browser(s) name and version -- : Google chrome  Hi, When I use the Private Content button in the editor and select a subscription plan to restrict the content, and to make it visible only for that subscription, the content does not display for users who actually purchased the product and have an active subscription. The order is confirmed and the subscription is active, but the restricted content is still not visible. You can see the attached gif.  This option &quot;Private content&quot;, it only works with serials?  Thank you!")*

I have a suggestion for the private content plugin. Code:

{privatecontent pack:1 product:2964 text:"Buy Basic to unlock the content"/}

To have the possibility to add the " link: " parameter inside the tag, replacing the " product: " if you want, to allow the administrator to define the link for the button that appears in the front-end.

For example, it can be a link to a page where all the subscription options are displayed href="/subscriptions", or it can be a link taken from a product ( Add to cart HTML link) , which adds that product directly to the cart and takes the customer directly to the checkout. Code:

/index.php?option=com_hikashop&amp;ctrl=product&amp;task=updatecart&amp;quantity=1&amp;cid=2964&amp;Itemid=248

So you can chose between using product: or link: to create the link for the button. :silly:

Thank you!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzU4LWhpa2FzdWJzY3JpcHRpb24vOTA5NzA2LXByaXZhdGUtY29udGVudC10YWctbm90LXdvcmtpZy13aXRoLXN1YnNjcmlwdGlvbj90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

1 year 1 month ago [\#368534](#368534) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Private content tag not workig with subscription?](/forum/58-hikasubscription/909706-private-content-tag-not-workig-with-subscription#368534 "-- HikaShop version -- : 6.1.0 -- HikaSerial version -- : 6.0.0 -- Joomla version -- : 5.3.3 -- PHP version -- : 8.3.25 -- Browser(s) name and version -- : Google chrome  Hi, When I use the Private Content button in the editor and select a subscription plan to restrict the content, and to make it visible only for that subscription, the content does not display for users who actually purchased the product and have an active subscription. The order is confirmed and the subscription is active, but the restricted content is still not visible. You can see the attached gif.  This option &quot;Private content&quot;, it only works with serials?  Thank you!")*

Hello,

Yes, some work have been started some time ago in order to make that plugin compatible with subscriptions.
But it hasn't been finished (or tested). I don't know why that code has been published since the editor part is not done and it hasn't been tested at all (like you can see with the typo in the SQL query).

If you fix the query and perform some tests ; you might be able to use it but you won't be able to select the "plan" via the interface ; you would have to modify the ID manually.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzU4LWhpa2FzdWJzY3JpcHRpb24vOTA5NzA2LXByaXZhdGUtY29udGVudC10YWctbm90LXdvcmtpZy13aXRoLXN1YnNjcmlwdGlvbj90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[oxido](/forum/user/29793-oxido "View oxido's Profile")**
- [![oxido's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/29793-oxido "View oxido's Profile") Topic Author
- [ Away](/forum/user/29793-oxido)

Less More

- Posts: 282
- Thank you received: 42
-
-

1 year 1 month ago -  1 year 1 month ago [\#368587](#368587) by [oxido](/forum/user/29793-oxido "View oxido's Profile")  Replied by *[oxido](/forum/user/29793-oxido "View oxido's Profile")* on topic *[Private content tag not workig with subscription?](/forum/58-hikasubscription/909706-private-content-tag-not-workig-with-subscription#368587 "-- HikaShop version -- : 6.1.0 -- HikaSerial version -- : 6.0.0 -- Joomla version -- : 5.3.3 -- PHP version -- : 8.3.25 -- Browser(s) name and version -- : Google chrome  Hi, When I use the Private Content button in the editor and select a subscription plan to restrict the content, and to make it visible only for that subscription, the content does not display for users who actually purchased the product and have an active subscription. The order is confirmed and the subscription is active, but the restricted content is still not visible. You can see the attached gif.  This option &quot;Private content&quot;, it only works with serials?  Thank you!")*

Actually, apart from that small change in the query, it seems to be fully functional, I can even select the subscription from the UI for which I want the content to be available, I will attach 2 images for you.
I did some tests and it's working.

Regards!

- [ ![subs.png](/forum/attachment/60820) ](/forum/attachment/60820 "subs.png") [ ](/forum/attachment/60820?download=1 "subs.png")
- [ ![selecting-subs-pack&#95;2025-09-18.gif](/forum/attachment/60821) ](/forum/attachment/60821 "...2025-09-18.gif") [ ](/forum/attachment/60821?download=1 "...2025-09-18.gif")

Last edit: 1 year 1 month ago by [oxido](/forum/user/29793-oxido "View oxido's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzU4LWhpa2FzdWJzY3JpcHRpb24vOTA5NzA2LXByaXZhdGUtY29udGVudC10YWctbm90LXdvcmtpZy13aXRoLXN1YnNjcmlwdGlvbj90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

1 year 1 month ago [\#368609](#368609) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Private content tag not workig with subscription?](/forum/58-hikasubscription/909706-private-content-tag-not-workig-with-subscription#368609 "-- HikaShop version -- : 6.1.0 -- HikaSerial version -- : 6.0.0 -- Joomla version -- : 5.3.3 -- PHP version -- : 8.3.25 -- Browser(s) name and version -- : Google chrome  Hi, When I use the Private Content button in the editor and select a subscription plan to restrict the content, and to make it visible only for that subscription, the content does not display for users who actually purchased the product and have an active subscription. The order is confirmed and the subscription is active, but the restricted content is still not visible. You can see the attached gif.  This option &quot;Private content&quot;, it only works with serials?  Thank you!")*

Hello,

That's a great news!
The SQL fix is already pushed on my side, but I should see to publish an hotfix for it.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

The following user(s) said Thank You: [oxido](/forum/user/29793-oxido "View oxido's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzU4LWhpa2FzdWJzY3JpcHRpb24vOTA5NzA2LXByaXZhdGUtY29udGVudC10YWctbm90LXdvcmtpZy13aXRoLXN1YnNjcmlwdGlvbj90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.071 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
