Support » Plugin: WooCommerce » Woocommerce coupon

  • Resolved Juan Solá

    (@juanparis64)


    The main coupon’s that comes with woocommerce is creating us a problem:

    If someone doesn’t finish the checkout, cancels the payment or go’s back in the paymet process (the last step of the check out) the coupon is consumed.
    This is a problem with the one use coupons because they haven’t actually used the coupon, the transaction wasn’t compleated, but woocommerce thick they have.

    I think this is a problem that must have happend to some one else.
    Is there any solution whit code Or is there a nother plugin which doesn’t have this problem.

    • This topic was modified 1 year ago by Juan Solá.
    • This topic was modified 1 year ago by Juan Solá.

    The page I need help with: [log in to see the link]

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Support Mirko P. woo-hc

    (@rainfallnixfig)

    Hi @juanparis64,

    Just to clarify, are you using the default Coupons feature found under WordPress Dashboard > Marketing > Coupons? Could you please share a copy of your site’s System Status? You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”. Once you’ve done that, paste it here in your response.

    Thanks.

    Thread Starter Juan Solá

    (@juanparis64)

    Hello Mirko
    
    Yes we are using the Coupons feature found under WordPress Dashboard > Marketing > Coupons.
    
    Thank you very much for your attention.
    
    

    ### WordPress Environment ###

    WordPress address (URL): https://paris64.com
    Site address (URL): https://paris64.com
    WC Version: 5.5.2
    REST API Version: ✔ 5.5.2
    WC Blocks Version: ✔ 5.3.3
    Action Scheduler Version: ✔ 3.2.1
    WC Admin Version: ✔ 2.6.0-beta.2
    Log Directory Writable: ✔
    WP Version: 5.8
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: –
    WP Cron: ✔
    Language: es_ES
    External object cache: –

    ### Server Environment ###

    Server Info: nginx/1.21.1
    PHP Version: 7.4.22
    PHP Post Max Size: 128 MB
    PHP Time Limit: 300
    PHP Max Input Vars: 10000
    cURL Version: 7.68.0
    OpenSSL/1.1.1f

    SUHOSIN Installed: –
    MySQL Version: 5.5.5-10.5.11-MariaDB-1:10.5.11+maria~focal-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: 5.5.2
    WC Database Prefix: wp_
    Tamaño total de la base de datos: 121.66MB
    Tamaño de los datos de la base de datos: 66.44MB
    Tamaño del índice de la base de datos: 55.22MB
    wp_woocommerce_sessions: Datos: 1.02MB + Índice: 0.02MB + Motor InnoDB
    wp_woocommerce_api_keys: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB
    wp_woocommerce_attribute_taxonomies: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB
    wp_woocommerce_downloadable_product_permissions: Datos: 0.02MB + Índice: 0.06MB + Motor InnoDB
    wp_woocommerce_order_items: Datos: 1.52MB + Índice: 0.34MB + Motor InnoDB
    wp_woocommerce_order_itemmeta: Datos: 5.52MB + Índice: 6.03MB + Motor InnoDB
    wp_woocommerce_tax_rates: Datos: 0.02MB + Índice: 0.06MB + Motor InnoDB
    wp_woocommerce_tax_rate_locations: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB
    wp_woocommerce_shipping_zones: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB
    wp_woocommerce_shipping_zone_locations: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB
    wp_woocommerce_shipping_zone_methods: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB
    wp_woocommerce_payment_tokens: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB
    wp_woocommerce_payment_tokenmeta: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB
    wp_woocommerce_log: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB
    wp_actionscheduler_actions: Datos: 1.02MB + Índice: 0.84MB + Motor InnoDB
    wp_actionscheduler_claims: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB
    wp_actionscheduler_groups: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB
    wp_actionscheduler_logs: Datos: 1.03MB + Índice: 0.44MB + Motor InnoDB
    wp_ac_segments: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB
    wp_admin_columns: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB
    wp_cartflows_ca_cart_abandonment: Datos: 0.06MB + Índice: 0.02MB + Motor InnoDB
    wp_cartflows_ca_email_history: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB
    wp_cartflows_ca_email_templates: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB
    wp_cartflows_ca_email_templates_meta: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB
    wp_cli_cookie_scan: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB
    wp_cli_cookie_scan_categories: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB
    wp_cli_cookie_scan_cookies: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB
    wp_cli_cookie_scan_url: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB
    wp_cli_scripts: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB
    wp_commentmeta: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB
    wp_comments: Datos: 0.11MB + Índice: 0.09MB + Motor InnoDB
    wp_links: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB
    wp_mailchimp_carts: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB
    wp_mailchimp_jobs: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB
    wp_nacex_expediciones: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB
    wp_nacex_tarifas: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB
    wp_nacex_tarifas_his: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB
    wp_options: Datos: 6.27MB + Índice: 0.20MB + Motor InnoDB
    wp_postmeta: Datos: 16.55MB + Índice: 15.83MB + Motor InnoDB
    wp_posts: Datos: 4.48MB + Índice: 0.98MB + Motor InnoDB
    wp_relevanssi: Datos: 0.20MB + Índice: 0.22MB + Motor InnoDB
    wp_relevanssi_log: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB
    wp_relevanssi_stopwords: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB
    wp_sfa_abandoned_carts: Datos: 0.06MB + Índice: 0.00MB + Motor InnoDB
    wp_termmeta: Datos: 0.08MB + Índice: 0.09MB + Motor InnoDB
    wp_terms: Datos: 0.05MB + Índice: 0.03MB + Motor InnoDB
    wp_term_relationships: Datos: 0.13MB + Índice: 0.06MB + Motor InnoDB
    wp_term_taxonomy: Datos: 0.06MB + Índice: 0.03MB + Motor InnoDB
    wp_usermeta: Datos: 9.50MB + Índice: 9.03MB + Motor InnoDB
    wp_users: Datos: 1.52MB + Índice: 0.47MB + Motor InnoDB
    wp_wcpdf_invoice_number: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB
    wp_wc_admin_notes: Datos: 0.05MB + Índice: 0.00MB + Motor InnoDB
    wp_wc_admin_note_actions: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB
    wp_wc_category_lookup: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB
    wp_wc_customer_lookup: Datos: 0.48MB + Índice: 0.34MB + Motor InnoDB
    wp_wc_download_log: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB
    wp_wc_order_coupon_lookup: Datos: 0.14MB + Índice: 0.20MB + Motor InnoDB
    wp_wc_order_product_lookup: Datos: 1.52MB + Índice: 0.56MB + Motor InnoDB
    wp_wc_order_stats: Datos: 0.45MB + Índice: 0.44MB + Motor InnoDB
    wp_wc_order_tax_lookup: Datos: 0.30MB + Índice: 0.23MB + Motor InnoDB
    wp_wc_product_meta_lookup: Datos: 0.09MB + Índice: 0.13MB + Motor InnoDB
    wp_wc_reserved_stock: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB
    wp_wc_tax_rate_classes: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB
    wp_wc_webhooks: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB
    wp_wpmailsmtp_debug_events: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB
    wp_wpmailsmtp_tasks_meta: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB
    wp_wpml_mails: Datos: 3.02MB + Índice: 0.00MB + Motor InnoDB
    wp_wsal_metadata: Datos: 9.52MB + Índice: 17.06MB + Motor InnoDB
    wp_wsal_occurrences: Datos: 0.44MB + Índice: 0.56MB + Motor InnoDB
    wp_xoo_wl_list: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB
    wp_xoo_wl_list_meta: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB
    wp_yith_wcwl: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB
    wp_yith_wcwl_lists: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB
    wp_yoast_indexable: Datos: 0.17MB + Índice: 0.08MB + Motor InnoDB
    wp_yoast_indexable_hierarchy: Datos: 0.02MB + Índice: 0.05MB + Motor InnoDB
    wp_yoast_migrations: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB
    wp_yoast_primary_term: Datos: 0.08MB + Índice: 0.06MB + Motor InnoDB
    wp_yoast_seo_links: Datos: 0.06MB + Índice: 0.03MB + Motor InnoDB

    ### Post Type Counts ###

    acf-field: 146
    acf-field-group: 16
    attachment: 1282
    carts: 156
    cookielawinfo: 6
    custom_css: 1
    customize_changeset: 3
    nav_menu_item: 53
    page: 29
    post: 25
    product: 114
    product_variation: 195
    revision: 431
    shop_coupon: 220
    shop_order: 4027
    shop_order_refund: 6
    wc_order_email: 1
    wc_order_status: 9

    ### Security ###

    Secure connection (HTTPS): ✔
    Hide errors from visitors: ✔

    ### Active Plugins (41) ###

    Admin Columns Pro – Advanced Custom Fields (ACF): por AdminColumns.com – 2.6.4
    Admin Columns Pro – WooCommerce: por AdminColumns.com – 3.5.10
    Admin Columns Pro: por AdminColumns.com – 5.5.3
    Paris/64 Admin-Bar: por –
    Advanced Custom Fields: Nav Menu Field: por Faison Zutavern – 2.0.0
    Advanced Custom Fields PRO: por Delicious Brains – 5.9.9
    Aplazame: por Aplazame – 3.4.1
    GDPR Cookie Consent: por WebToffee – 2.0.5
    Facebook for WooCommerce: por Facebook – 2.6.1
    FG PrestaShop to WooCommerce Premium: por Frédéric GILLES – 4.18.2
    Collapse-O-Matic: por twinpictures
    baden03 – 1.7.13

    Nacex: por Nacex development – 2.6.5.1
    Relevanssi: por Mikko Saari – 4.13.2
    Simple Custom Post Order: por Colorlib – 2.5.6
    Smartsupp Live Chat: por Smartsupp – 3.6
    Abandoned Cart Reports For WooCommerce: por Small Fish Analytics – 2.6.2
    Weglot Translate: por El equipo de Weglot Translate – 3.3.6
    Añade Ajax al carrito para WooCommerce: por QuadLayers – 1.1.6
    Checkout Field Editor for WooCommerce: por ThemeHigh – 1.4.8
    Premmerce Permalink Manager for WooCommerce: por premmerce – 2.3.2
    Preview E-mails for WooCommerce: por Digamber Pradhan – 1.6.8
    Variation Swatches for WooCommerce: por Emran Ahmed – 1.1.17
    WooCommerce Admin: por WooCommerce – 2.6.0-beta.2
    Cart Reports for WooCommerce: por WooCommerce – 1.2.10
    DHL Express Commerce: por DHL Express – 3.0.0
    WooCommerce Stripe Gateway: por WooCommerce – 5.3.0
    WooCommerce Google Analytics Integration: por WooCommerce – 1.5.2
    WooCommerce Order Status Manager: por SkyVerge – 1.13.2
    WooCommerce PDF Invoices & Packing Slips: por Ewout Fernhout – 2.9.3
    WooCommerce Price Based on Country (Basic): por Oscar Gare – 2.0.23
    WooCommerce Waitlist: por Neil Pie – 2.2.6
    WooCommerce: por Automattic – 5.5.2
    Yoast SEO: por Equipo Yoast – 16.9
    WP 404 Auto Redirect to Similar Post: por hwk-fr – 1.0.3
    WP Activity Log for WooCommerce: por WP White Security – 1.2.2
    WP Mail Logging: por Wysija – 1.9.8
    WP Mail SMTP: por WPForms – 3.0.3
    WP Activity Log: por WP White Security – 4.3.2
    Connectif for WordPress: por Connectif – 1.3.0
    YITH Pre-Order for WooCommerce: por YITH – 1.3.5
    YITH WooCommerce Wishlist: por YITH – 3.0.25

    ### Inactive Plugins (2) ###

    Regenerate Thumbnails: por Alex Mills (Viper007Bond) – 3.1.5
    WooCommerce Email Test: por RaiserWeb – 1.2.2

    ### Must Use Plugins (1) ###

    Kinsta Must-use Plugins: por Kinsta Team – 2.3.6

    ### Settings ###

    API Enabled: ✔
    Force SSL: –
    Currency: EUR (€)
    Currency Position: right
    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)

    Connected to WooCommerce.com: –

    ### WC Pages ###

    Base de la tienda: #1 – /tienda/
    Carrito: #2 – /carrito/
    Finalizar compra: #3 – /finalizar-compra/
    Mi cuenta: #4 – /mi-cuenta/
    Términos y condiciones: #5607 – /politica-de-privacidad/

    ### Theme ###

    Name: PARIS 64 child
    Version: 1.0.0
    Author URL:
    Child Theme: ✔
    Parent Theme Name: Paris 64
    Parent Theme Version: 1.0
    Parent Theme Author URL: http://llos.co
    WooCommerce Support: ✔

    ### Templates ###

    Overrides: paris64/woocommerce/archive-product.php
    paris64/woocommerce/cart/cart-shipping.php
    paris64/woocommerce/cart/cart-totals.php
    paris64/woocommerce/cart/cart.php
    paris64/woocommerce/cart/mini-cart.php
    paris64/woocommerce/checkout/form-checkout.php
    paris64/woocommerce/checkout/form-shipping.php
    paris64/woocommerce/checkout/review-order.php
    paris64/woocommerce/checkout/thankyou.php
    paris64/woocommerce/content-product.php
    paris64/woocommerce/content-single-product.php
    paris64-child/woocommerce/emails/customer-completed-order.php
    paris64-child/woocommerce/emails/customer-new-account.php
    paris64-child/woocommerce/emails/customer-processing-order.php
    paris64-child/woocommerce/emails/email-header.php
    paris64-child/woocommerce/emails/email-order-details.php
    paris64-child/woocommerce/emails/email-order-items.php
    La version 2.3.0 de paris64-child/woocommerce/emails/email-styles.php está obsoleta. La versión del núcleo es la 4.0.0
    paris64/woocommerce/global/quantity-input.php
    paris64/woocommerce/global/wrapper-end.php
    paris64/woocommerce/global/wrapper-start.php
    paris64/woocommerce/loop/loop-end.php
    paris64/woocommerce/loop/loop-start.php
    paris64/woocommerce/loop/price.php
    paris64/woocommerce/myaccount/form-edit-account.php
    paris64/woocommerce/myaccount/form-edit-address.php
    paris64/woocommerce/myaccount/my-address.php
    paris64/woocommerce/myaccount/orders.php
    paris64/woocommerce/myaccount/view-order.php
    paris64/woocommerce/order/order-again.php
    paris64/woocommerce/order/order-details-customer.php
    paris64/woocommerce/order/order-details.php
    paris64/woocommerce/product-searchform.php
    paris64/woocommerce/single-product/add-to-cart/simple.php
    paris64/woocommerce/single-product/add-to-cart/variable.php
    paris64/woocommerce/single-product/add-to-cart/variation.php
    paris64/woocommerce/single-product/product-image.php
    paris64/woocommerce/single-product/product-thumbnails.php
    paris64/woocommerce/single-product/related.php
    paris64/woocommerce/single-product/up-sells.php

    Outdated Templates: ❌

    Aprende cómo actualizar

    ### Geolocation debug info ###

    Default customer location: geolocation
    MaxMind GeoIP database: ✔
    MaxMind GeoIP license: ✔
    MM_COUNTRY_CODE: ❌
    GEOIP_COUNTRY_CODE: ❌
    HTTP_CF_IPCOUNTRY: ES
    HTTP_X_COUNTRY_CODE: ❌
    HTTP_X_REAL_IP: 188.76.94.144
    HTTP_X_FORWARDED_FOR: 188.76.94.144
    REMOTE_ADDR: 188.76.94.144
    Real external IP: 2a02:2e02:33b0:1200:bd40:e94c:4646:c2b8
    WCPBC_USE_REMOTE_ADDR: –
    Geolocation Test: ✔

    ### PBC Settings ###

    Version: 2.0.23
    Base location: ES:Z
    Base currency: EUR
    Price Based On: billing
    Shipping: –
    Test mode: –
    Test country: –
    Load products price in background: –
    Prices entered with tax: ✔
    Calculate tax based on: billing
    Display prices in the shop: incl

    ### Zone Pricing £ POUND ###

    zone_id: pounds
    name: £ POUND
    countries: IE | GB
    currency: GBP
    exchange_rate: 0.86
    auto_exchange_rate: no
    disable_tax_adjustment: no

    ### Zone Pricing $ DÓLAR ###

    zone_id: dollar
    name: $ DÓLAR
    countries: US
    currency: USD
    exchange_rate: 1.19
    auto_exchange_rate: no
    disable_tax_adjustment: no

    ### Action Scheduler ###

    Completo: 2.635
    Oldest: 2021-07-19 00:24:11 +0200
    Newest: 2021-08-16 10:38:18 +0200

    Pendiente: 1
    Oldest: 2021-08-16 10:47:40 +0200
    Newest: 2021-08-16 10:47:40 +0200

    ### Status report information ###

    Generated at: 2021-08-16 10:38:32 +02:00
    `

    Plugin Support MayKato woo-hc

    (@maykato)

    Hi @juanparis64

    If someone doesn’t finish the checkout, cancels the payment or go’s back in the paymet process (the last step of the check out) the coupon is consumed.

    This is not expected behavior. By default, coupon isn’t considered as “used” until an order isn’t placed/summited with the coupon code.

    Since your store is not working as expected, I recommend running a full conflict test to check if the issue is coming from a plugin/theme conflict. You can find a detailed explanation on how to do a conflict test here: https://docs.woocommerce.com/document/how-to-test-for-conflicts/

    Plugin Support MayKato woo-hc

    (@maykato)

    Hi @juanparis64

    We’ve not heard back from you in a while, so I’m marking this thread as resolved. Hopefully, you were able to find a solution to your problem! If you have further questions, please feel free to open a new topic.

    Thread Starter Juan Solá

    (@juanparis64)

    Hello,

    we’ve done this https://docs.woocommerce.com/document/how-to-test-for-conflicts/ and everyting is ok, what else can we do?

    Plugin Support Gabriel F. a11n

    (@gabrielfuentes)

    Hi there 👋

    When you say that everything is okay, do you mean that the issue got fixed after following those steps?

    Let us know! 🙂

    Thread Starter Juan Solá

    (@juanparis64)

    Hello,

    No, I meant that the test said that everything is ok, but it isn’t. Is there anything else that we can do to see where issue is?

    Thank youu.

    Plugin Support Mirko P. woo-hc

    (@rainfallnixfig)

    Hi @juanparis64,

    I meant that the test said that everything is ok

    I’m not sure I understand this. What exactly do you mean when you say “the test said that everything is ok”. Can you please elaborate a bit more?

    Just to clarify, does the same behavior (coupon redeemed) happen when you only have WooCommerce, the default Storefront theme, and no other plugins active?

    If you’re still experiencing the issue could you please share your Coupon settings and any other useful screenshot in order to understand where the issue is located and provide you with guidance?

    I recommend https://snipboard.io for easily sharing screenshots – please follow the instructions on that page, then paste the URL in this chat. It works with Chrome, Firefox, Safari, and Edge browsers.

    Thanks.

    Thread Starter Juan Solá

    (@juanparis64)

    Hello Mirko,

    We’ve seem to have resolved the problem, in WooCommerce > settings > products > inventory > Keep in inventory (in minutes) We’ve reduced this number from 60 to 5 and now it seems to work correcty when the 5 mins have passed.

    Does this make any sence? I’m a little bit lost

    https://imgur.com/BD0KUg2

    Thank you very mucho

    Plugin Support Mirko P. woo-hc

    (@rainfallnixfig)

    Hi @juanparis64,

    Glad to hear that using the Hold stock feature you managed to resolve this.

    Just to clarify, when a payment fails, an order in WooCommerce is still created. If the order is set to “Pending Payment” status then the user can still pay for the order from the orders section of their account.

    Because of that, the original order is taking up one use of that coupon. It will have to be canceled before the coupon can be used again. This is the expected behavior.

    When you set Hold stock (minutes) to 5 minutes that order will be canceled after 5 minutes if the user doesn’t pay for it and the coupon will be restored and available for use again.

    I hope this clarifies. Have a good day!

    Thread Starter Juan Solá

    (@juanparis64)

    Hello everyone,

    I just wanted to thank you all for your attention and your fast support, the problem is resolved with this solution.

    Thank you for your time

    Plugin Support Mirko P. woo-hc

    (@rainfallnixfig)

    You’re most welcome! Glad to hear that this was resolved.

    If you have more questions feel free to open a new thread.

    Have a good day!

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Woocommerce coupon’ is closed to new replies.