WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
Add Cross Sells to Single Product Page (4 posts)

  1. amycarolyn
    Member
    Posted 1 year ago #

    I'm trying to add the cross-sells to the single product page instead of the up-sells. I tried:

    remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_upsell_display', 15 );

    add_action( 'woocommerce_single_product_summary', 'woocommerce_cross_sell_display',40);

    ...but that doesn't work. Does anyone know? I can't find anything on working with the cross sells hook.

    http://wordpress.org/extend/plugins/woocommerce/

  2. Dave Coursen
    Member
    Posted 1 year ago #

    Hi Amy - I'm having the same problem with removing the same action hook. I've tried on multiple woocommerce installs with no luck. Did you ever find a solution?

    Thanks!

  3. jameskoster
    Member
    Plugin Author

    Posted 1 year ago #

    Hey,

    This isn't what cross-sells are designed to do. They reference the products in the cart, on the cart page. So simply including the function on the single product page won't work I think.

    Sorry I can't give you any more information but you're going to need to do some customisation to make this work.

    Thanks

  4. corelevel
    Member
    Posted 8 months ago #

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.