I have a created a few custom fields using ACF (Advanced custom plugin) for single product page. Now how do I show them in frontend? I am using Xstore Business child theme. I researched they all are saying i write a short code somewhere, i don’t know where?Site URL: hidden Theme version: 9.1.3 WooCommerce version: 6.2
Thank you for contacting us and for using XStore.
Please check this topic https://www.8theme.com/topic/which-file-to-edit-to-put-acf-in-category-page/
Describe your situation and the desired result in more detail.
Provide URL of your Shop page or product and temporary wp-admin access.
Hey there, so, I want to add my existing developers on my website for my clients to see directly. The best way to do that is to use Woocommerce products as Developers, and categories as Tech categories, and tags as other skillsets. I want to add a few functionalities in WooCommerce product edit page and show them to frontend. Now I don’t know which file to edit, everyone on internet keep saying that edit single product php file, but i can’t find it.
Also, see the private content area.
Thank you for your response.
This is a matter of additional customization – which you can do on the resource – https://wpkraken.io/ .
If you want to do it yourself, the modification greatly depends on whether you use the single product builder. If you are using it, then you need to learn WooCommerce’s hook system, some of which you can check out by following the link – https://www.businessbloomer.com/woocommerce-visual-hook-guide-single-product-page/
If you are not using the builder, in addition to hook, depending on the customization, you will also need to rewrite some of the following files in the child theme
In order to take the value of the option added to the product using the ACF (Advanced custom fields) plugin
you can use the following code
get_field(‘your option kay’, $id);
where $id is the ID of the product on which the code is executed
it is also desirable to use construction
$value = (function_exists(‘get_field’) ) ? get_field(‘your option kay’, $id) : ‘default value’;
to prevent errors when disabling or updating the ACF (Advanced custom fields) plugin.
We hope this information is helpful.
Please note that additional customization in files is outside the scope of our basic support. Also, we can’t be responsible for your custom coding.
You must be logged in to reply to this topic.Log in/Sign up
One standard license is valid only for 1 project. Running multiple projects on a single license is a copyright violation.