odedtalmon

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 42 total)
  • Author
    Posts
  • in reply to: WP-Admin is very slow due to costly queries by WCMP #142629
    odedtalmon
    Participant

    Hi,
    We’re using SSH keys for SFTP access, is it possible instead to check this via remote control / screen share?
    Thanks

    in reply to: WP-Admin is very slow due to costly queries by WCMP #142491
    odedtalmon
    Participant
    This reply has been marked as private.
    in reply to: Cannot affiliate product with vendor #141806
    odedtalmon
    Participant

    Thanks, I’ll wait for the stable version.

    in reply to: Cannot affiliate product with vendor #141734
    odedtalmon
    Participant

    Hello and thanks for the response.
    When I try to download the github and upload it’s basically uploading a completely new folder and not overriding the current plugin, is this because of your rebranding?
    Should I use the plugin uploaded from github and delete the previous one?

    Thanks

    in reply to: Updating product vendor programatically #136411
    odedtalmon
    Participant
    This reply has been marked as private.
    in reply to: Updating product vendor programatically #136410
    odedtalmon
    Participant

    Hello,
    I still don’t understand what the term for that vendor actually is. I am using the built in function of the vendor class

    get_term_id()
    Copy

    , how could that be wrong? What is the correct term id that should be places in that function?
    In any case, I tried updating to code according to the example you sent and it’s still not working.
    Here’s the code:

    $vendor_term_id = $WCMp_Vendor->get_term_id();
    $term = get_term( $vendor_term_id, $WCMp->taxonomy->taxonomy_name );

    if( $term ) {
    wp_delete_object_term_relationships( $product_id, $WCMp->taxonomy->taxonomy_name );
    wp_set_object_terms( $product_id, (int) $term->term_id, $WCMp->taxonomy->taxonomy_name, true );
    }

    $vendor = get_wcmp_vendor_by_term( absint( $term->term_id ) );

    if( !wp_is_post_revision( $product_id ) && $vendor ) {
    $WCMp_Product = new WCMp_Product();
    // unhook this function so it doesn’t loop infinitely
    remove_action( ‘save_post’, ‘process_vendor_data’ );
    // update the post, which calls save_post again
    wp_update_post( array( ‘ID’ => $product_id, ‘post_author’ => $vendor->id ) );
    // re-hook this function
    add_action( ‘save_post’, array( $WCMp_Product, ‘process_vendor_data’, $product_id ) );
    }

    in reply to: Updating product vendor programatically #136119
    odedtalmon
    Participant

    I tried to run this code:
    $product_id = 45227;
    $vendor = get_wcmp_vendor( 8096 );
    $vendor_term_id = $vendor->get_term_id();

    wp_delete_object_term_relationships( $product_id, ‘dc_vendor_shop’ );
    wp_set_object_terms( $product_id, $vendor_term_id, ‘dc_vendor_shop’, true );

    That didn’t change the vendor for the product. What should I do?

    Thanks.

    in reply to: Updating product vendor programatically #136036
    odedtalmon
    Participant

    Hello again,
    I don’t understand what needs to go in the $WCMp->taxonomy->taxonomy_name variable.
    The term id is this: $vendor_term_id = $vendor->get_term_id(); ?

    Thanks

    in reply to: Remove sold by in completed order #135601
    odedtalmon
    Participant

    Thank you very much!

    in reply to: Restricting some vendors shipping #126193
    odedtalmon
    Participant

    Hello again,
    No need, I got it working now, thank you very much for you help!!!

    in reply to: Restricting some vendors shipping #126145
    odedtalmon
    Participant

    Hey,
    That function returns the following:

    [10-Aug-2021 16:38:47 UTC] $vendor_all_shipping_zones: Array
    (
        [1] => Array
            (
                [id] => 1
                [zone_name] => ישראל
                [zone_order] => 0
                [zone_locations] => Array
                    (
                        [0] => stdClass Object
                            (
                                [code] => IL
                                [type] => country
                            )
    
                    )
    
                [meta_data] => Array
                    (
                    )
    
                [zone_id] => 1
                [formatted_zone_location] => ישראל
                [shipping_methods] => Array
                    (
                    )
    
            )
    
    )
    Copy

    shipping_methods is empty even though that vendor has 2 shipping methods.

    I also tried

    $vendor_shipping_data = get_user_meta($package['vendor_id'], 'vendor_shipping_data', true);
    Copy

    and $vendor_shipping_data comes back empty.

    What should I do?

    in reply to: Restricting some vendors shipping #126113
    odedtalmon
    Participant

    Hello,
    That works, it does disable the vendor shipping.

    Now, for those vendors not in the disabled shipping list I want to disable the rates depending if the vendor has shipping methods set up or not.
    How can I get all shipping methods for vendor?

    Thanks

    in reply to: Restricting some vendors shipping #125840
    odedtalmon
    Participant

    Hey,
    Screenshot_13.jpg show that field, it’s a global field, would be nice to have that per vendor where I could just completely disable shipping for a specific vendor.

    I assume that field doesn’t exists, what is the best way to disable shipping for a specific vendor?

    Screenshot_14.jpg shows an example of an order from 5 different Vendors, we would like to show only 1 shipping method (the woocommerce flat rate shipping method) because the client has a warehouse that takes care of all the shipping, vendors just have to open an account on the website and not worry about shipping/stock.

    Thanks

    in reply to: Restricting some vendors shipping #125827
    odedtalmon
    Participant

    Hello again, this issue is a bit urgent for us, I would really appreciate a quick response from the team.
    Thank you!

    in reply to: Restricting some vendors shipping #125801
    odedtalmon
    Participant

    Hey Moumita,
    The client is going through a process of opening their own warehouse to store products. The website is selling physical and digital books.
    Since the client will have a warehouse they would like to show the website’s shipping method always besides a few selected vendors that they allow to have their own shipping methods.

    I couldn’t figure out how to disable the additional shipping block of each vendor in the cart page.
    Moreover, I think it would be easier if there was a field “allow_vendor_shipping” for example that would help with this functionality.

    I hope this makes more sense now, if you have any questions let me know.

    Thanks!

Viewing 15 posts - 1 through 15 (of 42 total)