Woocommerce templates - by paskyo - on WordPress WooCommerce support

This topic has 10 replies, 3 voices, and was last updated 6 years, 8 months ago ago by Olga Barlow

  • Avatar: paskyo
    paskyo
    Participant
    April 19, 2018 at 11:32

    Hello,

    I’m trying to modify the single product page for Woocommerce but all modifications in the source files in the XSTORE theme /woocommerce don’t work…

    Please help,

    Yohann

    9 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 19, 2018 at 12:07

    Hello,

    Please make changes in php files via child theme https://www.8theme.com/documentation/docs/child-theme/ https://codex.wordpress.org/Child_Themes
    What exactly do you want to change?

    Regards

    Avatar: paskyo
    paskyo
    Participant
    April 19, 2018 at 12:10

    I want to display some custom taxonomies on single product page

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 19, 2018 at 12:45

    Where exactly on the page do you want to display it? Please provide some screenshots.

    Regards

    Avatar: paskyo
    paskyo
    Participant
    April 19, 2018 at 13:16

    I want to display 4 lines (one for each custom fields), under the SKU line, before Social Sharing.
    See screenshot 1: https://metamkine2.propulsee.com/wp-content/uploads/2018/04/1.png

    But I’ve got a second problem with the description text.
    URL : https://metamkine2.propulsee.com/product/test/
    See screenshot 2 : https://metamkine2.propulsee.com/wp-content/uploads/2018/04/2.png

    thanks Yohann

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 19, 2018 at 13:34

    Here is an example of code that should be added in functions.php file of child theme:

    add_action('woocommerce_single_product_summary', 'et_custom_meta_content', 50);
    function et_custom_meta_content () {
    	global $post;
    	echo $post->ID; // show here your custom field content instead of this 
    }

    Regards

    Avatar: paskyo
    paskyo
    Participant
    April 19, 2018 at 13:51

    Great this works!

    And if a want to link this to the related archive custom type ?

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 19, 2018 at 14:10

    Please describe your question in more details with screenshots.
    Also, note the additional customization in the source code is out of our support scope https://themeforest.net/page/item_support_policy

    Regards

    Avatar: paskyo
    paskyo
    Participant
    April 19, 2018 at 15:37

    OK, I understand, BUT :

    But I’ve got a second problem with the description text.
    URL : https://metamkine2.propulsee.com/product/test/
    See screenshot 2 : https://metamkine2.propulsee.com/wp-content/uploads/2018/04/2.png

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    April 19, 2018 at 15:50

    Hello,

    This issue comes from WooCommerce WPML plugin and persists even with the default theme because plugin enabled styles for the admin panel http://prntscr.com/j7eqtd Contact WPML support to solve the issue.

    Regards

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

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

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