Monday 19 January 2015

increment decrement in php

Hello

increment decrement in php

there 4 types

1)Pre-increment:-

++$my_information  means it can be Increments $my_information by one, then returns $my_information.

2)Post-increment

$my_information++ means it can be Returns $my_information, then increments $my_information by one.

Change products per page for individual categories in magento

Hello 
Change products per page for individual categories in magento


 all your default values are set in "Products per Page on Grid Allowed Values" in Admin > system config > Catalog > Catalog > Frontend

Layout handle for product grid and list view in magento

 Layout handles for product grid and list view in MagentoHello

Using the handles: catalog_category_default, catalog_category_layered and catalogsearch_result_index you should be able to change the template of the products listed.


Thursday 15 January 2015

How to pass value from Javascript to php variable on the second page?

hello

How to pass value from Javascript to php variable on the second page?

I am giving example of how pass value using javascript.

create .php file like demo.php write to code

Friday 9 January 2015

Magento secure url Secure/Unsecure Link - Link Securely for Secure Pages only

hello

Your first (with the {{media}} tag) is correct and should work.

In the admin go to System > Configuration > Web > Secure and make sure the following are set:

    Base Link URL - {{secure_base_url}}
    Base Skin URL - {{secure_base_url}}skin/
    Base Media URL - {{secure_base_url}}media/

    Base Javascript URL - {{secure_base_url}}js/

magento Get Base Url , Skin Url , Media Url , Js Url , Store Url and Current Url ,home url , module url , drirectory url userfull reference for magento

Hello here some useful code for Magento developer

Get Url in cms pages or static blocks


Thursday 8 January 2015

Change product list page template in magento


If you need to set page template for all categories, you need to take into consideration of default categories as well as layered categories. Use local.xml file for this.

first we want to create local.xml file in your theme. in path like this

app\design\frontend\<your_package>\<your_theme>\layout\local.xml