Aakash
Forum Replies Created
-
Forum: Plugins
In reply to: [Import any XML, CSV or Excel File to WordPress] Importing many attributesI believe this is possible programmatically.
This example may help – https://www.wpallimport.com/documentation/foreach-loops/Edit:
Check out this post by WP All Import staff for more info on how to accomplish this – https://www.ads-software.com/support/topic/import-params-with-foreach/#post-15001194- This reply was modified 2 years, 7 months ago by Aakash.
Try this guide:
https://www.wpallimport.com/woocommerce-how-to-add-products/#importing-variable-products
*Updated link to specific sectionCould you also share a portion of your import file? Or ideally l, do an import on a sandbox site (https://www.wpallimport.com/try/) and share it here.
- This reply was modified 2 years, 8 months ago by Aakash.
Forum: Plugins
In reply to: [Import any XML, CSV or Excel File to WordPress] Get Parent During ImportSee if this syntax helps
https://stackoverflow.com/a/28237764Forum: Plugins
In reply to: [Import any XML, CSV or Excel File to WordPress] Attributes All in OneGlad to help @k0b32010
If you can provide an XML example of cases with multiple values, I can try to assist further.
Another good place to get advice on a custom PHP function for this would be StackOverflow forums. Show them the current code/function and the XML you’re trying to parse to get additional advice.
Forum: Plugins
In reply to: [Import any XML, CSV or Excel File to WordPress] stock updateHi @valerymd
We’ll need the “One Click Login” URL displayed at the top of the sandbox site in order to access.
And could you please upload and point out 2 XML files with differing stocks so we can test the imports.That’s odd, as long as the fields are mapped the same it should work.
Going to All Import (on the sidebar) > Manage Import > Import Settings > Uploading your new file > Clicking “Run Import” under Manger Imports should do the trick.
Forum: Plugins
In reply to: [Import any XML, CSV or Excel File to WordPress] disabling do_action callsHi @18tommyboy
That setting works like so:
Actions from other plugins
In an attempt to stop other plugins from running a bunch of actions during post save/updates, try enabling Increase speed by disabling do_action calls in wp_insert_post during import (All Import -> Manage Imports -> Import Settings -> Configure Advanced Settings): https://d.pr/c8LRQ. Make sure to check your imported posts and confirm that they’re correct with this setting enabled.In some cases, this change can significantly improve the import speed.
Its effects vary by plugin (ex: WPML does not suggest using it), so you’d have to test it out and see for each case.
Hope this helped!
Forum: Plugins
In reply to: [Import any XML, CSV or Excel File to WordPress] Attributes All in OneHi @k0b32010
I’ve found a solution to parse the attributes. It’s not pretty, but it works!
Paste this code into the function editor.
<?php function get_value_for($string, $key){ $string = "{" . $string . "}"; preg_match('/\K[^{]*(?=})/', $string, $matches); $matchedResult = $matches[0]; $exploded = explode(",",$matchedResult); // explode with , $yourData = array(); foreach ($exploded as $value) { $result = explode(':',$value); // explode with : $yourData[$result[0]] = $result[1]; } return($yourData[$key]); } ?>
You can then call the attributes like this – https://i.imgur.com/ldiLAZT.png
[get_value_for({attributes[1]},"δι?μετρο?")]
I hope this helped!Forum: Plugins
In reply to: [Import any XML, CSV or Excel File to WordPress] Attributes All in OneHi @k0b32010
The standard way to call this value would be typing
{attributes[1]}
into the appropriate field. This would put ALL of the attributes into that field.If you can provide more specific information, I can assist further.
I noticed that “attributes” seems to have multiple key/value pairs.
If you’re trying to parse those out individually (ex: “δι?μετρο?:44mm” mapped to a field, “αδι?βροχο:10 ATM” mapped to another field, etc.) it would be be best if the XML file had them as nodes like this:<attributes> <δι?μετρο?>44mm<δι?μετρο?> <αδι?βροχο>10 ΑΤΜ<αδι?βροχο> <μηχανισμ??>Only Solar Time<μηχανισμ??> <attributes>
otherwise you’ll need a custom PHP function to handle this. I’ll see if I can whip something up.
Hope this helped point you in the right direction.
- This reply was modified 2 years, 11 months ago by Aakash.
Hi @jcmaad
Instead of
{rating_count[1]}
as the “value” put[intval({rating_count[1]})]
and the same for other affected fields.This will use the PHP function feature to call intval which “gets the integer value of a variable”.
Another option would be to open your CSV file in Google sheets, and make sure the format of the columns is set to “number”.
That may do the trick.Try using the PHP function feature along with the intval PHP function on the field.
https://www.wpallimport.com/documentation/import/custom-code/inline-php/
Forum: Plugins
In reply to: [Export any WordPress data to XML/CSV] MARC format export supportI’m not sure if the company has any plans for this. However a Google search did bring up some MARC to XML/CSV converters, this may be a step in the right direction for you.
Hi @stnabor
Generally speaking, if your server can run WordPress it can run WP All Import.
Here’s specifics on requirements and debugging any potential issues: https://www.wpallimport.com/documentation/troubleshooting/server-configuration/
Forum: Reviews
In reply to: [Import any XML, CSV or Excel File to WordPress] Not workingHello @egromspam0002
Can you please share the file you’re trying to import, and tell us what kind of import it is (post, page, woocommerce product, etc.)
Forum: Plugins
In reply to: [Export any WordPress data to XML/CSV] Export field data without html tagsJust a guess, try replacing the field where you put
wp_strip_all_tags
withmy_clean_content
.That field is asking which function you’d like to process your export.
You can check out the specifics in the docs here https://www.wpallimport.com/documentation/custom-wordpress-export-php/
Hope this helped
- This reply was modified 3 years ago by Aakash.