Forum Replies Created
- AuthorPosts
- December 8, 2018 at 10:46 am in reply to: SET PERMANENT HIDDEN SOME FIELDS IN PRODUCT PUBLISHING PAGE, after publishing #39334Lwifunyo MangulaParticipant
available quantity is the fields set at the othe menu for booking manage fields
Attachments:
You must be logged in to view attached files.December 8, 2018 at 10:40 am in reply to: SET PERMANENT HIDDEN SOME FIELDS IN PRODUCT PUBLISHING PAGE, after publishing #39332Lwifunyo MangulaParticipantYes 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.December 8, 2018 at 10:06 am in reply to: SET PERMANENT HIDDEN SOME FIELDS IN PRODUCT PUBLISHING PAGE, after publishing #39330Lwifunyo MangulaParticipantSir,
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?
October 29, 2018 at 2:59 pm in reply to: How can i HIDE unnecessary FIELDS in product-publishing page and PRESET values? #35259Lwifunyo MangulaParticipantokey. thanks.
few weeks to come
i will do something to you sir.thanks in advance
October 27, 2018 at 4:52 pm in reply to: How can i HIDE unnecessary FIELDS in product-publishing page and PRESET values? #35142Lwifunyo MangulaParticipantHello 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 isfunction 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.
October 25, 2018 at 9:54 am in reply to: How to make HAS RESOURCE & HAS PERSON pre-checked when creating booking product? #34935Lwifunyo MangulaParticipantand 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 visiblei 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 );October 25, 2018 at 7:53 am in reply to: How to make HAS RESOURCE & HAS PERSON pre-checked when creating booking product? #34924Lwifunyo MangulaParticipantthanks. it worked as i requested.
Lwifunyo MangulaParticipantThis reply has been marked as private.October 25, 2018 at 7:40 am in reply to: How can i HIDE unnecessary FIELDS in product-publishing page and PRESET values? #34920Lwifunyo MangulaParticipantSIR 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 wordsOctober 25, 2018 at 6:40 am in reply to: How to make HAS RESOURCE & HAS PERSON pre-checked when creating booking product? #34915Lwifunyo MangulaParticipantthe tick to be checked by default when publishing new product
October 11, 2018 at 3:43 am in reply to: Set the PRODUCT PUBLISHING FORM to default slected and checked VIRTUL & DOWNLOAD #33754Lwifunyo MangulaParticipantbut 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
October 11, 2018 at 3:37 am in reply to: Set the PRODUCT PUBLISHING FORM to default slected and checked VIRTUL & DOWNLOAD #33753Lwifunyo MangulaParticipanthello 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 dohope 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
Lwifunyo MangulaParticipantoooh!
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?
Lwifunyo MangulaParticipantHELLO 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.
Lwifunyo MangulaParticipantWclovers are crazy!
You teach me how to handle clients!
Every time we ask some features
You do itI 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?
- AuthorPosts