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 | |
declare(strict_types=1); | |
namespace Winkelwagen\Dbal; | |
use Doctrine\DBAL\Platforms\AbstractPlatform; | |
use Doctrine\DBAL\Platforms\PostgreSQLPlatform; | |
use Doctrine\DBAL\Types\ConversionException; | |
use Doctrine\DBAL\Types\Type; |
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 node:12-buster | |
MAINTAINER Fabian Blechschmidt | |
WORKDIR /opt | |
VOLUME ["/opt"] | |
CMD ["gulp", "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
FROM node:12-buster | |
MAINTAINER Fabian Blechschmidt | |
WORKDIR /opt/magento/skin/frontend/rwd/theme | |
VOLUME ["/opt"] | |
CMD ["gulp", "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
/* | |
Keep in mind that you can't use browser specific calls. Use following calls | |
--Loading httpContents-- | |
loadURL(method,url,headers); | |
--Logging to the Console-- | |
log(value); | |
--Base64-- |
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 | |
class Customer_RefundPartialCreditmemoWithTax_Model_Order_Creditmemo_Total_Tax | |
extends Mage_Sales_Model_Order_Creditmemo_Total_Tax | |
{ | |
public function collect(Mage_Sales_Model_Order_Creditmemo $creditmemo) | |
{ | |
$shippingTaxAmount = 0; | |
$baseShippingTaxAmount = 0; | |
$totalHiddenTax = 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
<?php | |
spl_autoload_register(function ($className) { | |
$path = explode('\\', $className); | |
if (array_shift($path) == 'phpseclib') { | |
return require 'magento/lib/' . str_replace('\\', DIRECTORY_SEPARATOR, $className) . '.php'; | |
} | |
}); | |
use phpseclib\Crypt\Random; |
We can make this file beautiful and searchable if this error is corrected: It looks like row 3 should actually have 39 columns, instead of 27. in line 2.
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
"attribute_id","attribute_code","attribute_type",,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, | |
68,"cost","decimal","=CONCATENATE(B2;""_default.value AS "";B2;""_default,"";B2;""_store.value AS "";B2;""_store,"")","LEFT JOIN catalog_product_entity_","=C2"," AS ","=B2","_default ON ","=B2","_default",".store_id = 0 AND ","=B2","_default.entity_id =","p.entity_id AND ","=B2","_default.attribute_id = ","=A2"," LEFT JOIN catalog_product_entity_","=C2"," AS ","=B2",,"_store ON ","=B2","_store.","store_id = 1 AND ",,"=B2",,"_store.entity_id =","p.entity_id AND ",,,"=B2","_store.attribute_id = ","=A2",,"=TEXTJOIN("""";1;E2:AL2)" | |
64,"price","decimal","=CONCATENATE(B3;""_default.value AS "";B3;""_default,"";B3;""_store.value AS "";B3;""_store,"")","LEFT JOIN catalog_product_entity_","=C3"," AS ","=B3","_default ON ","=B3","_default",".store_id = 0 AND ","=B3","_default.entity_id =","p.entity_id AND ","=B3","_default.attribute_id = ","=A3"," LEFT JOIN catalog_product_entity_","=C3"," AS ","=B3",,"_store ON ","=B3","_store.", |
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
<!doctype html> | |
<html lang="de"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" | |
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Earthdawn dices</title> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" | |
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous"> |
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
MAILER_PASSWORD=12345 |
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
/** | |
* Set prices and image configuration | |
* | |
* @param Varien_Event_Observer $observer | |
*/ | |
public function salesQuoteCollectTotalsBefore(Varien_Event_Observer $observer) | |
{ | |
/* @var $quote Mage_Sales_Model_Quote */ | |
$quote = $observer->getQuote(); | |
foreach ($quote->getAllItems() as $quoteItem) { |
NewerOlder