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 15 posts - 26 through 40 (of 40 total)
  • Author
    Posts
  • Lwifunyo Mangula
    Participant

    available quantity is the fields set at the othe menu for booking manage fields

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

    Yes vendor can add resource, but to set available quantity he/she must go to another menu, this in some cases become long process.

    what im asking is to add a new number field A RED COLOUR FIELD I HAVE INDICATED IN A PICTURE ATTACHED, which will help much a process become more simple for vendirs to add quantity of resources at the same tab.

    it make a process simple and non complicated

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

    Sir,
    in product publishing page for bookable product,
    there is a tab for resource.

    in resource tab i can only add *Title, Base Cost and Block Cost* but i cant add number of resource which im creating unless i go to booking menu and create manually resource there.
    but
    i have found it is difficult for vendors to have that long process which is difficult for new vendors who are still not familira.

    How much cost will it for the job if i want *number of resource available to be created and edited at the resource tab* without vendors going at other menu to edit resource again. This means that adding one new field in resource tab which will a number field to set number of reousrce available?

    Lwifunyo Mangula
    Participant

    okey. thanks.
    few weeks to come
    i will do something to you sir.

    thanks in advance

    Lwifunyo Mangula
    Participant

    Hello again sir!
    thanks for the sample plugin you have provided for me!
    – it has been so helpful. i have done a lot well with it!
    Thank you!

    There are few things i need help from you!
    1. in person block there are ready predefines input blocks! I want also to add pre-defined input blocks with data, but i have failed. below are codes
    =======> the person types you have provided is

    function wcfmbi_wcbokings_person_types_fields( $person_fields, $product_id ) {
    global $WCFM, $WCFMbi;

    if( !$product_id ) {
    if( isset( $person_fields[‘_wc_booking_min_persons_group’] ) ) {
    $person_fields[‘_wc_booking_min_persons_group’][‘value’] = 1;
    }

    if( isset( $person_fields[‘_wc_booking_max_persons_group’] ) ) {
    $person_fields[‘_wc_booking_max_persons_group’][‘value’] = 1;
    }
    }

    if( isset( $person_fields[‘_wc_booking_person_cost_multiplier’] ) ) {
    $person_fields[‘_wc_booking_person_cost_multiplier’][‘class’] = ‘wcfm_custom_hide’;
    $person_fields[‘_wc_booking_person_cost_multiplier’][‘label_class’] = ‘wcfm_custom_hide’;
    $person_fields[‘_wc_booking_person_cost_multiplier’][‘dfvalue’] = ‘no’;
    }

    if( isset( $person_fields[‘_wc_booking_person_qty_multiplier’] ) ) {
    $person_fields[‘_wc_booking_person_qty_multiplier’][‘class’] = ‘wcfm_custom_hide’;
    $person_fields[‘_wc_booking_person_qty_multiplier’][‘label_class’] = ‘wcfm_custom_hide’;
    $person_fields[‘_wc_booking_person_qty_multiplier’][‘dfvalue’] = ‘yes’;
    }

    if( isset( $person_fields[‘_wc_booking_has_person_types’] ) ) {
    $person_fields[‘_wc_booking_has_person_types’][‘class’] = ‘wcfm_custom_hide’;
    $person_fields[‘_wc_booking_has_person_types’][‘label_class’] = ‘wcfm_custom_hide’;
    $person_fields[‘_wc_booking_has_person_types’][‘dfvalue’] = ‘yes’;
    }

    if( !$product_id ) {
    if( isset( $person_fields[‘_wc_booking_person_types’] ) ) {
    $default_person_types = array( 0 => array(‘person_id’ => 0,
    ‘person_name’ => ‘Normal Ads Posts’,
    ‘person_description’ => ”,
    ‘person_cost’ => ”,
    ‘person_block_cost’ => 2500,
    ‘person_min’ => 0,
    ‘person_max’ => ‘100’
    ),
    1 => array(‘person_id’ => 0,
    ‘person_name’ => ‘Top Cover Photo’,
    ‘person_description’ => ”,
    ‘person_cost’ => ”,
    ‘person_block_cost’ => 50000,
    ‘person_min’ => ‘0’,
    ‘person_max’ => ‘1’
    ),
    2 => array(‘person_id’ => 0,
    ‘person_name’ => ‘Pin Ad at the Top’,
    ‘person_description’ => ”,
    ‘person_cost’ => ”,
    ‘person_block_cost’ => 30000,
    ‘person_min’ => ‘0’,
    ‘person_max’ => ‘2’
    ),
    3 => array(‘person_id’ => 0,
    ‘person_name’ => ‘Admin Promo and Mention’,
    ‘person_description’ => ”,
    ‘person_cost’ => ”,
    ‘person_block_cost’ => 25000,
    ‘person_min’ => ‘0’,
    ‘person_max’ => ‘5’
    ),
    );
    $person_fields[‘_wc_booking_person_types’][‘value’] = $default_person_types;
    $person_fields[‘_wc_booking_person_types’][‘options’][‘person_cost’][‘class’] = ‘wcfm_custom_hide’;
    $person_fields[‘_wc_booking_person_types’][‘options’][‘person_cost’][‘label_class’] = ‘wcfm_custom_hide’;
    $person_fields[‘_wc_booking_person_types’][‘options’][‘person_block_cost’][‘label’] = ‘Cost’;
    }
    }

    return $person_fields;
    }

    ———————————this is person type codes from sample plugin and it is working well——————————

    From it i have derived my codes for RESOURCES, but unfortunately no blocks are added

    ==========>
    function wcfmbi_wcbokings_resource_fields( $resource_fields, $product_id ) {
    global $WCFM, $WCFMbi;

    if( !$product_id ) {
    if( isset( $resource_fields[‘_wc_booking_resources’] ) ) {
    $default_resources = array( 0 => array(‘resource_id’ => 0,
    ‘resource_title’ => ‘i love my wife’,
    ‘resource_base_cost’ => ‘11111’,
    ‘resource_block_cost’ => ‘22222’,
    ),
    1 => array(‘resource_id’ => 0,
    ‘resource_title’ => ‘i love my children’,
    ‘resource_base_cost’ => ‘33333’,
    ‘resource_block_cost’ => ‘44444’,
    ),
    2 => array(‘resource_id’ => 0,
    ‘resource_title’ => ‘i love my family’,
    ‘resource_base_cost’ => ‘55555’,
    ‘resource_block_cost’ => ‘66666’,
    ),
    3 => array(‘resource_id’ => 0,
    ‘resource_title’ => ‘i love my people’,
    ‘resource_base_cost’ => ‘77777’,
    ‘resource_block_cost’ => ‘88888’,
    ),
    );
    $resource_fields[‘_wc_booking_resources’][‘value’] = $default_resources;
    $resource_fields[‘_wc_booking_resources’][‘options’][‘resource_base_cost’][‘class’] = ‘wcfm_custom_hide’;
    $resource_fields[‘_wc_booking_resources’][‘options’][‘resource_base_cost’][‘label_class’] = ‘wcfm_custom_hide’;
    $resource_fields[‘_wc_booking_resources’][‘options’][‘resource_block_cost’][‘label’] = ‘Cost’;
    }
    }

    return $resource_fields;
    }

    ———————————- i need some modifications sir from you —————————————

    2. How can i remove ADD and REMOVE buttons (right bottom buttons) in person and resource form so that vendors can not add or remove any block i have provided by the codes above; i want them only to fill them.

    thanks in advance for my two questions.

    Lwifunyo Mangula
    Participant

    and I want to add in my BOOKING OPTION in product publishing form
    – booking duration==>customer defined
    – time unity==>days
    – minimum duration==>1 day
    – maximum duration==>30 days
    – enable calendar range picker==>yes
    – Calendar display mode==>always visible

    i try to add something like this as your privious code, but unfortunately it doesnot work. Where im failing? how can i do it.

    function wcfm_2510_product_manage_fields_general( $general_fields, $product_id, $product_type ) {
    global $WCFM;

    if( !$product_id ) {
    if( isset( $general_fields[‘_wc_booking_duration_type’] ) ) {
    $general_fields[‘_wc_booking_duration_type’][‘dfvalue’] = ‘customer’;
    }

    if( isset( $general_fields[‘_wc_booking_duration’] ) ) {
    $general_fields[‘_wc_booking_has_persons’][‘dfvalue’] = ‘2’;
    }

    if( isset( $general_fields[‘_wc_booking_min_duration’] ) ) {
    $general_fields[‘_wc_booking_has_resources’][‘dfvalue’] = ‘1’;
    }

    if( isset( $general_fields[‘_wc_booking_max_duration’] ) ) {
    $general_fields[‘_wc_booking_has_persons’][‘dfvalue’] = ’30’;
    }

    if( isset( $general_fields[‘_wc_booking_enable_range_picker’] ) ) {
    $general_fields[‘_wc_booking_has_resources’][‘dfvalue’] = ‘yes’;
    }

    }

    return $general_fields;
    }
    add_filter( ‘wcfm_product_manage_fields_general’, ‘wcfm_2510_product_manage_fields_general’, 100, 3 );

    Lwifunyo Mangula
    Participant

    thanks. it worked as i requested.

    in reply to: WE WANT TO UPLOAD OUR PROFILE PICS IN THIS FORUM #34922
    Lwifunyo Mangula
    Participant
    This reply has been marked as private.
    Lwifunyo Mangula
    Participant

    SIR THANKS FOR YOUR TIME. THESE ARE MY REQUESTS.

    FIELDS TO BE PRE-SETS
    ==general product settings
    – has persons
    – has resources
    – virtual product

    ==booking options
    – booking duration==>customer defined
    – time unity==>days
    – minimum duration==>1 day
    – maximum duration==>30 days
    – enable calendar range picker==>yes
    – Calendar display mode==>always visible

    ==persons tab
    – enable person types
    – min persons==>20
    – max persons ==>50
    – multiply all costs by person count==yes
    – count persons as bookings==yes
    – person type 1 name CONSULTANT. ==base-cost 5000. ==block cost 5000. ==min 20. ==max 50. ==description xxxxxxxxxxxxx.
    – person type 2 name DRIVER. ==base-cost 3000. ==block cost 3000. ==min 20. ==max 40. ==description yyyyyyyyyyyy.

    ==availability tab
    – maximum booking per block==>100
    – minimum block bookable ==>1 day
    – maximum block bookable ==> 30 days
    – First block starts at…==> 0100 hours
    – availability rule==> range days. ==from monday. ==to sunday. ==bookable YES. ==priority 10.

    ==resource tab
    – Resource label name==>ADDITIONAL SERVICES
    – resource are==>customer selected

    ==cost tab
    – base costs==5000
    – block costs==3000
    display costs==5000
    – cost rule type==range of days. ==from monday-sunday. ==base-cost (x) 3000. ==block cost (x) 5000.

    FIELDS TO HIDE IN VENDOR BOOKING PUBLISHING FORM
    == general product settings
    – catalog
    – downloadable

    ==booking option tab
    -requires confirmation
    -can be cancelled

    == availability tab
    -require a buffer period of
    -adjacent buffering
    -restrict start days
    -restricted days
    – hide block additional plus button (vendor can not add more block)

    1. your html function code at first for me to solve the problem.
    2. Since this plugin is THE NEXT THING IN WOOCOMMERCE and many people are in need of these functionality in our plugin, then I personally I advice to add an intensive module which maybe can be a table form which will
    – list all plugin fields, text, words, sentenses, placeholders, default values
    – enable admin to hide and unhide some of fields and values to vendor
    – enable admin to pre-set default value
    – enable admin to pre-set fields and vendor can not change them
    – set minmum and maximum field values. set interval value
    – enable admin to make them required or optional fields
    – enable admin to change text, descriptions, sentences to his own words

    Lwifunyo Mangula
    Participant

    the tick to be checked by default when publishing new product

    Lwifunyo Mangula
    Participant

    but i suggenst more feutures for downlodable products in woocommerce you can add
    – version history (when selling softwares) vendors can add changlogs
    https://wordpress.org/plugins/awesome-changelog/ === maybe this plugin can be intergrated

    – controll download limits

    i will continue to add more suggestions

    thansk

    Lwifunyo Mangula
    Participant

    hello I thanks My Lord Jesus i have solved this!

    according to this thread
    https://wclovers.com/forums/topic/how-to-customize-add-product-page/

    this is what i have done!
    – i go to plugin folder and ‘wp-content/plugins/wc-frontend-manager/views’
    i copied all the contents within it to my theme into a new floder called wcfm (Override this at – “yourtheme/wcfm/”)
    – then in those copied files, i opened “wcfm/products-manager/wcfm-view-products-manage.php” then i edited it
    – to enable default downloadable product ticked by default then this is what i did (starting from line ~77)

    $product_id = 0;
    $product = array();
    $product_type = apply_filters( ‘wcfm_default_product_type’, ” );
    $is_virtual = ‘enable’;
    $title = ”;
    $sku = ”;
    $visibility = ‘visible’;
    $excerpt = ”;
    $description = ”;
    $regular_price = ”;
    $sale_price = ”;
    $sale_date_from = ”;
    $sale_date_upto = ”;
    $product_url = ”;
    $button_text = ”;
    $is_downloadable = ‘enable’;
    $downloadable_files = array();
    $download_limit = ‘3’;
    $download_expiry = ‘7’;
    $children = array();

    $featured_img = ”;
    $gallery_img_ids = array();
    $gallery_img_urls = array();
    $categories = array();
    $product_tags = ”;
    $manage_stock = ”;
    $stock_qty = 0;
    $backorders = ”;
    $stock_status = ”;
    $sold_individually = ‘enable’;
    $weight = ”;
    $length = ”;
    $width = ”;
    $height = ”;
    $shipping_class = ”;
    $tax_status = ”;
    $tax_class = ”;
    $attributes = array();

    note:
    $is_downloadable = ”; ==== i changed to ====> $is_downloadable = ‘enable’;
    then
    to other fields you can look what you can do

    hope this may help others!

    i copied those files to my active child theme folder inorder to avoid destroying my modifications when we will be updating the plugin

    in reply to: UPLOAD QUOTA PER USER #26469
    Lwifunyo Mangula
    Participant

    oooh!

    i hv seen where to set.

    but how can i distinguish membership plans with different UPLOAD SPACE QUOTA?

    so vendor can choose his plan according to upload space?

    in reply to: UPLOAD QUOTA PER USER #26467
    Lwifunyo Mangula
    Participant

    HELLO THANKS!

    i have seen in vendor page in dashboard there is disk quota sign. But i dont know where to limit this space. where do i set?

    I hv WCFM, WCFM ultimate and Membership. — does it require other addons?

    how do i set it

    thanks in advance.

    in reply to: UPLOAD QUOTA PER USER #24722
    Lwifunyo Mangula
    Participant

    Wclovers are crazy!

    You teach me how to handle clients!
    Every time we ask some features
    You do it

    I learn from you

    Thanks

    USER UPLOAD QUOTA
    – can be specifically to woocommerce products
    Or
    The whole site
    – my first use was for downloable products. You can configure it well yourself
    – other developers maybe interested to use it in their sites to control user upload quotas.

    Thanks

    Will it be released within 1 week?
    Eager for it within one week!

    Found in membership or ultimate?

Viewing 15 posts - 26 through 40 (of 40 total)