Hello everybody! Please, I would like to know if it is possible to limit a free plan of sending only one image in the ad. I want to limit just so that it is not a premium plan. Is it possible?
Thank you very much!
Do you happen to search the forum ?
This was posted a couple of days ago :
Hi condorito
Thanks for your suggestion!
In my case, the image upload limitation will be tied to a paid package and a specific listing category. HivePress was supposed to implement this feature, but it hasn’t been developed yet.
Your workaround with jQuery is interesting, but since the limitation depends on the selected package and category, I would need a more dynamic and integrated approach. Hopefully, HivePress will provide an official solution soon!
Thanks again for your input!
Hello @condorito.fr thanks! I´m sorry for this, I researched, but I ended up looking for wrong terms, I apologize again!
Look here :
For lack of a better solution, I return the last woocommerce order for that user.
And rummage in the item (only one item/product per order in HivePress) for the given order to see if it has ‘premium-pack’ or ‘pro-pack’.
Updated code (for those who would be interested) :
function get_customer_orders_with_products() {
$current_user = wp_get_current_user();
$args = [
'customer_id' => $current_user->ID,
'limit' => 1, // just returns last order
'orderby' => …
Based on this and the code snippet provided in the thread mentioned you should get that right.
system
Closed
April 17, 2025, 8:17pm
5
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.