ImportWP
Forum Replies Created
-
Hi,
Global and Visable WooCommerce attribute option should be either “yes” or “no”, if your csv is unable to support this then it can be altered using a custom php function to modify it to the correct value.
An example of modifying data using custom php functions can be seen on this page (it shows using a date example but this shows how to create and use a custom function): https://www.importwp.com/docs/importer/code-snippets/modifying-dates-using-custom-methods/
James
Hi Markus,
To provide you with support since you are using the Pro version, you need to create a support ticket here: https://www.importwp.com/support/
Providing me with the version numbers of all plugins is question (import wp , import pw pro, and “the events calendar”, and an export of your importer via “Tools > Import WP > Settings / Tools > Import / Export > Export Importers” , along with what information you are trying to populate on “the events calendar”.
Thanks
JamesHi @matteowp,
Are you able to inspect the network request in your browser that breaks after the 275th record, and let me know what the response code from the server is? along with any message?
Are there any error logs on your server?
Alot of things can cause imports to slow down or stop, one of main reasons for this can be caching plugins that will clear and regenerate when a new record is imported, creating a ever-increasing amout of server load based on the number of records imported. Another is if the server hosting does not follow the php execution time, and stops scripts abruptly without warning causing the import process to not trigger the correct events.
With some more information from you we should be able to narrow your issue down.
James
Forum: Plugins
In reply to: [Import WP – Export and Import CSV and XML files to WordPress] ACF import?Hi Nadrill,
This is not possible out of the box, you would need to write some custom code for ACF select/dropdown fields.
The onlything similar is Taxonomy terms, as you can insert new terms during import.
How are the products created, is this a custom post type or are they created in a plugin, if so what plugin?
Hi Juriix,
Sorry it has taken so long to get back to you, but i have been away from the keyboard over the weekend.
Please update import wp to v2.4.10+
Custom method to map your categories, add this to your theme or via a plugin:
function iwpex_juriix_map_categories($input = '') { // Feed => WordPress $map = [ 'Boty > Koza?ky (Dámské)' => 'Boty > Dámské > Koza?ky', 'Boty > Kecky (Dámské)' => 'Boty > Dámské > Kecky', 'Boty > Kecky (Pánské)' => 'Boty > Pánské > Kecky', 'Pono?ky > Barevné' => 'Pono?ky', 'Pono?ky > Bílé' => 'Pono?ky', 'Pono?ky > ?erné' => 'Pono?ky', ]; $base_delimiter = apply_filters('iwp/value_delimiter', ','); $base_delimiter = apply_filters('iwp/taxonomy/value_delimiter', $base_delimiter); $parts = explode($base_delimiter, $input); $parts = array_map(function ($item) use ($map) { return isset($map[$item]) ? $map[$item] : $item; }, $parts); return implode($base_delimiter, $parts); }
Once the code is added, you should be able to update the value in the taxonomy terms field, previously from your screenshot it was
{23}
, change this to[iwpex_juriix_map_categories("{23}")]
.If done correctly, the preview text should update and show the mapped values.
Ok, if you can provide me with a 2 column csv list of Feed Term values, and Wp Term value, i should be able to create you a custom function.
e.g.
Feed Term, WP Term Feed Socks, WP Shoes
Mapping like you suggest can currently only be achieved by creating your own custom function, and using that custom function to modify the feed category names to match your wp category names.
an example of using a custom function to modify dates, can be seen here: https://www.importwp.com/docs/importer/code-snippets/modifying-dates-using-custom-methods/ , this should give you an idea of how to create and use custom methods.
Hi Juriix,
Taxonomy hierarchy can be imported when terms are added to a post / post_type by enabling hierachy and setting the hierarchy character https://www.importwp.com/docs/importer/how-to-guides/how-to-import-wordpress-taxonomies-onto-a-post-type/
However your feed:
Kids > Shoes > Walk, Run > Walk Kids > Shoes > Walk, Run > Run Kids > T-shirt Kids > Glasses
Would match the following hierarchy:
- Kids |- Shoes | |- Walk |- T-Shirt |- Glasses - Run |- Walk |- Run
Would match the following hierarchy (if you changed the term seperator delimiter from a “,” ):
- Kids |- Shoes | |- Walk, Run | | |- Walk | | |- Run |- T-Shirt |- Glasses
Please make sure you are using the latest version 2.4.9 or greater as i have fix some bugs relating to this.
- This reply was modified 2 years, 6 months ago by ImportWP.
Hi,
At the moment you can only override the timeout when fetching remote files by using the http_request_args filter to modify the timeout value.
An example of changing the timeout value to 90 seconds can be achieved by adding the following snippet to your theme:
// Extend timeout on wp_remote_get to 90 seconds add_filter('http_request_args', function($args){ // increase timeout to 90 seconds $args['timeout'] = 90; return $args; });
Hi Gio,
Sorry that the website was down, i was out of reach of a computer over the past couple of days.
Can you please create a support ticket: https://www.importwp.com/support/ with information about what acf fields you are trying to import to, what type of field, any other information that you think is relevent, along with any screen shots of your current importer settings for those acf fields.
James
Hi Gio,
Import WP uses core WordPress functions to move and store attachments, What WordPress filter or plugin have you used to alter the uploads file path, can you give me an example of what you have done and i can have a look and see what might be causing the issue.
James
Hi,
For reference of the error: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/406
Import WP uses the built in wp_remote_get function to download images, can you confirm that this image / file can be downloaded manually in your browser?
If you are able to manually download the file, but the importer is still throwing a 406 response code, are you able to share the remote url that is causing issues so i can investigate?
James
Forum: Plugins
In reply to: [Import WP – Export and Import CSV and XML files to WordPress] Export.I have released an updated version of importwp-woocommerce , this version allows changing of produc types except for changing a product type to a variation as WooCommerce throws an error if this happens.
Forum: Plugins
In reply to: [Import WP – Export and Import CSV and XML files to WordPress] Export.To enable the product type field, under the “Product Fields” section of the “Template fields” step, click on the button at the bottom of the section labelled “Enable fields”, and select enable product type, this field you can either choose from a dropdown, or enable the text field to be populated from your data file.