Find attribute_id
SELECT * FROM eav_attribute where attribute_code = 'is_anchor'
Update all of them with anchor_id from above (usually is ID 51)
UPDATE `catalog_category_entity_int` set value = 1 where attribute_id = 51
| #!/bin/bash | |
| # ANSI Colors | |
| RED="\033[0;31m" | |
| GREEN="\033[0;32m" | |
| YELLOW="\033[0;33m" | |
| RESET="\033[0m" | |
| # Function to check if a website is up | |
| check_website() { |
| # List of websites to monitor (one per line) | |
| google.com | |
| github.com | |
| stackoverflow.com | |
| example.com | |
| yourdomain.com | |
| # This line is a comment and won't be processed | |
| # Empty lines like the one above are skipped | |
| amazon.com |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>QR Code Scanner</title> | |
| <style> | |
| #video { | |
| width: 100%; | |
| height: auto; | |
| } |
| const app = require('express')() | |
| const basicAuth = require('express-basic-auth') | |
| var staticUserAuth = basicAuth({ | |
| users: { | |
| 'Admin': 'secret1234' | |
| }, | |
| challenge: true, | |
| }) |
| app.get("/app-proxy", async (req, res) => { | |
| // Sorted list of query parameters | |
| const q = { | |
| path_prefix: req.query['path_prefix'], | |
| shop: req.query['shop'], | |
| timestamp: req.query['timestamp'], | |
| }; | |
| const originalQuerystring = Object.keys(q).map(key => key + '=' + q[key]).join(''); | |
| const crypto = require('crypto') |
| server { | |
| listen 80; | |
| server_name example.com; | |
| root /root/project/public; | |
| add_header X-Frame-Options "SAMEORIGIN"; | |
| add_header X-XSS-Protection "1; mode=block"; | |
| add_header X-Content-Type-Options "nosniff"; | |
| index index.php; |
| if (Mage::getSingleton('customer/session')->isLoggedIn()) { | |
| // Load the customer's data | |
| $customer = Mage::getSingleton('customer/session')->getCustomer(); | |
| $customer->getPrefix(); | |
| $customer->getName(); // Full Name | |
| $customer->getFirstname(); // First Name | |
| $customer->getMiddlename(); // Middle Name |
| <?php | |
| // Converts a number into a short version, eg: 1000 -> 1k | |
| // Based on: http://stackoverflow.com/a/4371114 | |
| function number_format_short( $n, $precision = 1 ) { | |
| if ($n < 900) { | |
| // 0 - 900 | |
| $n_format = number_format($n, $precision); | |
| $suffix = ''; | |
| } else if ($n < 900000) { |
| ; This is a simple method of maintaining a budget using | |
| ; double-entry accounting software. | |
| ; Usually, double-entry accounting keeps track of | |
| ; assets, liabilities, income, and expenses. However, | |
| ; income/expense categories are different than budget | |
| ; categories. For one thing, income/expense categories | |
| ; continually grow, where budget categories tend to rise | |
| ; and fall. I decided to replace tracking my income/ | |
| ; expenses with tracking my budget. |