WC Lovers

WooCommerce Frontend Manager - Multivendor marketplace vendor dashboard

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Forum Replies Created

Viewing 25 posts - 1 through 25 (of 42 total)
  • Author
    Posts
  • in reply to: Booking information on vendor invoice missing #93865
    andreasenglowski
    Participant
    This reply has been marked as private.
    in reply to: Stripe stopped working #93290
    andreasenglowski
    Participant

    Hi,

    any news here?

    Thanks in advance,
    Andi

    in reply to: Stripe stopped working #92151
    andreasenglowski
    Participant
    This reply has been marked as private.
    in reply to: Stripe stopped working #91604
    andreasenglowski
    Participant
    This reply has been marked as private.
    in reply to: Template for Commission invoice #78314
    andreasenglowski
    Participant
    This reply has been marked as private.
    in reply to: Recalculate Commissions #69717
    andreasenglowski
    Participant

    Many thanks!!!

    andreasenglowski
    Participant

    Hey, i got it working ๐Ÿ™‚

    Heres my code:

    add_filter( ‘woocommerce_email_format_string’ , ‘filter_email_format_string’, 20, 2 );
    function filter_email_format_string( $string, $email ) {
    // Get the instance of the WC_Order object
    $order = $email->object;

    // Additional wanted placeholders in the array of find / relace pairs
    $additional_placeholders = array(
    ‘{custom_one}’ => __(‘Mein Platzhalter’,’woocommerce’),
    ‘{vendor_link}’ => advi_get_vendor_link( $order ),
    ‘{vendor_name}’ => advi_get_vendor_name( $order ),
    );

    // return the clean string with new replacements
    return str_replace( array_keys( $additional_placeholders ), array_values( $additional_placeholders ), $string );
    }

    function advi_get_vendor_name( $order ) {
    global $WCFM, $WCFMmp;
    $order_item = $order->get_items();

    foreach( $order_item as $product ) {
    $productIDs[] = $product[‘product_id’];
    $productID = $product[‘product_id’];
    }
    $vendor_id = $WCFM->wcfm_vendor_support->wcfm_get_vendor_id_from_product( $productID );
    //This line return Link to Shop
    //$shop_name = $WCFM->wcfm_vendor_support->wcfm_get_vendor_store_by_vendor( $vendor_id );
    $store_user = wcfmmp_get_store( $vendor_id );
    $store_info = $store_user->get_shop_info();
    //$store_name = isset( $store_info[‘store_name’] ) ? esc_html( $store_info[‘store_name’] ) : __( ‘N/A’, ‘wc-multivendor-marketplace’ );
    $store_name = $store_info[‘store_name’];

    //return $productIDs[0];
    return $store_name;
    }

    Thanks ๐Ÿ™‚

    andreasenglowski
    Participant

    Hi,

    the vendor name should be displayed depending on the order (so it should be the name of the vendor who is selling the product in that order).

    Eg: customer purchsases one product โ€šmyProductโ€˜ from vendor โ€šmyVendorโ€˜.
    E-mail should say: thanks for ordering with myVendor.

    But there must be some way to get vendor information from WCOrder object, cause the vendor info (vendor store name plus url) is added to order confirmation email inside the table with order details in product info (see screenshot).

    What about
    โ€š$WCFM->wcfm_vendor_support->wcfm_get_vendor_id_from_product()โ€˜?
    can i get vendor id from order with that function?

    thanks,
    andi

    Attachments:
    You must be logged in to view attached files.
    andreasenglowski
    Participant

    Did find that code:

    add_filter( ‘woocommerce_email_format_string’ , ‘filter_email_format_string’, 20, 2 );
    function filter_email_format_string( $string, $email ) {
    // Get the instance of the WC_Order object
    $order = $email->object;

    // Additional wanted placeholders in the array of find / relace pairs
    $additional_placeholders = array(
    ‘{vendor}’ => CODE GOES HERE // <=== HERE
    );

    // return the clean string with new replacements
    return str_replace( array_keys( $additional_placeholders ), array_values( $additional_placeholders ), $string );
    }

    Where i just need to get the vendor name from the order object. is that possbile?

    in reply to: Remove fields on creation of bookable product #47906
    andreasenglowski
    Participant

    Sorry please delete the old post above (#47902). Three more question since my customer changed his mind:

    – Just in general: Would it possible to remove the whole Availability tab?
    – Is it possible to change even more fields in the Availability tab? Please see Screen1
    – Is it possible to remove the fields with the label and if customer can pick resource (on creation of bookable when resource is enabled)? Please see Screen2

    Thanks in advance,
    Andi

    Attachments:
    You must be logged in to view attached files.
    in reply to: Remove fields on creation of bookable product #47902
    andreasenglowski
    Participant

    Hi,

    many thanks, everything is working just perfect but now my client did ask to remove the whole availabity tab. Is that possible that too?
    If not, would it be possible to add some custom text in the availibity tab before or after the fields?

    Thanks in advance,
    Andi

    in reply to: Remove fields on creation of bookable product #47586
    andreasenglowski
    Participant

    Oh sorry i was mistaking, its inside the resource management. Did attach you screenshots, hope that helps to clear things out ๐Ÿ™‚

    Thank you very much and have a nice day!

    Attachments:
    You must be logged in to view attached files.
    in reply to: Remove fields on creation of bookable product #47548
    andreasenglowski
    Participant

    Thanks man you too! Just realized that theres one more small i want to get rid off: is it possible to remove the quantity field from the bookable product resource tab? Many many thanks!!

    in reply to: Edit order status update e-mail #47547
    andreasenglowski
    Participant

    Okay thanks. can you tell me how i do create my own order status? Sorry if its a stupid question ๐Ÿ™‚

    Thanks in advance,
    Andi

    in reply to: Remove fields on creation of bookable product #47518
    andreasenglowski
    Participant

    Thats what i was looking for!

    Thank you very very much, great support!!

    Best regards,
    Andi

    in reply to: Remove fields on creation of bookable product #47515
    andreasenglowski
    Participant

    blazing fast thanks man <3

    oh and one small last thinge which is not about bookable produkt but is it possible to remove the โ€štabs managerโ€˜ tab? did look in groups permissions but did not find it… than i am all happy ๐Ÿ™‚

    in reply to: Remove fields on creation of bookable product #47510
    andreasenglowski
    Participant

    Did mark them for you, please see screenshot.

    Many thanks

    Attachments:
    You must be logged in to view attached files.
    in reply to: Remove fields on creation of bookable product #47490
    andreasenglowski
    Participant

    thank you so much, its working great! now is there also a filter to remove fields of availability tab for bookable product?

    thanks in advance

    Attachments:
    You must be logged in to view attached files.
    in reply to: Remove fields on creation of bookable product #47287
    andreasenglowski
    Participant

    Okay sorry if its stupid but can you give a quick help on how to use the filter? For example remove min duration and max duration.

    Thanks in advance,
    Andi

    in reply to: Remove fields on creation of bookable product #47285
    andreasenglowski
    Participant

    Wow thats great thanks for fast reply thats exactly what i was looking for. One last question: is it safe to change the code in the class-wcfm-wcbookings.php or how do i use the filter? Sorry if this question is nebish…

    Thanks,
    Andi

    in reply to: Add HTML / Shortcode after Header on Vendor Shop page #47225
    andreasenglowski
    Participant

    Hi, sorry if i wasnt descriptive enough. The problem is that its not coming after header its before header. guess i have to change the priority… will check and let you know ๐Ÿ™‚

    thanks,
    andi

    in reply to: Shop button on Buddypress profile #46780
    andreasenglowski
    Participant

    Hi, sorry did double check and did find the mistake. Sorry for bothering! So i just need to rename it and i am all done ๐Ÿ™‚

    Thanks in advance,
    Andi

    in reply to: Add HTML / Shortcode after Header on Vendor Shop page #46777
    andreasenglowski
    Participant

    Many many thanks, its working but not as expected since the html comes before the header. Do you have a idea?

    Thanks in advance,
    Andi

    Attachments:
    You must be logged in to view attached files.
    in reply to: Shop button on Buddypress profile #46527
    andreasenglowski
    Participant

    Hey,

    sorry for late reply. Lol now after i did update everything to latest version the shop button disappeared completly. Not sure what happened. I had that code snippet in my function php

    add_filter( ‘wcfmmp_store_bp_menu_classes’, function( $classes ) {
    return ‘wcfm_custom_hide’;
    });

    to remove the store tab. but i did delete the code but still no tab to store. dashboard tab is available.

    do you have a idea?

    all the best,
    Andi

    in reply to: Add HTML / Shortcode after Header on Vendor Shop page #46522
    andreasenglowski
    Participant

    Hi, thanks for blazing fast reply. No not really comfortable, can you help me by giving an example? For example if i just want to add “<h3> my heading </h3>” right under the header of the vendor page. would be great ๐Ÿ™‚ and sorry for stupid question ^^

    Thanks

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