Quantcast
Browsing latest articles
Browse All 16 View Live

how to get avaiable product into magento?

i was find a solution for this problem, that is:$g = Mage::getModel('catalog/product')->getCollection() ->addAttributeToFilter('type_id', array('eq' => 'groupon'))...

View Article


Magento Get related products

foreach ($_product->getRelatedLinkCollection() as $link) { $relatedData[$link->getLinkedProductId()]['position'] = $link->getPosition();$itsProducts[] =...

View Article


Image may be NSFW.
Clik here to view.

Magento: Display related products block on checkout step

Let’s show some love for the Magento developers with a quick but really useful tip: How to display a related products block on checkout step, or more precisely how to a show related products block on...

View Article

Magento: Get parent id of simple product associated to configurable product

A simple product is associated with a configurable product. You have the id of the simple product. Now, you need the id of the configurable product with which the simple product is associated.Get...

View Article

Magento: Get Product Collection by Type

here, I will be showing how you can get product collection from product type i.e.simple, configurable, bundle, grouped, and virtual.$collectionSimple=...

View Article


Magento SEO Tips 1: Make sure website is visible to search engines – Meta...

This really is SEO textbook chapter 1.1. Make sure your website is actually accessible to search engine ‘spiders’. In Magento, you can easily do that by going to Configuration >> Design >>...

View Article

Quick Tip: Disable all Local Modules at Once

While going through the study guide for the Magento Developer Exam, I’ve been learning a few interesting details that are squirreled away in the Magento code, but can be useful in day to day Magento...

View Article

How To Package Joomla Libraries

You’ve seen it before: the monster Joomla installation package. It’s a giant component, several side modules, and at least one plugin. Once you dig through the code, you notice the plugin isn’t even...

View Article


How to override offline mode in Joomla without requiring a login

As you may know, you can set your Joomla site "offline" by setting "Site Offline" to "Yes" in the Global Configuration. This is a great feature that enables you to build or troubleshoot your site in...

View Article


How to show sql query in Magento Collections ?

In some case, we need show sql query to test collection query. This is code to do show it:$collection->printLogQuery(true);

View Article

How to use sql query 'IN' in magento Collections ?

To use sql query IN in magento collection : $str = array(1,2,3,4); $tiles->addFieldToFilter('main_table.tile_id',array('in'=>$str));

View Article

How to enable debug mode in magento ?

To open debug mode to delvelop, we only goto index.php of your magento and find codeif (isset($_SERVER['MAGE_IS_DEVELOPER_MODE'])) { Mage::setIsDeveloperMode(true);}and insert this line :...

View Article

How to show all php error in PHP

insert this code when you want show all php error error_reporting(E_ALL);ini_set('display_errors', '1');

View Article


"HEADERS ALREADY SENT" error to the system.log

to see exact extension make error "HEADERS ALREADY SENT" in system.log we look at file: lib/Zend/Controller/Response/Abstract.phpand find function name is : "public function canSendHeaders($throw =...

View Article

How to enable general log in xampp for testing (magento )

to day, i work with magento and get error message : "SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '1-0-1' for key 'PRIMARY'". We can't find any thing to fix, last time, i...

View Article


create new cache type in magento

To create new cache type in magento, only add this code to config.xml of your extensions Your Custom Cache LabelDescription of cache type.YOUR_CACHE_TAGwhen you want use your cache type. we can use...

View Article
Browsing latest articles
Browse All 16 View Live