Side cart not showing on non woocommerce page
-
Hi I’m having problem with side cart widget.
It’s displayng on menu correctly when I’m on woocommerce page f.g cart/checkout/myaccount.
But in non woocommerce page is notI’ve found this css:
`body:not(.woocommerce):not(.woocommerce-page) .widget_shopping_cart {
display: none;
position: relative;
}
-
Hi there!
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.### WordPress Environment ### WordPress address (URL): https://www.praktykszkolenia.pl Site address (URL): https://www.praktykszkolenia.pl WC Version: 4.0.1 REST API Version: ? 1.0.7 WC Blocks Version: ? 2.5.14 Action Scheduler Version: ? 3.1.4 WC Admin Version: ? 1.0.3 Log Directory Writable: ? WP Version: 5.4 WP Multisite: – WP Memory Limit: 512 MB WP Debug Mode: – WP Cron: ? Language: pl_PL External object cache: – ### Server Environment ### Server Info: Apache/N-G-I-N-X-htaccess-support PHP Version: 7.1.33 - Rekomendujemy u?ywanie PHP w wersji 7.2 lub wy?szej w celu osi?gni?cia wi?kszej wydajno?ci oraz bezpieczeństwa. Jak zaktualizowa? wersj? PHP PHP Post Max Size: 2 GB PHP Time Limit: 300 PHP Max Input Vars: 10000 cURL Version: 7.65.3 OpenSSL/1.0.2s SUHOSIN Installed: – MySQL Version: 5.7.26-29-log Max Upload Size: 2 GB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 4.0.1 WC Database Prefix: prakszkol2781_ Ca?kowity rozmiar bazy danych: 25.26MB Rozmiar bazy danych: 20.17MB Rozmiar indeksu bazy danych: 5.09MB prakszkol2781_woocommerce_sessions: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB prakszkol2781_woocommerce_api_keys: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB prakszkol2781_woocommerce_attribute_taxonomies: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB prakszkol2781_woocommerce_downloadable_product_permissions: Dane: 0.02MB + Indeks: 0.06MB + Silnik InnoDB prakszkol2781_woocommerce_order_items: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB prakszkol2781_woocommerce_order_itemmeta: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB prakszkol2781_woocommerce_tax_rates: Dane: 0.02MB + Indeks: 0.06MB + Silnik InnoDB prakszkol2781_woocommerce_tax_rate_locations: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB prakszkol2781_woocommerce_shipping_zones: Dane: 0.02MB + Indeks: 0.00MB + Silnik InnoDB prakszkol2781_woocommerce_shipping_zone_locations: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB prakszkol2781_woocommerce_shipping_zone_methods: Dane: 0.02MB + Indeks: 0.00MB + Silnik InnoDB prakszkol2781_woocommerce_payment_tokens: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB prakszkol2781_woocommerce_payment_tokenmeta: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB prakszkol2781_woocommerce_log: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB prakszkol2781_actionscheduler_actions: Dane: 0.08MB + Indeks: 0.11MB + Silnik InnoDB prakszkol2781_actionscheduler_claims: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB prakszkol2781_actionscheduler_groups: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB prakszkol2781_actionscheduler_logs: Dane: 0.05MB + Indeks: 0.03MB + Silnik InnoDB prakszkol2781_bp_activity: Dane: 0.02MB + Indeks: 0.16MB + Silnik InnoDB prakszkol2781_bp_activity_meta: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB prakszkol2781_bp_invitations: Dane: 0.02MB + Indeks: 0.14MB + Silnik InnoDB prakszkol2781_bp_notifications: Dane: 0.02MB + Indeks: 0.11MB + Silnik InnoDB prakszkol2781_bp_notifications_meta: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB prakszkol2781_bp_xprofile_data: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB prakszkol2781_bp_xprofile_fields: Dane: 0.02MB + Indeks: 0.08MB + Silnik InnoDB prakszkol2781_bp_xprofile_groups: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB prakszkol2781_bp_xprofile_meta: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB prakszkol2781_commentmeta: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB prakszkol2781_comments: Dane: 0.05MB + Indeks: 0.09MB + Silnik InnoDB prakszkol2781_create_map: Dane: 0.00MB + Indeks: 0.00MB + Silnik MyISAM prakszkol2781_gdlrpayment: Dane: 0.02MB + Indeks: 0.00MB + Silnik InnoDB prakszkol2781_gdlrquiz: Dane: 0.02MB + Indeks: 0.00MB + Silnik InnoDB prakszkol2781_group_map: Dane: 0.00MB + Indeks: 0.00MB + Silnik MyISAM prakszkol2781_learnpress_order_itemmeta: Dane: 0.02MB + Indeks: 0.00MB + Silnik InnoDB prakszkol2781_learnpress_order_items: Dane: 0.02MB + Indeks: 0.00MB + Silnik InnoDB prakszkol2781_learnpress_question_answermeta: Dane: 0.02MB + Indeks: 0.00MB + Silnik InnoDB prakszkol2781_learnpress_question_answers: Dane: 0.02MB + Indeks: 0.00MB + Silnik InnoDB prakszkol2781_learnpress_quiz_questions: Dane: 0.02MB + Indeks: 0.00MB + Silnik InnoDB prakszkol2781_learnpress_review_logs: Dane: 0.02MB + Indeks: 0.00MB + Silnik InnoDB prakszkol2781_learnpress_sections: Dane: 0.02MB + Indeks: 0.00MB + Silnik InnoDB prakszkol2781_learnpress_section_items: Dane: 0.02MB + Indeks: 0.00MB + Silnik InnoDB prakszkol2781_learnpress_sessions: Dane: 0.05MB + Indeks: 0.02MB + Silnik InnoDB prakszkol2781_learnpress_user_itemmeta: Dane: 0.02MB + Indeks: 0.00MB + Silnik InnoDB prakszkol2781_learnpress_user_items: Dane: 0.02MB + Indeks: 0.00MB + Silnik InnoDB prakszkol2781_links: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB prakszkol2781_mailchimp_carts: Dane: 0.02MB + Indeks: 0.00MB + Silnik InnoDB prakszkol2781_mailchimp_jobs: Dane: 0.02MB + Indeks: 0.00MB + Silnik InnoDB prakszkol2781_map_locations: Dane: 0.00MB + Indeks: 0.00MB + Silnik MyISAM prakszkol2781_masterslider_options: Dane: 0.06MB + Indeks: 0.02MB + Silnik InnoDB prakszkol2781_masterslider_sliders: Dane: 0.05MB + Indeks: 0.03MB + Silnik InnoDB prakszkol2781_mo_openid_linked_user: Dane: 0.02MB + Indeks: 0.00MB + Silnik InnoDB prakszkol2781_newsletter: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB prakszkol2781_newsletter_emails: Dane: 0.02MB + Indeks: 0.00MB + Silnik InnoDB prakszkol2781_newsletter_sent: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB prakszkol2781_newsletter_stats: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB prakszkol2781_newsletter_user_logs: Dane: 0.02MB + Indeks: 0.00MB + Silnik InnoDB prakszkol2781_options: Dane: 6.03MB + Indeks: 0.17MB + Silnik InnoDB prakszkol2781_pmpro_discount_codes: Dane: 0.02MB + Indeks: 0.05MB + Silnik InnoDB prakszkol2781_pmpro_discount_codes_levels: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB prakszkol2781_pmpro_discount_codes_uses: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB prakszkol2781_pmpro_memberships_categories: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB prakszkol2781_pmpro_memberships_pages: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB prakszkol2781_pmpro_memberships_users: Dane: 0.02MB + Indeks: 0.09MB + Silnik InnoDB prakszkol2781_pmpro_membership_levelmeta: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB prakszkol2781_pmpro_membership_levels: Dane: 0.02MB + Indeks: 0.05MB + Silnik InnoDB prakszkol2781_pmpro_membership_orders: Dane: 0.02MB + Indeks: 0.20MB + Silnik InnoDB prakszkol2781_postmeta: Dane: 5.36MB + Indeks: 1.97MB + Silnik InnoDB prakszkol2781_posts: Dane: 6.41MB + Indeks: 0.31MB + Silnik InnoDB prakszkol2781_revslider_css: Dane: 0.13MB + Indeks: 0.00MB + Silnik InnoDB prakszkol2781_revslider_css_bkp: Dane: 0.02MB + Indeks: 0.00MB + Silnik InnoDB prakszkol2781_revslider_layer_animations: Dane: 0.02MB + Indeks: 0.00MB + Silnik InnoDB prakszkol2781_revslider_layer_animations_bkp: Dane: 0.02MB + Indeks: 0.00MB + Silnik InnoDB prakszkol2781_revslider_navigations: Dane: 0.02MB + Indeks: 0.00MB + Silnik InnoDB prakszkol2781_revslider_navigations_bkp: Dane: 0.02MB + Indeks: 0.00MB + Silnik InnoDB prakszkol2781_revslider_sliders: Dane: 0.02MB + Indeks: 0.00MB + Silnik InnoDB prakszkol2781_revslider_sliders_bkp: Dane: 0.02MB + Indeks: 0.00MB + Silnik InnoDB prakszkol2781_revslider_slides: Dane: 0.09MB + Indeks: 0.00MB + Silnik InnoDB prakszkol2781_revslider_slides_bkp: Dane: 0.02MB + Indeks: 0.00MB + Silnik InnoDB prakszkol2781_revslider_static_slides: Dane: 0.02MB + Indeks: 0.00MB + Silnik InnoDB prakszkol2781_revslider_static_slides_bkp: Dane: 0.02MB + Indeks: 0.00MB + Silnik InnoDB prakszkol2781_signups: Dane: 0.02MB + Indeks: 0.06MB + Silnik InnoDB prakszkol2781_termmeta: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB prakszkol2781_terms: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB prakszkol2781_term_relationships: Dane: 0.05MB + Indeks: 0.02MB + Silnik InnoDB prakszkol2781_term_taxonomy: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB prakszkol2781_usermeta: Dane: 0.06MB + Indeks: 0.03MB + Silnik InnoDB prakszkol2781_users: Dane: 0.02MB + Indeks: 0.05MB + Silnik InnoDB prakszkol2781_user_registration_sessions: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB prakszkol2781_wcpdf_invoice_number: Dane: 0.02MB + Indeks: 0.00MB + Silnik InnoDB prakszkol2781_wc_admin_notes: Dane: 0.02MB + Indeks: 0.00MB + Silnik InnoDB prakszkol2781_wc_admin_note_actions: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB prakszkol2781_wc_category_lookup: Dane: 0.02MB + Indeks: 0.00MB + Silnik InnoDB prakszkol2781_wc_customer_lookup: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB prakszkol2781_wc_download_log: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB prakszkol2781_wc_order_coupon_lookup: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB prakszkol2781_wc_order_product_lookup: Dane: 0.02MB + Indeks: 0.06MB + Silnik InnoDB prakszkol2781_wc_order_stats: Dane: 0.02MB + Indeks: 0.05MB + Silnik InnoDB prakszkol2781_wc_order_tax_lookup: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB prakszkol2781_wc_product_meta_lookup: Dane: 0.02MB + Indeks: 0.09MB + Silnik InnoDB prakszkol2781_wc_tax_rate_classes: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB prakszkol2781_wc_webhooks: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB prakszkol2781_woocommerce_p24_data: Dane: 0.00MB + Indeks: 0.00MB + Silnik MyISAM ### Post Type Counts ### attachment: 361 bp-email: 15 certificate: 1 course: 14 custom-css-js: 9 customize_changeset: 80 event_auth_book: 38 forum: 8 inspire_invoice: 28 lp_cert: 4 lp_course: 31 lp_lesson: 14 lp_order: 18 lp_question: 10 lp_quiz: 4 mc4wp-form: 2 nav_menu_item: 64 oembed_cache: 1 our_team: 14 page: 198 portfolio: 26 post: 46 product: 18 quiz: 8 reply: 6 revision: 597 shop_order: 71 testimonials: 6 topic: 15 tp_event: 8 tribe_events: 3 tribe_venue: 1 user_registration: 1 wpcf7_contact_form: 2 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (39) ### WooCommerce Przelewy24 Payment Gateway: przez DialCom24 Sp. z o.o. – 1.0.0 – Nietestowane z u?ywan? wersj? WooCommerce bbPress: przez The bbPress Contributors – 2.6.4 Black Studio TinyMCE Widget: przez Black Studio – 2.6.9 Better Notifications for WP: przez Made with Fuel – 1.7.7 BuddyPress: przez Spo?eczno?? BuddyPressa – 5.1.2 Coming Soon Page, Under Construction & Maintenance Mode by SeedProd: przez SeedProd – 5.1.0 Contact Form 7 Extension For Mailchimp: przez Renzo Johnson – 0.5.15 Contact Form 7: przez Takayuki Miyoshi – 5.1.7 Simple Custom CSS and JS: przez SilkyPress.com – 3.30 WooCommerce Login/Signup Popup Premium: przez XootiX – 3.2 – Nietestowane z u?ywan? wersj? WooCommerce Eduma Demo Data: przez ThimPress – 1.2.1 Flexible Invoices Advanced Reports: przez WP Desk – 1.5.3 Faktury WooCommerce: przez WP Desk – 2.9.8 – Nietestowane z u?ywan? wersj? WooCommerce Faktury dla WordPressa: przez WP Desk – 4.4.1 – Nietestowane z u?ywan? wersj? WooCommerce LearnPress - bbPress Integration: przez ThimPress – 3.0.3 LearnPress - Certificates: przez ThimPress – 3.1.2 LearnPress - Opinie: przez ThimPress – 3.0.5 LearnPress - Paid Membership Pro Integration: przez ThimPress – 3.1.9 LearnPress - Course Wishlist: przez ThimPress – 3.0.2 LearnPress - WooCommerce Payment Methods Integration: przez ThimPress – 3.2.0 – Nietestowane z u?ywan? wersj? WooCommerce LearnPress: przez ThimPress – 3.2.6.7 Loco Translate: przez Tim Whitlock – 2.3.2 MC4WP: Mailchimp for WordPress: przez ibericode – 4.7.5 Paid Memberships Pro: przez Stranger Studios – 2.2.6 PHP Code Widget: przez Otto – 2.3 Paid Memberships Pro - BuddyPress Add On: przez Paid Memberships Pro – 1.2.4 Paid Memberships Pro - Email Templates Add On: przez Paid Memberships Pro – 0.7.2 Protect Uploads: przez Alexis Blondin – 0.2 Slider Revolution: przez ThemePunch – 6.1.3 Page Builder by SiteOrigin: przez SiteOrigin – 2.10.14 Thim Core: przez ThimPress – 1.9.9 Thim Our Team: przez ThimPress – 1.3.1 Thim Testimonials: przez ThimPress – 1.3.1 Thim Portfolio: przez ThimPress – 1.8 WC Duplicate Order: przez Jamie Gill – 1.7 – Nietestowane z u?ywan? wersj? WooCommerce Widget Logic: przez WPChef – 5.10.4 WooCommerce: przez Automattic – 4.0.1 WP Config File Editor: przez AHMeD SAiD – 1.7 WP Events Manager: przez ThimPress – 2.1.8 ### Inactive Plugins (7) ### Checkout Field Editor for WooCommerce: przez ThemeHigh – 1.4.2 – Nietestowane z u?ywan? wersj? WooCommerce Elementor: przez Elementor.com – 2.9.7 Login/Signup Popup ( Inline Form + Woocommerce ): przez XootiX – 1.3 – Nietestowane z u?ywan? wersj? WooCommerce Mailchimp for WooCommerce: przez Mailchimp – 2.3.6 – Nietestowane z u?ywan? wersj? WooCommerce WooCommerce PDF Invoices & Packing Slips: przez Ewout Fernhout – 2.4.7 – Nietestowane z u?ywan? wersj? WooCommerce WP AutoTerms: przez WP AutoTerms – 2.3.2 WPBakery Page Builder: przez Michael M - WPBakery.com – 6.1 ### Settings ### API Enabled: – Force SSL: – Currency: PLN (z?) 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: ? ### WC Pages ### Strona sklepu: ? Dost?pno?? strony powinna by? publiczna Koszyk: #3772 - /koszyk/ Zamówienie: #3773 - /zamowienie/ Moje konto: ? Strona nie zawiera shortcode. Regulamin: #3 - /polityka-prywatnosci/ ### Theme ### Name: Eduma Version: 4.2.3 Author URL: https://thimpress.com Child Theme: ? – Je?li modyfikujesz WooCommerce lub motyw nadrz?dny którego nie jeste? autorem polecamy u?ywanie motywu potomnego. Zobacz: Jak tworzy? motywy potomne WooCommerce Support: ? ### Templates ### Overrides: eduma/woocommerce/archive-product.php eduma/woocommerce/cart/mini-cart.php eduma/woocommerce/content-product.php eduma/woocommerce/content-product_cat.php eduma/woocommerce/content-single-product.php eduma/woocommerce/content-widget-product.php eduma/woocommerce/emails/customer-new-account.php wersja 3.5.2 jest nieaktualna. Bazowa wersja to 3.7.0 eduma/woocommerce/loop/loop-end.php eduma/woocommerce/loop/loop-start.php eduma/woocommerce/loop/orderby.php eduma/woocommerce/loop/pagination.php eduma/woocommerce/myaccount/dashboard.php /usr/home/sobinski/domains/praktykszkolenia.pl/public_html/wp-content/plugins/easy-login-woocommerce-premium//templates/xoo-el-wc-form-login.php wersja - jest nieaktualna. Bazowa wersja to 3.6.0 eduma/woocommerce/myaccount/form-lost-password.php eduma/woocommerce/product-searchform.php eduma/woocommerce/single-product/product-image.php eduma/woocommerce/single-product/product-thumbnails.php eduma/woocommerce/single-product/rating.php eduma/woocommerce/single-product/related.php wersja 3.0.0 jest nieaktualna. Bazowa wersja to 3.9.0 eduma/woocommerce/single-product/review.php eduma/woocommerce/single-product/short-description.php eduma/woocommerce/single-product/tabs/description.php eduma/woocommerce/single-product/up-sells.php eduma/woocommerce/single-product.php Outdated Templates: ? Dowiedz si? jak zaktualizowa? ### Action Scheduler ### Zrealizuj zamówienie: 227 Oldest: 2020-03-14 09:25:28 +0100 Newest: 2020-04-06 22:33:11 +0200
Thanks for that!
Can you give me some details on where the side cart widget functionality is coming from? I couldn’t see a specific plugin on the list for adding that functionality
I’m just taking default from woocommerce. Widgets -> Cart and adding it to side menu.
Okay I’ll try again.
I’ve added “Cart widget” to my side menu in settings. And its displaying correctly on woocommerce pages such as
– cart
– checkout
– myaccount.
But I’ve more pages that are not woocomerce ones. I can see cart when I’ll inspect HTML but its not displaying by default because of:body:not(.woocommerce):not(.woocommerce-page) .widget_shopping_cart {
display: none;
position: relative;
}
`How can I set my page to as woocommerce one or disable this ?
Do I need to modify functions.php? I would like to add cart to all my pages.Thanks for all that! I see where you are getting that from now. I did a test on my local site. I added the cart to my sidebar as a widget, and I am not seeing the same thing you are reporting – it still shows up even on non-WooCommerce pages. I am thinking maybe that code is being added by your theme. You can test it by temporarily switching to a theme such as Storefront or Twenty Nineteen to see if you still run into the same issue.
If it is the theme, I’d recommend reaching out to the theme developer to see if they can provide any assistance for this!
- The topic ‘Side cart not showing on non woocommerce page’ is closed to new replies.