• Resolved rwgieseler

    (@rwgieseler)


    Just beginning to test the functionality before this goes into a live evironment. So far I really like what I see with this plugin. Thank you for providing this plugin.

    Issue 1.
    After setting up the specific product with all the available fields for this plugin, when exporting ALL the products into a CSV file, the “Alternative Products” data nor the header (row 1 in file) is not included. Another related issue lies on the import step as to what is the string used for the “Alternative Products” key and the syntax of the values for this key.

    Issue 2.
    Also, while mentioning this, I noticed the value of key “Meta: _hide_from_shop” is NULL if the default value is selected in the WC UI. I would expect to see a value (for the key) of some sort properly assigned a value (maybe default) when exporting.

    Data for both issues:
    Exact CSV cut/paste key/pair values from the export file (below):

    Meta: _is_discontinued Meta: _discontinued_product_text Meta: _alt_product_text Meta: _hide_from_shop Meta: _hide_from_search

    yes My discontinued product display text My alternative product Display Text hide

Viewing 1 replies (of 1 total)
  • Plugin Author twoelevenjay

    (@twoelevenjay)

    Hello @rwgieseler.

    First, I want to apologize for not getting to this for over two months.

    Second, I want to thank you for the kind words, and for bringing this to my attention.

    Issue 1:

    The short answer is the built in export feature of WooCommerce only allows exporting scalar values. Because the Alternative products IDs are stored in an array they were skipped. This also left made it so importing these values would not be possible.

    I have added a new PHP class to the plugin to extend the import / Export festure of WooCommerce to include this plugins custom fields. They appear in the export column option, and the import custom mapping. They are no longer handled as “Meta:” column headers. And it will export “Alternative Products” as a string of ID separated by a comma and this format will properly import.

    The new headings are:

    • Is discontinued?
    • Discontinued Product Text
    • Alternative Products
    • Alternative Products Text
    • Hide from shop?
    • Hide from search?

    Issue 2:

    In this case “Default” is the same as a select option none. It is an empty value, as nothing has been selected. Just like when the text fields are empty they meta data is empty. All products that already existed when this plugin was installed would have empty values for these settings thus being set to default. For now I believe it is best to leave it this way, especially for backwards compatibility.

    I will mark this topic as resolved, if you need more help please post a new topic.

Viewing 1 replies (of 1 total)
  • The topic ‘Discontinued-Products – Export “Alternative Products” Not Included In File’ is closed to new replies.