Support » Plugin: WooCommerce » How to apply coupons to shipping costs

  • Currently the shipping cost is being added on to the subtotal after a coupon is applied. We are using Table Rate shipping plugin if that matters.

    For example, a customer has a coupon for $100 cart discount. They add an $89 product to the cart, with $23 shipping calculated ($112 total). Currently, the coupon is discounting the hat to $0, but then still adding the full $23 for shipping.

    How can we configure it so that the coupon will also apply a discount to the shipping cost? So for the example above they would only be required to pay $12 for the order.

    Thanks!

    Site: lackofcolor.com.au

    ### WordPress Environment ###
    
    Home URL: http://www.lackofcolor.com.au
    Site URL: http://www.lackofcolor.com.au
    WC Version: 2.4.10
    Log Directory Writable: ✔  /home/lala1273/public_html/wp-content/uploads/wc-logs/
    WP Version: 4.3.3
    WP Multisite: –
    WP Memory Limit: 500 MB
    WP Debug Mode: –
    Language: en_US
    
    ### Server Environment ###
    
    Server Info: Apache/2.4.16 (Unix) OpenSSL/1.0.1e-fips mod_bwlimited/1.4
    PHP Version: 5.5.30
    PHP Post Max Size: 8 MB
    PHP Time Limit: 300
    PHP Max Input Vars: 1000
    SUHOSIN Installed: –
    MySQL Version: 5.5.47
    Max Upload Size: 2 MB
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ✕ Your server does not have the SOAP Client class enabled - some gateway plugins which use SOAP may not work as expected.
    DOMDocument: ✔
    GZip: ✔
    Remote Post: ✔
    Remote Get: ✔
    
    ### Database ###
    
    WC Database Version: 2.4.10
    :
    woocommerce_api_keys: ✔
    woocommerce_attribute_taxonomies: ✔
    woocommerce_termmeta: ✔
    woocommerce_downloadable_product_permissions: ✔
    woocommerce_order_items: ✔
    woocommerce_order_itemmeta: ✔
    woocommerce_tax_rates: ✔
    woocommerce_tax_rate_locations: ✔
    
    ### Active Plugins (41) ###
    
    Advanced Custom Fields: Repeater Field: by Elliot Condon – 1.1.1
    Advanced Custom Fields: by Elliot Condon – 4.4.3
    Akismet: by Automattic – 3.1.5
    Backup: by Sorin Iclanzan – 2.2
    Contact Form 7: by Takayuki Miyoshi – 4.3.1
    Easy FancyBox: by RavanH – 1.5.7
    Enhanced Custom Permalinks: by Tor N. Johnson – 0.1.1
    Envato WordPress Toolkit: by Derek Herman – 1.4
    Geev Updater: by Bart Pluijms – 1.2.9.1
    Google Analytics Dashboard for WP: by Alin Marcu – 4.8.3
    Maintenance: by fruitfulcode – 2.5
    NextGEN Plus by Photocrati: by Photocrati Media – 1.1.3
    NextGEN Gallery by Photocrati: by Photocrati Media – 2.1.15
    Ninja Forms: by The WP Ninjas – 2.9.28
    Post Types Order: by Nsp Code – 1.8.5
    VarkTech Pricing Deals for WooCommerce: by Vark – 1.1.1.2
    VarkTech Pricing Deals PRO for WooCommerce: by VarkTech – 1.1.1.2
    Regenerate Thumbnails: by Viper007Bond – 2.2.4
    Taxonomy Metadata: by mitcho (Michael Yoshitaka Erlewine)
    sirzooro – 0.5
    
    Under Construction Page: by Nitin Maurya – 1.1
    UpdraftPlus - Backup/Restore: by UpdraftPlus.Com
    DavidAnderson – 1.11.18
    
    WooCommerce DYMO Print: by Bart Pluijms – 2.3.8.4
    WooCommerce Export Customer Email: by MH Mithu – 1.3
    WooCommerce Braintree Gateway: by WooThemes / SkyVerge – 3.1.0
    WooCommerce PayPal Express Gateway: by WooThemes / SkyVerge – 3.6.0
    WooCommerce Print Invoice/Packing list: by WooThemes / SkyVerge – 2.6.0 – 2.7.0 is available
    WooCommerce Shipment Tracking: by Mike Jolley – 1.3.5 – 1.4.2 is available
    WooCommerce - Store Exporter Deluxe: by Visser Labs – 2.0.2
    WooCommerce Table Rate Shipping: by Bolder Elements – 3.6.3.1
    WooCommerce: by WooThemes – 2.4.10
    WooSidebars: by WooThemes – 1.4.3
    WooThemes Helper: by WooThemes – 1.5.9
    WordPress Importer: by wordpressdotorg – 0.6.1
    WP Clone by WP Academy: by WP Academy – 2.2
    WP-FileManager: by Anant Shrivastava
    Johannes Ries – 1.4.0
    
    Wp Mail Bank: by Tech Banker – 1.36
    WP-Mail-SMTP: by Callum Macdonald – 0.9.5
    WP Overview (lite): by sLa NGjI's – 2011.0723.2011
    Easy Forms for MailChimp by YIKES: by YIKES – 6.0.3.3
    YITH WooCommerce Ajax Search: by Yithemes – 1.3.8
    YITH WooCommerce Wishlist: by Yithemes – 2.0.12
    
    ### Settings ###
    
    Force SSL: ✔
    Currency: AUD ($)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    
    ### API ###
    
    API Enabled: ✔
    API Version: 3.0.0
    
    ### WC Pages ###
    
    Shop Base: #6 - /shop/
    Cart: #7 - /cart/
    Checkout: #8 - /checkout/
    My Account: #9 - /my-account/
    
    ### Taxonomies ###
    
    Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    
    ### Theme ###
    
    Name: Theme Lack Of Color
    Version:
    Author URL:
    Child Theme: ✕ – If you're modifying WooCommerce or a parent theme you didn't build personally we recommend using a child theme. See: How to create a child theme
    WooCommerce Support: Not Declared
    
    ### Templates ###
    
    Overrides: lackofcolor/woocommerce/archive-product.php
    lackofcolor/woocommerce/content-product.php version 1.6.4 is out of date. The core version is 2.4.0
    lackofcolor/woocommerce/content-product_cat.php
    lackofcolor/woocommerce/content-single-product.php
    lackofcolor/woocommerce/content-widget-product.php
    lackofcolor/woocommerce/emails/admin-cancelled-order.php
    lackofcolor/woocommerce/emails/admin-new-order.php
    lackofcolor/woocommerce/emails/customer-completed-order.php
    lackofcolor/woocommerce/emails/customer-invoice.php
    lackofcolor/woocommerce/emails/customer-new-account.php
    lackofcolor/woocommerce/emails/customer-note.php
    lackofcolor/woocommerce/emails/customer-processing-order.php
    lackofcolor/woocommerce/emails/customer-refunded-order.php
    lackofcolor/woocommerce/emails/customer-reset-password.php
    lackofcolor/woocommerce/emails/email-addresses.php
    lackofcolor/woocommerce/emails/email-footer.php
    lackofcolor/woocommerce/emails/email-header.php
    lackofcolor/woocommerce/emails/email-order-items.php
    lackofcolor/woocommerce/emails/email-styles.php
    lackofcolor/woocommerce/emails/plain/admin-cancelled-order.php
    lackofcolor/woocommerce/emails/plain/admin-new-order.php
    lackofcolor/woocommerce/emails/plain/customer-completed-order.php
    lackofcolor/woocommerce/emails/plain/customer-invoice.php
    lackofcolor/woocommerce/emails/plain/customer-new-account.php
    lackofcolor/woocommerce/emails/plain/customer-note.php
    lackofcolor/woocommerce/emails/plain/customer-processing-order.php
    lackofcolor/woocommerce/emails/plain/customer-refunded-order.php
    lackofcolor/woocommerce/emails/plain/customer-reset-password.php
    lackofcolor/woocommerce/emails/plain/email-addresses.php
    lackofcolor/woocommerce/emails/plain/email-order-items.php
    lackofcolor/woocommerce/global/breadcrumb.php
    lackofcolor/woocommerce/global/form-login.php
    lackofcolor/woocommerce/global/quantity-input.php
    lackofcolor/woocommerce/global/sidebar.php
    lackofcolor/woocommerce/global/wrapper-end.php
    lackofcolor/woocommerce/global/wrapper-start.php
    lackofcolor/woocommerce/loop/add-to-cart.php
    lackofcolor/woocommerce/loop/loop-end.php
    lackofcolor/woocommerce/loop/loop-start.php
    lackofcolor/woocommerce/loop/no-products-found.php
    lackofcolor/woocommerce/loop/orderby.php
    lackofcolor/woocommerce/loop/pagination.php
    lackofcolor/woocommerce/loop/price.php
    lackofcolor/woocommerce/loop/rating.php
    lackofcolor/woocommerce/loop/result-count.php
    lackofcolor/woocommerce/loop/sale-flash.php
    lackofcolor/woocommerce/myaccount/form-add-payment-method.php
    lackofcolor/woocommerce/myaccount/form-edit-account.php
    lackofcolor/woocommerce/myaccount/form-edit-address.php
    lackofcolor/woocommerce/myaccount/form-login.php
    lackofcolor/woocommerce/myaccount/form-lost-password.php
    lackofcolor/woocommerce/myaccount/my-account.php
    lackofcolor/woocommerce/myaccount/my-address.php
    lackofcolor/woocommerce/myaccount/my-downloads.php
    lackofcolor/woocommerce/myaccount/my-orders.php
    lackofcolor/woocommerce/myaccount/view-order.php
    lackofcolor/woocommerce/notices/error.php
    lackofcolor/woocommerce/notices/notice.php
    lackofcolor/woocommerce/notices/success.php
    lackofcolor/woocommerce/product-searchform.php
    lackofcolor/woocommerce/single-product/add-to-cart/external.php
    lackofcolor/woocommerce/single-product/add-to-cart/grouped.php
    lackofcolor/woocommerce/single-product/add-to-cart/simple.php
    lackofcolor/woocommerce/single-product/add-to-cart/variable.php
    lackofcolor/woocommerce/single-product/meta.php
    lackofcolor/woocommerce/single-product/price.php version 1.6.4 is out of date. The core version is 2.4.9
    lackofcolor/woocommerce/single-product/product-attributes.php
    lackofcolor/woocommerce/single-product/product-image.php
    lackofcolor/woocommerce/single-product/product-thumbnails.php
    lackofcolor/woocommerce/single-product/rating.php
    lackofcolor/woocommerce/single-product/related.php
    lackofcolor/woocommerce/single-product/review.php
    lackofcolor/woocommerce/single-product/sale-flash.php
    lackofcolor/woocommerce/single-product/share.php
    lackofcolor/woocommerce/single-product/short-description.php
    lackofcolor/woocommerce/single-product/tabs/additional-information.php
    lackofcolor/woocommerce/single-product/tabs/description.php
    lackofcolor/woocommerce/single-product/tabs/tabs.php
    lackofcolor/woocommerce/single-product/title.php
    lackofcolor/woocommerce/single-product/up-sells.php
    lackofcolor/woocommerce/single-product-reviews.php
    lackofcolor/woocommerce/single-product.php
    lackofcolor/woocommerce/taxonomy-product_cat.php
    lackofcolor/woocommerce/taxonomy-product_tag.php
    
    : Learn how to update outdated templates

    https://wordpress.org/plugins/woocommerce/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Mike Jolley

    (@mikejolley)

    We don’t allow coupons to discount shipping costs in the current release. Shipping is never discounted (coupons can however enable free shipping).

    What is the reasoning behind this? I believe it used to be possible until around version 2.3. Does this mean that no Woocommerce plugins will be able to provide this functionality either?

    Plugin Author Mike Jolley

    (@mikejolley)

    I think you’re referring to coupons after tax. Yes this would have been “possible” before, however, discounting taxes etc is not allowed..so this was actually wrong to be used in this case too.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to apply coupons to shipping costs’ is closed to new replies.