is_checkout() is returning true on the product page
-
Hi,
I have seen that in my product page is returning the woocommerce tag
is_checkout()
trueSo every optimize plugin that i use is skeeping this pages because they think is a checkout page.
This slows down my website, do you know whats going on and what to do?
The page I need help with: [log in to see the link]
-
Hello,
This is certainly odd, I can see different payment options on the site, not sure if any is affecting the normal behavior.
To clarify, please share a copy of your site’s System Status Report: You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”.?
WordPress Environment WordPress address (URL): https://coisasespertas.com.br Site address (URL): https://coisasespertas.com.br WC Version: 7.3.0 REST API Version: ?</img> 7.3.0 WC Blocks Version: ?</img> 9.1.5 Action Scheduler Version: ?</img> 3.4.0 Log Directory Writable: ?</img> WP Version: ?</img> 5.9.5 - Há uma nova vers?o do WordPress disponível (6.1.1) WP Multisite: – WP Memory Limit: 512 MB WP Debug Mode: – WP Cron: ?</img> Language: pt_BR External object cache: – Server Environment Server Info: Apache PHP Version: 8.1.14 PHP Post Max Size: 516 MB PHP Time Limit: 60 PHP Max Input Vars: 1000 cURL Version: 7.87.0 OpenSSL/1.1.1s SUHOSIN Installed: – MySQL Version: 5.7.23-23 Max Upload Size: 512 MB Default Timezone is UTC: ?</img> fsockopen/cURL: ?</img> SoapClient: ?</img> DOMDocument: ?</img> GZip: ?</img> Multibyte String: ?</img> Remote Post: ?</img> Remote Get: ?</img> Database WC Database Version: 7.3.0 WC Database Prefix: wp_ Tamanho total do banco de dados: 36.19MB Tamanho dos dados do banco de dados: 25.96MB Tamanho do índice do banco de dado: 10.23MB wp_woocommerce_sessions: Dados: 0.20MB + índex: 0.02MB + mecanismo InnoDB wp_woocommerce_api_keys: Dados: 0.02MB + índex: 0.03MB + mecanismo InnoDB wp_woocommerce_attribute_taxonomies: Dados: 0.02MB + índex: 0.02MB + mecanismo InnoDB wp_woocommerce_downloadable_product_permissions: Dados: 0.02MB + índex: 0.06MB + mecanismo InnoDB wp_woocommerce_order_items: Dados: 0.08MB + índex: 0.02MB + mecanismo InnoDB wp_woocommerce_order_itemmeta: Dados: 0.39MB + índex: 0.34MB + mecanismo InnoDB wp_woocommerce_tax_rates: Dados: 0.02MB + índex: 0.06MB + mecanismo InnoDB wp_woocommerce_tax_rate_locations: Dados: 0.02MB + índex: 0.03MB + mecanismo InnoDB wp_woocommerce_shipping_zones: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB wp_woocommerce_shipping_zone_locations: Dados: 0.02MB + índex: 0.03MB + mecanismo InnoDB wp_woocommerce_shipping_zone_methods: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB wp_woocommerce_payment_tokens: Dados: 0.02MB + índex: 0.02MB + mecanismo InnoDB wp_woocommerce_payment_tokenmeta: Dados: 0.02MB + índex: 0.03MB + mecanismo InnoDB wp_woocommerce_log: Dados: 0.02MB + índex: 0.02MB + mecanismo InnoDB wp_actionscheduler_actions: Dados: 1.52MB + índex: 1.36MB + mecanismo InnoDB wp_actionscheduler_claims: Dados: 0.02MB + índex: 0.02MB + mecanismo InnoDB wp_actionscheduler_groups: Dados: 0.02MB + índex: 0.02MB + mecanismo InnoDB wp_actionscheduler_logs: Dados: 1.52MB + índex: 1.77MB + mecanismo InnoDB wp_commentmeta: Dados: 0.02MB + índex: 0.03MB + mecanismo InnoDB wp_comments: Dados: 0.27MB + índex: 0.30MB + mecanismo InnoDB wp_cwmp_cart_abandoned_msg: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB wp_cwmp_events_pixel_facebook: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB wp_cwmp_newsletter_campanha: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB wp_cwmp_newsletter_remove: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB wp_cwmp_newsletter_send: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB wp_cwmp_orders_buy: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB wp_cwmp_order_bump: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB wp_cwmp_pending_payment_msg: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB wp_cwmp_pending_payment_status: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB wp_cwmp_send_thank: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB wp_cwmp_template_emails: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB wp_cwmp_template_msgs: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB wp_e_events: Dados: 0.02MB + índex: 0.02MB + mecanismo InnoDB wp_e_submissions: Dados: 0.09MB + índex: 0.27MB + mecanismo InnoDB wp_e_submissions_actions_log: Dados: 0.05MB + índex: 0.11MB + mecanismo InnoDB wp_e_submissions_values: Dados: 0.02MB + índex: 0.03MB + mecanismo InnoDB wp_links: Dados: 0.02MB + índex: 0.02MB + mecanismo InnoDB wp_litespeed_img_optming: Dados: 0.02MB + índex: 0.05MB + mecanismo InnoDB wp_ms_snippets: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB wp_options: Dados: 5.48MB + índex: 0.30MB + mecanismo InnoDB wp_postmeta: Dados: 10.52MB + índex: 3.03MB + mecanismo InnoDB wp_posts: Dados: 2.52MB + índex: 0.20MB + mecanismo InnoDB wp_qcld_conversion_tracker: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB wp_snippets: Dados: 0.02MB + índex: 0.03MB + mecanismo InnoDB wp_termmeta: Dados: 0.02MB + índex: 0.03MB + mecanismo InnoDB wp_terms: Dados: 0.02MB + índex: 0.03MB + mecanismo InnoDB wp_term_relationships: Dados: 0.02MB + índex: 0.02MB + mecanismo InnoDB wp_term_taxonomy: Dados: 0.02MB + índex: 0.03MB + mecanismo InnoDB wp_tm_taskmeta: Dados: 0.02MB + índex: 0.03MB + mecanismo InnoDB wp_tm_tasks: Dados: 0.02MB + índex: 0.02MB + mecanismo InnoDB wp_usermeta: Dados: 1.52MB + índex: 0.86MB + mecanismo InnoDB wp_users: Dados: 0.11MB + índex: 0.08MB + mecanismo InnoDB wp_wc_admin_notes: Dados: 0.08MB + índex: 0.00MB + mecanismo InnoDB wp_wc_admin_note_actions: Dados: 0.05MB + índex: 0.02MB + mecanismo InnoDB wp_wc_category_lookup: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB wp_wc_customer_lookup: Dados: 0.05MB + índex: 0.03MB + mecanismo InnoDB wp_wc_download_log: Dados: 0.02MB + índex: 0.03MB + mecanismo InnoDB wp_wc_order_coupon_lookup: Dados: 0.02MB + índex: 0.03MB + mecanismo InnoDB wp_wc_order_product_lookup: Dados: 0.06MB + índex: 0.06MB + mecanismo InnoDB wp_wc_order_stats: Dados: 0.05MB + índex: 0.05MB + mecanismo InnoDB wp_wc_order_tax_lookup: Dados: 0.02MB + índex: 0.03MB + mecanismo InnoDB wp_wc_product_attributes_lookup: Dados: 0.02MB + índex: 0.02MB + mecanismo InnoDB wp_wc_product_download_directories: Dados: 0.02MB + índex: 0.02MB + mecanismo InnoDB wp_wc_product_meta_lookup: Dados: 0.02MB + índex: 0.09MB + mecanismo InnoDB wp_wc_rate_limits: Dados: 0.02MB + índex: 0.02MB + mecanismo InnoDB wp_wc_reserved_stock: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB wp_wc_tax_rate_classes: Dados: 0.02MB + índex: 0.02MB + mecanismo InnoDB wp_wc_webhooks: Dados: 0.02MB + índex: 0.02MB + mecanismo InnoDB wp_wfacp_stats: Dados: 0.02MB + índex: 0.06MB + mecanismo InnoDB wp_wfob_stats: Dados: 0.02MB + índex: 0.06MB + mecanismo InnoDB wp_woobot_subscription: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB wp_woowbot_index: Dados: 0.06MB + índex: 0.00MB + mecanismo InnoDB wp_wowbot_Conversation: Dados: 0.09MB + índex: 0.00MB + mecanismo InnoDB wp_wowbot_user: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB wp_wpr_rucss_resources: Dados: 0.02MB + índex: 0.06MB + mecanismo InnoDB wp_wpr_rucss_used_css: Dados: 0.02MB + índex: 0.05MB + mecanismo InnoDB wp_yith_ywrac_email_log: Dados: 0.02MB + índex: 0.00MB + mecanismo InnoDB wp_yoast_prominent_words: Dados: 0.11MB + índex: 0.22MB + mecanismo InnoDB Post Type Counts astra-advanced-hook: 1 attachment: 313 cookielawinfo: 6 customize_changeset: 3 custom_css: 5 elementor-hf: 1 elementor_library: 18 elementor_snippet: 8 encyclopedia: 2 et_pb_layout: 21 layout: 2 mc4wp-form: 1 nav_menu_item: 29 oembed_cache: 6 page: 23 popup_theme: 7 post: 3 pp_video_block: 2 product: 24 product_variation: 35 revision: 8 shop_coupon: 52 shop_order: 198 wcct_countdown: 3 wfacp_checkout: 3 wfob_bump: 2 wmpc-trash: 68 wof_lite_wheel: 1 wpdiscuz_form: 1 wp_global_styles: 4 ywdpd_discount: 3 ywrac_cart: 39 ywrac_email: 2 Security Secure connection (HTTPS): ?</img> Hide errors from visitors: ?</img> Active Plugins (25) All 404 Redirect to Homepage: por wp-buy – 4.1 Astra Pro: por Brainstorm Force – 4.0.1 Buy Now Button for WooCommerce: por wpismylife – 1.0.0 Code Snippets: por Code Snippets Pro – 3.2.2 Joinchat: por Creame – 4.5.16 Elementor Pro: por Elementor.com – 3.6.4 Elementor: por Elementor.com – 3.10.2 Facebook para WooCommerce: por Facebook – 3.0.9 Site Kit by Google: por Google – 1.93.0 Google Tag Manager for WooCommerce FREE: por Handcraft Byte – 1.10.6 JetBlocks For Elementor: por Crocoblock – 1.3.5 Judge.me Product Reviews for WooCommerce: por Judge.me – 1.3.21 Melhor Envio: por Melhor Envio – 2.11.31 MOD - Atualiza??es Automáticas: por Linux Solutions – 1.1.0 Perfmatters: por forgemedia – 2.0.5 Product Video Gallery for Woocommerce: por NikHiL Gadhiya – 1.4.1.1 Tidio Chat: por Tidio Ltd. – 6.0.2 WC Simulador de parcelas e descontos: por Fernando Acosta – 1.6.13 Converter for Media: por matt plugins – 5.7.1 Add to Cart Text Changer by Code Astrology: por Saiful Islam – 1.9 Variation Swatches for WooCommerce: por Emran Ahmed – 2.0.18 Brazilian Market on WooCommerce: por Claudio Sanches – 3.7.2 WooCommerce: por Automattic – 7.3.0 WP Rocket: por WP Media – 3.10.9 Yampi Checkout: por Yampi – 1.0.4 Inactive Plugins (0) Dropin Plugins (1) advanced-cache.php: advanced-cache.php Settings API Enabled: ?</img> Force SSL: – Currency: BRL (R$) 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) Connected to WooCommerce.com: – Enforce Approved Product Download Directories: – Order datastore: WC_Order_Data_Store_CPT WC Pages Base da loja: #187 - /loja/ Carrinho: ?</img> Página n?o contém o shortcode [woocommerce_cart] ou o bloco woocommerce/cart. Finaliza??o de compra: #189 - /checkout/ Minha conta: #190 - /minha-conta/ Termos e condi??es: #1355 - /terms-of-use/ Theme Name: tema child Version: 1.0.0 Author URL: https://wpastra.com/about/ Child Theme: ?</img> Parent Theme Name: Astra Parent Theme Version: 4.0.2 Parent Theme Author URL: https://wpastra.com/about/?utm_source=theme_preview&utm_medium=author_link&utm_campaign=astra_theme WooCommerce Support: ?</img> Templates Overrides: – Admin Enabled Features: activity-panels analytics coupons customer-effort-score-tracks experimental-products-task experimental-import-products-task experimental-fashion-sample-products shipping-smart-defaults shipping-setting-tour homescreen marketing multichannel-marketing mobile-app-banner navigation onboarding onboarding-tasks remote-inbox-notifications remote-free-extensions payment-gateway-suggestions shipping-label-banner subscriptions store-alerts transient-notices woo-mobile-welcome wc-pay-promotion wc-pay-welcome-page Disabled Features: minified-js new-product-management-experience settings Daily Cron: ?</img> Next scheduled: 2023-02-07 21:04:29 -03:00 Options: ?</img> Notes: 117 Onboarding: completed Action Scheduler Concluído: 3.956 Oldest: 2023-01-07 20:38:18 +0000 Newest: 2023-02-07 20:29:49 +0000 Malsucedido: 17 Oldest: 2022-12-21 18:30:45 +0000 Newest: 2022-12-21 18:30:45 +0000 Pendente: 4 Oldest: 2023-02-07 20:41:31 +0000 Newest: 2023-02-07 23:15:27 +0000 Status report information Generated at: 2023-02-07 17:30:29 -03:00 `
Have you found something?
Hi there @coisasespertas
Thank you for reaching back, with further information on this:
is_checkout() is returning true on the product page
I am inspecting the site’s System Status Report (SSR), and with its current configuration many things might be affecting this.
In order to further isolate the possible causes, could you please go ahead with temporarily switching to the Storefront theme, while also:
- Deactivating all other plugins, except WooCommerce
- Making sure all server-side, CDN, and browser cache are disabled
Having the configuration altered in this way, kindly let us know if the issue persists, please.
Looking forward to your response, thank you. ??
Hi there, i figure it out !
It was a “Buy Now Button for WooCommerce” plugin, i think in the new version this error appears. So i removed this plugin and found another one and solves the problem.
Thanks!
I’m glad you were able to find a solution to your inquiry here and thanks for sharing it with the community too! ??
I will be marking this thread as resolved. Should you have further inquiries, kindly create a new topic here.
Meanwhile, if you have a few minutes, we’d love it if you could leave us a review:
https://www.ads-software.com/support/plugin/woocommerce/reviews/
Thanks!
- The topic ‘is_checkout() is returning true on the product page’ is closed to new replies.