# Paid Listing Package Upsell Options

**URL:** <https://community.hivepress.io/t/paid-listing-package-upsell-options/14982>\
**Category:** Paid Listings\
**Created:** [February 12, 2025, 4:41am UTC](https://community.hivepress.io/t/paid-listing-package-upsell-options/14982 "2025-02-12T04:41:19Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![condorito.fr](https://community.hivepress.io/user_avatar/community.hivepress.io/condorito.fr/32/11449_2.png) [@condorito.fr](https://community.hivepress.io/u/condorito.fr)\
**Post date:** [February 12, 2025, 11:46am UTC](https://community.hivepress.io/t/paid-listing-package-upsell-options/14982/3 "2025-02-12T11:46:07Z")

</div>

Aloha Ken !

This is what I am doing. Actually more a hack than anything else.

Read this :

> [@Passing along the package context in the page](https://community.hivepress.io/t/passing-along-the-package-context-in-the-page/14123):
>
> Hello, I wanted to pass along the context of the packages to my pages, so I could add some extra features is current user has ‘subscribed’ to such or such package. I saw there was a need for that, in the forum, [here](https://community.hivepress.io/t/only-display-phone-number-and-website-for-upgraded-packages/4964) and [there](https://community.hivepress.io/t/code-to-target-specific-packages/11978) but no solution provided. So here it is @mry_darling, @majesticnationinfo function add\_custom\_body\_class\_for\_package($classes) { // Get current user $current\_user = wp\_get\_current\_user(); global $wpdb; //get package name (if any) for given user connected (user\_id…

And this :

> [@How do I know which package a user is currently on?](https://community.hivepress.io/t/how-do-i-know-which-package-a-user-is-currently-on/14938):
>
> Sorry to revive an [old post](https://community.hivepress.io/t/passing-along-the-package-context-in-the-page/14123), but I found out my SQL query was not correct. Well, it was correct (or good enough) when I had only two packages (including the free one). But now I have 3 packages (including the “free” one). The paying packages are “premium” and “pro”. Pro is better than premium, meaning it gives user access to extra features not available in the premium package. But the sql query will show in the body tag classes premium-pack pro-pack, even if the user only subscribed to premiu…

Cheers !

---

_[View the full topic](https://community.hivepress.io/t/paid-listing-package-upsell-options/14982)._
