Support

Account

Home Forums Search Search Results for 'woocommerce'

Search Results for 'woocommerce'

topic

  • Unread

    set taxonomy on product

    Hello, I will try to add ids to taxonomy on products woocommerce. What can I do?
    Thanks!!

  • Unread

    MyListing and WooCommerce Intergration

    Hi All!

    I am encountering an issue with the integration between Listing feature and WooCommerce. As a result of my research, I came across with this plugin!

    I aim to create a platform where my customers can list their products on my website. To achieve this, I’ve created a listing form that includes fields such as Title, Description, Category, Location, and Price.

    I don’t know if you have idea how MyListing theme whcih I use works, but it provides a feature that users can list their products ans sell.
    However, I would like to integrate the listings with WooCommerce features.

    My question is: Is there a way to integrate my listing as a WooCommerce product by creating fields that are compatible with WooCommerce using the MyListing infrastructure? Is this plugin provides such this feature?
    I would appreciate your asnwer and guidance on this matter.

  • Unread

    Additional text field to WooC product Category

    Hi there.
    I am using your great plugin with WooCommerce.
    But I can’t find a way to just create an additional text field on each product category and to show at the end of the category page.
    Not possible with ACF ?
    The others threats found here didn’t work for me.
    Thanks for any help.

  • Unread

    kadence pro + acf z zastosowaniem Query Loop i Query Card, Filter – Dropdown.

    Dzień dobry,

    Nie mogę filtrować po dodaniu pól acf. wcześniej po zastosowaniu wszystko działało: kadence pro + acf + WooCommerce z zastosowaniem Query Loop i Query Card, Filter – Dropdown. Z tych narzędzi korzystałem do pewnego momentu działało. Czy to problem z acf ?? korzystałem z WOOF tu również nie działały filtry tylko podstawowe WooCommerce. Proszę o pomoc

  • Unread

    Flexible Content with Woocommerce Related Products

    I have created a flexible content section on the woocommerce single product template.
    This used to show some benefits and some storytelling and mood pictures for the product.

    Underneath that section is the related products section.

    Now my client asks if it is possible to have the related products section as part of the flexible content.

    Since the related products are not set in ACF-Fields but in the native Woo Products Editor I don’t really know how to accomplish this.

    Has anyone any hint on how to do this?

    Thank you.

  • Unread

    update_field(‘location’, $new_location, $product_id);

    I’m struggling getting a field value updated using a plugin.

    Can anyone tell me what i’m doing wrong when calling to the update_field function?

    Thanks

    THis is the simple plugin code

    // Adding option to admin panel
    add_action(‘admin_menu’, ‘ple_add_admin_menu’);

    function ple_add_admin_menu() {
    add_menu_page(
    ‘Product Location Editor’,
    ‘Location Editor’,
    ‘manage_woocommerce’,
    ‘product-location-editor’,
    ‘ple_admin_page_content’,
    ‘dashicons-location-alt’,
    20
    );
    }

    // Function to create the admin page
    function ple_admin_page_content() {
    ?>
    <div class=”wrap”>
    <h1>Change Location of Product</h1>
    <form method=”post” action=””>
    <label for=”product_search”>Search product by SKU or description:</label><br>
    <input type=”text” name=”product_search” id=”product_search” placeholder=”input SKU o description” required>
    <input type=”submit” value=”Search Product” class=”button button-primary”>
    </form>

    <?php
    if (!empty($_POST[‘product_search’])) {
    ple_search_and_update_product(sanitize_text_field($_POST[‘product_search’]));
    }
    ?>
    </div>
    <?php
    }

    // Function to search the product
    function ple_search_and_update_product($search_term) {
    // Buscar productos por SKU o descripción
    $args = array(
    ‘post_type’ => ‘product’,
    ‘s’ => $search_term,
    ‘posts_per_page’ => 10,
    );

    $products = new WP_Query($args);

    if ($products->have_posts()) {
    echo ‘<h2>Resultados de la búsqueda:</h2>’;
    while ($products->have_posts()) {
    $products->the_post();
    $product_id = get_the_ID();
    $product_name = get_the_title();
    $location = get_field(‘location’, $product_id);

    echo ‘<form method=”post” action=””>’;
    echo ‘<p>‘ . esc_html($product_name) . ‘</p>’;
    echo ‘<input type=”hidden” name=”product_id” value=”‘ . esc_attr($product_id) . ‘”>’;
    echo ‘<label for=”new_location”>Location actual: ‘ . esc_html($location) . ‘</label><br>’;
    echo ‘<input type=”text” name=”new_location” placeholder=”Nuevo Location” required>’;
    echo ‘<input type=”submit” value=”Actualizar Location” class=”button button-primary”>’;
    echo ‘</form>’;
    echo ‘<hr>’;
    }
    wp_reset_postdata();
    } else {
    echo ‘<p>The search did not provide results.</p>’;
    }
    }

    // Function to update field value “location”
    add_action(‘admin_post_ple_update_location’, ‘ple_update_location’);

    function ple_update_location() {
    if (!empty($_POST[‘product_id’]) && !empty($_POST[‘new_location’])) {
    $product_id = intval($_POST[‘product_id’]);
    $new_location = sanitize_text_field($_POST[‘new_location’]);

    // Update sentence
    update_field(‘location’, $new_location, $product_id);
    //update_post_meta($product_id, ‘location’, $new_location);

    wp_redirect(admin_url(‘admin.php?page=product-location-editor&updated=true’));
    exit;
    }
    }

  • Unread

    Product Gallery

    I am trying to produce a product gallery similar to https://bloomnu.com/products/greens-superfoods using swiper js and repeater fields as the page will not have a shopping cart so WooCommerce is not needed for my case.

    I am trying to figure out if there is a way to call up only a specific repeater on select menu selection.

    (e.g. 30ml option shows 6 thumbnails for the 30ml product, 60ml option changes the thumbnails to the ones for the 60ml product).

  • Unread

    Fields groups missing from backend on WooCommerce products

    Hi,

    I’m maintaining a WooCommerce site for a client who had a different developer set things up originally. Currently running WordPress version 6.6.2, WooCommerce version 9.3.3, and ACF Pro version 6.3.10. The previous developer set up a field group to provide some additional filtering options for products in certain categories (custom taxonomies). This worked fine for quite some time, but at some point, this field group stopped showing up on the backend when creating or editing products.
    For the field group, the location rules were set to show these fields when “post type = product”, and “post taxonomy = specified category”. If I remove the “post type = product” criteria, the fields show up.

    I have no idea why the previous dev set both these criteria, and I *could* simply remove the “post type = product” rule from the location rules, but I’d rather find out what went wrong to cause this to stop working.Any tips on where to start would be greatly appreciated.

    thanks!

  • Unread

    Facing issue in code file

    add_action(‘woocommerce_single_product_summary’, ‘wtwh_acf_custom_product_field’, 3);

    function wtwh_acf_custom_product_field() { ?>

    <?php
    if(have_rows(‘a+_banner_content’)):
    while(have_rows(‘a+_banner_content’)): the_row();?>
    “>
    <?php endwhile; endif; ?>
    }

    I share code with you, I want to add this code in woocommerce single product page. I used wp-code plugin for insert code in site. but its not working.
    So, can you please suggest me where I can add this code please suggest me path or page name

    I try this code in woocommerce plugin single-product.php file its working properly so can I go a head with this file?

  • Unread

    Front-end form is always pre-filled with specific entries

    Hi there,

    We recently ran across the following issue:
    We have a front-end form as part of a woocommerce user registration form. What we noticed was that certain fields were always pre-filled (regardless of browser being used) with specific values.
    We dag into the issue and, after checking the database, found out that these fields had actually got saved as custom fields of the “My account page” (even though the are actually user fields).
    We deleted them and the problem got resolved.

    We were wondering:
    1. Why did this happen?
    2. How can we stop this from happening again?

    Kind Regards
    Kelly

  • Unread

    Send emails multiple recipents

    Hello,

    I am currently trying to configure a Contact Form 7 form to send emails to multiple recipients based on selected WooCommerce products. Each product has an ACF field (of type email) associated with it, and I would like the email to be sent to these addresses based on the selected products in the front end.

    I have implemented the following code in the functions.php file, but it doesn’t seem to work as expected. The email is sent to the recipient specified in the form configuration, but not to the email addresses associated with the selected products.

    Here’s the code I am using:

    // Retrieve email addresses linked to selected products
    add_action('wpcf7_before_send_mail', 'send_to_multiple_recipients');
    function send_to_multiple_recipients($contact_form) {
        if ($contact_form->id() == '1e5363b') {  // Replace with your form ID
            $submission = WPCF7_Submission::get_instance();
            
            if ($submission) {
                $posted_data = $submission->get_posted_data();
                $selected_products = isset($posted_data['product-selection']) ? $posted_data['product-selection'] : array();
    
                $recipients = array();
                foreach ($selected_products as $product_name) {
                    $product = get_page_by_title($product_name, OBJECT, 'product');
                    if ($product) {
                        $product_email = get_field('partnersz1_email', $product->ID);
                        if ($product_email) {
                            $recipients[] = $product_email;
                        }
                    }
                }
    
                if (!empty($recipients)) {
                    $mail = $contact_form->prop('mail');
                    $mail['recipient'] = implode(',', $recipients);
                    $contact_form->set_properties(array('mail' => $mail));
                }
            }
        }
    }
    
    // Automate product options generation
    add_shortcode('product_selection', 'generate_product_selection');
    function generate_product_selection() {
        $products = wc_get_products(array('limit' => -1));
        $output = '<select name="product-selection" multiple>';
        
        foreach ($products as $product) {
            $output .= '<option value="' . $product->get_name() . '">' . $product->get_name() . '</option>';
        }
        
        $output .= '</select>';
        return $output;
    }

    I would appreciate any guidance or suggestions to resolve this issue so that the email can be sent to the selected product addresses as intended.

    Thank you for your assistance!

    Best regards,

  • Unread

    ACF variables

    Hello everyone!

    I need your help. I’m creating a website for a company that deals with chemical products.

    The website must have a product catalog with these simple fields:

    – Product image
    – Description
    – Product code
    – Format (50ml, 100ml, 150ml, 1000ml etc..)

    Initially I created using ACF + Elementor and a page created taking the dynamic fields of ACF, with a page inside the backend called “Products” and with the related fields.

    The problem is in the format field.. I’m stuck because ACF does not allow me to insert “variants”, my current solution is to manually insert a text field and write them, but it does not seem professional to me.

    I could use Woocommerce but I necessarily have to insert a price to the variants, do you have any advice for me?

    I would like to continue using ACF but if it is not possible what do you recommend?

    Thanks

  • Unread

    Field group location rules not working??

    The website I am working on requires new customers to enter a license number on the check out page. Once they pay for a course, they will be logged in and their license number needs to reflect on their Account page. Furthermore, I need to have a field set up in the wp-admin back end that will allow admins to edit this license number on behalf of users if need be. Lastly, when users complete their courses, the license # must appear on their certificate of completion. I created a field in ACF for this function but despite these rules being in place (see below) I cannot get the license number entered on the check out page reflecting on the account page, the certificate, or the admin side (when a user enters a license # at check out, admin should be able to see what they entered via the “users” area of WordPress). The field on the check out page for the license number was set up through the WooCommerce check out fields area. Am I missing something here with these rules? I’ve tried the rules shown below, plus many other variations yet I’m not getting the desired results. Any feedback is much appreciated, thank you.

    Field type is “Text area”.
    Settings > Location Rules, set up is as follows:

    Rules
    Show this field group if
    Current user role is equal to administrator AND
    Current user is equal to Viewing back end
    OR
    Current user is equal to Logged in
    OR
    Page is equal to My Courses AND
    Current user role is equal to Customer
    OR
    Page is equal to Checkout

  • Helping

    Woocommerce order exports variable products

    Hello everyone.

    I urgently need help and am looking for an ingenious idea for the following problem: How can I retrieve ACF information for variable products when exporting orders from Woocommerce?

    Details:

    > Orders should be exported from Woocommerce with the plugin “WP ALL EXPORT PRO” and ACF to my fulfillment partner as XML
    > ONLY relevant orders or products with necessary information should be filtered, which works well for “simple products” with the following code
    > Variable products (T-shirts) are also correctly recognized and exported by the code – BUT all ACF information remains empty and is not retrieved

    What have I created?

    > Created variable product “T-SHIRT” in the Woocommerce Dashboard
    > Woocommerce attribute “SIZE” with the variants S / M / L / XL
    > ACF field group “DDF” with desired text fields created to export the necessary ACF information later for orders (in addition to simple products also for product variants e.g. T-SHIRT, SIZE “L”)
    > Field group rule: content type -> is equal to -> product
    > Do I also have to apply the rule here? Taxonomy -> is equal to -> “SIZE”

    Do I have to add or create other settings in ACF?
    or is this only possible with ACF Pro?

    ->

    /////CURRENT STATUS CODE IN WP ALL EXPORT

    //////XML EDITOR

    <?xml version="1.0" encoding="UTF-8"?>
    <orders>
    	<!-- BEGIN LOOP -->
    	<order>
    		<commission>{Bestell ID}</commission>
    		<production>2</production>
    
    		<receiver>
    			<line1>{Shipping First Name} {Shipping Last Name}</line1>
    			<line2>{Shipping Company}</line2>
    			<street>{Shipping Address 1}</street>
    			<streetnumber>{Shipping Address 2}</streetnumber>
    			<country_code>{Shipping Country}</country_code>
    			<zip>{Shipping Postcode}</zip>
    			<city>{Shipping City}</city>
    			<email>{Customer Account Email Address}</email>
    
    		</receiver>	
    
    		<items>	
    			[my_get_order_items({Bestell ID})]
    		</items>
    	</order>
    	<!-- END LOOP -->
    </orders>

    /////FUNCTION EDITOR

    <?php
    
    function my_get_order_items($Bestell_id) {
        // Check if the Bestell ID is valid
        if (!$Bestell_id) {
            return false;
        }
    	
        // Fetch the order
        $order = wc_get_order($Bestell_id);
        if (!$order) {
            return false;
        }
    
        // Initialize the string to store order details
        $order_details = "";
    
        // Loop through each order item
        foreach ($order->get_items() as $item_id => $item) {
            // Get the product object
            $product = $item->get_product();
    
            // Skip if there's no product associated with the item
            if (!$product) 
    		{ continue; }
    		
    		
    		if (!(
    strpos($item->get_name(), 'KERAMIKTASSE') !== false ||
    strpos($item->get_name(), 'BAUMWOLLTASCHE') !== false ||
    strpos($item->get_name(), 'T-SHIRT') !== false))
    { continue; }
    		
    		$order_details .= "**LT**item**GT**";
    		$order_details .= "**LT**ID**GT**" . $product->get_sku() . "**LT**/ID**GT**";
    		$order_details .= "**LT**produktname**GT**" . $item->get_name() . "**LT**/produktname**GT**";
    		$order_details .= "**LT**amount**GT**" . $item->get_quantity() . "**LT**/amount**GT**";
    		$order_details .= "**LT**upload**GT**" . maybe_serialize( get_field( 'upload', $product->get_id() ) ) . "**LT**/upload**GT**";
    		$order_details .= "**LT**size**GT**" . maybe_serialize( get_field( 'size', $product->get_id() ) ) . "**LT**/size**GT**";
    		$order_details .= "**LT**groesse**GT**" . maybe_serialize( get_field( 'produktgröße', $product->get_id() ) )  . "**LT**/groesse**GT**";
    		$order_details .= "**LT**material**GT**" . maybe_serialize( get_field( 'material', $product->get_id() ) ) . "**LT**/material**GT**";
    		$order_details .= "**LT**print**GT**" . maybe_serialize( get_field( 'print', $product->get_id() ) ) . "**LT**/print**GT**";
    		$order_details .= "**LT**variante**GT**" . maybe_serialize( get_field( 'variante', $product->get_id() ) ) . "**LT**/variante**GT**";
    		$order_details .= "**LT**category**GT**" . maybe_serialize( get_field( 'category', $product->get_id() ) ) . "**LT**/category**GT**";
    		
    		 //add options to the output
            $order_details .= "**LT**Options**GT**";
                $order_details .= "**LT**Option**GT****LT**ID**GT**" . "1996" . "**LT**/ID**GT****LT**Value**GT**" . maybe_serialize( get_field( 'value_115', $product->get_id() ) ) . "**LT**/Value**GT****LT**/Option**GT**";
    		
    		    $order_details .= "**LT**Option**GT****LT**ID**GT**" . "2489" . "**LT**/ID**GT****LT**Value**GT**" . maybe_serialize( get_field( 'value_117', $product->get_id() ) ) . "**LT**/Value**GT****LT**/Option**GT**";
    		
    		   	$order_details .= "**LT**Option**GT****LT**ID**GT**" . "2056" . "**LT**/ID**GT****LT**Value**GT**" . maybe_serialize( get_field( 'value_118', $product->get_id() ) ) . "**LT**/Value**GT****LT**/Option**GT**";
    		
            $order_details .= "**LT**/Options**GT**";
            
    		$order_details .= "**LT**/item**GT**";
    		
        }
    
        return $order_details;
    }
    
    ?>

    ->

    Does anyone have an idea?

    Many thanks.

  • Solving

    issue in ACF with woocommerce order

    Hi i’m using ACF with wordpress and i have issue in woocommerce order page (in backend), the fields not showing in woocommerce edit order page but it appears normally in edit posts or edit page as shown in the pictures.

  • Unread

    ACF Blocks not displaying on WC Shop page

    Hello,

    Given that my issue involves Woocommerce, I don’t know if this is the right place, but I’m having some trouble getting ACF blocks to appear on my Woocommerce Shop page (the product archive).

    I’m using ‘get_the_content’ and echoing it out, as the post id is not the shop id, and so I cannot simply do ‘the_content’ to echo out the blocks as I normally would.

    Using this method, WordPress’s core blocks appear fine, but the ACF blocks only appear as commented out JSON (I can see this in dev tools), and do not display on the front end. This issue only exists in the front-end – all blocks appear as normal in the backend. I am assuming this is some fundamental difference in how Core blocks and ACF blocks work, but I want to make sure I’m not missing something obvious. Does anyone have any ideas? Thanks very much in advance.

  • Helping

    Can’t read data from ACF during import with WP All Import

    Can’t read data from ACF during import with WP All Import

    Hey everyone,

    First of all, I already asked the WP All Import Pro Support to help me but they had no idea and they “do not give any support to custom code”. So I really hope I can get some help here.

    I am importing a .csv file with products to my WooCommerce shop and I have a custom function that saves a json string to an acf field. (I have to save pairs of sizes for a products with a unique url for each size.)

    This is pretty straight forward and saving a string to the field works just fine but I do not get any value when I try to read from the same ACF Field so at the end of the import I only have the latest size/url pair in the json string saved.

    I tried to use get_field as well as get_post_meta, but it’s the same problem with both functions – no data.

    I am almost sure that it did work a couple of weeks ago when I first wrote the script but some update broke it and I have no idea how to fix it rn.

    Here is the code:

    <?php
    function update_product_sizes($post_id, $data ) {
    
        // The current data row from the imported .csv
        $row = json_decode(json_encode((array) $data), true);
        $size = $row["size"];
        $affiliate_url = $row["link"];
        $product_name = $row["title"];
    
        // Der ACF Field Key mit den Daten Groesse und URL
        $field_key = "field_6628d713e57dd"; // Replace with the actual field key for your ACF field
    
        // Step 1: Retrieve the ACF field value (JSON data)
        $json_data = get_field($field_key, $post_id);
        //$json_data = get_post_meta($post_id,$field_key,true);
    
        ob_start();
        print_r($json_data);
        $output = ob_get_clean();
    
        add_log_msg("Retreived ACF Data: " . $output . ", PostID: " . $post_id . "<br />");
    
        // Step 2: Decode the JSON data into a PHP array
        $data_array = $json_data ? json_decode($json_data, true) : array();
    
        // Step 3: Define the new size and URL to be added
        $new_entry = array(
            'size' => $size,  // size
            'url' => $affiliate_url  // Affiliate URL
        );
    
        // Step 4: Add the new entry to the array
        $data_array[] = $new_entry;
    
        // Step 5: Encode the PHP array back to JSON
        $new_json_data = json_encode($data_array);
    
        // Step 6: Update the field with the new JSON data
        $update = update_field($field_key, $new_json_data, $post_id);
    
        if($update) {
            $log_msg = "New Size and URL added for product: " . $product_name . ", Size: ". $size .", URL: ". $affiliate_url . ", data: ". $new_json_data . ", post ID: ". $post_id . ", Field Key: ". $field_key . "<br/>";
            add_log_msg($log_msg);        
        } else {
            $log_msg = "Update failed.";
            add_log_msg($log_msg);    
        }
    
    }
    
    // Hook into WP All Import
    add_action('pmxi_saved_post', 'update_product_sizes', 10, 2);
    
    function add_log_msg($m) {
        printf("[%s] %s", date("H:i:s"), $m);
        flush();
    }
    
    ?>

    Any help or hints on what to try is very much appreciated. Thanks!

  • Solving

    elementor woocommerce products query by custom acf-field

    Hi,
    in WooCommerce I am using the products widget of elementor which allows you to query the products you want to show.

    In the widget/ query I would like to select only products, which have a certain acf-field value, but I cant figure out where to select the acf-field in the query.

    Can anyone help?
    Thank you and kind regards from Germany,
    Carola

  • Unread

    Map Google Listings and Ads Custom Fields – ISBN to GTIN

    Hi there, I am trying to send Google Merchant an ACF field – ‘isbn’ – and map it as the ‘GTIN’ attribute through the ‘Google Listings and Ads’ plugin.

    The reason I want this functionality is because my client updates their ISBN on their products with an ACF field in order for it to also get displayed on the front-end. I need to keep it simple for them so they aren’t updating the same value in multiple places.

    So therefore need a way for Google Listings and Ads to understand the ACF field and map it to GTIN.

    I found this article here which suggests it is possible.

    That article tells me to use the following code:


    add_filter(
    'woocommerce_gla_attribute_mapping_sources_custom_attributes',
    function( $values ) {
    return array_merge( $values, ['isbn']);
    }
    );

    But I assume that is just fetching a made up field – ‘isbn’ rather than my specific ACF Field – ‘isbn’ which has a value on each product.

    I need it to specifically be the ACF field – ‘isbn’ – so that it transmits this data to Google Merchant.

    Basically something like this:


    add_filter(
    'woocommerce_gla_attribute_mapping_sources_custom_attributes',
    function( $values ) {
    $variable = get_field('isbn');
    return array_merge( $values, [$variable]);
    }
    );

    Perhaps I need to push the value to this array somehow? I’m not much into php beyond the basics sorry.

    Anyone have any thoughts or experience with this?

    It would be much appreciated, thanks.

  • Unread

    Calculate Total Cubes on Order

    My Woocommerce store sells furniture truckloads to other business.

    I’m trying to figure out a way to use custom fields to add up the total cubes (volume) of all products as they’re added to an order.

    Ideally, I’d like the field label and value to display on the product page; subtotal by line item and total in the cart/checkout page.

    Thanks in advance.

  • Unread

    Flexible content on taxonomy page

    Hi,

    I am currently working on a woocommerce website and I have an issue on this :

    	
    	<?php
    
    		// Check value exists.
    		if( have_rows('contenu_flexible', $current_category->taxonomy.'_'.$current_category->term_id) ):
    			echo "ok";
    
    			// Loop through rows.
    			while ( have_rows('contenu_flexible', $current_category->taxonomy.'_'.$current_category->term_id) ) : the_row();
     ?>
    

    but I can’t even display the “ok”. And if I do a var dump avec the acf field it shows an array : array(11) {
    [0]=>
    string(28) “texte_pleine_largeur_de_page”

    So I do have data in this field I don’t know how i can manage to display everything I want

    Thank you !

  • Helping

    Is this possible with ACF Pro?

    I’ve been asked to develop an e-commerce (WooCommerce) site for a new client.

    The client is a fishmonger who plans to sell by specific weights of 250g, 500g, 1kg, 2.5kg, and 5kg. The price per weight will change as follows – 250g +10%, 500g +5%, 2.5kg -5%, and 5kg -10%. The price per weight discount/addition will need some flexibility, too. The client will need the option to amend these rates.

    A wide range of fresh fish will be sold, including (but not limited to) cod, herring, mackerel, trout, salmon, squid, and octopus.

    The wholesale cost of each fish type fluctuates daily, so the client will need to easily and quickly edit the ‘cost per kg’ unit for each fish type, which will, in turn, affect the product (variable) price in WooCommerce.

    ~ Options Page Idea ~ (prices editable by client)
    Cod (price per Kg) = $10
    Herring (price per Kg) = $7
    Mackerel (price per Kg) = $6
    Trout (price per Kg) = $11
    Salmon (price per Kg) = $18
    Squid (price per Kg) = $12
    Octopus (price per Kg) = $20

    ~ Product Variation Idea ~ (percentages editable by client on options page)
    Fish Family = COD
    250g = $2.50 + 10%
    500g = $5 + 5%
    1kg = $10
    2.5kg = $25 – 5%
    5kg = $50 – 10%

  • Helping

    Woocommerce order ACF custom field

    Hello,
    i would like to find a solid solution on how to add a file custom field (or any other type of custom field actually) inside a woocommerce order so that it is also editable by the backend but also visible when the user views his order on the frontend.
    I have already created a custom field and set location rules to type=order but the field is not displayed at all.

    Can you please help?

  • Unread

    ACF WooCommerce Order fields –> Mailchimp

    Hi,

    I fill an ACF field within my WooCommerce Orders with a tracking number.
    I want to use Mailchimp transactional E-Mails to send a “Shipped Notification”.

    How can I get the Value of the ACF field into Mailchimp?

    Thank you!!

  • Unread

    How to show product tags on a Woo product?

    Hi, I’m a total noobie so please bear with me. I’m still trying to wrap my head around how this works. My general problem is how the code implementation works. I can’t find any documentation on how that part actually works. It seems as if it’s expected that we already know how that part…

    Anyways. To my case:
    I want to sell magazines with WooCommerce and the Avada theme. Each magazine will be posted as a product and show the info “Articles: Tag 1, Tag 2” etc. I want to use ACF to pull the product tag names. I’ve tried setting this up with Field Group and Taxonomy in ACF, and “ACF text”-block in the template pulling the name from the field name. But when I do this the page becomes blank. Do I need to put some PHP codes in the functions file? (or anywhere else?)

Viewing 25 results - 1 through 25 (of 889 total)