Add option in Product Content Elements - by xstoruser

This topic has 11 replies, 3 voices, and was last updated 4 years, 5 months ago ago by xstoruser

  • Avatar: xstoruser
    xstoruser
    Participant
    June 25, 2021 at 14:09

    Dear all,

    I would like to add a custom text in the list of Product Content Elements that want to show at grid/list.

    i want to add custom text to show to the customer that there are more items of a variable product inside.

    Kindly find the images below.

    https://ibb.co/KrC77YN
    https://ibb.co/bRm8Tkm

    Please, contact administrator
    for this information.
    10 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    June 26, 2021 at 07:56

    Hello,

    There is no such option, right now. You can submit a request here – https://www.8theme.com/taskboard/

    Regards

    Avatar: xstoruser
    xstoruser
    Participant
    June 27, 2021 at 15:45

    Dear,

    Thank you for your reply, but isn’t possible to use woocommere hooks?

    in my case below the info selected (product category – product name) which hook should be used.

    Please advise.
    thanks.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    June 28, 2021 at 07:43

    Hello,

    We’ve added code in functions.php https://prnt.sc/178gd6c and style.css of your child theme. Clear cache and check your Shop page now.

    Regards

    Avatar: xstoruser
    xstoruser
    Participant
    June 29, 2021 at 09:19

    Dear,

    Thank you for your reply, please it needs to appear after the product name and links to the single product page. Thank you!

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    June 29, 2021 at 11:55

    Dear,

    Our support service does not include customization services. Connect your files via FTP and change the content of the functions.php of your child theme depends on your needs. We already gave you an example.

    Regards

    Avatar: xstoruser
    xstoruser
    Participant
    June 29, 2021 at 13:15

    Dear,

    Thank you for your reply, Please advise regarding how to add the current product link to the custom text.

    Thanks.

    Avatar: Olga Barlow
    Olga Barlow
    Participant
    June 29, 2021 at 23:43

    Hello,

    Add the following custom code to add link to product after the product title for example

    add_action( 'woocommerce_after_shop_loop_item_title', 'custom_product_link', 5);
    function custom_product_link(){
        $url = get_permalink( $item['product_id'] ) ;
        echo '<a href="'. $url .'">View product</a>'; 
    }

    Regards

    Avatar: xstoruser
    xstoruser
    Participant
    June 30, 2021 at 08:36

    Dear,

    Thank you for your help and support! Really appreciated.

    Have a good day 🙂

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    June 30, 2021 at 08:45

    Hello,

    You’re welcome!
    Could you please rate XStore here and write something special for us?
    https://themeforest.net/item/xstore-responsive-woocommerce-theme/reviews/15780546

    Regards

    Avatar: xstoruser
    xstoruser
    Participant
    June 30, 2021 at 23:41

    Sure will. Thanks again!

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

The issue related to '‘add option in Product Content Elements’' has been successfully resolved, and the topic is now closed for further responses

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