Support » Plugin: Plugin Name:Woo Quick Order Table View » two important feature needed

  • Hi, thanks for the really promising plugin. For our shop we shold have two more feature implemented to use it for sure:

    1- the possibility to exclude product out of stock
    2- the possibility to exclude product that cannot be sold in table way, for example: we have fruit boxes (that i want to be sold in your table) and single fruit items, that i want to shop with your table view plugin.

    Thank you very much
    Angelo

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author rayhan30

    (@rayhan30)

    Hello Angelo,

    sorry for my late reply.i have solution for your 1st issue.you please replace the code with this new code i am attaching here.please open the plugin quick-order.php file and replace the full function function woo_qotv() with the below code.hope you will be happy with it.i did not understand your 2nd issue.

    Please i expect a 5 star review from you.

    Thanks and Take Care

    
    function woo_qotv(){?>
    
    <table class="quick-order">
    <tr class="top_part">
    <thead>
    <th ><?php echo('Image'); ?></th>
    <th ><?php echo('Product Name'); ?></th>
    <th ><?php echo('Price'); ?></th>
    <th ><?php echo('Quantity'); ?></th>
    </thead>
    </tr>
    
    <?php  
            $args = array( 'post_type' => 'product','posts_per_page' =>'', 'orderby' =>'date','order' => 'DESC');
            $loop = new WP_Query( $args );
            while ( $loop->have_posts() ) : $loop->the_post(); global $product; ?>
    <tr>
    <?php if ( $product->is_in_stock() ) : ?>
    <td><a class="btn btn-default product" href="#" data-featherlight="#product_details_<?php echo $loop->post->ID; ?>"><div class="normal_thumnail"><?php if (has_post_thumbnail( $loop->post->ID )) echo get_the_post_thumbnail($loop->post->ID, 'shop_catalog'); else echo '<img src="'.woocommerce_placeholder_img_src().'"/>'; ?></div></a></td>
    <td><?php the_title(); ?></td>
    <td><?php echo woocommerce_price($product->get_price()); ?></td>
    <td>
    
    	<?php do_action( 'woocommerce_before_add_to_cart_form' ); ?>
    
    	<form class="cart_2" method="post" enctype='multipart/form-data'>
    	 	<?php do_action( 'woocommerce_before_add_to_cart_button' ); ?>
    
    	 	<?php
    	 		if ( ! $product->is_sold_individually() ) {
    	 			woocommerce_quantity_input( array(
    	 				'min_value'   => apply_filters( 'woocommerce_quantity_input_min', 1, $product ),
    	 				'max_value'   => apply_filters( 'woocommerce_quantity_input_max', $product->backorders_allowed() ? '' : $product->get_stock_quantity(), $product ),
    	 				
    	 			) );
    	 		}
    	 	?><input type="hidden" name="add-to-cart" value="<?php echo esc_attr( $product->id ); ?>" />
    
    	 <button type="submit" class="single_add_to_cart_button button alt">+</button>
    
    		<?php do_action( 'woocommerce_after_add_to_cart_button' ); ?>
    	</form>
    </td>
    
    <div class="lightbox" id="product_details_<?php echo $loop->post->ID; ?>" >
    
    <div class="light_image"><?php if (has_post_thumbnail( $loop->post->ID )) echo get_the_post_thumbnail($loop->post->ID, 'shop_catalog'); else echo '<img src="'.woocommerce_placeholder_img_src().'"/>'; ?></div>
    <div class="light_details">
    <h2><?php the_title(); ?></h2>
    <div class="description"><?php the_content(); ?></div>
    <p>SKU: <?php echo ( $sku = $product->get_sku() ) ? $sku : __( 'N/A', 'woocommerce' ); ?></p>
    <p>Price: <?php echo woocommerce_price($product->get_price()); ?></p>
    </div
    </div>
    <?php do_action( 'woocommerce_after_add_to_cart_form' ); ?>
    <?php endif; ?>
    </tr>
    
    <?php endwhile; ?>
    <?php wp_reset_query(); ?>
    </table>
     
    <?php }
    
    Thread Starter AngeloLazzari

    (@angelolazzari)

    Hi Abu!
    THanks for the response and the snipet i will check it.

    The second feature would be great is the possibility to decide, via configuration, which category or products will be displayed in the grid.
    For example i our shop we sell fruit boxes done putting all the season fruit in the box and the user has to buy just that box, BUT, we would like to give the user the possibility to create his own box, choosing from a single fruit or veggie product table…your plugin…

    So, as we have both standard box and custom box products, we want in a page show only the custom product (with your table view) and in another page put the standard product (normal woocommerce visualization)

    Thread Starter AngeloLazzari

    (@angelolazzari)

    uhh, sorry, thank you very much, i hope i expained correctly. 🙂

    Plugin Author rayhan30

    (@rayhan30)

    Hello AngeloLazzari,

    hope you are doing well.Please check the new version.i have added a number of new features hope you will like it.and you demand will be fulfill now.It has pagination and also lots more options like select one or more categories,order,number of products,table color etc.

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘two important feature needed’ is closed to new replies.