Support

Account

Home Forums Front-end Issues Checkbox for WooCommerce

Unread

Checkbox for WooCommerce

  • Hello 🙂

    I try to use “checkbox” :
    Title field : Climatisation avant
    Name field : climatisation_avant
    Type field : checkbox
    Choice : Climatisation avant

    In Code Snippets plugin, I added :

    add_action( 'woocommerce_single_product_summary', 'importexport17_custom_climatisation_avant_field', 11 );
    function importexport17_custom_climatisation_avant_field() { ?>
    <?php if(get_field('climatisation_avant')) { ?>
    	<div class="cg-climatisation_avant"><?php the_field('climatisation_avant'); ?></div>
    <?php }
    }

    In my page, front backend) I can see :
    Backend

    But in the page (front end) I see that :
    Frontend

    Many thanks by advance if you can help me.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.