NooTheme Premium WordPress Theme › Forums › CitiLights › Unpaid objects are showing
- This topic has 9 replies, 2 voices, and was last updated 3 years ago by Anonymous.
-
AuthorPosts
-
3 years, 1 month ago #1207700
AnonymousInactiveTopics: 6
Posts: 20I'm using the pay per submission model, but unpaid objects are shown on the frontend too.
3 years, 1 month 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.
3 years, 1 month ago #1207846
AnonymousInactiveTopics: 6
Posts: 20This reply has been marked as private.3 years, 1 month ago #1207941
AnonymousInactiveTopics: 6
Posts: 20Hi!
Any updates on this?
3 years, 1 month 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.3 years, 1 month ago #1207980
AnonymousInactiveTopics: 6
Posts: 20Ok, so when something has the status 'Not Paid', but is approved it will still show up on the front-end?
3 years, 1 month ago #1207985Yes, if you 'Approval' via Admin panel, i will show.
On front-end, that property will change status when agent payBest regards.
3 years ago #1208158
AnonymousInactiveTopics: 6
Posts: 20I'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.3 years 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.
3 years ago #1208172
AnonymousInactiveTopics: 6
Posts: 20That is perfect! Thanks!
-
AuthorPosts
You must be logged in and have valid license to reply to this topic.