Magento
Magento: Product Collection using Ids Or Sku
1- Following code load product useing ids. 2- For collection within a range 3- Following code load product useing SKUs.
1- Following code load product useing ids. 2- For collection within a range 3- Following code load product useing SKUs.
1- If you want to show stock sold on the product page for the entire duration the product has been active, use the following code: 2- if you want to show Qty ordered today, use the following code: 3- If you want to have it so that it only shows Read more…
To increase the session time in admin Go to System => Configuration => Admin => Security => set Session Lifetime (seconds) : value as you want. ( like : 14000). Now go to System => Configuration =>Web => Session Cookie Management => set Cookie Lifetime 14000.
In the addtocart.phtml file find the following code(near line 34) Replace with this code: 1-This code shows the “Available Qty for Product”. 2- This code shows the “Maximum Qty Allowed in Shopping Cart”.
“Magento has a built in library for calendar functionalities. However the calendar library is available only on Admin pages like Customer Grid,Customer Account view page,Sales order Grid etc. We can extend the prototype Javascript library’s calendar functions to frontend. Step 1: Edit the page.xml file in your current theme in Read more…
There are two options you can use via Magento administration. 1. Setting default Sort Order for category When you go to Category page in Magento administration (Catalog/Manage Categories), you’ll see “Display Settings” tab. From there you can modify “Available Product Listing Sort By” and “Default Product Listing Sort By” values. Read more…
There is a feature in Magento where the category list can be sorted based on how the administrator sees fit. The problem is that most stores will want to sort the category list alphabetically. With a large catalog, the list quickly becomes a hassle to navigate and becomes a frustrating Read more…
Open app/design/frontend/YOUR_PACKAGE/YOUR_THEME/template/catalog/product/view.phtml Find the place where you want to add your links/buttons and add the following: Add the following code below the variables we defined in the previous step: Adding OpenGraph meta tags to your Magento store is quite easy. Just add the following code below the last meta tag Read more…