hello, i want to add a button in single product page so which file am i edit?
Sorry for a delay.
You need edit the file wp-content/themes/xstore/woocommerce/content-single-product.php.
Let us know if there are any questions.
in this file,
which file am i edit for im editing this code: <?php wc_get_template_part( ‘single-product-content’, $layout ); ?>
content-single-product.php line 40.
Please, read this article https://businessbloomer.com/woocommerce-visual-hook-guide-single-product-page/
and try to edit single-product-content.php
Make your changes in the child theme to prevent losing them after theme update.
where is the function file for woocommerce product page codes etc.?
I’m sorry, I don’t understand your question. All the files related to woocommerce that we use are located in xstore/woocommerce folder. If you want to edit single product content you should edit files related to single product. What file to edit depends on what exactly you want to change.
In case you need help with this, contact our partners about customization service here
i want to add just a button under to the product description.
so im asking am i which file edit, iam already front-end developer but i dont find front-end code in product page?
please tell me.
If you want just to add some content below the short product description you can use woocommerce hooks to make changes. Here you can find WC hooks for the single product https://businessbloomer.com/woocommerce-visual-hook-guide-single-product-page/
Also, watch video tutorial to understand how it works https://www.youtube.com/watch?v=JHN7viKRxbQ
Use child theme to make changes.
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.