WampServer issues after Windows 10 upgrade


I was facing a similar problem with WAMP SERVER. In Windows 10, the Word Wide Web Publishing Service comes pre-installed. This is related to IIS and you can remove it if you don’t need it.

This blocks the port 80 making Apache act weirdly. You can do the following and try again.

Go to Start, type in services.msc
Scroll down in the Services window to find the World Wide Web Publishing Service.
Right click on it and select Stop.
This should make port 80 free and restarting WAMP/XAMPP should get you up and running!

How To Add Quantity drop down on Magento Product Page


Step-> 1 :: Go to app/design/frontend/base/default/template/catalog/product/view/addtocart.phtml

In the addtocart.phtml file find the following code(around line 33)

<input name="qty" type="text" class="input-text qty" id="qty" maxlength="12" value="<?php echo $this->getMinimalQty($_product) ?>" />

Step-> 2 :: Replace with this code:

This code shows the “Available Qty for Product”.

<select class="input-text qty" name="qty" id="qty">
<?php $i = 1 ?>
<?php do { ?>
<option value="<?php echo $i?>">
<?php echo $i?>
<?php $i++ ?>
</option>
<?php } while ($i <= (int)Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product)->getQty()) ?>
</select>

————————————————–OR————————————————–

This code shows the “Maximum Qty Allowed in Shopping Cart”.

<select class="input-text qty" name="qty" id="qty">
<?php $i = 1 ?>
<?php do { ?>
<option value="<?php echo $i?>">
<?php echo $i?>
<?php $i++ ?>
</option>
<?php } while ($i <= (int)Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product)->getMaxSaleQty()) ?>
</select>

How-To-Add-drop-down-on-magento-product-page

Favorites On Our Bookshelf: Free Ebooks From the Daily Post


The Daily Post

Looking for some daily writing inspiration? Need some fundamentals to improve your photography? How about ideas on how to grow your audience? Look no further than our free ebooks, all of which come in three great flavors: .mobi, .pdf, and .epub.

365 Writing Prompts

Need a warm-up to stretch your brain for today’s writing session? Just want some new ideas? Muse done run off? 365 Writing Prompts waits patiently for you, like the friend you never knew you had, ready to whisper words of writing inspiration into your ear.

Download it for free and get writing, today.

Photography 101

Photographic tips and inspiration in the palm of your hand. Let WordPress.com photographers guide you on how to get the best shot, no matter whether you’re using a fancy DSLR or the iPhone in your pocket. Chock full of fundamentals such as composition and using light effectively, Photography 101 will help…

View original post 73 more words