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
## Because picklists have 2 values whether referencing the PATH_ID or the PATH_Name you can split them. | |
## The Id's will be the variant option names and the Names, will be salsify properties for pulling out values | |
## Salsify Picklist Property needs to be setup like the following - | |
ID: Color,Size,Number Of Items | |
Name: shirt_color,shirt_size,qty | |
##VALUE 2 | |
let variantProperty = SPLIT(PATH_ID("Variant Selectors",1),',') in ##change to property of your variant selector as needed | |
IF( |
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
jQuery('.data-grid-checkbox-cell-inner .checkbox').prop('checked', true) |
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
DELETE FROM DB.quote_item where item_id in ( | |
select * From ( | |
select item_id from DB.quote_item where quote_id not in (SELECT distinct entity_id FROM DB.quote) | |
) AS P | |
) |
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
if (typeof(Payment)!='undefined'){ | |
Payment.prototype.init = function () | |
{ | |
if ('function' == typeof(this.beforeInit)) | |
{ | |
this.beforeInit(); | |
} | |
var elements = Form.getElements(this.form); | |
if ($(this.form)) { | |
$(this.form).observe('submit', function(event){this.save();Event.stop(event);}.bind(this)); |
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
sudo apt-get -y install apache2-mpm-worker | |
sudo apt-get -y install libapache2-mod-fastcgi php5-fpm | |
sudo a2dismod php5 mpm_prefork | |
sudo a2enmod actions fastcgi alias mpm_worker | |
sudo touch /usr/lib/cgi-bin/php5.fcgi | |
sudo chown -R www-data:www-data /usr/lib/cgi-bin | |
cat <<EOF >/etc/apache2/conf-available/php5-fpm.conf | |
<IfModule mod_fastcgi.c> | |
AddHandler php5.fcgi .php | |
Action php5.fcgi /php5.fcgi |
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
<layout> | |
<adminhtml_cache_index> | |
<reference name="cache.additional"> | |
<block type="pagecache/adminhtml_cache_additional" name="page.cache.additional" template = "pagecache/cache/additional.phtml" /> | |
</reference> | |
<!-- add your new js adminhtml file only to the cache page --> | |
<reference name="head"> | |
<action method="addJs"><script>safeimagecache.js</script></action> | |
</reference> | |
</adminhtml_cache_index> |
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
javascript:(function() { | |
var daysBack = 14; | |
var report = "trafficsources-overview"; | |
var id = "YOUR GOOGLE ANALYTICS REPORT ID"; | |
var today = new Date(); | |
var from = new Date(new Date().setDate(new Date().getDate()-daysBack)); | |
from = from.toISOString().slice(0, 10).replace(/-/g, ''); | |
today = today.toISOString().slice(0, 10).replace(/-/g, ''); | |
var url = "https://www.google.com/analytics/web/#report/"+ report +"/"+ id +"/%3F_u.date00%3D"+ from + "%26_u.date01%3D" + today; | |
location.assign(url); |