Have you ever found interesting videos on YouTube, and wanted to download and save them on your hard drive (for offline access or archiving purpose)? There is a handy open-source Linux tool that does exactly that: download YouTube videos.
A tool called youtube-dl is a command-line program written in Python that downloads videos from various online
In this tutorial, we are going to see all the different form fields we can use in admin forms.
Magento has many different type of field available by default, so lets see the syntax of using each of these fields. This tutorial is in continuation of the previous tutorial so the same classes will be used
addAttributeToFilter is used to filter EAV collections and will filter the products based on the attributes that you’ve included in your collection.
EAV-models: product, customer, sales, etc.
addFieldToFilter is used to filter Non-EAV collections and will filter the products based on columns in the database from the table catalog_product_en… Read More
The url for customer page in the admin panel. index.php/admin/customer/edit/id/7
echo Mage::helper('adminhtml')->getUrl('adminhtml/customer/edit/index/id',array('id'=>7));
The url for catalog product page in the admin panel. index.php/admin/catalog_product/edit/id/166
echo Mage::helper('adminhtml')->getUrl('adminh… Read More
Overview
Datejs is an open source JavaScript Date library for parsing, formatting and processing.
The last ‘official’ release was Alpha-1 on November 19th, 2007. The project has been mostly dormant since that early release, but steps are being taken to revive the project.
A test suite is available online at http://datejs.com/test/.
Getti… Read More
bool mkdir ( string $pathname [, int $mode = 0777 [, bool $recursive = false [, resource $context ]]] )
$pathname should be the server path to the file and not a url
Try
$path = Mage::getBaseDir('media') . DS;
You should try using Varien_File_Uploader
include_once Mage::getBaseDir() . '/lib/Varien/File/Uploader.php';
/* Starting upload */
$uploader = n… Read More
Configuration Settings
– Login to admin panel
– Go to System -> Configuration -> CUSTOMERS -> Customer Configuration -> Login Options
– Set: Redirect Customers to Account Dashboard after Loggin in = No
– You can see in comments for this field: Customer will stay on the current page if “No” is selected.
This setting will redirect customers to the…
You’re using your iPad to browse the Web and you’re curious to view the source of a webpage but don’t have the options to do so. The next thing you know, you’re swapping back to your Mac or PC to open up the same website to check the Page Source. Now if that isn’t called