18Jan/110

iPhone E-Commerce Tip: When Users Enter Product Quantity, Only Show Them Numbers!

Here is a quick and easy tip that will make your website a bit more usable for iPhone users. The best thing to do is implement a mobile friendly theme, but that is time consuming and can be difficult to get working 100%. With just 16 characters, you can modify your quantity text box so that iPhone users will automatically see a number pad when they choose it.

Here is a screenshot as an example:

iPhone Show Numeric Keypad

Open the file app/design/frontend/default/{yourtheme}/template/catalog/product/view/addtocart.phtml

Find the input box for quantity. Add this snippet of code to the input tag:

pattern="[0-9]*"

Here are some other cool tips for iPhone users:
Display a telephone keypad: <input type="tel">
Display an email keyboard: <input type="email">

Having trouble with this? Let us know in the comments...

Source

Tagged as: , No Comments
19Aug/103

Customize Magento’s Image Resize Functionality

Need to remove the white border around your images? Don't want everything to be square? Here is how to customize the ->resize functionality in Magento.