Shop Page Showing Incorrect Product Types
-
Our store’s shop page is showing incorrect product types for most of the shop items, where, variable products are being shown as simple products. We are using the default WooCommerce product loop,
woocommerce_product_loop_start()
andwoocommerce_product_loop_end()
, to go through the shop items. I tried debugging this just to see what happens using this block codeif ($product->is_type('simple')) { echo 'Simple product'; } else if ($product->is_type('variable')) { echo 'Variable product'; }
and I found that most variable products are marked as simple as you can see in the screenshot
however, when going to the actual product page, it shows as a variable product
I tried clearing the cache on both the website and the server, but that did not fix the problem.
Here is our system report
### WordPress Environment ### WC Version: 6.5.1 REST API Version: ✔ 6.5.1 WC Blocks Version: ✔ 7.4.3 Action Scheduler Version: ✔ 3.4.0 Log Directory Writable: ✔ WP Version: 6.0 WP Multisite: – WP Memory Limit: 256 MB WP Debug Mode: – WP Cron: – Language: en_US External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 7.4.28 PHP Post Max Size: 100 MB PHP Time Limit: 30000 PHP Max Input Vars: 100000 cURL Version: 7.81.0 OpenSSL/1.1.1n SUHOSIN Installed: – MySQL Version: 5.6.41-84.1 Max Upload Size: 64 MB Default Timezone is UTC: ✔ fsockopen/cURL: ✔ SoapClient: ✔ DOMDocument: ✔ GZip: ✔ Multibyte String: ✔ Remote Post: ✔ Remote Get: ✔ ### Database ### WC Database Version: 6.5.1 WC Database Prefix: wp_ Total Database Size: 95.22MB Database Data Size: 78.29MB Database Index Size: 16.93MB wp_woocommerce_sessions: Data: 0.02MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_api_keys: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_attribute_taxonomies: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_downloadable_product_permissions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_order_items: Data: 0.21MB + Index: 0.10MB + Engine MyISAM wp_woocommerce_order_itemmeta: Data: 21.46MB + Index: 0.87MB + Engine MyISAM wp_woocommerce_tax_rates: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_woocommerce_tax_rate_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_shipping_zones: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_shipping_zone_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_shipping_zone_methods: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_payment_tokens: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_payment_tokenmeta: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_woocommerce_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_actionscheduler_actions: Data: 0.09MB + Index: 0.05MB + Engine MyISAM wp_actionscheduler_claims: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_actionscheduler_groups: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_actionscheduler_logs: Data: 0.07MB + Index: 0.05MB + Engine MyISAM wp_aioseo_cache: Data: 0.14MB + Index: 0.03MB + Engine InnoDB wp_aioseo_notifications: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_aioseo_posts: Data: 0.28MB + Index: 0.01MB + Engine MyISAM wp_barcode_v3_dimension: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_barcode_v3_fields_matching: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_barcode_v3_label_sheets: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_barcode_v3_paper_formats: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_barcode_v3_profiles: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_barcode_v3_templates: Data: 0.05MB + Index: 0.00MB + Engine InnoDB wp_barcode_v3_template_to_user: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_barcode_v3_user_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_check_email_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_commentmeta: Data: 0.02MB + Index: 0.02MB + Engine MyISAM wp_comments: Data: 0.41MB + Index: 0.14MB + Engine MyISAM wp_duplicator_pro_entities: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_duplicator_pro_packages: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_fpd_designs: Data: 0.01MB + Index: 0.00MB + Engine MyISAM wp_fpd_products: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_fpd_views: Data: 0.01MB + Index: 0.00MB + Engine MyISAM wp_frmt_form_entry: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_frmt_form_entry_meta: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_frmt_form_views: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_fsmpt_email_logs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_gla_budget_recommendations: Data: 0.22MB + Index: 0.14MB + Engine InnoDB wp_gla_merchant_issues: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_gla_shipping_rates: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_gla_shipping_times: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_icl_content_status: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_icl_core_status: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_icl_flags: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_icl_languages: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_icl_languages_translations: Data: 0.10MB + Index: 0.11MB + Engine MyISAM wp_icl_locale_map: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_icl_message_status: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_icl_mo_files_domains: Data: 0.02MB + Index: 0.01MB + Engine MyISAM wp_icl_node: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_icl_reminders: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_icl_strings: Data: 2.83MB + Index: 2.48MB + Engine MyISAM wp_icl_string_batches: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_icl_string_packages: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_icl_string_pages: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_icl_string_positions: Data: 0.10MB + Index: 0.03MB + Engine MyISAM wp_icl_string_status: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_icl_string_translations: Data: 0.02MB + Index: 0.02MB + Engine MyISAM wp_icl_string_urls: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_icl_translate: Data: 0.10MB + Index: 0.02MB + Engine MyISAM wp_icl_translate_job: Data: 0.01MB + Index: 0.01MB + Engine MyISAM wp_icl_translations: Data: 0.13MB + Index: 0.20MB + Engine MyISAM wp_icl_translation_batches: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_icl_translation_downloads: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_icl_translation_status: Data: 1.10MB + Index: 0.03MB + Engine MyISAM wp_links: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_mo_openid_linked_user: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_options: Data: 12.63MB + Index: 0.13MB + Engine MyISAM wp_popup_banners: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_postmeta: Data: 7.21MB + Index: 2.91MB + Engine MyISAM wp_posts: Data: 0.89MB + Index: 0.29MB + Engine MyISAM wp_social_users: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_termmeta: Data: 0.13MB + Index: 0.10MB + Engine MyISAM wp_terms: Data: 0.01MB + Index: 0.01MB + Engine MyISAM wp_term_relationships: Data: 0.04MB + Index: 0.08MB + Engine MyISAM wp_term_taxonomy: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_usermeta: Data: 8.62MB + Index: 0.58MB + Engine MyISAM wp_users: Data: 0.06MB + Index: 0.05MB + Engine MyISAM wp_wcpdf_invoice_number: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wcpdf_packing_slip_number: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine MyISAM wp_wc_admin_note_actions: Data: 0.01MB + Index: 0.00MB + Engine MyISAM wp_wc_category_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wc_comments_subscription: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_wc_customer_lookup: Data: 0.04MB + Index: 0.04MB + Engine MyISAM wp_wc_download_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wc_feedback_forms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_follow_users: Data: 0.02MB + Index: 0.13MB + Engine InnoDB wp_wc_order_coupon_lookup: Data: 0.01MB + Index: 0.02MB + Engine MyISAM wp_wc_order_product_lookup: Data: 0.10MB + Index: 0.10MB + Engine MyISAM wp_wc_order_stats: Data: 0.07MB + Index: 0.05MB + Engine MyISAM wp_wc_order_tax_lookup: Data: 0.04MB + Index: 0.05MB + Engine MyISAM wp_wc_phrases: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_product_attributes_lookup: Data: 0.06MB + Index: 0.05MB + Engine InnoDB wp_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_product_meta_lookup: Data: 0.05MB + Index: 0.06MB + Engine MyISAM wp_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_reserved_stock: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wc_tax_rate_classes: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_wc_users_rated: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_users_voted: Data: 0.02MB + Index: 0.08MB + Engine InnoDB wp_wc_webhooks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wdp_orders: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wdp_order_items: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_wdp_persistent_rules_cache: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wdp_rules: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wdr_order_discounts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wdr_order_item_discounts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wdr_rules: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfblockediplog: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wfblocks7: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wfcm_file_events: Data: 2.52MB + Index: 0.00MB + Engine InnoDB wp_wfconfig: Data: 0.43MB + Index: 0.01MB + Engine MyISAM wp_wfcrawlers: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wffilechanges: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wffilemods: Data: 6.57MB + Index: 0.53MB + Engine MyISAM wp_wfhits: Data: 0.09MB + Index: 0.02MB + Engine MyISAM wp_wfhoover: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wfissues: Data: 0.02MB + Index: 0.01MB + Engine MyISAM wp_wfknownfilelist: Data: 4.84MB + Index: 0.23MB + Engine MyISAM wp_wflivetraffichuman: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wflocs: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wflogins: Data: 0.19MB + Index: 0.04MB + Engine MyISAM wp_wfls_2fa_secrets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wfls_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfnotifications: Data: 0.01MB + Index: 0.00MB + Engine MyISAM wp_wfpendingissues: Data: 0.01MB + Index: 0.01MB + Engine MyISAM wp_wfreversecache: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wfsnipcache: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wfstatus: Data: 0.12MB + Index: 0.05MB + Engine MyISAM wp_wftrafficrates: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wpfm_backup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wpforms_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpmailsmtp_debug_events: Data: 0.13MB + Index: 0.00MB + Engine InnoDB wp_wpmailsmtp_tasks_meta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wpmelon_advbedit_temp: Data: 0.01MB + Index: 0.01MB + Engine MyISAM wp_wsal_metadata: Data: 3.23MB + Index: 5.30MB + Engine InnoDB wp_wsal_occurrences: Data: 0.28MB + Index: 0.23MB + Engine InnoDB wp_wt_iew_action_history: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wt_iew_mapping_template: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yith_wcwl: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_yith_wcwl_lists: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_yoast_indexable: Data: 1.52MB + Index: 0.52MB + Engine InnoDB wp_yoast_indexable_hierarchy: Data: 0.09MB + Index: 0.16MB + Engine InnoDB wp_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_yoast_primary_term: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_yoast_seo_links: Data: 0.02MB + Index: 0.03MB + Engine InnoDB ### Post Type Counts ### acf-field: 80 acf-field-group: 18 attachment: 1514 client: 8 custom_css: 1 feature: 8 forminator_forms: 1 modalpopupbox: 1 nav_menu_item: 59 page: 30 product: 138 product_variation: 359 shop_coupon: 113 shop_order: 870 shop_order_refund: 19 slider: 9 team: 8 testimonial: 14 v3d_app: 4 wp_global_styles: 1 wpcf7_contact_form: 4 ### Security ### Secure connection (HTTPS): ✔ Hide errors from visitors: ✔ ### Active Plugins (41) ### WPML Multilingual CMS: by OnTheGoSystems – 4.5.6 Advanced Custom Fields: Currencies: by Sultan – 1.0.0 Advanced Custom Fields: Product Attributes: by Sultan – 1.0.0 Advanced Custom Fields PRO: by Delicious Brains – 5.12.2 Advanced Database Cleaner: by Younes JFR. – 3.0.4 Amazon payment services: by Amazon Payment Services – 2.2.5 Aramex Shipping WooCommerce: by aramex.com – 1.1.11 Autoptimize: by Frank Goossens (futtta) – 3.0.4 Cloudflare: by Cloudflare Inc. – 4.9.1 Contact Form 7: by Takayuki Miyoshi – 5.5.6.1 Customer Reviews for WooCommerce: by CusRev – 4.40 Fancy Product Designer PRO Export: by fancyproductdesigner.com – 1.2.7 Fancy Product Designer: by fancyproductdesigner.com – 4.7.4 التحقق من الصحّة واستكشاف الأخطاء وإصلاحها: by مجتمع WordPress.org – 1.4.5 Password Protected: by WPExperts – 2.5.2 Social Login: by Sultan – 1.0 String Locator: by Clorith – 2.5.0 Tax File Uploader: by Sultan – 1.0.0 Theme Sniffer: by WPTRT – 1.1.2 User Role Editor: by Vladimir Garagulya – 4.62 Verge3D: by Soft8Soft LLC – 3.9.0 WC City Select: by 8manos – 1.0.6 Website File Changes Monitor: by WP White Security – 1.8.2 WooCommerce Advanced Bulk Edit: by George Iron – 5.0.1 Cup Shipping: by Njegos Vukadin – 1.0.0 WooCommerce Email Test: by RaiserWeb – 1.2.2 WooCommerce Multilingual: by OnTheGoSystems – 4.12.6 WooCommerce PDF Invoices & Packing Slips: by WP Overnight – 2.14.5 WooCommerce PDF Invoices & Packing Slips + mPDF: by Ewout Fernhout – 2.2.0 WooCommerce: by Automattic – 6.5.1 Wordfence Security: by Wordfence – 7.5.10 WP Activity Log for WooCommerce: by WP White Security – 1.4.3 WP Mail SMTP: by WPForms – 3.4.0 WP Activity Log: by WP White Security – 4.4.1 WP Super Cache: by Automattic – 1.7.7 WPML Media: by OnTheGoSystems – 2.7.0 WPML String Translation: by OnTheGoSystems – 3.2.1 WPS Hide Login: by WPServeur NicolasKulka wpformation – 1.9.6 YITH WooCommerce Quick View: by YITH – 1.15.0 YITH WooCommerce Wishlist: by YITH – 3.9.0 Email & Phone Verification: by Njegos Vukadin – 2.0.0 ### Inactive Plugins (1) ### Advanced Dynamic Pricing for WooCommerce: by AlgolPlus – 4.1.2 ### Dropin Plugins (1) ### advanced-cache.php: advanced-cache.php ### Must Use Plugins (3) ### Endurance Page Cache: by Mike Hansen – 2.2 Health Check Troubleshooting Mode: by – 1.7.2 SSO: by Garth Mortensen Mike Hansen – 0.4 ### Settings ### API Enabled: – Force SSL: – Currency: SAR (SR) Currency Position: right_space 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: – ### WC Pages ### Shop base: #6 - /shop/ Cart: #7 - /cart/ Checkout: #3280 - /checkout-2/ My account: #9 - /my-account/ Terms and conditions: #81 - /trems/ ### Theme ### Name: THEME Version: 1.0 Author URL: https://wptech.net 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 WooCommerce Support: ✔ ### Templates ### Overrides: THEME/woocommerce/archive-product.php THEME/woocommerce/cart/cart.php THEME/woocommerce/checkout/cart-errors.php THEME/woocommerce/checkout/form-billing.php THEME/woocommerce/checkout/form-checkout.php THEME/woocommerce/checkout/form-coupon.php THEME/woocommerce/checkout/form-login.php THEME/woocommerce/checkout/form-pay.php THEME/woocommerce/checkout/form-shipping.php THEME/woocommerce/checkout/order-receipt.php THEME/woocommerce/checkout/payment-method.php THEME/woocommerce/checkout/payment.php THEME/woocommerce/checkout/review-order.php THEME/woocommerce/checkout/terms.php THEME/woocommerce/content-product-cat.php THEME/woocommerce/content-product.php THEME/woocommerce/content-single-product.php THEME/woocommerce/emails/customer-completed-order.php THEME/woocommerce/emails/customer-processing-order.php THEME/woocommerce/emails/email-addresses.php THEME/woocommerce/emails/email-order-details.php THEME/woocommerce/global/form-login.php THEME/woocommerce/global/quantity-input.php THEME/woocommerce/loop/orderby.php THEME/woocommerce/loop/pagination.php THEME/woocommerce/loop/result-count.php THEME/woocommerce/myaccount/dashboard.php THEME/woocommerce/myaccount/downloads.php THEME/woocommerce/myaccount/form-add-payment-method.php THEME/woocommerce/myaccount/form-edit-account.php THEME/woocommerce/myaccount/form-edit-address.php THEME/woocommerce/myaccount/form-login.php THEME/woocommerce/myaccount/form-lost-password.php THEME/woocommerce/myaccount/form-reset-password.php THEME/woocommerce/myaccount/lost-password-confirmation.php THEME/woocommerce/myaccount/my-account.php THEME/woocommerce/myaccount/my-address.php THEME/woocommerce/myaccount/my-downloads.php THEME/woocommerce/myaccount/my-orders.php THEME/woocommerce/myaccount/navigation.php THEME/woocommerce/myaccount/orders.php THEME/woocommerce/myaccount/payment-methods.php THEME/woocommerce/myaccount/view-order.php THEME/woocommerce/order/order-details-customer.php THEME/woocommerce/order/order-details-item.php THEME/woocommerce/order/order-details.php THEME/woocommerce/single-product/add-to-cart/external.php THEME/woocommerce/single-product/add-to-cart/grouped.php THEME/woocommerce/single-product/add-to-cart/simple.php THEME/woocommerce/single-product/add-to-cart/variable.php THEME/woocommerce/single-product/add-to-cart/variation-add-to-cart-button.php THEME/woocommerce/single-product/add-to-cart/variation.php THEME/woocommerce/single-product/meta.php THEME/woocommerce/single-product/price.php THEME/woocommerce/single-product/related.php THEME/woocommerce/single-product/short-description.php THEME/woocommerce/single-product/title.php THEME/woocommerce/single-product/up-sells.php THEME/woocommerce/single-product-reviews.php THEME/woocommerce/single-product.php ### Action Scheduler ### Complete: 361 Oldest: 2022-05-12 17:26:48 +0300 Newest: 2022-05-31 09:30:05 +0300 ### Status report information ### Generated at: 2022-05-31 11:52:42 +03:00
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Shop Page Showing Incorrect Product Types’ is closed to new replies.