This simplifies product management by eliminating manual Kirby page creation. Products are now automatically loaded as virtual pages from the Shopify API. Changes: - Add virtual pages via page.children:after hook - Create shopify.php helper with caching (60min TTL) - Add shopify-refresh panel plugin for cache management - Remove manual product content files (now virtual) - Update site.yml blueprint to show refresh button - Fix cache implementation to use get/set pattern Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
7 lines
201 B
JavaScript
Executable file
7 lines
201 B
JavaScript
Executable file
import ShopifyRefreshButton from "./components/ShopifyRefreshButton.vue";
|
|
|
|
window.panel.plugin("index/shopify-refresh-button", {
|
|
fields: {
|
|
"shopify-refresh": ShopifyRefreshButton
|
|
}
|
|
});
|