Woocommerce – legacy templating?
-
Apparently after the few last woocommerce versions they moved to block-system editing and when you install the woo plugin the pages come with predefined blocks in their text content. Is there a way or a setting for me to use the legacy templating system because right now I cannot override any templates because of this block frustrating bulls**t crap.
why are they constantly making the dumb users life easier and us developers lives harder?
-
This topic was modified 1 year, 9 months ago by
nikolay1443.
-
This topic was modified 1 year, 9 months ago by
-
Hi @nikolay1443,
Thank you for reaching out.
why are they constantly making the dumb users life easier and us developers lives harder?
We understand your concerns about the transition to block-system editing. This change is meant to make the platform more user-friendly, but we appreciate that it may pose challenges for developers used to our legacy system.
In order to override templates, you can still use hooks and filters. However, if you prefer the legacy templating system, you can disable the block editor for WooCommerce pages. To do this, you can use a plugin such as the ‘Disable Gutenberg‘ plugin.
I hope this helps.
Okay thank you for your response.
Another thing is that woocommerce keeps strange cache on the template overrides and I have to switch to another theme and switch back to refresh the override templates that woocommerce sees. The clear template cache tool doesn’t work.
-
This reply was modified 1 year, 9 months ago by
nikolay1443.
Hello nikolay1443,
Thank you for your reply.
WooCommerce itself doesn’t include a built-in caching feature.
The caching you’re experiencing is likely due to a caching plugin or a server-side configuration.To help you further, could you please share your System Status Report? You can find it by navigating to WooCommerce > Status and clicking the Get System Report button.
Once you have it, just paste the report here, and I’ll take a closer look at your server setup to provide more specific guidance.
Looking forward to your response!
Best regards.
Don’t have cache plugins, redis or memcache are not enabled too.
### WordPress Environment ###
WordPress address (URL): https://dev.forestwitchyogini.com
Site address (URL): https://dev.forestwitchyogini.com
WC Version: 9.2.2
Legacy REST API Package Version: The Legacy REST API plugin is not installed on this site.
Action Scheduler Version: ✔ 3.8.1
Log Directory Writable: ✔
WP Version: 6.6.1
WP Multisite: –
WP Memory Limit: 512 MB
WP Debug Mode: –
WP Cron: ✔
Language: en_US
External object cache: –
### Server Environment ###
Server Info: Apache
PHP Version: 8.3.10
PHP Post Max Size: 512 MB
PHP Time Limit: 300
PHP Max Input Vars: 10000
cURL Version: 7.87.0
OpenSSL/1.1.1w
SUHOSIN Installed: –
MySQL Version: 8.0.37
Max Upload Size: 256 MB
Default Timezone is UTC: ✔
fsockopen/cURL: ✔
SoapClient: ✔
DOMDocument: ✔
GZip: ✔
Multibyte String: ✔
Remote Post: ✔
Remote Get: ❌ wp_remote_get() failed. Contact your hosting provider. 503
### Database ###
WC Database Version: 9.2.2
WC Database Prefix: wp_
Total Database Size: 5.17MB
Database Data Size: 3.49MB
Database Index Size: 1.68MB
wp_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
wp_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_actionscheduler_actions: Data: 0.02MB + Index: 0.11MB + Engine InnoDB
wp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_actionscheduler_logs: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_comments: Data: 0.02MB + Index: 0.08MB + Engine InnoDB
wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_options: Data: 2.48MB + Index: 0.03MB + Engine InnoDB
wp_postmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_posts: Data: 0.05MB + Index: 0.06MB + Engine InnoDB
wp_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_usermeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
wp_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_wc_order_addresses: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_wc_order_operational_data: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
wp_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_wc_orders: Data: 0.02MB + Index: 0.11MB + Engine InnoDB
wp_wc_orders_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_wc_product_meta_lookup: Data: 0.02MB + Index: 0.11MB + Engine InnoDB
wp_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
### Post Type Counts ###
attachment: 1
page: 7
post: 2
product: 1
revision: 3
shop_order_placehold: 1
wp_global_styles: 2
wp_navigation: 1
### Security ###
Secure connection (HTTPS): ✔
Hide errors from visitors: ✔
### Active Plugins (2) ###
Disable Gutenberg: by Jeff Starr – 3.1.2
WooCommerce: by Automattic – 9.2.2
### Inactive Plugins (2) ###
Akismet Anti-spam: Spam Protection: by Automattic - Anti-spam Team – 5.3.3
Hello Dolly: by Matt Mullenweg – 1.7.2
### Settings ###
Legacy API Enabled: –
Force SSL: –
Currency: AFN (؋)
Currency Position: left_space
Thousand Separator: .
Decimal Separator: ,
Number of Decimals: 0
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: ✔
HPOS feature enabled: ✔
Order datastore: Automattic\WooCommerce\Internal\DataStores\Orders\OrdersTableDataStore
HPOS data sync enabled: –
### Logging ###
Enabled: ✔
Handler: Automattic\WooCommerce\Internal\Admin\Logging\LogHandlerFileV2
Retention period: 30 days
Level threshold: –
Log directory size: 13 B
### WC Pages ###
Shop base: #6 - /shop/
Cart: #7 - /cart/ - Contains the woocommerce/cart block
Checkout: #8 - /checkout/ - Contains the woocommerce/checkout block
My account: #9 - /my-account/
Terms and conditions: ❌ Page not set
### Theme ###
Name: Grand Sunrise
Version: (update to version 0 is available)
Author URL:
Child Theme: ✔
Parent Theme Name: Twenty Twenty-Four
Parent Theme Version: 1.2
Parent Theme Author URL: https://wordpress.org
WooCommerce Support: ✔
### Templates ###
Overrides: /home4/forestwi/dev.forestwitchyogini.com/wp-content/plugins/woocommerce/templates/block-notices/error.php
/home4/forestwi/dev.forestwitchyogini.com/wp-content/plugins/woocommerce/templates/block-notices/notice.php
/home4/forestwi/dev.forestwitchyogini.com/wp-content/plugins/woocommerce/templates/block-notices/success.php
### Admin ###
Enabled Features: activity-panels
analytics
product-block-editor
coupons
core-profiler
customize-store
customer-effort-score-tracks
import-products-task
experimental-fashion-sample-products
shipping-smart-defaults
shipping-setting-tour
homescreen
marketing
mobile-app-banner
navigation
onboarding
onboarding-tasks
pattern-toolkit-full-composability
product-custom-fields
remote-inbox-notifications
remote-free-extensions
payment-gateway-suggestions
printful
shipping-label-banner
subscriptions
store-alerts
transient-notices
woo-mobile-welcome
wc-pay-promotion
wc-pay-welcome-page
launch-your-store
Disabled Features: experimental-blocks
minified-js
product-pre-publish-modal
settings
async-product-editor-category-field
product-editor-template-system
Daily Cron: ✔ Next scheduled: 2024-08-25 14:57:32 +00:00
Options: ✔
Notes: 55
Onboarding: skipped
### Action Scheduler ###
Pending: 7
Oldest: 2024-08-25 14:57:37 +0000
Newest: 2024-08-25 15:27:25 +0000
### Status report information ###
Generated at: 2024-08-26 07:03:14 +00:00-
This reply was modified 1 year, 9 months ago by
nikolay1443.
-
This reply was modified 1 year, 9 months ago by
nikolay1443.
Hello nikolay1443,
Thank you for your reply.
I understand that cache is disabled on the site but you are still facing cache-like issues.
To better understand the issue, could you list the specific steps where you’re encountering the cache on template overrides?
If possible, a video recording of the process would be incredibly helpful for us to diagnose the problem. You can use a tool like Awesome Screenshot to easily record and share the video.
Once we have more details, we’ll be able to assist you more effectively.
Best regards.
I just copy the template files from the plugin folder to my theme/woocommerce folder, or delete files from there, but in the WP dashboard nothing changes until I change the theme
Hi @nikolay1443
When you want to override a WooCommerce template file, your theme must run the same hook as the template file. It seems like your theme might not be running the necessary hooks, which could explain why you’re not seeing changes reflected in your WordPress dashboard.
To troubleshoot the issue, ensure your copied file has the same directory path as the original file in the WooCommerce plugin folder. Also, head over to WooCommerce → Status → Tools, and do the following:
- WooCommerce transients – Clear
- Expired transients – Clear
- Clear template cache – Clear
- Capabilities – Reset Capabilities
- Clear customer sessions -Clear
Next, please clear your browser cache and check again.
If this makes no difference, you might need to contact the theme’s developer for further assistance. You can also seek help from the following:
- A local web developer
- Codeable.io
- WooExperts
I would also recommend asking development questions on the #developers channel of the WooCommerce Community Slack. Many of our developers hang out there and will be able to offer insights into your question.
I hope this helps! Please let us know how it goes or if you need further assistance.
-
This reply was modified 1 year, 9 months ago by
The topic ‘Woocommerce – legacy templating?’ is closed to new replies.