Closed

WP All Import - Product Import Custom Functions (Variants)

Hi,

I am trying to import a few thousand products from CSV files into WooCommerce via WP All Import.

There are many products which are variants of each other but i am unable to import them as variants because there is no attribute data such as color in the CSV.

The only way to identify them is via prodlangname, see below for example of 2 variants from CSV ;

*EXAMPLE 1*

prodid96486

prodnum09648602602

prodbrandlangnameNARS

prodcatgnameMake Up

prodlinelangnameEye Color

prodlangnameSingle Eyeshadow - Fez (Matte)

prodlangsize2.2g/0.07oz

invqty5

sellingprice24.00

refprice26.000000

currencyUS$

imageurl - Removed

prodbarcode607845020615

produrl - Removed

colorimageurl - Removed

*EXAMPLE 2*

prodid96487

prodnum09648702602

prodbrandlangnameNARS

prodcatgnameMake Up

prodlinelangnameEye Color

prodlangnameSingle Eyeshadow - Abyssinia (Matte)

prodlangsize2.2g/0.07oz

invqty17

sellingprice24.00

refprice26.000000

currencyUS$

imageurl - Removed

prodbarcode607845020592

produrl - Removed

colorimageurl - Removed

I have written in to the WP All Import team and this was their reply;

*Due to how this data is stored, one or more custom PHP functions would have to be used to properly import the data. You can learn more about using PHP functions here: [login to view URL]

When it comes to retrieving the product title, a function would have to be used on the {ProdLangName[1]} element to extract only the title. Then, when it comes to importing the attribute value, a function would have to be used to extract only the value.

Here are a pair of example functions*:

function example_get_value ($text) {

$value = preg_replace('/.*?-/', '', $text);

return $value;

}

function example_get_title ($text) {

$value = preg_replace('/\s-.*/', '', $text);

return $value;

}

I need to hire someone to assist with writing the necessary code so that I may use it to properly import the products in their respective variants, total 6 XML Sheets.

Thanks,

VQ

Skills: Data Entry, PHP, WooCommerce, WordPress

See more: all the necessary codes in web design using php, wp all import, zend api import contacts using php, wp all import woocommerce, wp all import if statement, wp all import date format, wp all import delete products, wp all import unique identifier, wp all import category mapping, wp all import function editor, wp all import hooks, php, woocoomerce, custom attribute magento import export, sugarcrm custom functions, oracle sqlplus find custom functions, magento custom options export import, custom wordpress xml import, customization work virtuemartpassword protected product datafeed inventoryweb txt import daily vi, custom csv file import field update

About the Employer:
( 0 reviews ) Singapore

Project ID: #17032520

16 freelancers are bidding on average $201 for this job

spiretech

Hello Greeting Of the day!! I can help you for sure to work on WP All Import, Product Import Custom Functions (Variants) Let’s discuss a little My web and mobile portfolio [login to view URL] More

$250 SGD in 3 days
(90 Reviews)
6.9
awaise17

The best way do it is to first create a product manually in the Woocommerce product's section with variants. The front end of that particular product will help any developer understanding how the variants are supposed More

$388 SGD in 2 days
(86 Reviews)
6.7
WebXcellance

Hello there, As per my understanding you need to import a few thousand products from CSV files into WooCommerce via WP All Import. we have 6+year experience in website design and developments in php, wordpress, wooco More

$250 SGD in 3 days
(112 Reviews)
6.6
sknadeem123

I think I can help you in WP ALL Import Pro plugin because i have already imported to WP with variations. Can we discuss?

$250 SGD in 3 days
(72 Reviews)
6.1
webteklab

Hi, I can customize the plugin so that the exact variation can be uploaded to woo-commerce site with the exact variation. We are Wordpress Certified developers have worked for more than 300+ wordpress theme and p More

$300 SGD in 5 days
(128 Reviews)
6.4
mastersapp

Hi sir/Mam me and my skilled developers are expert in Data Entry, PHP, WooCommerce, WordPress. we have more than 5 years of experience in this work. we will do your project. we will give you best work. please conta More

$100 SGD in 3 days
(45 Reviews)
5.9
$155 SGD in 3 days
(41 Reviews)
5.9
vashishtrupinder

Hello, I have 5+ years of experience in Wordpress-Woocommerce Customization. I can do any type of customization work in it and all other plugins as well. I have done a lot of big customizations in site. I assure More

$155 SGD in 3 days
(30 Reviews)
5.4
nivasoftvietnam

SHOW DEMO IN ADVANCE IF YOU ARE INTERESTED. I have the production lifetime warranty if there are errors from what we made. Profile TOP 20% of freelancer - https://www.freelancer.com/u/nivasoftvietnam.html * Our off More

$250 SGD in 3 days
(43 Reviews)
5.3
mdubey

Dear sir, I am very interested for this WP All Import Plugin Work to import variant products. I have 7+ Year of Experience in this field and I can surely do this project , i work with my team who always looking More

$150 SGD in 3 days
(63 Reviews)
5.2
JinDongZhe

Hello How are you? I have read your job description carefully. Your project is adaptable for me.I am good for Web design and Development, experience for 4 years. My basic skill WORDPRESS, WOOCOMMERCE, MySQL, PHP, More

$155 SGD in 3 days
(20 Reviews)
5.6
$155 SGD in 3 days
(22 Reviews)
5.1
mayankinnovative

Dear Client, We are expertise in php, core php, CMS, HTML5, CSS3, bootstrap, WordPress, OpenCart, Magento, PSD to HTML, Angular JS, Node JS photoshop, OPencart, Codeignitor, Laravel and many other technologies. We have More

$180 SGD in 5 days
(54 Reviews)
4.1
developersperhr

Purely JS and PHP Calculator [login to view URL] [login to view URL] [login to view URL] [login to view URL] More

$222 SGD in 3 days
(8 Reviews)
3.2
SuptoRahman

Hello sir, Thanks for posting such interesting project where i am very much comfortable and confident. I would like to write and deliver you the script within 24 hours from now. You just need to wait for 24 hours More

$100 SGD in 1 day
(8 Reviews)
3.0
tjcg

We provide top notch quality website apps development services, Hire dedicated website developer India for best services. I read your requirement about need of --------- developer and I want you to know that I have a More

$161 SGD in 3 days
(2 Reviews)
2.9