• Resolved eschooling

    (@eschooling)


    Hello and gongrats for your great plugin.
    Can u please tell me how can i make this:
    i want to insert the weight of each product and in front end shows like this:

    0179 kg

    How can i make it shows like this:
    0.179 kg??

    Also i have many of books in my store and i need to insert the isbn in each of them. How can i insert the isbn to gtin field? (In your plugin working area).

    Thanks in advance…

    • This topic was modified 4 years, 4 months ago by eschooling.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter eschooling

    (@eschooling)

    Hello again, in woocommerce i have the filed of GTIN but in the plugin this is not exist. How can i insert the value i want inside your plugin and afte running the xml the GTIN FIELD HAS the value i want?

    Please i need you help ti fix this, this will be very helpfull!!!!

    Plugin Author WP All Import

    (@wpallimport)

    Hi @eschooling,

    i want to insert the weight of each product and in front end shows like this: 0179 kg How can i make it shows like this: 0.179 kg??

    You can use a PHP function to do that: https://www.wpallimport.com/documentation/developers/custom-code/inline-php/. There’s probably a better way, but here’s a really basic example:

    function my_fix_number( $num ) {
    	$n = substr_replace( $num, substr( $num, 0, 1 ) . '.', 0, 1 );
    	return $n;
    }

    i have the filed of GTIN but in the plugin this is not exist. How can i insert the value i want inside your plugin and afte running the xml the GTIN FIELD HAS the value i want?

    Most GTIN plugins can be imported into using these instructions: https://www.wpallimport.com/documentation/custom-fields/theme-plugin-fields/ (make sure to PUBLISH a product with a GTIN before trying to detect it).

    Also, if you’re updating existing products that weren’t created by your import, you’ll need to use an “Existing Items” import: https://www.wpallimport.com/documentation/recurring/manual-record-matching/. Just be sure to use “Choose which data to update” on step 4 and select to only update the GTIN custom field.

    Thread Starter eschooling

    (@eschooling)

    hello, and thanks fro your response.
    i receive this message:
    Custom Field Value template is invalid: Reached end of template but statement sequence expected

    What am i doing wrong?

    Plugin Author WP All Import

    (@wpallimport)

    Hi @eschooling,

    i receive this message: Custom Field Value template is invalid: Reached end of template but statement sequence expected

    This most likely means there’s an unescaped square bracket or curly brace in one of the custom field value fields. Try this:

    • Remove any custom field that you’re not actually trying to import
    • If you’re importing a value with brackets or braces (that aren’t a part of PHP functions or import elements), escape them with backslashes, e.g.: \[shortcode]Hello World!\[/shortcode], or: \{“HELLO”:”WORLD”\}

    Let me know if that fixes it.

    Plugin Author WP All Import

    (@wpallimport)

    Hi @eschooling,

    I’m marking this as resolved since it’s been a while. Feel free to follow up in this thread if you still have questions.

    Anyone else with questions, please open a new topic.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Weight & ISBN’ is closed to new replies.