Y A
Forum Replies Created
-
AuthorPosts
-
Hi @miles276
I’ll have something ready by tomorrow. Let me know if you’re still interested.
I tried removing the custom CSS and the custom PHP but the same thing happens.
The weird thing is that I have identical codes for the EN and FR version of the website, but the EN version works fine.This reply has been marked as private.This reply has been marked as private.Nice catch, thank you very much Stiofan. I understand that I should try excluding one CSS at a time through the GDB admin in case this ever happens again.
Cheers,
YAThis reply has been marked as private.This reply has been marked as private.November 12, 2015 at 4:32 pm in reply to: When adding coupon, discount does not appear unless page is refreshed #59827You are a very smart man Stiofan ! It was indeed a stylesheet that was added the wrong way.
Thanks,
YANovember 12, 2015 at 4:10 pm in reply to: When adding coupon, discount does not appear unless page is refreshed #59824Thank you very much for your guidance Stiofan, I’ll try to figure it out.
Cheers,
YANovember 12, 2015 at 3:10 am in reply to: When adding coupon, discount does not appear unless page is refreshed #59783Alright, thanks !
November 11, 2015 at 8:28 pm in reply to: When adding coupon, discount does not appear unless page is refreshed #59764Ah, maybe it has something to do with the claim listing addon. When you go through the Claim Listing method (on Details page), you can select a payment method and proceed to GD Checkout page. It’s on that page that I am getting these issues.
November 11, 2015 at 7:42 pm in reply to: When adding coupon, discount does not appear unless page is refreshed #59751This reply has been marked as private.Update!
Turns out that if I also manually publish the post, it works fine. Here’s the final code in case anyone cares:function syr_replace_author( $last_post_id ) { global $wpdb; $this_post = $wpdb->get_row( $wpdb->prepare("SELECT * FROM wp_geodir_gd_place_detail WHERE post_id = %d", $last_post_id) ); if ($this_post->post_status == 'draft' && !$this_post->claimed && $this_post->package_id =='1') { $my_post = array(); $my_post['ID'] = $last_post_id; $my_post['post_author'] = 1 ; //This is the ID number of whatever author you want to assign // Update author into the database wp_update_post($my_post); // Publish posts when added wp_publish_post ($last_post_id); geodir_change_post_status($last_post_id, 'publish'); } } add_action( 'geodir_after_save_listing', 'syr_replace_author');
Alright, thanks.
Unfortunately, my test website is on localhost (and you can imagine why I wouldn’t want to put it on my live website).
Stiofan, please let me know if you can’t get this to replicate on your test website and I’ll create another instance of my website online.
I thought of that, but I did not find an author ID field in the wp_geodir_gd_place_detail table
-
AuthorPosts