This topic has 8 replies, 4 voices, and was last updated 7 years, 9 months ago ago by Olga Barlow
hello, i want to add a button in single product page so which file am i edit?
Hello,
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.
Regards,
Eva Kemp.
hi again,
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.
Hello,
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.
Regards
hello,
where is the function file for woocommerce product page codes etc.?
Hello,
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
Regards
hello olga,
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.
Hello,
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.
Regards
You must be logged in to reply to this topic.Log in/Sign up