Coupons Not Displaying in Checkout - by darrencnz

This topic has 11 replies, 2 voices, and was last updated 8 years, 6 months ago ago by Jack Richardson

  • Avatar: darrencnz
    darrencnz
    Participant
    August 28, 2015 at 05:05

    My client has informed me that when a new coupon is created and you go through the checkout system, there is nowhere to submit your coupon, can someone please advise if anyone else is having this problem?

    I have turned off all plugins to see if there was a conflict and still nowhere to enter coupon.

    Please, contact administrator
    for this information.
    10 Answers
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    August 28, 2015 at 07:56

    Hello,

    You can submit a coupon in cart page as shown on the screenshot http://prntscr.com/89s12o

    Best regards,
    Jack Richardson.

    Avatar: darrencnz
    darrencnz
    Participant
    September 29, 2015 at 03:20

    I understand this but from a usability point of view, it leaves the user wondering whats going on.

    A simple fix could prevent abandoned shopping carts because when you go to the top right cart box, it doesnt display a button saying “view cart” it just says “Checkout”

    Why doesn’t it have both? or even better, why doesn’t it just have “view cart” because surely someone might want to view their cart before they checkout.

    It just seems there’s a simple way to make the flow much better but it is done in an unnecessarily confusing way.

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    September 29, 2015 at 07:38

    Hello,

    We can create “View Cart” button for you. Please provide us with FTP and WP Dashboard credentials in private content.

    Best regards,
    Jack Richardson.

    Avatar: darrencnz
    darrencnz
    Participant
    September 29, 2015 at 09:39

    Hi

    Thank you for the fast reply, i have made changes to the checkout section as when it is set to “Step by Step” it doesnt allow the use of coupons during checkout but when set to “Default” it does offer the option at the top of the checkout section.

    I have included the details for you but would prefer the “View Cart” button to be displayed in the top right cart widget and would also like some instructions on this as well as i am running child themes and want to keep track of the modifications made as well.

    Please advise where this change is made for future reference and for other people.

    Please, contact administrator
    for this information.
    Avatar: darrencnz
    darrencnz
    Participant
    September 29, 2015 at 09:54

    PS: I wasn’t creating multiple topics. This one was a reply to the coupons not displaying at checkout and the other one was wanting a “view cart” button in the top right hand side cart widget section

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    September 29, 2015 at 12:27

    Hello,

    We can’t access WP Dashboard getting the error “Forbidden”.
    Please check it.

    Best regards,
    Jack Richardson.

    Avatar: darrencnz
    darrencnz
    Participant
    September 29, 2015 at 22:50

    Ah, sorry, we have country restrictions on this due to malicious attacks, what country are you located in?

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    September 30, 2015 at 08:14

    Hello,

    I’ve edited the file functions.php in wp-content/themes/bodyglove-child directory and added this code:

    if(!function_exists('etheme_top_cart_child')) {
    	function etheme_top_cart_child() {
            global $woocommerce;
    		?>
    
    		<div class="shopping-cart-widget a-center">
    			<div class="cart-summ">
    				<a href="<?php echo $woocommerce->cart->get_cart_url(); ?>"><span class="items"><?php echo $woocommerce->cart->cart_contents_count; ?> <?php _e('items', ETHEME_DOMAIN);?></span> <span class="price-summ"><?php echo $woocommerce->cart->get_cart_subtotal(); ?></span></a>
    			</div>
    		    <div class="cart-popup-container">
    			    <div class="cart-popup">
    			        <?php
    			        
    			        if ( sizeof( $woocommerce->cart->get_cart() ) > 0 ) {
    			          ?>
    			            <div class="products-small">
    			          <?php
    			            $counter = 0;
    			            foreach ( $woocommerce->cart->get_cart() as $cart_item_key => $cart_item ) {
    			                $counter++;
    			                if($counter > 3) continue;
    			                $_product = $cart_item['data'];
    
    			                if ( ! apply_filters('woocommerce_widget_cart_item_visible', true, $cart_item, $cart_item_key ) ) 
    			                    continue;
    			                
    			                if ( $_product->exists() && $cart_item['quantity'] > 0 ) {
    			            
    			                    $product_price = get_option( 'woocommerce_display_cart_prices_excluding_tax' ) == 'yes' || $woocommerce->customer->is_vat_exempt() ? $_product->get_price_excluding_tax() : $_product->get_price();
    			                            
    			                    $product_price = apply_filters( 'woocommerce_cart_item_price_html', woocommerce_price( $product_price ), $cart_item, $cart_item_key );  
    
    			                    $thumbnail     = apply_filters( 'woocommerce_cart_item_thumbnail', $_product->get_image(), $cart_item, $cart_item_key );
    			                                
    			                ?>
    			                    <div class="product-item">
    			                    	<div class="product-item-left">
    										<a class="product-image" href="<?php echo get_permalink( $cart_item['product_id'] ); ?>"><?php echo  $thumbnail; ?></a>
    			                    	</div>       
    			                        <div class="product-item-right">
    			                        	<?php 
    				                            echo apply_filters( 'woocommerce_cart_item_remove_link', sprintf('<a href="%s" class="delete-btn" title="%s"><i class="icon-remove"></i></a>', esc_url( $woocommerce->cart->get_remove_url( $cart_item_key ) ), __('Remove this item', ETHEME_DOMAIN) ), $cart_item_key ); 
    				                        ?>
    				                        <h5><a href="<?php echo get_permalink( $cart_item['product_id'] ); ?>"><?php echo apply_filters('woocommerce_widget_cart_product_title', $_product->get_title(), $_product ) ?></a></h5>
    				                        
    				                        <div class="qty">
    				                            <span class="price"><span class="pricedisplay"><?php echo $product_price; ?></span></span>
    				                            <span class="quanity-label"><?php echo __('Qty', ETHEME_DOMAIN); ?>:</span> <span><?php echo $cart_item['quantity']; ?></span>
    				                        </div>
    				                        <?php echo $woocommerce->cart->get_item_data( $cart_item ); ?>
    			                        </div>
    			                       
    			                        
    			                        <div class="clear"></div>
    			                    </div> 
    			                <?php
    			                }
    			            }
    			        ?>
    			        </div>
    
    			        <?php   
    			        } else {
    			            echo '<p class="empty a-center">' . __('No products in the cart.', ETHEME_DOMAIN) . '</p>';
    			        }
    			        
    
    			        if ( sizeof( $woocommerce->cart->get_cart() ) > 0 ) {
    			          ?>
    			            <div class="totals">
    			                <?php echo __('Total:', ETHEME_DOMAIN); ?> &nbsp;<span class="price"><span class="pricedisplay"><?php echo $woocommerce->cart->get_cart_subtotal(); ?></span></span>
    			            </div>
    			          <?php
    
    			            do_action( 'woocommerce_widget_shopping_cart_before_buttons' );
    			            ?>
    			              <a class="button active big checkout-button" href="<?php echo $woocommerce->cart->get_cart_url(); ?>"><span>
          View Cart
        </span></a>
    			                <a href="<?php echo $woocommerce->cart->get_checkout_url(); ?>" class="button active big checkout-button"><span><?php echo __('Checkout', ETHEME_DOMAIN); ?></span></a>   
    			            
    			            <?php
    
    			        }
    			        ?>
    			    </div>
    		    </div> 
    		</div>
        <?php
    	}
    }

    Also added header.php file to your child theme and changed <?php etheme_top_cart(); ?> to <?php etheme_top_cart_child(); ?> in line 116 as I named the function in child functions.php.
    Please clear browser cache and check top cart now.

    Best regards,
    Jack Richardson.

    Avatar: darrencnz
    darrencnz
    Participant
    September 30, 2015 at 23:53

    Hi Jack

    That’s awesome, thank you. This is perfect. My skills lay more in another area and although i can change and modify some code, i have my limits. Can i suggest you consider including this into a future update or at least provide an option in the back end for something like this?

    From a user experience point of view, i believe it is paramount to provide the user with every possibility and the ability to do anything they want without them having to think too much about it, a lot of people i showed had the same experience i did where they didn’t realise they could go to the cart by clicking on the icon (so i changed the icon to a shopping basket) but to take it one step further, when they hover, they can now choose the cart or checkout when previously, they weren’t aware they could view the cart BEFORE going to checkout and that the only option now was to checkout and because we originally had it set to Step By Step we didnt actually have the option to insert a coupon in the checkout in that mode (which is how the problem came about), as soon as we switched to Default, it gave us the option to add the coupon.

    So perhaps you could look into the issue where the Step By Step option could also display the coupon at the final point in the process too?

    Not complaining, just trying to improve an already great product.

    Regards

    Darren

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    October 1, 2015 at 07:13

    Hello,

    We’ve taken your request into our account and will try to include these features in the future updates.

    Please take our apologies for inconveniences.

    Best regards,
    Jack Richardson.

  • Viewing 11 results - 1 through 11 (of 11 total)

The forum ‘TheLeader Support Forum’ is closed to new topics and replies.

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.