I use the enfold in worpress and ecommerc.
In the webshop side You can see the name and price of the product.
How can I add the size of the product in sted of the price??
Or how to add the size under the price?
Hi,
Thanks for contacting us!
Please refer to this post – https://www.commercegurus.com/woocommerce-acf/ and follow the instructions until 4th one and then add following code to bottom of Functions.php file of your child theme in Appearance > Editor
add_action( 'woocommerce_after_shop_loop_item_title', 'av_add_size_after_price', 40 );
function av_add_size_after_price() { ?>
<?php if(get_field('product_size')) { ?>
<div class="av-product-size"><?php the_field('product_size'); ?></div>
<?php }
}
Note: You would need to change “product_size” with the field name you chose when creating your custom field :)
If you have any other questions or issues, please register to our support forum – https://kriesi.at/support/register/ using your purchase code and start new threads under Enfold sub forum :)
Best regards,
Yigit
