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
const X2JS = require('x2js') | |
describe('Compare Random src and dst products', () => { | |
const destDomain = 'M1 SITE URL' | |
beforeEach(() => { | |
cy.request(destDomain + '/sitemap/sitemap.xml') | |
.its('body') | |
.then((body) => { |
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
#get the ips from https://www.cloudflare.com/ips/ | |
SetEnvIfExpr "-R '173.245.48.0/20' || -R '103.21.244.0/22' || -R '103.22.200.0/22' || -R '103.31.4.0/22' || -R '141.101.64.0/18' || -R '108.162.192.0/18' || -R '190.93.240.0/20' || -R '188.114.96.0/20' || -R '197.234.240.0/22' || -R '198.41.128.0/17' || -R '162.158.0.0/15' || -R '172.64.0.0/13' || -R '131.0.72.0/22' || -R '104.16.0.0/13' || -R '104.24.0.0/14'" cf_ipv4 | |
SetEnvIfExpr "-R '2400:cb00::/32' || -R '2606:4700::/32' || -R '2803:f800::/32' || -R '2405:b500::/32' || -R '2405:8100::/32' || -R '2a06:98c0::/29' || -R '2c0f:f248::/32'" cf_ipv6 | |
Order deny,allow | |
Deny from all | |
Allow from cf_ipv6 | |
Allow from cf_ipv4 |
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
""" | |
This script formats a magento product export file, and sets each | |
additional_attribute as a new column in a target file | |
""" | |
import csv | |
import pandas as pd | |
# testing files | |
# source_file = './importexport_605048471de17.csv' | |
# target_file = './importexport_605048471de177_formatted.csv' |
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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDnaAaqmdMFiD4KOpsfFhHzyNNxwzBXAuC+kb+m/s+veD3ZExmKCwOIoQrwgJmgWHdWQItJKnLOBHCNNV2sKCEj+9fVBZQKNRG2/itNmBqiSuNLqK4ZlARHZQ1U0DVhV4zPjwPQw5zhxsHb5r5SoZDjqQQtiDH6AhmkBVW9Ebmvg6T8oz9FG3Nws7W8pOdezyFrb7HPgoBjwAV1qB3c5BkyW1K1exRYAkk4bQ1tN/g8GP6fH0fEFKPCh/u82EixebWI9lizlDy7dDPTlt6SHp+X21rQOODQY43Bx20x81lNvD0QV3NSV77oM0HtD/eOAx6JYtker7qz1NGsJj2yI+D5GeyyYlDUqBjeT7UIeycTQeeKHu3zZ7LlRuE2iaN6Jy8uofbll1wcd2UVetInv+Krf0ubDyFqsvJsH+F/XFLUxFK9M9uE8+tKd4alFv/odwIyx6ojn2U08lmJyZuxO6ddL8b/nVDBwRlAeuQPq/qBJ658R6YV1UCq6n/Jz7eMNIGzE4AmiV6EPjs50DYQo/Av75ObBr4QPZhc0rwJGZ/jXOD+duuzOhVRMuk0vXwmjprbWAvCRLhRAsWNCVmGpVuUKDYYC+BWME+tYWuchtC7nv6+16XWLm5EwyzlFiyCPmrj5lkqY9IYW06OPuYSjIto/YylG2DUD614M6albMocRw== [email protected] |
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
// for prototype.js http://api.prototypejs.org/ajax/Ajax/Responders/ | |
// same can be done with http://api.jquery.com/Ajax_Events/ | |
Ajax.Responders.register({ | |
onCreate: function(obj){ | |
//listen all ajax calls | |
if(obj.parameters.something) { | |
//find your ajax call from the haystack of all calls, by url or by some param whatever fits | |
if(obj.parameters.something === 'your condition'){ |
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 $middleName = $this->getLayout()->createBlock('customer/widget_name') | |
->setObject($this->getQuote()->getBillingAddress()) | |
->setFieldIdFormat('billing:%s') | |
->setFieldNameFormat('billing[%s]') | |
?> | |
<?php if ($middleName->showMiddlename()): ?> | |
<?php $isMiddlenameRequired = $middleName->isMiddlenameRequired(); ?> | |
<div class="field name-middlename" style="display: none"> | |
<label for="<?php echo $middleName->getFieldId('middlename')?>"<?php echo $isMiddlenameRequired ? ' class="required"' : '' ?>><?php echo $isMiddlenameRequired ? '<em>*</em>' : '' ?><?php echo $middleName->getStoreLabel('middlename') ?></label> |
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
@media only screen and (max-width: 1279px) { | |
} | |
@media only screen and (max-width: 1199px) { | |
} | |
@media only screen and (min-width: 1199px) { | |
} | |
@media only screen and (min-width: 1126px) { |
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
<div class="oscaddresspreview"> | |
<div class="name">#{billing:firstname} #{billing:lastname}</div> | |
<div class="email">#{billing:email}</div> | |
<div class="company">#{billing:company}</div> | |
<div class="street1">#{billing:street1}</div> | |
<div class="street2">#{billing:street2}</div> | |
<div class="address">#{billing:city}, #{billing:region}, #{billing:postcode}</div> | |
<div class="country">#{billing:country_id}</div> | |
<div class="phone">#{billing:telephone}</div> | |
</div> |
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
<?xml version="1.0"?> | |
<!-- | |
/** | |
* Madia Adyen Payment Module | |
* | |
* NOTICE OF LICENSE | |
* | |
* This source file is subject to the Open Software License (OSL 3.0) | |
* that is bundled with this package in the file LICENSE.txt. | |
* It is also available through the world-wide-web at this URL: |
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
/* Responsive styles created by Valentin Niklasson */ | |
@media screen and (min-width : 954px) { | |
div.checkoutcontainer div.input-city { width: 45%!important; } | |
div.checkoutcontainer div.input-country select { width: 83%!important; } | |
div.checkoutcontainer div.input-city { width: 100%!important; } | |
div.checkoutcontainer div.input-region { width: 55.8%!important; } | |
div.checkoutcontainer div.input-address-short .input-text, | |
div.checkoutcontainer div.input-firstname .input-text, | |
div.checkoutcontainer div.input-lastname .input-text, | |
div.checkoutcontainer div.input-email .input-text, |
NewerOlder