Apostrophe in a coupon title doesn’t work
-
Hi,
I created a coupon with the following title “5% à partir de 100€ d’achat”. As you can see, there’s an apostrophe in my title. And this apostrophe is turned into an ” \’ ” after I save my coupon.
You can test on your environment. Just create a coupon with an apostrophe in the title, save it, go back to the coupon list, and you’ll see there’s a backlash before the apostrophe that wasn’t there before.
It makes the coupon not to be working good when entered in the coupon field, because the coupon is saved as “5% à partir de 100€ d\’achat”.
BR,
Clara.
-
Can anyone answer me please? That’s quite important for me…
It seems to be related to: https://github.com/woocommerce/woocommerce/issues/23655
But I have the last version of WooCommerce installed.
-
This reply was modified 1 year, 8 months ago by
arbremojo.
Hi @arbremojo
I created a coupon with the following title “5% à partir de 100€ d’achat”. As you can see, there’s an apostrophe in my title. And this apostrophe is turned into an ” \’ ” after I save my coupon.
You can test on your environment. Just create a coupon with an apostrophe in the title, save it, go back to the coupon list, and you’ll see there’s a backlash before the apostrophe that wasn’t there before.
It makes the coupon not to be working good when entered in the coupon field, because the coupon is saved as “5% à partir de 100€ d\’achat”.
From what I understand, you’ve run into an issue with creating a coupon title that includes an apostrophe.
I’ve tried to replicate the problem you described on my own site, using the latest versions of WordPress, WooCommerce, and our free Storefront theme, with no other software running. However, I didn’t encounter the same issue.
Image Link: https://snipboard.io/uHnxEZ.jpg
From what you have described, it could be code from another plugin or theme which has caused a possible conflict and affected the functionality of WooCommerce.
To check if this is the case, I recommend conducting a conflict test on your site. You can do this by disabling all other plugins except WooCommerce and switching to a theme like Storefront. This will help us pinpoint any installed software that might be causing the issue. A free plugin called Health Check and Troubleshooting can be used for this testing.
When in Troubleshooting mode all plugins will be deactivated and only the admin of the site carrying out the troubleshooting would see those changes. Any customers visiting the site would see no changes at all.
Once you’ve disabled all other plugins and switched themes, if the issue is resolved, you can reactivate your theme and plugins one by one. Test after each reactivation until the issue reappears, which will help you identify the problematic software.
Here’s a helpful guide on how to test for conflicts: ?? How to Test for Plugin and Theme Conflicts
In case none of the above steps work, could you send us a copy of your site’s System Status? This will give us a clearer picture of your site’s setup and help us pinpoint the problem. You can find it via
WooCommerce > Status
. SelectGet system report
and thenCopy for support
.Additionally, could you also provide us with the fatal error logs (if any) under
WooCommerce > Status > Logs
.Once you’ve got that, you can paste them right here in your reply, or use https://pastebin.com/ to paste it there and share it with us.
I appreciate your patience and cooperation in this. I’m eagerly awaiting your response so we can get this sorted out for you.
Hi,
I’m surprised to see that you were unable to replicate the issue.
I created a brand new website on a local environment. As you can see on this screen record, Store Front is enabled, only WooCommerce is enabled, and yet I’m able to replicate the issue.
Here is the system status of the local environment:
` WordPress Environment WordPress address (URL): https://wcvip.local<br>Site address (URL): https://wcvip.local<br>WC Version: 7.9.0<br>REST API Version: ? 7.9.0<br>WC Blocks Version: ? 10.4.6<br>Action Scheduler Version: ? 3.6.1<br>Log Directory Writable: ?<br>WP Version: 6.2.2<br>WP Multisite: –<br>WP Memory Limit: 256 MB<br>WP Debug Mode: –<br>WP Cron: ?<br>Language: en_US<br>External object cache: – Server Environment Server Info: nginx/1.16.0<br>PHP Version: 8.0.0<br>PHP Post Max Size: 1,000 MB<br>PHP Time Limit: 1200<br>PHP Max Input Vars: 4000<br>cURL Version: 7.87.0<br>(SecureTransport) LibreSSL/3.3.6 SUHOSIN Installed: –<br>MySQL Version: 8.0.16<br>Max Upload Size: 300 MB<br>Default Timezone is UTC: ?<br>fsockopen/cURL: ?<br>SoapClient: ?<br>DOMDocument: ?<br>GZip: ?<br>Multibyte String: ?<br>Remote Post: ?<br>Remote Get: ? Database WC Database Version: 7.9.0<br>WC Database Prefix: wp_<br>Total Database Size: 4.97MB<br>Database Data Size: 3.28MB<br>Database Index Size: 1.69MB<br>wp_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB<br>wp_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB<br>wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_actionscheduler_actions: Data: 0.02MB + Index: 0.11MB + Engine InnoDB<br>wp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_actionscheduler_logs: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB<br>wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_options: Data: 2.03MB + Index: 0.06MB + Engine InnoDB<br>wp_postmeta: Data: 0.20MB + Index: 0.25MB + Engine InnoDB<br>wp_posts: Data: 0.08MB + Index: 0.06MB + Engine InnoDB<br>wp_supporthost_custom_table: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_usermeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>wp_wc_admin_note_actions: Data: 0.05MB + Index: 0.02MB + Engine InnoDB<br>wp_wc_admin_notes: Data: 0.06MB + Index: 0.00MB + Engine InnoDB<br>wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB<br>wp_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB<br>wp_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_wc_vip: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB Post Type Counts acf-field: 12<br>acf-field-group: 5<br>attachment: 1<br>nav_menu_item: 6<br>page: 7<br>post: 2<br>product: 6<br>revision: 184<br>shop_coupon: 1<br>shop_order: 1<br>viprole: 4 Security Secure connection (HTTPS): ?<br>Your store is not using HTTPS. Learn more about HTTPS and SSL Certificates.<br>Hide errors from visitors: ? Active Plugins (1) WooCommerce: by Automattic – 7.9.0 Inactive Plugins (4) Advanced Custom Fields: by WP Engine – 6.1.7<br>Salient Core: by ThemeNectar – 1.9.9<br>Salient WPBakery Page Builder: by Michael M - WPBakery.com | Modified by ThemeNectar – 6.9.2<br>Woocommerce VIP: by ScreenUp – 1.0 Settings API Enabled: –<br>Force SSL: –<br>Currency: USD ($)<br>Currency Position: left<br>Thousand Separator: ,<br>Decimal Separator: .<br>Number of Decimals: 2<br>Taxonomies: Product Types: external (external)<br>grouped (grouped)<br>simple (simple)<br>variable (variable) Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)<br>exclude-from-search (exclude-from-search)<br>featured (featured)<br>outofstock (outofstock)<br>rated-1 (rated-1)<br>rated-2 (rated-2)<br>rated-3 (rated-3)<br>rated-4 (rated-4)<br>rated-5 (rated-5) Connected to WooCommerce.com: –<br>Enforce Approved Product Download Directories: ?<br>HPOS feature screen enabled: –<br>HPOS feature enabled: –<br>Order datastore: WC_Order_Data_Store_CPT<br>HPOS data sync enabled: – WC Pages Shop base: #6 - /shop/<br>Cart: #7 - /cart/<br>Checkout: #8 - /checkout/<br>My account: #9 - /my-account/<br>Terms and conditions: ? Page not set Theme Name: Storefront<br>Version: 4.4.1<br>Author URL: https://woocommerce.com/<br>Child Theme: ? – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme<br>WooCommerce Support: ? Templates Overrides: – Admin Enabled Features: activity-panels<br>analytics<br>product-block-editor<br>coupons<br>core-profiler<br>customer-effort-score-tracks<br>import-products-task<br>experimental-fashion-sample-products<br>shipping-smart-defaults<br>shipping-setting-tour<br>homescreen<br>marketing<br>mobile-app-banner<br>navigation<br>onboarding<br>onboarding-tasks<br>remote-inbox-notifications<br>remote-free-extensions<br>payment-gateway-suggestions<br>shipping-label-banner<br>subscriptions<br>store-alerts<br>transient-notices<br>woo-mobile-welcome<br>wc-pay-promotion<br>wc-pay-welcome-page Disabled Features: minified-js<br>new-product-management-experience<br>product-variation-management<br>settings<br>async-product-editor-category-field Daily Cron: ? Next scheduled: 2023-07-24 10:13:28 +00:00<br>Options: ?<br>Notes: 95<br>Onboarding: skipped Action Scheduler Complete: 7<br>Oldest: 2023-07-07 07:24:13 +0000<br>Newest: 2023-07-24 09:00:09 +0000 Failed: 4<br>Oldest: 2023-02-23 15:31:26 +0000<br>Newest: 2023-07-07 13:30:49 +0000 Pending: 1<br>Oldest: 2023-07-25 08:21:13 +0000<br>Newest: 2023-07-25 08:21:13 +0000 Status report information Generated at: 2023-07-24 09:23:29 +00:00<br>`
Hello there!
It seems we forgot to reply to you, and thanks so much for the screencast, by the way.
I’ve followed the steps you showed on the screencast and cannot replicate the same behavior. So, I would like to confirm if this issue is still happening with the latest WooCommerce Core and WordPress versions installed. Here you have a screenshot from one of the tests I made:
I’m looking forward to hearing from you.
Best,
Hi,
I created a brand new local environment where I installed the latest version of WordPress and WooCommerce, nothing more. I replicate the exact same thing as I showed you previously in my screen record, and the exact same result happened. I don’t understand why you can’t replicate the issue, even though I have the strict minimum installed on my environment.
BR,
Clara.
Hi @arbremojo
I understand that you’ve set up a new local environment with the latest versions of WordPress and WooCommerce, and you’re experiencing the same issue as before, despite having a minimal installation. I want to assure you that we take your concerns seriously and our team is committed to helping you find a resolution.
However, I tried to replicate the issue before reporting to our developer, but unfortunately everything works like a charm on my end. Here is the steps I followed:
- First, I created a coupon using
5% à partir de 100€ d’achat
andd’achat
. - I went to my checkout page and applied the coupon.
- 5% has been deducted.
You can see how it works in the video I recorded here: https://cln.sh/74c83yb3
Can you please give it another try with the latest versions of WordPress, WooCommerce, and the Storefront theme? This will assist us in better understanding and diagnosing the issue.
Let us know how that goes. Looking forward to helping you.
Thanks!
Hi,
I don’t even know what to say, because I keep having the issue. ??
Here is a screen record. Last WP version, last WC version, last StoreFront version.
Can you create a local environment just like me with Local and check again?
BR,
Clara.
Hello @arbremojo,
I landed here again and noticed my previous reply to this thread wasn’t posted for some reason.
I was able to replicate the issue and opened a report about this last month: https://github.com/woocommerce/woocommerce/issues/39481We don’t have an exact timeline for when the team will investigate or resolve the issue, as bug reports are prioritized based on a few criteria. I suggest you subscribe to the report to receive updates. :?)
My apologies for any confusion caused.
Cheers!
I’m so glad to know that you were able to replicate the issue!
I subscribed to receive updates.
Hope it’ll get fixed soon ??
-
This reply was modified 1 year, 8 months ago by
- The topic ‘Apostrophe in a coupon title doesn’t work’ is closed to new replies.