Forum Replies Created
-
AuthorPosts
-
odedtalmonParticipant
Hi,
We’re using SSH keys for SFTP access, is it possible instead to check this via remote control / screen share?
ThanksodedtalmonParticipantThis reply has been marked as private.odedtalmonParticipantThanks, I’ll wait for the stable version.
odedtalmonParticipantHello 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
odedtalmonParticipantThis reply has been marked as private.odedtalmonParticipantHello,
I still don’t understand what the term for that vendor actually is. I am using the built in function of the vendor classget_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 ) );
}odedtalmonParticipantI 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.
odedtalmonParticipantHello 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
odedtalmonParticipantThank you very much!
odedtalmonParticipantHello again,
No need, I got it working now, thank you very much for you help!!!odedtalmonParticipantHey,
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 ( ) ) )
Copyshipping_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);
Copyand $vendor_shipping_data comes back empty.
What should I do?
odedtalmonParticipantHello,
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
odedtalmonParticipantHey,
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
odedtalmonParticipantHello again, this issue is a bit urgent for us, I would really appreciate a quick response from the team.
Thank you!odedtalmonParticipantHey 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!
-
AuthorPosts