Repository Forums Support WooCommerce Extended Coupon Features PRO Free products added to cart not included in cart count of items

Topic Resolution: Resolved
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #3596
    webmaster8
    Participant

    Free products added by the WooCommerce Extended Coupon Features PRO plugin are treated differently if the customer is logged in.

    If logged in free products are included in the cart count of items.
    If logged out they are not.

    if logged in free products can count as requirements for coupons.
    if logged out they do not.

    #3599
    Soft79
    Keymaster

    Free products should never count. I can’t reproduce this behaviour. Can you please send me your WC System Status Report?

    #3603
    webmaster8
    Participant
    
    ### WordPress Environment ###
    
    Home URL: https://store.carsondunlop.com
    Site URL: https://store.carsondunlop.com
    WC Version: 3.4.3
    Log Directory Writable: ✔
    WP Version: 4.9.7
    WP Multisite: –
    WP Memory Limit: 768 MB
    WP Debug Mode: –
    WP Cron: ✔
    Language: en_US
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 5.6.36 - We recommend using PHP version 7.2 or above for greater performance and security. How to update your PHP version
    PHP Post Max Size: 128 MB
    PHP Time Limit: 120
    PHP Max Input Vars: 3000
    cURL Version: 7.59.0
    OpenSSL/1.0.2k
    
    SUHOSIN Installed: –
    MySQL Version: 5.6.36-82.1-log
    Max Upload Size: 128 MB
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ✔
    DOMDocument: ✔
    GZip: ✔
    Multibyte String: ✔
    Remote Post: ✔
    Remote Get: ✔
    
    ### Database ###
    
    WC Database Version: 3.4.3
    WC Database Prefix: wp_
    MaxMind GeoIP Database: ✔
    Total Database Size: 43.76MB
    Database Data Size: 21.83MB
    Database Index Size: 21.93MB
    wp_woocommerce_sessions: Data: 0.13MB + Index: 0.02MB
    wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB
    wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB
    wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.05MB
    wp_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB
    wp_woocommerce_order_itemmeta: Data: 0.22MB + Index: 0.16MB
    wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB
    wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB
    wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB
    wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB
    wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB
    wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB
    wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB
    wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB
    wp_commentmeta: Data: 0.02MB + Index: 0.03MB
    wp_comments: Data: 0.05MB + Index: 0.09MB
    wp_ewwwio_images: Data: 0.25MB + Index: 0.19MB
    wp_links: Data: 0.02MB + Index: 0.02MB
    wp_options: Data: 2.13MB + Index: 0.14MB
    wp_postmeta: Data: 1.50MB + Index: 0.73MB
    wp_posts: Data: 0.45MB + Index: 0.06MB
    wp_termmeta: Data: 0.02MB + Index: 0.03MB
    wp_terms: Data: 0.02MB + Index: 0.03MB
    wp_term_relationships: Data: 0.08MB + Index: 0.05MB
    wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB
    wp_usermeta: Data: 12.52MB + Index: 16.03MB
    wp_usermeta_old: Data: 2.52MB + Index: 3.03MB
    wp_users: Data: 1.52MB + Index: 0.84MB
    wp_users_old: Data: 0.02MB + Index: 0.05MB
    wp_wc_download_log: Data: 0.02MB + Index: 0.03MB
    wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB
    wp_woocommerce_exported_csv_items: Data: 0.02MB + Index: 0.02MB
    wp_yoast_seo_links: Data: 0.02MB + Index: 0.02MB
    wp_yoast_seo_meta: Data: 0.02MB + Index: 0.00MB
    
    ### Post Type Counts ###
    
    attachment: 137
    coupon_generator: 1
    customize_changeset: 1
    jetpack_migration: 2
    nav_menu_item: 6
    page: 5
    post: 1
    product: 73
    revision: 33
    shop_coupon: 79
    shop_order: 39
    
    ### Security ###
    
    Secure connection (HTTPS): ✔
    Hide errors from visitors: ✔
    
    ### Active Plugins (13) ###
    
    WooCommerce Coupon Generator: by Jeroen Sormani – 1.0.1 – Not tested with the active version of WooCommerce
    SendGrid: by SendGrid – 1.11.8
    Sucuri Security - Auditing, Malware Scanner and Hardening: by Sucuri Inc. – 1.8.18
    W3 Total Cache: by Frederick Townes – 0.9.7
    WooCommerce Extended Coupon Features PRO: by Soft79 – 2.6.3
    WooCommerce Customer/Order CSV Export: by SkyVerge – 4.5.0 – 4.5.2 is available
    WooCommerce Dynamic Pricing: by Lucas Stark – 3.1.6 – Not tested with the active version of WooCommerce
    WooCommerce Bambora Gateway: by SkyVerge – 2.0.2
    WooCommerce Google Analytics Integration: by WooCommerce – 1.4.4 – Not tested with the active version of WooCommerce
    WooCommerce FedEx Shipping: by WooCommerce – 3.4.10 – Not tested with the active version of WooCommerce
    WooCommerce UPS Shipping: by WooCommerce – 3.2.10
    WooCommerce: by Automattic – 3.4.3
    Yoast SEO: by Team Yoast – 7.8
    
    ### Settings ###
    
    API Enabled: ✔
    Force SSL: ✔
    Currency: USD ($)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    
    Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
    exclude-from-search (exclude-from-search)
    featured (featured)
    outofstock (outofstock)
    rated-1 (rated-1)
    rated-2 (rated-2)
    rated-3 (rated-3)
    rated-4 (rated-4)
    rated-5 (rated-5)
    
    ### WC Pages ###
    
    Shop base: #6 - /
    Cart: #7 - /cart/
    Checkout: #8 - /checkout/
    My account: #9 - /my-account/
    Terms and conditions: #94 - /terms/
    
    ### Theme ###
    
    Name: CD Store
    Version: 1.0.0
    Author URL: https://negliadesign.com
    Child Theme: ✔
    Parent Theme Name: CD Base
    Parent Theme Version: 1.0.0
    Parent Theme Author URL: https://negliadesign.com
    WooCommerce Support: ✔
    
    ### Templates ###
    
    Archive Template: Your theme has a woocommerce.php file
    you will not be able to override the woocommerce/archive-product.php custom template since woocommerce.php has priority over archive-product.php. This is intended to prevent display issues.
    
    Overrides: –
    
    ### Customer/Order CSV Export ###
    
    Order Export Format: custom
    Customer Export Format: custom
    Automatically Export Orders: disabled
    Automatically Export Customers: disabled
    
    ### Bambora (Legacy) ###
    
    Environment: Production
    Debug Mode: Save to Log
    
    #3604
    Soft79
    Keymaster

    Can you send me a screenshot of a cart where items are counted for the coupon? And also send me the coupon’s settings, please. If you enable Settings > Extended Coupon Features > Debug there is an option to copy coupon as json on the Misc tab.

    #3629
    webmaster8
    Participant

    Please see screenshot links

    Logged in: https://pasteboard.co/Hxdv50h.png

    Logged out: https://pasteboard.co/Hxdvq8w.png

    For the logged in user the cart shows 2 items

    For logged out user it only shows 1 item

    #3630
    webmaster8
    Participant

    {“result”:”ok”,”coupons”:{“coupon_id”:593,”coupon_code”:”freehrboffer”,”meta”:{“_edit_last”:””,”_edit_lock”:””,”_used_by”:””,”_wjecf_allow_cart_excluded”:”no”,”_wjecf_allow_enqueue”:”yes”,”_wjecf_apply_discount_to”:”all”,”_wjecf_apply_silently”:”yes”,”_wjecf_bogo_matching_products”:”no”,”_wjecf_categories_and”:”no”,”_wjecf_custom_fields_and”:”no”,”_wjecf_first_purchase_only”:”no”,”_wjecf_free_product_ids”:”494″,”_wjecf_is_auto_coupon”:”yes”,”_wjecf_multiply_free_products”:”no”,”_wjecf_must_select_free_product”:”no”,”_wjecf_products_and”:”no”,”_wjecf_select_free_product_message”:”Please choose your free gift:”,”coupon_amount”:””,”customer_email”:””,”date_expires”:null,”discount_type”:”fixed_product”,”exclude_product_categories”:””,”exclude_product_ids”:””,”exclude_sale_items”:false,”expiry_date”:””,”free_shipping”:false,”individual_use”:false,”limit_usage_to_x_items”:null,”maximum_amount”:””,”minimum_amount”:””,”product_categories”:[],”product_ids”:[156,198,164,218,166,220,150,181,160,206,152,189,154,196,162,212,158,202,146,168,148,178],”usage_count”:25,”usage_limit”:0,”usage_limit_per_user”:0}}}

    #3635
    Soft79
    Keymaster

    First of all the coupon doesn’t apply a free product. Did you change it?

    The only issue I see on your screenshot is the cd-header-cart not displaying the right item amount. Can you test if this issue persists with a standard theme like Storefront?

    You mentioned that free products are counted as requirements for a coupon. I can’t see this in your screenshots and the coupon doesn’t have a matching product quantity restriction. Please send me a coupon + instructions to reproduce this issue on your store.

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.