Home Forums WC Vendors Pro Support Auction Only Site

NOTICE: We've Moved to a Ticket System for Support

As of August 31, 2017 (12am EST) our support forums will be retired (read-only), and we will be moving to a support ticket system.  This will allow us to better organize and answer support requests, and provide a more personalized experience as we assist our customers.

For the time being, we will leave our forums open for reading and learning while we work on creating a more robust Knowledge Base for everyone to use.

If you are a WC Vendors Pro customer please open a support ticket here. 

If you are a WC Vendors user please open a support ticket on the Wordpress.org forums.

The information on this forum is outdated and in most instances no longer relevant. Please be sure to check our documentation for the most up to date information.

https://docs.wcvendors.com/

Thank you to all of our customers!

 

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #64253
    MARCELO ANDRES
    Participant

    Hello I’m trying to create an auction only site. Using WC vendors pro + Woocommerce simple auctions.

    Is there a way to display in the front-end product submission only the “Auction” product data? To avoid users to submit non non auctionable products
    Thank you

    #64295
    Anna
    Member

    @djmarsx2017
    Try this:
    WC Vendors Settings : Products (wp admin > woocommerce > wc vendors > products)
    Configure what to hide from all vendors when adding a product…
    Check:
    Simple
    Variable
    Grouped
    External/Affiliate

    then you should only see the Auction product type and fields in the product form.

    #64399
    MARCELO ANDRES
    Participant

    Thank you Is now working great!

    However I’m still having problems. The tabs below the product type dropdown are not working properly. None of them works and the active by default is not showing it’s content.
    I’ve attached an image below

    #64420
    Anna
    Member

    Hello,
    Well, we probably need to leave the simple product option un-checked then, but find a way to hide the product type selector and set the auction product type as default instead. We’ll have to use code..
    Let me try and work this out and get back with you.
    I also may be able to move the div in the template. Let me tinker with this and I will reply when I have found the right way to do this so that we do not break the form by having simple product type checked. 🙂

    #64439
    MARCELO ANDRES
    Participant

    Thank you for your help!

    UPDATE even with all product options unchecked the tabs are not working on the front end. I checked the console and i can see a JavaScript error that seems to be related with the issue: See attached image

    JavaScript Console Error:

    ink-all.min.js:1 Error: #wcv-tabs does not match an element on the page. You need to pass a valid selector to "new Tabs_1".
        at f.h (ink-all.min.js:3)
        at new f (ink-all.min.js:7)
        at Boolean.<anonymous> (product.min.js:1)
        at Object.requireModules (ink-all.min.js:1)
        at t (product.min.js:1)
        at HTMLSelectElement.<anonymous> (product.min.js:1)
        at HTMLSelectElement.dispatch (jquery.js:3)
        at HTMLSelectElement.r.handle (jquery.js:3)
        at Object.trigger (jquery.js:3)
        at Object.a.event.trigger (jquery-migrate.min.js:2)
    #64451
    Anna
    Member

    @djmarsx2017
    Please deactivate all plugins except WC Vendors, WC Vendors Pro, WooCommerce Simple Auctions and WC Vendors Simple Auctions Integration.
    Now test. If it still shows, then please switch the the Storefront theme.
    Test,
    Please let me know the results..

    #64465
    patrick
    Participant

    This might help you. I have an auction only site and used the code below. The time input doesnt work, you have to copy and paste the time stuff from the wcvendors auction bridge

    <?php
    /**
     * The template for displaying the Auction only Product Edit form  
     *
     * Override this template by copying it to yourtheme/wc-vendors/dashboard/
     *
     * @package    WCVendors_Pro
     * @version    1.3.9
     */
    /**
     *   DO NOT EDIT ANY OF THE LINES BELOW UNLESS YOU KNOW WHAT YOU'RE DOING 
     *   
    */
    
    $title = 	( is_numeric( $object_id ) ) ? __('Save Changes', 'wcvendors-pro') : __( 'Add Simple Product', 'wcvendors-pro'); 
    $product = 	( is_numeric( $object_id ) ) ? wc_get_product( $object_id ) : null;
    
    // Get basic information for the product 
    $product_title     			= ( isset($product) && null !== $product ) ? $product->post->post_title    : ''; 
    $product_description        = ( isset($product) && null !== $product ) ? $product->post->post_content  : ''; 
    $product_short_description  = ( isset($product) && null !== $product ) ? $product->post->post_excerpt  : ''; 
    $post_status				= ( isset($product) && null !== $product ) ? $product->post->post_status   : ''; 
    
    /**
     *  Ok, You can edit the template below but be careful!
    */
    ?>
    
    <h2><?php echo $title; ?></h2>
    
    <!-- Product Edit Form -->
    <form method="post" action="" id="wcv-product-edit" class="wcv-form wcv-formvalidator"> 
    
    	<!-- Basic Product Details -->
    	 
    		
    		
    		
    		
    		
    	    
    	
    
    	 
        	
    		
    			
    		
    	</div>
    
    	<hr />
    	
    	
    		 'hidden', 
    				'id' 			=> 'product-type', 
    				'value'			=> 'auction'
    				) )
    			);
    		?>
    	
     
    	<!-- Price and Sale Price -->
    	<?php WCVendors_Pro_Product_Form::prices( $object_id ); ?>
    
    	<!-- SKU  -->
    	<?php WCVendors_Pro_Product_Form::sku( $object_id ); ?>
    	<!-- Private listing  -->
    	<?php WCVendors_Pro_Product_Form::private_listing( $object_id ); ?>
    
    	<!-- Shipping rates  -->
    	<?php WCVendors_Pro_Product_Form::shipping_rates( $object_id ); ?>	
      
      <!-- Auction Fields --> 
      
    	<!--  Item Condition -->
    	<?php  WCVendors_Pro_Form_Helper::select( apply_filters( 'wcv_simple_auctions_item_condition', array( 
    				'post_id'			=> $post_id, 
    				'id' 				=> '_auction_item_condition', 
    				'class'				=> 'select2',
    				'label'	 			=> __( 'Item Condition', 'wc_simple_auctions' ), 
    				'desc_tip' 			=> 'true', 
    				'description' 			=> sprintf( __( 'The condition of the item you are selling', 'wcvendors-pro-simple-auctions' ) ), 
    				'wrapper_start' 		=> '',
    				'wrapper_end' 			=> '', 
    				'options' 			=> array( 'new' => __('New', 'wc_simple_auctions'), 'used'=> __('Used', 'wc_simple_auctions') )
    				) )
    		); 
    	?>
    
    	<!-- Type of Auction -->
    	<?php 	WCVendors_Pro_Form_Helper::select( apply_filters( 'wcv_simple_auctions_auction_type', array(
                    'post_id'                       => $post_id,
                    'id'                            => '_auction_type',
                    'class'                         => 'select2',
                    'label'                         => __( 'Auction Type', 'wc_simple_auctions' ),
                    'desc_tip'                      => 'true',
                    'description'                   => sprintf( __( 'Type of Auction - Normal prefers high bidders, reverse prefers low bids to win.', 'wcvendors-pro-simple-auctions' ) ),                                             
                    'wrapper_start'                 => '',
                    'wrapper_end'                   => '',
                    'options'                       => array( 'normal' => __('Normal', 'wc_simple_auctions'), 'reverse'=> __('Reverse', 'wc_simple_auctions') )
                    ) )
            );
    	?>
    
    	<!-- Proxy Options --> 
    	<?php  WCVendors_Pro_Form_Helper::input( apply_filters( 'wcv_simple_auctions_proxy_bidding', array( 
    			'post_id'			=> $post_id, 
    			'id' 				=> '_auction_proxy', 
    			'label' 			=> __( 'Enable proxy bidding', 'wc_simple_auctions' ), 
    			'type' 				=> 'checkbox' 
    			) )
    		);
    	?>
    
    	<!-- Auction Start Price --> 
    	<?php WCVendors_Pro_Form_Helper::input( apply_filters( 'wcv_simple_auctions_start_price', array( 
    			'post_id'		=> $post_id, 
    			'id' 			=> '_auction_start_price', 
    			'label' 		=> __( 'Start Price', 'wc_simple_auctions' ) . ' (' . get_woocommerce_currency_symbol() . ')', 
    			'data_type' 		=> 'price', 
    			'wrapper_start' 	=> '', 
    			'wrapper_end' 		=>  ''
    			) )
    		);
    	?>
    
    	<!-- Auction Bid Increment -->
    	<?php WCVendors_Pro_Form_Helper::input( apply_filters( 'wcv_simple_auctions_bid_increment', array(
                    'post_id'               => $post_id,
                    'id'                    => '_auction_bid_increment',
                    'label'                 => __( 'Bid increment', 'wc_simple_auctions' ) . ' (' . get_woocommerce_currency_symbol() . ')',
                    'data_type'             => 'price',
                    'wrapper_start'         => '',
                    'wrapper_end'           =>  ''
                    ) )
            );
    	?> 
    
    	<!-- Reserve Price (note the keys are reserved not reserve, as is the auction developers code) --> 
    	<?php WCVendors_Pro_Form_Helper::input( apply_filters( 'wcv_simple_auctions_reserved_price', array(
    	            'post_id'               => $post_id,
    	            'id'                    => '_auction_reserved_price',
    	            'label'                 => __( 'Reserve price', 'wc_simple_auctions' ) . ' (' . get_woocommerce_currency_symbol() . ')',
    	            'data_type'             => 'price',
    	            'wrapper_start'         => '',
    	            'wrapper_end'           =>  ''
    	            ) )
    	    );
    	?>
    
    	<!-- Buy it Now Price -->
    	<?php WCVendors_Pro_Form_Helper::input( apply_filters( 'wcv_simple_auctions_buy_it_now_price', array(
    	            'post_id'               => $post_id,
    	            'id'                    => '_buy_it_now_price',
    	            'label'                 => __( 'Buy it now price', 'wc_simple_auctions' ) . ' (' . get_woocommerce_currency_symbol() . ')',
    	            'data_type'             => 'price',
    	            'wrapper_start'         => '',
    	            'wrapper_end'           =>  ''
    	            ) )
    	    );
    	?>
    		 
    	<?php WCVendors_Pro_Form_Helper::input( apply_filters( 'wcv_simple_auctions_start_date', array( 
    			'post_id'		=> $post_id, 
    			'id' 			=> '_auction_dates_from', 
    			'label' 		=> __( 'From', 'wcvendors-pro-simple-auctions' ), 
    			'class'			=> 'wcv-datetimepicker', 
    			'placeholder'	=> __( 'From&hellip;', 'placeholder', 'wcvendors-pro-simple-auctions' ). ' YYYY-MM-DD',  
    			'wrapper_start' => '',
    			'wrapper_end' 	=> '', 
    			) )
    		);
    	?>
    	
    	<?php WCVendors_Pro_Form_Helper::input( apply_filters( 'wcv_simple_auctions_end_date', array( 
    			'post_id'			=> $post_id, 
    			'id' 				=> '_auction_dates_to', 
    			'label' 			=> __( 'To', 'wcvendors-pro-simple-auctions' ), 
    			'class'				=> 'wcv-datetimepicker', 
    			'placeholder'		=> __( 'To&hellip;', 'placeholder', 'wcvendors-pro-simple-auctions' ). ' YYYY-MM-DD', 
    			'wrapper_start' 	=> '',
    			'wrapper_end' 		=> '', 
    			'desc_tip'			=> true, 
    			) )
    		);
    	?>
        
    	<?php WCVendors_Pro_Product_Form::form_data( $object_id, $post_status, $template ); ?>
    	<?php WCVendors_Pro_Product_Form::save_button( $title ); ?>
    	<?php WCVendors_Pro_Product_Form::draft_button( __('Save Draft','wcvendors-pro') ); ?>
    
    			</div>
    		</div>
    </form>
    #65512
    MARCELO ANDRES
    Participant

    When Storefront is active is working properly. There’s a way to make it work with Divi? It’s a pretty popular theme!

    #65753
    Anna
    Member

    @djmarsx2017
    There are several reasons why DIVI can be a headache.
    First off, in areas they disable html markup, which is lame. At least they DID.. not sure if they still do.
    Also, there is a smooth scroll that messes with pro dashboard pages.
    We do have some code to deal with that.. I think it is this, in your theme/child theme functions.php:
    https://gist.github.com/fervous/7c6f98dcd31fa0742303ba50e85f33b6

    #66010
    MARCELO ANDRES
    Participant

    Hello Ana,

    I’ve solved the issue by applying CSS. Now it seems to be working fine. I’ll let you know if i have any other issues. Thank you for your time

Viewing 10 posts - 1 through 10 (of 10 total)
  • The forum ‘WC Vendors Pro Support’ is closed to new topics and replies.
This website uses cookies to ensure you get the best experience on our website.