Forum Replies Created
- AuthorPosts
- pebi44Participant
After updating the plugin, it was fixed.
pebi44ParticipantHello, the same thing happened to me and I solved it.
You have to go to woocommerce – Settings – Enable couponspebi44ParticipantHi, is there any news about the missing “cost” field?
pebi44Participantadd_action( 'woocommerce_email_order_meta', 'add_sellerinfo_to_buyer_email',50,4 ); function add_sellerinfo_to_buyer_email( $order, $sent_to_admin, $plain_text, $email ) { global $WCFM; if ( !in_array( $email->id, array( 'new_order','store-new-order') )){ $items = $order->get_items(); echo '<p>INFORMACION DEL VENDEDOR -</p>'; foreach ( $items as $item ) { $product_id = $item->get_product_id(); $vendor_id = wcfm_get_vendor_id_by_post( $product_id ); if( apply_filters( 'wcfmmp_is_allow_sold_by_linked', true ) ) { $store_name = $WCFM->wcfm_vendor_support->wcfm_get_vendor_store_by_vendor( absint($vendor_id) ); } else { $store_name = $WCFM->wcfm_vendor_support->wcfm_get_vendor_store_name_by_vendor( absint($vendor_id) ); } $store_user = wcfmmp_get_store( $vendor_id ); $email = $store_user->get_email(); $phone = $store_user->get_phone(); $address = $store_user->get_address_string(); echo $store_name.'('.$item->get_name().') :'.$email.' '.$phone.'<br><br/>'; } } }
pebi44ParticipantYes you put it in function.php
This code does is add the seller’s information (email and phone number) in the email that reaches the customer when making the purchase.pebi44ParticipantThis code works for me:
add_action( ‘woocommerce_email_order_meta’, ‘add_sellerinfo_to_buyer_email’,50,4 );
function add_sellerinfo_to_buyer_email( $order, $sent_to_admin, $plain_text, $email ) {
global $WCFM;
if ( !in_array( $email->id, array( ‘new_order’,’store-new-order’) )){
$items = $order->get_items();
echo ‘<p>INFORMACION DEL VENDEDOR -</p>’;
foreach ( $items as $item ) {
$product_id = $item->get_product_id();
$vendor_id = wcfm_get_vendor_id_by_post( $product_id );
if( apply_filters( ‘wcfmmp_is_allow_sold_by_linked’, true ) ) {
$store_name = $WCFM->wcfm_vendor_support->wcfm_get_vendor_store_by_vendor( absint($vendor_id) );
} else {
$store_name = $WCFM->wcfm_vendor_support->wcfm_get_vendor_store_name_by_vendor( absint($vendor_id) );
}
$store_user = wcfmmp_get_store( $vendor_id );
$email = $store_user->get_email();
$phone = $store_user->get_phone();
$address = $store_user->get_address_string();
echo $store_name.'(‘.$item->get_name().’) :’.$email.’ ‘.$phone.'<br><br/>’;
}
}
}pebi44ParticipantI need, if possible, disable wcfmmp_user_location_field on the checkout page for shipping zone cases.
pebi44ParticipantHello, in the vendor panel I cannot configure the “cost” to the shipping rate. Does not display the “cost” field.
In the administration panel it can be configured.pebi44ParticipantHi, do you have any news?
I forgot to say, I have limited the cart to purchases from a single Vendor.
pebi44ParticipantThanks, it worked perfect!
pebi44ParticipantI am limiting the sale of products to one Vendor per Order
- AuthorPosts