Write some custom code - php - wordpress

I have an wordpress+woocommerce eshop about clothing, and I would like to (using wp all export) to export on xml all products with product variations but only different variations by color and not by size.

What I have done so far is to install plugin named: "show single variations" and then choose which product variations are visible in catalog. Then using wp all export plugin and "_visibility" tag I have managed to export all products that are visible on catalog to xml.

The problem is that some of my size and color tags on product variations are empty.

I have replicated my site to help you better understand here :

[login to view URL]

You can check export 3

So I would need some custom code to do these things:

1) IF Product Size is empty then take value from parent's id product size

2)In product color: export only the first color. For example if it has 3 variations Blue, red and white only export the first one (white)

3) There is no custom field that includes the discount, The formula is this one:

( {Regular Price} - {Sale Price} ) / {Regular Price} ) *100

Could you help me write the function?

4) If a variable product has attributes, e.g. color and size, but only size is used for variations then color tag in variations is empty.

If empty, can we export parent product's color tag to variations?

For example a dress that has attributes: Color:Blue and size: S,M,L, only size is used for variations so there are 3 variations, which have color tag empty, I would like to use parents color in the variations, is it possible?


Evner: HTML, PHP, WooCommerce, WordPress, XML

Se mere: custom code for wordpress services, browser compatibility code php wordpress, chronoforms custom code php, php, css, website design, magento, wordpress, ajax, bootstrap, shopify, jquery, login facebook custom code php, sugarcrm custom code php var, write twitter code php mysql, drupal views write custom output php, custom code post wordpress, custom code wordpress, write custom code godaddy reseller, write custom web server

Om arbejdsgiveren:
( 7 bedømmelser ) heraklion, Greece

Projekt ID: #16750294

14 freelancere byder i gennemsnit €45 på dette job


1. To customize the xml export with custom code: a. If product size empty to take value from parent id product size. b. Product color: To export only the first color variation. c. To include the discount in a Flere

€94 EUR in 3 dage
(667 bedømmelser)

Hello, I have gone through your requirement. We have an expertise in Website designing and Customizations. We will deliver you in your time line and budget. I have 7+ years work Experience of Wordpress(CMS) developmen Flere

€85 EUR in 4 dage
(263 bedømmelser)

hello sir i am expert in wordpress i am able to do this work you will satisfy with my work i can do this work asap this simple work for me thank you

€23 EUR på 1 dag
(175 bedømmelser)

hello i have read your description very carefully. i am woocommerce expert i can do your job in tme even in weekend

€23 EUR på 1 dag
(33 bedømmelser)
€100 EUR in 4 dage
(47 bedømmelser)

Hello borbou, I am good at : 1. WordPress web development 2. PSD to HTML 3. Responsive web development 4. Graphics Designing 5. Photoshop 6. PHP 7. html + CSS Styling 8. js & jQuery. you can check my work Flere

€55 EUR på 1 dag
(107 bedømmelser)

Greetings. You have interesting project and I am redy to help you right now. I have education and 15 years experience in the WEB development.

€30 EUR in 2 dage
(9 bedømmelser)

Hello, Lets discuss in detail. Yes can be possible but i need to check the running functionality. Please share your availability so that we can discuss. Regards

€23 EUR på 1 dag
(7 bedømmelser)

Hi, This is Seema, having 6 years of experience in WordPress web designing and development. I have done many projects in UI development, PHP frameworks with laravel ,yii2, code igniter and CMS like WordPress. I w Flere

€100 EUR på 1 dag
(31 bedømmelser)

hi i am interested in your work i have a lot of experience in web development i am looking forward for your response thanks

€23 EUR på 1 dag
(0 bedømmelser)

A proposal has not yet been provided

€29 EUR in 5 dage
(0 bedømmelser)

I am a Wordpress Developer. Currently, I am working on ALL Solutions website on woo commerce. I have developed [login to view URL] website which is a PHP project. I can help you with this project.

€18 EUR in 2 dage
(0 bedømmelser)

A proposal has not yet been provided

€14 EUR in 3 dage
(0 bedømmelser)

This can be done in just 10 euros. I’ll work with you to understand your needs and will further help you in running your ecommerce store. I have experience with managing my own ecommerce application as well.

€14 EUR in 3 dage
(0 bedømmelser)