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
function inject_root_to_crumbs(&$crumbs_in, $is_last_link){ | |
var_dump($crumbs_in); | |
$out = array_splice($crumbs_in, 1, 0, | |
array ( "boutique" => | |
array( | |
"label"=> | |
"Boutique", | |
"title"=> | |
"Go to back to Online Boutique Store", | |
"link"=> |
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 if (count($this->getGalleryImages()) > 0): ?> | |
<link rel="stylesheet" href="/js/custom/fancybox/jquery.fancybox.css?v=2.1.3" type="text/css" media="screen" /> | |
<script type="text/javascript" src="/js/custom/fancybox/jquery.fancybox.pack.js?v=2.1.3"></script> | |
<script type="text/javascript"> | |
jQuery(function($){ | |
$('.more-pics').fancybox(); | |
}) | |
</script> | |
<div class="more-views"> | |
<ul> |
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
<div class="category-products"> | |
<ul class="products-grid"> | |
<?php | |
$_categories=$this->getCurrentChildCategories(); | |
if($_categories->count()): | |
$categorycount = 0; | |
foreach ($_categories as $_category): | |
if($_category->getIsActive()): | |
$cur_category=Mage::getModel('catalog/category')->load($_category->getId()); | |
#$layer = Mage::getSingleton('catalog/layer'); |
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
<rss xmlns:g="http://base.google.com/ns/1.0" version="2.0"> | |
<channel> | |
<title>...</title> | |
<description>...</description> | |
<link>http://www.example.com/</link> | |
<item> | |
<title> | |
<![CDATA[ Armani Idole d'Armani 50ml Eau de Parfum Spray ]]> | |
</title> | |
<link> |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
from lxml import etree | |
import urllib2 | |
xml = u"""<rss xmlns:g="http://base.google.com/ns/1.0" version="2.0"> | |
<channel> | |
<title>...</title> |
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
<?xml version="1.0" ?> | |
<layout> | |
<default> | |
<reference name="root"> | |
<action method="setTemplate"> | |
<template>page/1column.phtml</template> | |
</action> | |
<action method="setIsHandle"> | |
<applied>1</applied> | |
</action> |
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
<catalog_product_view><!-- product view --> | |
<reference name="root"> | |
<action method="setTemplate"><template>page/1column.phtml</template></action> | |
</reference> | |
<!-- <reference name="my-related-products"> | |
<update handle="catalog.product.related" /> | |
</reference> --> | |
<update handle="my_related_products" /> | |
</catalog_product_view> |
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
<catalog_product_view><!-- product view --> | |
<reference name="root"> | |
<action method="setTemplate"><template>page/1column.phtml</template></action> | |
</reference> | |
<reference name="product.info"> | |
<block type="catalog/product_list_related" name="catalog.product.related" before="-" template="catalog/product/list/related.phtml"/> | |
</reference> | |
</catalog_product_view> |
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
root@hoskins:/etc/nginx/sites-enabled# su www-data | |
$ /usr/local/bin/cgiwrap-fcgi.pl | |
FastCGI: manager (pid 7354): initialized | |
FastCGI: manager (pid 7354): server (pid 7355) started | |
FastCGI: manager (pid 7354): server (pid 7356) started | |
FastCGI: server (pid 7355): initialized | |
FastCGI: server (pid 7356): initialized | |
FastCGI: manager (pid 7354): server (pid 7357) started | |
FastCGI: manager (pid 7354): server (pid 7358) started | |
FastCGI: server (pid 7357): initialized |
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
location ~ ^/cgi-bin/.*\.pl$ { | |
gzip off; #gzip makes scripts feel slower since they have to complete before getting gzipped | |
fastcgi_pass unix:/var/run/nginx/cgiwrap-dispatch.sock; | |
fastcgi_index index.cgi; | |
fastcgi_param SCRIPT_FILENAME $document_root/cgi-bin/$fastcgi_script_name; | |
fastcgi_param QUERY_STRING $query_string; | |
fastcgi_param REQUEST_METHOD $request_method; | |
fastcgi_param CONTENT_TYPE $content_type; | |
fastcgi_param CONTENT_LENGTH $content_length; | |
fastcgi_param GATEWAY_INTERFACE CGI/1.1; |