• Hello,

    I’m trying to solve a problem for a theme that I didn’t create and that I have limited knowledge of. Basically I’ve been asked to display a small thumbnail of a related product next to the main product (on the single product page). I’ts proving impossible to do such a simple thing…The closest I’ve seen is to add a sidebar with related products as a widget but this theme doesn’t seem to have the option to add a sidebar to the single product page. Can anyone point me to the right direction?

    Thank you all in advance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support RK a11n

    (@riaanknoetze)

    You’d need to look at the template being use on the single product page (it might be overridden in the theme). You can use the hook for the related products to add a single instance next to the featured image, but that would likely also require some custom CSS to make sure the positioning doesn’t get messed up.

    There’s no cut & dry answer on this as it’s very theme dependent; You might want to get in touch with a developer to look into that for you.

    Thread Starter sergi87

    (@sergi87)

    Thank you for your reply Riaan. Ive found the action to add content after the cart and I’ve managed to have the related products show:

    add_action( ‘woocommerce_after_add_to_cart_button’, ‘woocommerce_output_related_products’, 20 );

    How can I make it to show only the grouped or up-sells instead?

    • This reply was modified 7 years, 11 months ago by sergi87.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Single page product customization, adding sidebar.’ is closed to new replies.