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
#!/bin/sh | |
# ============================================================================= | |
# | |
# File .....: vsftp_am.sh - Manage virtual user accounts for vsftp | |
# Date .....: 23/06/2007 | |
# | |
# ------------------------------- | |
# | |
# This program is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by |
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
login url | |
<?php echo Mage::getUrl('customer/account/login'); ?> | |
logout url | |
<?php echo Mage::getUrl('customer/account/logout'); ?> | |
My Account url | |
<?php echo Mage::getUrl('customer/account'); ?> | |
Register url |
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
#!/bin/bash | |
killall -9 kmix | |
rm -rf $(kde4-config --localprefix)/share/apps/kmix/ | |
rm -f $(kde4-config --localprefix)/share/config/kmix* | |
kmix & |
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
# lib/override.rb | |
module Ckeditor | |
module Helpers | |
module Controllers | |
extend ActiveSupport::Concern | |
def ckeditor_authenticate | |
authenticate_employee! | |
end |
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
$(document).ready(function(){ | |
$("#Bloc_Newsproducts").hide(); | |
$("#displayNewsproducts").click(function () { | |
$("#Bloc_Newsproducts").slideToggle("slow"); | |
}); | |
}); |
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
EXPLAIN SELECT p.*, pl.`description_short`, pl.`available_now`, pl.`available_later`, pl.`link_rewrite`, pl.`name`, tax.`rate`, i.`id_image`, il.`legend`, m.`name` manufacturer_name ,( SELECT SUM(weight) FROM ps_search_word sw LEFT JOIN ps_search_index si ON sw.id_word = si.id_word WHERE sw.id_lang = 2 AND si.id_product = p.id_product AND (sw.word LIKE 'oxyd%') ) position, DATEDIFF(p.`date_add`, DATE_SUB(NOW(), INTERVAL 20 DAY)) > 0 new FROM ps_product p INNER JOIN `ps_product_lang` pl ON (p.`id_product` = pl.`id_product` AND pl.`id_lang` = 2) LEFT JOIN `ps_tax_rule` tr ON (p.`id_tax_rules_group` = tr.`id_tax_rules_group` AND tr.`id_country` = 8 AND tr.`id_state` = 0) LEFT JOIN `ps_tax` tax ON (tax.`id_tax` = tr.`id_tax`) LEFT JOIN `ps_manufacturer` m ON m.`id_manufacturer` = p.`id_manufacturer` LEFT JOIN `ps_image` i ON (i.`id_product` = p.`id_product` AND i.`cover` = 1) LEFT JOIN `ps_image_lang` il ON (i.`id_image` = il.`id_image` AND il.`id_lang` = 2) WHERE p.`id_product` IN (10320,10320,7655,7645,7646,764 |
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
# Time: 111113 19:34:31 | |
# Query_time: 135.645604 Lock_time: 0.000054 Rows_sent: 2353 Rows_examined: 71471585 | |
SET timestamp=1321209271; | |
SELECT DISTINCT `id_product` | |
FROM `ps_search_word` sw | |
LEFT JOIN `ps_search_index` si ON sw.`id_word` = si.`id_word` | |
WHERE sw.`id_lang` = 2 | |
AND sw.`word` LIKE 'co%'; |
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
Installation : | |
------------- | |
- décompresser l'archive dans le répertoire 'modules' de prestashop | |
- activer le module dans le backoffice de prestashop | |
- dans le fichier "Cart.php" (dans le répertoire "/classes/") ajoutez ces lignes : | |
include_once(dirname(__FILE__).'/../modules/freeshipping/freeshipping.php'); | |
$fsz = new FreeShipping(); | |
if ($fsz->checkFreeShippingPriceCart($this, $id_zone, $carrier)) return $shipping_cost; | |
dans la fonction "getOrderShippingCost", après la ligne : | |
$configuration = Configuration::getMultiple(array('PS_SHIPPING_FREE_PRICE', 'PS_SHIPPING_HANDLING', 'PS_SHIPPING_METHOD', 'PS_SHIPPING_FREE_WEIGHT')); |
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 NAMES 'utf8' | |
SET NAMES 'utf8' | |
INSERT IGNORE INTO `ps_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES ('PS_RESTRICT_DELIVERED_COUNTRIES', '0', NOW(), NOW()) | |
UPDATE `ps_country_lang` SET `name` = 'United States' WHERE `name` = 'United State' | |
ALTER TABLE `ps_discount` ADD `include_tax` TINYINT(1) NOT NULL DEFAULT '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 | |
class Order extends OrderCore | |
{ | |
public function getProductsDetail() | |
{ | |
} | |
} |
OlderNewer