Run Android L Sample Apps on Android Studio Beta 0.8.1

Import Android L Sample Project from GitHub

check those items below

1. gradle version

2. android support libraries

3.android sdk version


Android L Sample

View original post

Advertisements

How to SpeedUp your magento website ?

Mr.Jute

How to SpeedUp your magento website ?
Normally magento website loading time will get more. Due to this issue, you may loose your customers.But loosing of customers is a kind of loosing your business.

Why slow ?
Basically magento is developed with EAV structure.Using EAV is good. But, storing a one value into the database, we should use minimum 4 tables at-lease.Similarly if you want to fetch one product value from DB then at-least you have to refer min 4 table.If will reflect into website.
Ex: For getting a category information we have join below table.
1. catalog_category_entity
2. catalog_category_entity_datetime
3. catalog_category_entity_decimal
4. catalog_category_entity_int
5. catalog_category_entity_text
6. catalog_category_entity_varchar

Not only EAV is the drop back in your website, due to joining of table and fetching of values it may take some delay.
Similarly, lot of things we need consider when we move the live server.

Way to Speed Up your…

View original post 316 more words

To get select attribute value by label – Magento

DRAJI

magento-color-swatches-admin-page

$arg_attribute = ‘color’;  // for example color attribute which is drop down field
$arg_value = ‘Red’; //whatever you want to get value of which color
$attribute_color = Mage::getModel(‘eav/config’)->getAttribute(‘catalog_product’, $arg_attribute);
$allOptions_color = $attribute_color->getSource()->getAllOptions(true, true);
foreach ($allOptions_color as $color_instance) {
    if($color_instance[‘label’]==$arg_value){
        echo $val = $color_instance[‘value’];
        break;
    }
}

Now you can see the value of  “Red” color attribute.

View original post

To set color attribute to prodcut in magento

DRAJI

Recently I did job like create product programmatically. All of the work mostly completed successfully except color attribute. I have tried a lot. But color attribute doesn’t saved when run my generated code. I hunts a google lot. Nothing Improvement.  😦

color_swatch_2186a5906891efa6e95042d7f3cfee8f_admin4full-wide

Finally I found my silly mistake. I have tried to set color attribute to product by using following code snippet

$product->setColor(“Red”);

We have to set select attribute by its value instead of label.

$product->setColor($val); //$val is value of Red color attribute label

This silly issue consumes around one hour my life! This tip may help you!

Note : You can get an idea to get select attribute value by its label by referring here To get select attribute value by label – Magento

Have any doubt, feel free to comment here!

View original post

Magento Imagine Conference 2014: The Behavioral Economics of Gifting and its Impact on Commerce

Loop Commerce Blog

The Loop Team was excited to be a part of Magento Imagine 2014, where we spent 4 days in Las Vegas, Nevada, interacting with the 1700+ merchants, partners, developers and digital industry experts that were present during the event.

Magento certainly rocked the Hard Rock Hotel with an awesome line-up of speakers and fun networking sessions – it was great to experience the energy in the community first-hand.

magento_featuredimage3

Indeed, the conference was definitely successful in facilitating the exchange of inspiring ideas and discussion of e-commerce trends.

Loop was proud to be invited to speak at this year’s conference together with Kristen Berman, Co-Founder of Irrational Labs, sharing about how the behavioral economics of gifting impacts commerce globally.

magento_featuredimage2

During the session, we touched on various patterns behind gift buying, referencing various behavioral economics studies (including some of Prof Dan Ariely’s intriguing experiments) to examine how people perceive and…

View original post 210 more words

How to Add New Category attribute in magento admin

hemamagento

To Add new category attribute in magneto Admin need to to the following steps

1) In Any custom Module Installer script (i.e) mysql4-install-0.1.0.php (sql folder) we have to add the following code

$installer->addAttribute(‘catalog_category’, ‘test_attribute’, array(
‘group’ => ‘General’,
‘input’ => ‘text’,
‘type’ => ‘varchar’,
‘label’ => ‘Test Label’,
‘visible’ => true,
‘required’ => false,
‘visible_on_front’ => true,
‘global’ => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL,
));

2) Rename the file like “mysql4-upgrade-0.1.0-0.1.1.php”

3) After clearing cache, you can see that your new custom attribute appear in Category page  Manage Categories section(General Information) in admin.

fyi,check with core_resource table custom module  current version as 0.1.1 updated properly in DB (after run this upgrade script ) ,if in case of newly added attribute doesn’t created properly

View original post

Magento: Add a custom field to the Contact Us Form

Add a custom field to the Contact Us Form : Magento

Baljit Web Developer

Update the Contact Us form template

Firstly you need to edit the contact form template.
If using the default theme, this code will be located in
/magento/app/design/frontend/base/default/template/contacts/form.phtml

Add the following markup to the template in the desired position:

__('Where did you hear about us?') ?> *
Please select... Google Magazine Word of Mouth Other

Note the use of class=”required-entry” on the select element.. This tells the default javascript validation that this field is required. If the user tries to submit the form without choosing an option, then it will throw an error and highlight the field.

So that takes care of the form, now you need to set up a custom email template that includes the new field.

Create a custom transactional email template

Navigate to the following…

View original post 111 more words