fbpx
-50% OFF Black Friday coupon: BF2021

Cross Selling Errors After Theme Update?

HomeTopicsSupport forumCross Selling Errors After Theme Update?
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #16795
    Avatar
    Jean-Michel
    Participant

    Cross Selling Errors After Theme Update?

    I have added a cross-selling product to a product. However, around 10 “recent_products” are displayed in the shopping cart and no cross-selling products. The server CPU then also increases to 100%.

    Example: https://drive.google.com/file/d/1zzxaFiw79rP12hlN4OHVkZIYgdQ-CINX/view

    Best regards.

    #16805
    Artem Temos
    Artem Temos
    Keymaster

    Hello,

    Try to edit the file framework/integration/elementor/elements/products/products.php and replace the following part

    if ( 'cross-sells' === $product_source && $product && is_singular( 'product' ) ) {
        $query_args['post__in'] = array_merge( array( 0 ), $product->get_cross_sell_ids() );
    }

    with this one

    if ( 'cross-sells' === $product_source ) {
        $cross_sells = WC()->cart->get_cross_sells();
    
        if ( $cross_sells ) {
            $query_args['post__in'] = $cross_sells;
        }
    }

    We will release the update tomorrow.

    Kind Regards

    #16806
    Avatar
    Jean-Michel
    Participant

    The php file products.php is completely missing. I only have one class-products.php in the folder / products /

    Attachments:
    You must be logged in to view attached files.
    #16808
    Artem Temos
    Artem Temos
    Keymaster

    Sorry, the wrong path. Here is a correct path to this file xts-antares\templates\elementor\products.php.

    #16812
    Avatar
    Jean-Michel
    Participant

    Ok that already worked 🙂
    But why is the title of Cross Seling displayed incorrectly? My page is in uft8 format. This cannot be translated in WooCommerce either 🙁

    Attachments:
    You must be logged in to view attached files.
    #16814
    Artem Temos
    Artem Temos
    Keymaster

    One more bug in our theme. It will be fixed in the next update as well. Sorry for the trouble.

    #16818
    Avatar
    Jean-Michel
    Participant

    No problem. Shit happens:-)

    #16820
    Artem Temos
    Artem Temos
    Keymaster

    Yes, you are right 🙂 Have a nice day! Feel free to contact us if you have any further questions.

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

The topic ‘Cross Selling Errors After Theme Update?’ is closed to new replies.

Sign in

No account yet?

Create an Account