Magento Themes and Magento Extensions

How to remove Paypal Quick Checkout button from Magento when using Paypal.

Share
Posted on May 24th, 2013 | Posted by admin

If you disable “guest checkout” in magento — and are using PayPal — guest check is still possible via Paypal button–it will show below the “Proceed to Checkout” button.

In order to completely remove the possibility of Guest checkout, you’ll need to alter the following:

app/design/frondend/default/YOURTEMPLATE/template/paypal/link.phtml
  • copy link.phtml to link-01.phtml or whatever
  • open/edit link.phtml and delete (or comment out) everything.

Note: I use numbering for different version backups. Higher number = previous version; e.g. link-01.phtml, link-02.phtml. The reason I don’t name it something as such, “link.phtml.bak” is because your code editor will not be able to distinguish what type of file this is if you change the extension (in this case php)… so you won’t get the benefit of code highlighting.

Deluxe Responsive Magento Theme

Share
Posted on May 23rd, 2013 | Posted by admin

The Deluxe Magento responsive theme will be please you with it’s responsive function that automatically resize layout to screen size. It will make your customers satisfactory, comfortable and happy. Quick links to promoted, hottest, special products are remarkable point of the theme. Also, slideshows, and advertising box are all ready to use, to show your profession.

The magento template is a clear design, color impressed, font with admin option. Many new features such as slideshow powerful admin module, Mega menu , Featued products slider, New products slider, Upsell products slider, Related products slider, price slider filter, ajax add to cart, Dropdown shopping cart, back to top button, thumbnail images slider, Cloud zoom Images with lightbox extra links and blocks and so on.

Compatibility: magento 1.5.x.x, magento 1.6.x.x, magento 1.7++

We supply a full help with our products and after purchase – support to all our customers.

If you are interested in our fully installation you can find detailed information on our website

Magento – Display Sale Icon If Special Price

Share
Posted on May 23rd, 2013 | Posted by admin

Magento – Display Sale Icon If Special Price

Open app/design/frontend/YourPackage/YourTheme/template/catalog/list.phtml

Find (around line 96)

<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(135); ?>" width="135" height="135" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" /></a>

change to

<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(135); ?>" width="135" height="135" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" />

<?php
    // Get the Special Price
    $specialprice = Mage::getModel('catalog/product')->load($_product->getId())->getSpecialPrice();
    // Get the Special Price FROM date
    $specialPriceFromDate = Mage::getModel('catalog/product')->load($_product->getId())->getSpecialFromDate();
    // Get the Special Price TO date
    $specialPriceToDate = Mage::getModel('catalog/product')->load($_product->getId())->getSpecialToDate();
    // Get Current date
    $today =  time();

Setting the Default Currency for a User in Magento

Share
Posted on May 22nd, 2013 | Posted by admin

Setting the Default Currency for a User in Magento
This won’t alter the base price in the system but it will set the start price for a user. Simply add this to the top of /template/directory/currency.phtml

$currentCurrency = $this->getCurrentCurrencyCode();

if(!isset($currentCurrency)) $currentCurrency = ‘NA’;

$currencies = array(“GBP”,”USD”,”EUR”);

if(isset($_GET['cy']))
{
if (in_array(strtoupper($_GET['cy']),$currencies)) {
if(strtoupper($_GET['cy']) != $currentCurrency)

Creating a Magento layout block

Share
Posted on May 21st, 2013 | Posted by admin

Magento is a tricky beast to layout correctly. It makes use of not only template files and XML files to fit everything together. The documentation is a little vague (because they offer no support unless you buy the license), but by reading enough forums and blog posts (like this one), you can piece it together.

The goal

I’ve got a site design that has a “toolbar” that displays on all pages. It’s not in the sidebar and it’s not in the header. It’s inside the main content section, floating up at the top. I need to create the toolbar, and then put the Magento site search and Magento cart summary in that toolbar.