As we all know Multiple Select in HTML is a Select box where we can choose multiple values. While define multiple select by adding multiple=”multiple” like the example below – One Two Three But when we will submit data, even after choosing multiple values, $_POST will show only one entry. To get all the values… Continue reading How To Get Values Of Multiple Select In PHP
Tag: PHP
How To Get The Selected Theme Path In Zen Cart
To get the currently set theme’s path in Zen Cart use the following code – echo DIR_WS_TEMPLATE; This will return value – includes/templates/{your_theme_path}/
How To Create Pages In WordPress With Custom Coding
Objective Create a page in WordPress which will show the header, footer, sidebars like the rest of the site, but will allow custom coding in the main body section. So how to create this WordPress page which will allow custom coding ? 1. Go to the theme folder in wp-content\themes\{your_theme_folder} 2. Create a page with… Continue reading How To Create Pages In WordPress With Custom Coding
Zen Cart Slide Out Vertical Category Sub Category Menu Sidebox Plugin Download
Download Please download the plugin from here, hosted in the official Zen-Cart site. Plugin Description This Zen-Cart plugin creates a new side-box which shows all the active categories as well as the sub categories. At any time all the active sub categories are also loaded recursively and not only when a parent category is visited… Continue reading Zen Cart Slide Out Vertical Category Sub Category Menu Sidebox Plugin Download
How to get the HTTP Referrer in eZ Publish template file
we can use {server(‘http_referer’)} to get the HTTP Referrer URL in a template file.
Zen Cart Blank Page Error Before Or After Installation
The problem – 1. After uploading the files and pointing the browser to the Zen Cart folder blank page is shown. 2. After installation is complete by going to the zc_install folder manually, the store front end is blank 3. Following error is shown – Warning: include(includes/configure.php) [function.include]: failed to open stream: No such file… Continue reading Zen Cart Blank Page Error Before Or After Installation
Magento – Get Product Stock Quantity
To get the quantity in stock for a particular product in Magento use the following code – $qtyStock = Mage::getModel(‘cataloginventory/stock_item’)->loadByProduct($_product)->getQty();
Magento – Show Error Report On Browser
The new versions of Magento do not show the error report on browser. Instead they are stored on separate files and the file name is shown on browser. This is a great feature which is done for safety. However while developing it becomes a little irritating to open the error files every time. So, if… Continue reading Magento – Show Error Report On Browser
Magento – Changing Admin Path
For security reason we should change the admin path from the very obvious admin to something else. Like for example it can be backend or back or even abracadabra. Whatever you think will be secure can be set as admin path by the following steps – 1. Open file \app\etc\local.xml2. Look for the line 3.… Continue reading Magento – Changing Admin Path
Magento – Fetch All The Products Under A Certain Category
If you want to fetch all the products under a certain category in Magento, use the below code – $catObj = Mage::getModel(‘catalog/category’)->load($catId);$prodObj = $catObj->getProductCollection()->getData(); Here $catId is the id of the category whose product you want to fetch. And $prodObj will return the array of products, each of whose values will be an array like… Continue reading Magento – Fetch All The Products Under A Certain Category