Up-sells add to cart button - by eventplusmedia

This topic has 4 replies, 3 voices, and was last updated 7 years, 5 months ago ago by Jack Richardson

  • Avatar: eventplusmedia
    eventplusmedia
    Participant
    November 9, 2016 at 10:42

    Hello.
    I have Royal Woocommerce theme.

    I have problem with upsells. I change position this module in content-single-product.php in Woocommerce folder. Now this module is under photos. Under content of Product there are related products (in theme option this position is called after content)

    Now, when i set up position of upsell there is problem with display this module. Buttons from “Add to cart” are so much close each other. That buttons are connected with buttons from related product in css and i can’t change it without changing buttons from RP. I am looking for some setting of buttons in theme files but i found only one array to set up upsells. I can’t find where is the function from this and change some class or put in php echo to do some shortcode (in docs there are shortcodes to make different size and styles of this button).

    I have change upsell to sidebar – and now there is list with products but there is no button “Add to cart” – where is the place to register function to display that button? In Woocommerce documentations there is instruction that i need modify file: wc-template-functions.php but there is no file like this in theme and other folders (even Admin folder).

    I know you made this theme with no button when upsell is in sidebar. But i really need found the lines in your files to modify that display or add that button to sidebar position.

    3 Answers
    Avatar: Eva
    Eva Kemp
    Support staff
    November 9, 2016 at 14:06

    Hello,

    You need edit the file wp-content/themes/royal/woocommerce/up-sells.php.
    Please note you need to make changes in the child theme https://codex.wordpress.org/Child_Themes so the modifications won’t be lost after theme update.

    Regards,
    Eva Kemp.

    Avatar: eventplusmedia
    eventplusmedia
    Participant
    November 9, 2016 at 14:34

    thanks for so quick reply.

    OK… but in themes folder i have Royal_theme-v2.8 and in woocommerce i have no up-sells.php. This file exist in folder /single-product and it seems like some example files. There is nothing more. In private content i have pasted code from up-sells.php.

    Really i know that code is somewhere there:) i hope you will help me.

    i have change title in this file and the new tittle is in page so i think that is file which allow to display upsells. but how put or change that button in this file there is nothing album button add to cart.

    Please, contact administrator
    for this information.
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    November 9, 2016 at 15:30

    Hello,

    Your query requires additional customization which is beyond our basic support scope. You can order customization service via this link https://www.8theme.com/customization-services/ .

    Best regards,
    Jack Richardson.

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

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

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.