Magento developer

Leading Developer of Magento Themes and Extensions

Support

How do I add buy buttons to products on the category or home page in Ultimento?

Ultimento by default doesn't include "add to cart" or "buy" buttons to products displayed on category pages or on the homepage. These call to action links generally perform quite poorly as a majority of customers prefer to learn more about a  product before adding it to their cart. 

That said, in some cases it can still make sense to have these links and thankfully they're easy to put back if you need. Just follow the steps below to add the buttons you need. 

1) Since you're going to be editing core Ultimento files make sure you make your modifications in an upgrade-safe manner. All customized files should be put in your ultimento-custom folders. 

2) Log in to your FTP and find the file you want to edit that is appropriate for where you want to add your links...

  • Homepage - app/design/frontend/default/ultimento/template/catelog/product/new.phtml
  • Category Pages - app/design/frontend/default/ultimento/template/catelog/product/list.phtml

3) Paste the following code in the file

--------------------------------------------------------------------------------------------------------------------

<?php if($_product->isSaleable()): ?>
    <button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button>
<?php else: ?>
    <p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
<?php endif; ?>

--------------------------------------------------------------------------------------------------------------------

4) Refresh your Magento and browser cache. You should now see black icons with white text on your site.

5) You can modify the look and feel of these buttons however you like depending on how you want them to look.