Plus/Minus Button Not Showing In Archive Page
-
Hi,
I am using
Wordpress : 4.0
Woocommerce : 2.2.8i am listing all product in home page. in there its showing qty box with plus/minus button. but in Archive page. only qty box is showing. i am using only single template to display.
i dont know where is the issue.
quantity-input.php
<?php /** * Product quantity inputs * * @author WooThemes * @package WooCommerce/Templates * @version 2.1.0 */ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?> <div class="quantity"> <input type="number" step="<?php echo esc_attr( $step ); ?>" <?php if ( is_numeric( $min_value ) ) : ?> min="<?php echo esc_attr( $min_value ); ?>" <?php endif; ?> <?php if ( is_numeric( $max_value ) ) : ?> max="<?php echo esc_attr( $max_value ); ?>" <?php endif; ?> name="<?php echo esc_attr( $input_name ); ?>" value="<?php echo esc_attr( $input_value ); ?>" title="<?php _ex( 'Qty', 'Product quantity input tooltip', 'woocommerce' ) ?>" class="input-text qty text" size="4" /> </div>
Qty Code
<?php $addtocart = ''; $backorders = $product->backorders_allowed() ? '' : $product->get_stock_quantity(); if ( ! $product->is_purchasable() ) return; if ( $product->is_in_stock() ) : if($product->is_type( 'simple' )){ if ( ! $product->is_sold_individually() ){ $qty_box = woocommerce_quantity_input(array( 'min_value' => apply_filters( 'woocommerce_quantity_input_min',1, $product ), 'max_value' => apply_filters( 'woocommerce_quantity_input_max',$backorders, $product ) ),'',false); } $addtocart = ' <form class="cart" method="post" enctype="multipart/form-data"> '.$qty_box.' <input type="hidden" name="add-to-cart" value="'.esc_attr( $product->id ).'" /> <button type="submit" class="single_add_to_cart_button button alt">'.$product->single_add_to_cart_text().'</button> </form> '; } endif; echo $qty_box; ?>
- The topic ‘Plus/Minus Button Not Showing In Archive Page’ is closed to new replies.