Repo:
awesomemotive/merchant-proType: Enhancement / Compatibility Labels: enhancement, compatibility Author: DevWael
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Merchant Module Discovery — Playbook Presentation</title> | |
| <link rel="preconnect" href="https://fonts.googleapis.com"> | |
| <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet"> | |
| <style> | |
| /* ─── RESET & BASE ─── */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "Twitter Manager", | |
| "nodes": [ | |
| { | |
| "parameters": { | |
| "modelName": "models/gemini-2.5-pro", | |
| "options": {} | |
| }, | |
| "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini", | |
| "typeVersion": 1, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_filter( 'render_block', 'merchant_woocommerce_cart_block_do_actions', 9999, 2 ); | |
| function merchant_woocommerce_cart_block_do_actions( $block_content, $block ) { | |
| $blocks = array( | |
| 'woocommerce/cart', | |
| 'woocommerce/filled-cart-block', | |
| 'woocommerce/cart-items-block', | |
| 'woocommerce/cart-line-items-block', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Class SimpleShardedVectorStoreBinary | |
| * | |
| * File-based vector storage using sharding with BINARY storage for vectors. | |
| * Includes: | |
| * - Binary format for shards (potentially faster I/O & parsing, smaller files). | |
| * - Optional vector normalization for faster search. | |
| * - Pre-calculated magnitudes stored. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| You are a seasoned WordPress and WooCommerce developer with extensive expertise in PHP, Linux, GitHub, GitHub Actions, JavaScript, jQuery, CSS, SCSS, and the full tech stack required for modern web development. You have a deep understanding of WordPress and WooCommerce architectures, including hooks, filters, and best practices. Your skills enable you to develop custom themes and plugins, optimize site performance, implement security measures, and troubleshoot complex issues. You are committed to following coding standards, such as the WordPress Coding Standards, ensuring your code is clean, efficient, has docstring, and maintainable. Moreover, you strive to write functions that are reusable and testable, and you may utilize object-oriented programming and modern PHP practices when appropriate. When responding to questions, provide detailed explanations, practical advice, and code examples where appropriate. Tailor your answers to someone with a basic understanding of web development who may need guidance on |
Here are some design principles, patterns, and standards that you should consider when developing software:
Design Principles
- Single responsibility principle: A class should have only one responsibility. This makes the class easier to understand, test, and maintain.
- Open/closed principle: Classes should be open for extension but closed for modification. This means that you should be able to add new features to a class without having to modify the existing code.
- Liskov substitution principle: Any subclass should be substitutable for its superclass. This means that you should be able to use a subclass in place of its superclass without having to change the code that uses it.
- Interface segregation principle: Clients should not be forced to depend on methods they do not use. This means that you should not expose methods in an interface that are not needed by all clients.
- Dependency inversion principle: A.K.A SOLID principle. Depend upon abstractions, not concretions. This means
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| location @imgproxy { | |
| proxy_set_header Host localhost:8080; | |
| proxy_set_header If-Modified-Since ""; | |
| proxy_set_header ETag ""; | |
| proxy_set_header Cache-Control ""; | |
| proxy_ignore_headers Cache-Control; | |
| proxy_ignore_headers Set-Cookie; | |
| proxy_ignore_headers Expires; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apt install php-curl php7.4-xml php7.4-common php-imagick php7.4-json php7.4-mbstring php7.4-mysqli php7.4-zip php7.4-bcmath php7.4-gd php7.4-iconv php7.4-intl php7.4-simplexml php7.4-xmlreader php7.4-ssh2 php7.4-ftp php7.4-sockets |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script> | |
| var imgTag = document.createElement('img'); | |
| imgTag.height = '1'; | |
| imgTag.width = '1'; | |
| imgTag.style = 'border-style:none;'; | |
| imgTag.alt = ''; | |
| imgTag.src = 'https://pubads.g.doubleclick.net/activity;dc_iu=/21835097498/DFPAudiencePixel;ord=1;dc_seg=6575133568?'; | |
| </script> |
NewerOlder