Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #1753
    Jason Cleaveland
    Participant

    Hi,
    I am trying to allow your plugin to work with my WooCommerce ordering platform. I need to attach documents to the order for storage and retrieval later. I don’t really need the front end functionality. However, I do need your plugin to work with a custom post type: shop_order

    I have altered line 91 of settings.php to reflect:

    public function load_post_types() 
    	{
    		$this->post_types = array('post', 'page', 'shop_order');
    		sort($this->post_types, SORT_STRING);
    	}

    That has allowed the plugin to show up in the custom post type but it will not save or retrieve any documents.

    What other code do I need to modify?

    Thanks so much!

    ~jason

    #1756
    Bartosz
    Keymaster

    Hello Jason.

    Can you provide us temporary admin access to your site (Set as private reply option)? We’d like to know why you’re unable to use plugin settings to add DA fields to shop_order post type (as it supports custom post types too) and why it does not store the attachments.

    #1757
    Jason Cleaveland
    Participant

    Unfortunately, it is on a local server. Let me see what I can do.

    #1758
    Jason Cleaveland
    Participant
    This reply has been marked as private.
    #1767
    Jason Cleaveland
    Participant
    This reply has been marked as private.
    #1769
    Bartosz
    Keymaster

    Yes, I can confirm that it doesn’t work properly in shop_order CPT at your site. We’ll see if it works in our server enviroment and try to provide a fix if it doesn’t. (the filter to add more post types without code modification will be included shortly).

    #1837
    Jason Cleaveland
    Participant

    Any further thoughts on this subject?

    Thank you!

    #1844
    Bartosz
    Keymaster

    One thing is modified – a filter, so you could add even non-public post types without code modification. We’re working on the fix.

    #1863
    Bartosz
    Keymaster

    Jason, we have no solution for this for the moment. We know what happens that it’s not working on Woocommerce shop_order but didn’t find a clue why. We tested many other post types and it worked well everywhere as it’s based on native WordPress API.

    In other words, we think that’s on the WooCommerce side and it would be great if you contacted them. If you will, here’s a detailed info on the issue that you can share:

    When WP Media manager is opened at “shop_order” post type screen, there’s no “wp.media.view.settings.post.id” variable available (the whole wp.media.view.settings.post to be precise).

    #1886
    Jason Cleaveland
    Participant

    Thanks so much for the follow up! I’ll continue my research and let you know if there is anything I find out.

    #41668
    Anonymous
    Inactive
    This reply has been marked as private.
    #41669
    Anonymous
    Inactive
    This reply has been marked as private.
    #41671
    Anonymous
    Inactive
    This reply has been marked as private.
    #41672
    Anonymous
    Inactive
    This reply has been marked as private.
Viewing 14 posts - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.