Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Ultimate › Adding custom fields
- This topic has 19 replies, 2 voices, and was last updated 5 years, 4 months ago by
r_guayaquil.
- AuthorPosts
- October 16, 2019 at 7:26 am #87034
r_guayaquil
ParticipantHi,
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!
- October 16, 2019 at 10:25 pm #87257
r_guayaquil
ParticipantThis reply has been marked as private. - October 16, 2019 at 11:08 pm #87270
r_guayaquil
ParticipantThis reply has been marked as private. - October 17, 2019 at 5:11 pm #87379
WCFM Forum
MemberHi,
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
- October 17, 2019 at 6:48 pm #87408
r_guayaquil
ParticipantHi,
I have created them using WCFM custom field. They dont even show if i add them manually in each product in the dashboard.
- October 17, 2019 at 10:19 pm #87427
r_guayaquil
ParticipantHi,
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. - October 18, 2019 at 7:57 am #87492
r_guayaquil
ParticipantHi 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.
- October 20, 2019 at 10:59 am #87780
WCFM Forum
MemberI checked and re-checked and the meta columns are correct in the file.
Ok, so it’s now working perfectly for you, right?
- October 20, 2019 at 8:18 pm #87824
r_guayaquil
ParticipantThis reply has been marked as private. - October 23, 2019 at 10:31 am #88394
WCFM Forum
MemberHI,
OK, so main issue is – Custom fields are exporting properly but those are not importing, right?
We are checking this.
Thank You
- October 23, 2019 at 10:42 am #88397
WCFM Forum
MemberHI,
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
- October 24, 2019 at 10:57 pm #88904
r_guayaquil
ParticipantHi,
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. - November 1, 2019 at 6:55 am #90044
r_guayaquil
ParticipantHi,
Any help??
- November 5, 2019 at 6:33 pm #90834
WCFM Forum
MemberHim
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
- November 28, 2019 at 9:11 am #94338
r_guayaquil
ParticipantHi,
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!
- December 6, 2019 at 11:31 pm #96318
r_guayaquil
ParticipantAny help??
- December 7, 2019 at 2:32 pm #96448
WCFM Forum
MemberHi,
Possible, please me your custom field setting for this field. I have to know it’s name.
Thank You
- December 7, 2019 at 10:18 pm #96530
r_guayaquil
ParticipantHi,
The block name es Politicas de Productos and the field name is costo_de_envio
Thanks for the help!
- December 9, 2019 at 1:21 pm #96701
WCFM Forum
MemberHi,
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
- December 10, 2019 at 9:48 am #96819
r_guayaquil
ParticipantHi,
Thanks a lot. It works perfectly 🙂
- AuthorPosts
- The topic ‘Adding custom fields’ is closed to new replies.