I added ACF custom fields to WooCommerce products and assigned them according to their taxonomy terms (product_cat).
Everything was working fine, but when I changed the slug of some terms the location rules disappeared. And when I wanted to reassign them these terms were no longer in the location rules dropdown.
These terms are still present because they are selectable in another ACF rule (see image).
Each time I modify the slug of a term, it disappears from the Taxonomy list of the ACF rules.
I guess I’m not the only one to have encountered this problem, but I haven’t found anything in my research. Is it an ACF bug or a problem on my side?
Thanks,
Laurent Leruste
I added a custom field to the product category page. It’s a Wyswig field. I can’t seem to figure out how to display the field on the page.
I’ve edited the product-archive.php file and placed the following code before the woocommerce_product_loop_end(); hook
$value = get_field( 'bottom_description', 8 );
echo $value;
I’ve also tried adding a hook in the functions.php file.
add_action( 'woocommerce_after_shop_loop', 'prodcatdesc' );
function prodcatdesc() {
echo the_field('bottom_description');
}
How can I get this to work?
I want to create a Form that will be used to Post all Types of Contents– Posts, Image Gallery,Portfolio Post Types, WooCommerce and so on.
There’s this plugin called ACF Frontend Form for Elementor(https://www.frontendform.com/) and it needs Elementor Page Builder and Advanced Custom Fields installed for it to work.
REQUIREMENTS
I need the Form to be a dynamic Form in such a way that it will be one Form that will be responsible for making all uploads and postings.
1.) How it works is this–It will be called Submission Form. When a user wants to submit an Image to the Image Gallery, the user will select “Content Type” from a drop down called “Post Type”.
If the user selects “Image”, the form will only be populated with Metadata that relate only to Images. These are Category, Tags, Description and so on. Then the user clicks submit, and the Form is submitted.
But if the user selects “Posts”–the form will be populated with fields related only to Posts. These are Post Title, Featured Image, Category, Tags, and a Text Area called “Post Content” –where the user can type in the Post, and then click Submit.
And if the user selects “WooCommerce”–the form will be populated with fields like Product Image, Price,SKU” and so on.
Then if the user selects “Portfolio”, the form will be populated with Metadata related only to Portfolio. The user fills in the details and then clicks submit.
2.) The beautiful thing about it is that, the form will be just One Single Form.
But it will have multiple power to be used to Post Images, Blog Posts, WooCommerce Products and Portfolio items from the frontend.
The next amazing thing is that, the form accurately sends each post type to its required and designated place. It will send images to the Image Gallery, it will send Blog Posts to Blog Posts, WooCommerce products to WooCommerce products, and Portfolio items to Portfolio.
How can this be achieved?
Hi, how are you?
Hope doing amazing.
I have created 3 custom fields in global categories with ACF, and it works fine.
But, is possible to display this custom category field values on woo-commerce checkout with ACF PRO?
Please check the enclosed pic TAG-1.jpg, I need to display at checkout:
For example:
-ID Proyecto: 7011r000001unv0AAA
-Códgio Empresa: 0014
-Código Particular: 0015
thanks!
Hi,
I have a weird situation on Woocommere product editing.
I set up some fields (NO image fields) with ACF to aim on Woo, and it does work fine (Meaning all custom fields are displaying fine).
Then, I tried to enter a new product for the first time (as a test). I tried to upload a media file for the product image. Well, it should or must show the uploading page with iframe, but it doesn’t…
Uploading a image works fine and can edit all other data. Only problem is that uploading image page (or panel) does not display with iframe.
With uploading Image gallery works fine = it DOES shows with iframe. It is so weird.
To solve this, I have changed a theme, deactivate all plugins except for woo.
WORKS: woocommerce only
WORKS: woo and ACF but deactivate the field group.
NOT WORK: woo and ACF + activate the field group.
I must apologize if I am not explaining well, but I hope you understand what I tried to solve.
Any advice or idea are appreciated.
Hi ACF team
Your plugin is doing a great job on our website. But there is one thing that I cannot get working.
– I have some woocommerce products
– I allready translated the products from Dutch to English
– After that I added a couple of ACF fields to the product page. To be exactly: radio buttons. I added them at both languages and I translated them too.
What do I want to achieve:
The radio buttons are there so I can let the admin user select, when a product is out of stock, when the product is in stock again. So the admin user can select a month a month part and a year.
I want to achieve that the admin user has to fill in the radio buttons at one language. So the other language will sync the radio button status.
But that’s the problem.
At the bottom of the admin product page I can change some WPML settings. For example the ACF field month I can select:
– Don’t translate
– Copy
– Copy once
– Translate
When I choose translate, the translation is fine but the radio button status isn’t synced between both languages
When I choose copy, the radio buttons are synced between both languages, but there is no translation
Can you tell me how I can sync en translate at the same time? Is it even possible?
I hope I hear you soon.
Best regards,
Mark
hi, I am wondering if it is possible to use ACF to update user’s username, display name, or nickname? My particular situation is to add ACF to the bottom of a Woocommerce checkout page.
Thanks!
Hi all.
I’m building a website that is for booking events, the e-commerce platform is woocommerce. I’ve acted an action to add a new page to the user account called family, where I want the user to be able to manage their family members and contact info.
So far I’ve added the page, created a repeater for user where they can add a family member and fill in that members information, it saves and all works great.
Now I’d like to add an ACF group before the repeater that has main information such as emergency contact details and next of kin, but I can’t figure out how to display two fields (the group and the repeater) within the one action and only have one save button to save the details to the users account.
This is what I have so far that works for the repeater, but if anyone could steer me in the right direction as to how to add the group field, it’d be hugely appreciated.
<?php
acf_form_head();
get_header();
?>
Family
<div class="family-members-form"><?php
if ( !is_user_logged_in() ){
echo 'You are not logged in. <br /> <a href="' . get_permalink(31) .'">Log In →</a>';
} else {
$user = wp_get_current_user();
$options = array(
// 'field_groups' => ['group_5cbd99ef0f584'],
'fields' => ['field_5f24194f719ca'],
'form_attributes' => array(
'method' => 'POST',
'action' => admin_url("admin-post.php"),
),
'html_before_fields' => sprintf(
'<input type="hidden" name="action" value="adaptiveweb_save_profile_form">
<input type="hidden" name="user_id" value="user_%s">',
$user->ID
),
'post_id' => "user_{$user->ID}",
'form' => true,
'html_submit_button' => '<button type="submit" class="acf-button button button-primary button-large" value="Update Profile">Update Profile</button>',
);
acf_form($options);
}
?>
</div>