How i edit single product page? - by mehmetin

This topic has 8 replies, 4 voices, and was last updated 7 years, 9 months ago ago by Olga Barlow

  • Avatar: mehmetin
    mehmetin
    Participant
    January 24, 2017 at 10:34

    hello, i want to add a button in single product page so which file am i edit?

    7 Answers
    Avatar: Eva
    Eva Kemp
    Support staff
    January 25, 2017 at 15:47

    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.

    Avatar: mehmetin
    mehmetin
    Participant
    February 1, 2017 at 15:43

    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.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 2, 2017 at 13: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

    Avatar: mehmetin
    mehmetin
    Participant
    February 2, 2017 at 18:38

    hello,

    where is the function file for woocommerce product page codes etc.?

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    February 3, 2017 at 11:54

    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

    Avatar: mehmetin
    mehmetin
    Participant
    February 4, 2017 at 13:57

    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.

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    February 6, 2017 at 11:29

    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

  • Viewing 8 results - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.Log in/Sign up

8theme customization service

Helpful Topics

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.