Magento
Magento: Get State Code, ID, Name from Region ID
Get state code from state id Get state name from state id Get state id from state code
Get state code from state id Get state name from state id Get state id from state code
Joining tables in Magento when it comes to EAV with Flat table is quite complicated. Consider you want to join sales_flat_order table with customer EAV tables to get Customer’s firstname and lastname, it becomes difficult as customer’s name comes from customer_entity_varchar table. Below code will join sales order flat table Read more…
(generally Mage/Checkout/controllers/OnepageController.php)
For Next or Previous Products Links on product page You can use the following code: On View.phtml:
You can remove unwanted sidebaar using local.xml file
System->configuration->payment methods -> Paypal All in one payments solutions-> Paypal Payments Advanced (includes express checkout)-> Basic settings paypal payments advanced-> Frontend Expereince settings -> Paypal Product Logo
in Cms Page Go to “CMS – Manage Pages” and select “Home Page” from the list of pages. Use this code snippet to show one category on your front page: For All Products in Phtml Page:
On product page, generally its located in app/design/frontend/{designPackageName}/{themeName}/template/catalog/product/view.phtml put the following code on view.phtml file:
************** Change Magento alert message styles ************** Magento front-end alert messages are usually not the elements you style when developing a theme. Because of that almost all Magento websites use default alert styles. Even if the theme is highly modified it is enough to look at the alerts to be Read more…