This file contains 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
{ | |
"AL": "Alabama", | |
"AK": "Alaska", | |
"AS": "American Samoa", | |
"AZ": "Arizona", | |
"AR": "Arkansas", | |
"CA": "California", | |
"CO": "Colorado", | |
"CT": "Connecticut", | |
"DE": "Delaware", |
This file contains 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
From 55dbc56b22f609c1b1a943f71566569f6f7affb0 Mon Sep 17 00:00:00 2001 | |
From: Denis Colli Spalenza <[email protected]> | |
Date: Thu, 8 Oct 2020 21:01:08 -0300 | |
Subject: [PATCH] Adding support to backorders | |
--- | |
Model/SourceDeductionService.php | 7 +++++-- | |
1 file changed, 5 insertions(+), 2 deletions(-) | |
diff --git a/Model/SourceDeductionService.php b/Model/SourceDeductionService.php |
This file contains 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 | |
define('MAGENTO', realpath(dirname(__FILE__))); | |
require_once MAGENTO . '/app/Mage.php'; | |
umask(0); | |
Mage::app(); | |
Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID); | |
$count = 0; |
This file contains 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
SELECT ps_product.id_product AS 'product_id', | |
ps_product.upc, | |
ps_product.reference AS 'sku', | |
ps_product.price, | |
ps_product.weight, | |
ps_product.width, | |
ps_product.height, | |
ps_product.depth, | |
ps_product.active AS 'status', | |
ps_product.date_add AS 'created_at', |
This file contains 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
SELECT cl.id_category, | |
c.id_parent as parent_id, | |
cl.name, | |
cl.description, | |
cl.link_rewrite, | |
cl.id_lang, | |
c.active, | |
c.position, | |
c.level_depth, | |
c.id_shop_default |
This file contains 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
SELECT ps_product.id_product AS 'sku', | |
ps_product.upc, | |
ps_product.price, | |
ps_product.weight, | |
ps_product.date_add AS 'created_at', | |
Concat('/img/p/', IF(Char_length(pi.id_image) >= 5, Concat( | |
Substring(pi.id_image, -5, 1), '/'), '' | |
), IF(Char_length(pi.id_image) >= 4, Concat( | |
Substring(pi.id_image, -4, 1), '/'), '' | |
), IF(Char_length(pi.id_image) >= 3, Concat( |
This file contains 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
diff --git a/app/Mage.php b/app/Mage.php | |
index 0e650eebb4f..9c18e222689 100644 | |
--- a/app/Mage.php | |
+++ b/app/Mage.php | |
@@ -798,9 +798,9 @@ public static function log($message, $level = null, $file = '', $forceLog = fals | |
',', | |
(string) self::getConfig()->getNode('dev/log/allowedFileExtensions', Mage_Core_Model_Store::DEFAULT_CODE) | |
); | |
- $logValidator = new Zend_Validate_File_Extension($_allowedFileExtensions); | |
$logDir = self::getBaseDir('var') . DS . 'log'; |
This file contains 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 | |
$excludeAttr = array(); | |
$attributes = $product->getAttributes(); | |
foreach ($attributes as $attribute) { | |
if ($attribute->getIsVisibleOnFront() && !in_array($attribute->getAttributeCode(), $excludeAttr)) { | |
$value = $attribute->getFrontend()->getValue($product); | |
if (!$product->hasData($attribute->getAttributeCode())) { |
This file contains 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
<item> | |
<title> {{var name}} </title> | |
<link> | |
{{var url}} | |
</link> | |
<description> | |
<![CDATA[ {{var description}} ]]> | |
</description> | |
<g:id> | |
{{var sku}} |
This file contains 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
-- | |
-- This query delelets all customers and orders from your | |
-- Magento 1.* install. Handy, if you have a bloated | |
-- Magento database and you need to do a bit | |
-- of cleaning up for use on a local machine. | |
-- | |
-- Replace PREFIX_ with your current Magento table prefix. | |
-- | |
-- USE AT OWN RISK. ALWAY BACKUP YOUR DATABASE FIRST. | |
-- |
NewerOlder