PHP

Prestashop: Debug Mode and Memory Upgrade

Posted on

To turn on debug mode go to: config/defines.inc.php Set define('_PS_MODE_DEV_', false); --> define('_PS_MODE_DEV_', true);   To upgrade PHP Memory Limit vim /etc/php5/apache2/php.ini --- Go to Memory Limit.   To check PHP Config create a file with the following code. <?php phpinfo(); ?>   Another way to raise you your servers performance is to create a SWAP file, […]

iDempiere

ERP to Webstore Integration

Posted on

Inventory is on iDempiere Script to get inventory on CSV File Script to upload CSV File from iDempiere's server to webstore SSH to Remote Webstore to execute update Script Current Problems... Script to Export puts " " on the String.   Products are being doubled because comparison does not work. productImport.php ---> when comparing the […]

Prestashop

Pretashop: Add and Update products Programmatically

Posted on

I'm working on a project where I need to add products from our ERP System to a Prestashop Catalog, and need to regularly mass update (10,000 products) some information on specific product (Pricing, Stock Information etc...) Current Situation: I've managed to create script to import from a CSV and add the files to the DB using […]

Prestashop

Prestashop: Edit Meta Title Info

Posted on

My Goal: I want the Title of the page to show,  Manufacturer Name - Part Number   Steps: Go to Meta.php Go to the Section getProductMetas   public static function getProductMetas($id_product, $id_lang, $page_name) { $sql = 'SELECT `name`, `meta_title`, `meta_description`, `meta_keywords`, `description_short`, `reference` FROM `'._DB_PREFIX_.'product` p LEFT JOIN `'._DB_PREFIX_.'product_lang` pl ON (pl.`id_product` = p.`id_product`'.Shop::addSqlRestrictionOnLang('pl').') '.Shop::addSqlAssociation('product', […]

Prestashop

Prestashop: Add Manufacturer Description to Product Page

Posted on

Add the following code to ProductController.php @ /controllers/front/ProductController.php $id_lang = $this->context->language->id; $manufacturer = new Manufacturer($this->product->id_manufacturer, $id_lang); $manuf_description = $manufacturer->description; $this->context->smarty->assign('manufact_desc', $manuf_description);     Then Add the variable $manufact_desc to the product.tpl template. Watch out with the quotation formal.   http://www.prestashop.com/forums/topic/305984-add-manufacturer-description-into-product-page/