Take your website
To the next level
Discover our newly launched customization services and elevate your web projects to new heights.
Delegate tasks, save time, and unlock the power of professional WordPress outsourcing.

Okay
  Public Ticket #2611668
Add to cart button for cross-sells (feature request)
Closed

Comments

  • Mark started the conversation

    In the shopping cart you can show some cross-sells, but an add to cart button is missing. The easier it is to add a cross sell to the shopping cart, the better the conversion. So it would be nice if an add to cart buttons shows up below the price. 

  •  7,092
    Oliver replied

    Hi,

    Add this code to the functions.php of the child theme and check:

    function thegem_child_init() {
        remove_action('thegem_woocommerce_after_single_product', 'woocommerce_output_related_products', 5);
        add_action('thegem_woocommerce_after_single_product', 'woocommerce_upsell_display', 5);
    }
    add_action('init', 'thegem_child_init');
    

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver

  •   Mark replied privately
  •  7,092
    Oliver replied

    Hi,

    pls. give me wp-admin and FTP access

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver

  •   Mark replied privately
  •  7,092
    Oliver replied

    Hi,

    Sorry for delay, can't connect with the data you provided:

    Error: Connection timed out after 20 seconds of inactivity
    Error: Could not connect to server
    Status: Waiting to retry...

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver

  •   Mark replied privately
  •  7,092
    Oliver replied

    pls. give me link to the product with the cross sells added. 

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver

  •  7,092
    Oliver replied

    Hi,

    Sorry for delay, add this CSS code:

    .woocommerce .cross-sells .product .product-bottom {
        display: inline-block;
    }
    

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver

  • Mark replied

    I added this css to the theme custom css, but the button still doesn't appear in the cross sell box

  •  7,092
    Oliver replied

    Hi,

    pls. check now

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver

  • Mark replied

    Thanks a lot

  •  7,092
    Oliver replied

    Welcome!

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver

  •   Mark replied privately
  •  7,092
    Oliver replied

    Hi,

    Add this CSS code:

    body  .woocommerce .cross-sells .product .product-bottom {
        display: inline-block;
    }
    

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver