Change in modules\blockcart\ajax-cart.js line 40 //for category product-list page ‘add’ button… $(‘.p_add .ajax_add_to_cart_button’).unbind(‘click’).click(function(){ var idProduct = $(this).attr(‘rel’).replace(‘ajax_id_product_’, ”); var qty = $(‘.qty_ajax_id_product_’+idProduct+’ input’).val(); ajaxCart.add(idProduct, null, true, null, qty, null); return false; }); Change in themes\prestashop\product-list.tpl after li tag notice: remove “\{” to “{” and “\}” to “}” in this code 1\}onkeyup=”checkMinimalQuantity(\{$product.minimal_quantity\});”\{/if\} />

Read more

Load correct product breadcrumb from front page in Magento

Change in app\code\core\Mage\Catalog\controllers\ProductController.php After: $categoryId = (int) $this->getRequest()->getParam(‘category’, false); add code: if($categoryId == 0){ $_product = Mage::getModel(‘catalog/product’)->load($productId); $cat_ids = $_product->getCategoryIds(); $categoryId = $cat_ids[0]; }

Read more

1. Change in modules\blockcart\blockcart.tpl after line 125: {l s=’Tax’ mod=’blockcart’} {$tax_cost} add code: {l s=’Total without tax’ mod=’blockcart’} {$total_without_tax} 2. Change in modules\blockcart\blockcart.php after line 95: ‘total’ => Tools::displayPrice($totalToPay, $currency), add code: ‘total_without_tax’ => Tools::displayPrice($totalToPayWithoutTaxes), 3. Change in modules\blockcart\ajax-cart.js after line 575: $(‘.ajax_cart_tax_cost’).text(jsonData.taxCost); add code: $(‘.ajax_cart_total_without_tax’).text(jsonData.totalWithoutTax); 4. Change in modules\blockcart\blockcart-json.tpl after line 96: “shippingCost”: “{$shipping_cost|html_entity_decode:2:’UTF-8′}”, […]

Read more

Simple way to change stylesheet:

Read more

Switch stylesheet

Simple way to change stylesheet:

Read more

Animation in jQuery   $(‘#clickme’).click(function() { $(‘#book’).animate({ width: [‘toggle’, ‘swing’], height: [‘toggle’, ‘swing’], opacity: ‘toggle’ }, 5000, ‘linear’, function() { $(this).after(‘ Animation complete. ‘); }); });

Read more