Adding custom fields

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Viewing 19 reply threads
  • Author
    Posts
    • #87034
      r_guayaquil
      Participant

      Hi,

      I have added product test with custom fields information and exported it as a csv file to see all the header fields and upload 100 at once.

      I fill the file with all the info, but the custom fields are not showing. They only show if i add a product manually.

      Why is that? Thanks for the help!

    • #87257
      r_guayaquil
      Participant
      This reply has been marked as private.
    • #87270
      r_guayaquil
      Participant
      This reply has been marked as private.
    • #87379
      WCFM Forum
      Member

      Hi,

      How you have created custom fields? Using WCFM Custom field?

      Please re-check your CSV and be sure meta field columns are properly se as per standard – https://docs.woocommerce.com/document/product-csv-importer-exporter/

      Thank You

    • #87408
      r_guayaquil
      Participant

      Hi,

      I have created them using WCFM custom field. They dont even show if i add them manually in each product in the dashboard.

    • #87427
      r_guayaquil
      Participant

      Hi,

      I deleted the custom fields again. I created a product and added the custom fields values. When i export the csv file i get repeated meta fields columns which i am guessing are the ones i created before and deleted, but they still appear in the file.

      Why is that? What do I have to do?

      Please see screenshot.

      Attachments:
      You must be logged in to view attached files.
    • #87492
      r_guayaquil
      Participant

      Hi guys,

      Sorry to bother you so much with this. It seems like that when i import new products through a csv file, i add new meta fields even though they have the same name. I think thats why when i export the file i get the meta fields columns repeated.

      I checked and re-checked and the meta columns are correct in the file.

    • #87780
      WCFM Forum
      Member

      I checked and re-checked and the meta columns are correct in the file.

      Ok, so it’s now working perfectly for you, right?

    • #87824
      r_guayaquil
      Participant
      This reply has been marked as private.
    • #88394
      WCFM Forum
      Member

      HI,

      OK, so main issue is – Custom fields are exporting properly but those are not importing, right?

      We are checking this.

      Thank You

    • #88397
      WCFM Forum
      Member

      HI,

      Well, I got the issue.

      You have created custom fields “name” starts with “capital letters”, but meta name always save as “small letters”.

      So, just change those “custom fields” name and set fully in small letter. It will work perfectly for you.

      Thank You

    • #88904
      r_guayaquil
      Participant

      Hi,

      Thanks a lot for the help! It works perfect!

      The “precio_con_envio” field is numeric field which means the vendor cant type the dollar sign. Is there a way that the dollar sign can show automatically in the website even if the field stays as numeric?

      Also, i have the following issue. If i create two blocks in the custom field settings and i get the following error when a try to add a new product. Please see screenshot.

      Attachments:
      You must be logged in to view attached files.
    • #90044
      r_guayaquil
      Participant

      Hi,

      Any help??

    • #90834
      WCFM Forum
      Member

      Him

      Do you have any template override?

      Please contact us here – https://wclovers.com/woocommerce-multivendor-customization/
      We have to debug this. Something modified wrongly!

      Thank You

    • #94338
      r_guayaquil
      Participant

      Hi,

      I have a custom field set as text. I want to give the vendors the freedom to type text or a number as they see convenient, but if they type a number is there a way that the dollar sign can show automatically in the website??…only when they type a number.

      Thanks for the help!

    • #96318
      r_guayaquil
      Participant

      Any help??

    • #96448
      WCFM Forum
      Member

      Hi,

      Possible, please me your custom field setting for this field. I have to know it’s name.

      Thank You

    • #96530
      r_guayaquil
      Participant

      Hi,

      The block name es Politicas de Productos and the field name is costo_de_envio

      Thanks for the help!

    • #96701
      WCFM Forum
      Member

      Hi,

      Please add this code to your site for the purpose –

      add_filter( 'wcfm_custom_field_value', function( $field_value, $field_name ) {
      	if( $field_value && is_numeric( $field_value ) && ( $field_name == 'costo_de_envio' ) )	{
      	  $field_value = get_woocommerce_currency_symbol() . $field_value;
      	}
      	return $field_value;
      }, 50, 2 );

      Add this code to your child theme’s functions.php
      In case you do not have child theme then add code using this plugin – https://wordpress.org/plugins/code-snippets/

      Thank You

    • #96819
      r_guayaquil
      Participant

      Hi,

      Thanks a lot. It works perfectly 🙂

Viewing 19 reply threads
  • The topic ‘Adding custom fields’ is closed to new replies.