Dom
Forum Replies Created
-
Forum: Plugins
In reply to: [Search with Typesense] Merge custom post types into a single indexJust to add to this, I’ve attempted to add using the link above and was able to get ‘cpts-data’ to show in the selection using this code:
function cm_typesense_add_available_post_types( $available_post_types ) { $available_post_types['cpts-data'] = [ 'label' => 'CPT Data', 'value' => 'CPT Data' ]; return $available_post_types; } add_filter( 'cm_typesense_available_index_types', 'cm_typesense_add_available_post_types');
However, if I refresh the page it disappears and if I try to Delete and Re-Index I get error “Not Found : No collection with name
cpts-data
found.”Forum: Plugins
In reply to: [Search with Typesense] Merge custom post types into a single indexI have followed the gist above to index two custom post types into one single index. However, I am also having the same issues as @tommy94 in that it doesn’t appear in the index selection.
I can see digamberpradhan added a link to adding a custom post type, however this is not a custom post type it’s just a schema so how can I add and index this?
Regards
DomForum: Plugins
In reply to: [Order Splitter for WooCommerce] Change status of split orders not workingHi Fahad
I’m done some debugging and think I’ve located the issue.
File:
woo-order-splitter/inc/functions.php
Line 10872:$status = apply_filters('wc_os_split_order_status_logic_hook', $order, $status);
This returns an Order object, not a status. Therefore, when it tries to set the status further down (lines 10885 & 10886) it fails.
I have commented out line 10872 and 10885 and updated line 10886 to
$order->set_status($status);
and this now works.I have created a patch for this so it works on out system. However, it would be great if you could look into this and publish a core fix?
Thanks
Forum: Plugins
In reply to: [Order Splitter for WooCommerce] Change status of split orders not workingHow exactly do I do that? This is what I see on the advance settings / crons
What file/function sets the new order status? I can then debug in there why it’s not setting the correct status.
Forum: Plugins
In reply to: [Order Splitter for WooCommerce] Change status of split orders not workingHi Fahad,
Thank you for the quick response! I have checked the order notes and it has only changed from the original status to payment pending. I have attached a screenshot.
Thanks,
Dom