NooTheme Premium WordPress Theme › Forums › CitiLights › Unpaid objects are showing
- This topic has 9 replies, 2 voices, and was last updated 6 months, 3 weeks ago by
Dirk_AO.
-
AuthorPosts
-
7 months, 1 week ago #1207700
I'm using the pay per submission model, but unpaid objects are shown on the frontend too.
7 months ago #1207717Dear, Please kindly send for me admin account and your site URL via private reply, i will check details to help you.
Alo, I also need an account unpaid to check, please kindly send for me account have problem.
Best regards.
7 months ago #1207846This reply has been marked as private.6 months, 4 weeks ago #1207941Hi!
Any updates on this?
6 months, 4 weeks ago #1207966Dear, I check again i see your problem because you Approval property on admin board because when submit new property, it will save with 'Pending' status (see attachment) please check your again.
Also, i see CitiLights theme on your site is outdate, please update theme and all plugin on your site again.
Best regards.
Attachments:
You must be logged in to view attached files.6 months, 4 weeks ago #1207980Ok, so when something has the status 'Not Paid', but is approved it will still show up on the front-end?
6 months, 4 weeks ago #1207985Yes, if you 'Approval' via Admin panel, i will show.
On front-end, that property will change status when agent payBest regards.
6 months, 3 weeks ago #1208158I'm sorry, but I still don't get it. What I would think is the following:
When I set in my admin settings that objects don't need admin approval it will still only show up once I pay for the listing on front-end.
Right now a property can have a 'not paid' status and still be shown on the listingspage.
So basically my users can create endless properties and not pay for them. That's not right is it?
Attachments:
You must be logged in to view attached files.6 months, 3 weeks ago #1208170Dear, If you want hide not paid properties on listing, please install and switch your site to use Citilights Child theme, then add custom PHP code in file functions.php of Citilight Child theme
//Hide not paid properties add_action('pre_get_posts', function(WP_Query $query){ if ( is_admin() || NooAgent::is_dashboard() ) { return; } if(re_is_property_query($query)){ $meta_query = $query->get( 'meta_query' ); if ( ! is_array( $meta_query ) ) { $meta_query = array(); } $meta_query[] = array( 'key' => '_paid_listing', 'value' => '1' ); $query->set( 'meta_query', $meta_query ); } });
Best regards.
6 months, 3 weeks ago #1208172That is perfect! Thanks!
-
AuthorPosts
You must be logged in and have valid license to reply to this topic.