Limit data entry fields when using Simple Auction

Multi Vendor Marketplace Plugin | WCFM Marketplace Forums WCFM – Ultimate Limit data entry fields when using Simple Auction

This topic contains 7 replies, has 2 voices, and was last updated by WCFM Forum WCFM Forum 3 weeks, 2 days ago.

  • Author
    Posts
  • #90474
    Avatar
    CommunityCorals
    Participant

    Hello,

    I would like to clean out the auction tab from data entry fields that aren´t useful for my auctions. Can you let me know which template and which lines have to be commented out to make the fields disappear I marked in the screenshot?

    Thanks
    Dominique

    Attachments:
    You must be logged in to view attached files.
  • #90476
    Avatar
    CommunityCorals
    Participant

    Ah, I forgot to mention that it is not possible to choose a time as indicated in the screenshot.

    BR
    Dominique

  • #91123
    WCFM Forum
    WCFM Forum
    Keymaster

    Hi,

    Please add this code to your site –

    add_filter( 'wcfm_product_manage_wcsauction_fields', function( $auction_fileds, $product_id ) {
    	$auction_fileds = wcfm_hide_field( '_auction_item_condition', $auction_fileds );
      $auction_fileds = wcfm_hide_field( '_auction_type', $auction_fileds );
      $auction_fileds = wcfm_hide_field( '_regular_price', $auction_fileds );
      $auction_fileds = wcfm_hide_field( '_auction_reserved_price', $auction_fileds );
    	return $auction_fileds;
    }, 50, 2 );

    Thank You

  • #91346
    Avatar
    CommunityCorals
    Participant

    Thank you – Works perfectly fine. How about the time setting issue. I now realized that it is possbile to change time with arrow buttons on keyboard. Any chance to make this more intuitive?

    Thanks
    Dominique

  • #91347
    Avatar
    CommunityCorals
    Participant

    Just checked on mobile. There it is not possible to change time at all. You think you can fix this please?

    BR
    Dominique

  • #91907
    WCFM Forum
    WCFM Forum
    Keymaster

    Well, there should be datepicker for date-time fields.

    Please check in Google Chrome Browser console, is there any JavaScript error happening to the add product page or not!
    (What is browser console – https://support.airtable.com/hc/en-us/articles/232313848-How-to-open-the-developer-console)

  • #91950
    Avatar
    CommunityCorals
    Participant

    Hi,

    I have the calendar and the date works fine. But for the time I have no slider. Just a grey box. Check attached screenshot. Same on mobile. Seems like the box is the slider. Completely compressed to this small area.

    The console shows attached messages

    BR
    Dominique

    Attachments:
    You must be logged in to view attached files.
  • #92620
    WCFM Forum
    WCFM Forum
    Keymaster

    We already discussing this over email, closing here.

The topic ‘Limit data entry fields when using Simple Auction’ is closed to new replies.