Home Forums WoodMart support forum Upsell Products Reposition

Upsell Products Reposition

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #49171

    gpap
    Participant

    Hello Sirs,

    I tried to move the upsell products @ single product page just beneath the product images and summary, but couldn’t figure out how..
    What I want to achieve is shown in the screenshot.

    Could you please provide the applicable functions or css?

    Thank you in advance.

    Attachments:
    You must be logged in to view attached files.
    #49224

    Artem Temos
    Keymaster

    Hello,

    Thank you so much purchasing our theme and contacting our support center.

    Try to add the following PHP code snippet to the child theme functions.php file to do this

    function woodmart_upsell_display() {
        remove_action( 'woodmart_woocommerce_after_sidebar', 'woocommerce_upsell_display', 10 );
    }
    add_action( 'wp', 'woodmart_upsell_display', 10000 );

    and also edit the file woocommerce/content-single-product.php and this code http://prntscr.com/ix22c2

    <?php 
    woocommerce_upsell_display();
    ?>

    Regards

    #49404

    gpap
    Participant

    Hello,

    Thank you for your kind reply!

    Snippet did the job.

    #49412

    Artem Temos
    Keymaster

    Great, you are welcome!

Viewing 4 posts - 1 through 4 (of 4 total)