• In my shop, the sellers do not meet with each other
    Use the additional function to send the order after leaving the cart via WhatsApp

    I want the seller’s logo to appear
    At the top of the cart and checkout page
    So that the customer can return to the seller’s store after clicking on the logo

    Is this possible?

    Note: I tried to use the excerpt below, but it did not succeed

    function wcfm_product_seller_url_custom( $item_data, $cart_item ) {
        $vendor = wcfm_get_vendor_by_product( $cart_item['product_id'] );
        $vendor_url = sprintf('<b><a href="%s">Click here</a></b>', $vendor->get_shop_url() );
    
        if ( ! $vendor ) {
            return $item_data;
        }
    
        $item_data[] = array(
            'name'  => __( 'To Continue shopping on this store', 'wcfm' ),
            'value' => $vendor_url,
        );
    
        return $item_data;
    }
    
    add_filter( 'woocommerce_get_item_data', 'wcfm_product_seller_url_custom', 20, 2 );
    
    • This topic was modified 10 months, 4 weeks ago by wasim78.
    • This topic was modified 10 months, 4 weeks ago by wasim78.
    • This topic was modified 10 months, 4 weeks ago by wasim78.
  • The topic ‘Just go to the seller’s store after checking out the cart’ is closed to new replies.