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
# PrestaShop | |
# | |
# VERSION 0.1 | |
# DOCKER-VERSION 0.2 | |
from ubuntu:12.04 | |
# make sure the package repository is up to date | |
run echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list | |
run apt-get update |
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 ProductController extends ProductControllerCore | |
{ | |
public function initContent() | |
{ | |
FrontController::initContent(); | |
if (!$this->errors) |
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
server { | |
listen 80; | |
server_name MY.WEBSITE.TLD; | |
root /Users/ME/Sites/FOLDER; | |
client_header_buffer_size 16k; | |
large_client_header_buffers 16 16k; | |
# qsa | |
rewrite ^/api/?(.*)$ /webservice/dispatcher.php?url=$1 last; |
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
wget http://prestashop.googlecode.com/files/prestashop_1.4.8.2.zip | |
unzip prestashop_1.4.8.2.zip | |
rm -rf css/ | |
rm -rf favicon.ico | |
rm -rf img/ | |
rm -rf index.html | |
rm -rf picture_library/ | |
rm -rf prestashop_1.4.8.2.zip | |
rm -rf test/ |
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
server { | |
listen 80; | |
server_name MY.WEBSITE.TLD; | |
root /Users/ME/Sites/FOLDER; | |
client_header_buffer_size 16k; | |
large_client_header_buffers 16 16k; | |
# qsa | |
rewrite ^/api/?(.*)$ /webservice/dispatcher.php?url=$1 last; |
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
<!-- MODULE Block footer --> | |
<div class="block_various_links" id="block_various_links_footer"> | |
<h4>{l s='Informations' mod='blockcms'}</h4> | |
<ul> | |
{foreach from=$cmslinks item=cmslink} | |
{if $cmslink.meta_title != ''} | |
<li class="item"><a href="{$cmslink.link|addslashes}" title="{$cmslink.meta_title|escape:'htmlall':'UTF-8'}" rel="nofollow">{$cmslink.meta_title|escape:'htmlall':'UTF-8'}</a></li> | |
{/if} | |
{/foreach} | |
<!-- <li class="last_item">{l s='Powered by' mod='blockcms'} <a href="http://www.prestashop.com" rel="nofollow">PrestaShop</a>™</li> --> |
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 Product extends ProductCore { | |
public function getAttributesGroups($id_lang) | |
{ | |
return Db::getInstance()->ExecuteS(' | |
SELECT ag.`id_attribute_group`, ag.`is_color_group`, agl.`name` AS group_name, agl.`public_name` AS public_group_name, a.`id_attribute`, al.`name` AS attribute_name, | |
a.`color` AS attribute_color, pa.* | |
FROM `'._DB_PREFIX_.'product_attribute` pa |
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 /** | |
* ***************************************************************************** | |
* Add Metaboxes | |
* ***************************************************************************** | |
*/ | |
//add_action( 'add_meta_boxes', 'cwpt_custom_metaboxes' ); | |
function cwpt_custom_metaboxes(){ | |
add_meta_box('cwpt_preview', 'Site Preview', 'cwpt_preview_box', 'cwp_custom_options', 'normal', 'high'); |