Magento
Magento: Print magento query
If you want to see the query use the following code for example: Magento Query: Result For Example: SELECT `main_table`.* FROM `banner` AS `main_table`
If you want to see the query use the following code for example: Magento Query: Result For Example: SELECT `main_table`.* FROM `banner` AS `main_table`
var currentTallest = 0, currentRowStart = 0, rowDivs = new Array(), $el, topPosition = 0; jQuery(container).each(function() { var el = jQuery(this); jQuery(el).height(‘auto’) topPostion = el.position().top; if (currentRowStart != topPostion) { for (currentDiv = 0 ; currentDiv < rowDivs.length ; currentDiv++) { rowDivs[currentDiv].height(currentTallest); } rowDivs.length = 0; // empty the array Read more…
1.Open Your form and in the input field add the class : validate-mobileno For Example: 2. At the bottom of your form you will find a script add the following code in your script tag For Example:
You can enable Template path hint in two ways: WAY 1: Connet your Database and enter values into ‘core_config_data’ table Run the following query on the Magento database: When you’ve finished development want to turn off template hints in the admin panel, open the core_config_data table and change the ‘value’ Read more…
In Your Static block suppose this is the product add to cart link: you need to call a function with parameter of product id, in your header write a script with the following code: and inside the controller add the function:
Navigate to file view.phtml app/design/frontend/your-package/your-theme/template/catalog/layer/view.phtml Remove all file code with the following code
app/code/local/Mage/Catalog/Block/Product/New.php app->design->fronted->your_package->your_theme->template->catalog->product->new.phtml Add code in cms->page->design->Layout Update XML area.
Create A small extension for the requirement Create a file: app/code/local/Sushant/Catalog/etc/config.xml Helper: app/code/local/Sushant/Catalog/Helper/Observer.php Enable Your module :