Magento World

As a Magento parner, we are very honoured to offer you the best Magento Extensions, Magento Modules, Magento Themes and Magento Templates. You will get full support until you feel satisfied! View our Magento page to find what you need!

Thứ Sáu, 23 tháng 3, 2012

Single Magento Products with loadByAttribute

In the last few weeks I’ve not had much time to spend on Magento, I’ve been balls-deep in custom WordPress, Paypal and Google Maps API. One thing I do like actually is the simplicity of the WordPress database for custom MySQL queries. After using the Magento database for the last few years it’s like going from flying a commercial aircraft to driving a golf cart.

Anyway, loading a single product on a webpage is a very basic thing to do for anyone who develops websites with Magento, but using the loadByAttribute function is by far the cleanest method of doing it.

// load by SKU$_product = Mage::getModel('catalog/product')->loadByAttribute('sku', 'ABCDEF');// load by product name$_product = Mage::getModel('catalog/product')->loadByAttribute('name', 'My Single Product');// load by product ID$_product = Mage::getModel('catalog/product')->load(938);

It’s a much less-intensive method than filtering the product collection, and now it’s here if anyone needs it.

Thanks for reading the Magento Blog at E-commerce Website Design.

Adam Moss Author Page


View the original article here

Press Release: Meet Magento UK will sell out fast – last tickets available

The successful eCommerce series Meet Magento goes now London and takes place on October 26 in the Queen Elisabeth II Conference Center. Few tickets are still available and will be sold out quickly.

Meet Magento UK

As an international and official Magento eCommerce conference series, Meet Magento UK deals Magento´s latest technical developments, business models and trends. In less than 3 weeks, merchants, developers, online agencies and decision makers will learn how to best equip and grow their business from Magento experts themselves.

Famous speakers, Magento Executives as well as leaders from X.commerce, PayPal and eBay will guarantee an exclusive program with the latest news about Magento, various lectures and expert talks.

Besides the various program all attendees are invited to a legendary After Show Party at the vibrant Namco Station in the heart of London, which strengthens your new connections and unwinds you after an exciting day full of eCommerce content.

Don´t miss your chance and join over 300 attendees in London! Registrations are possible for a brief time at: www.meet-magento.co.uk.

“Meet Magento” is the leading conference in Magento eCommerce in Europe.

The International conference targets everyone in the eCommerce ecosystems from merchants, partners and developers.  In 2011 for the first time Meet Magento takes place in London, UK and is held as an one-day event. Further information is available at the following website: www.meet-magento.co.uk.

Adam Moss Author Page


View the original article here

Shipping Tax in Subtotal Bug 1.5

There’s a strange bug that exists in version 1.5 of Magento that not a lot of people would have noticed – basically when you have an order and you to invoice it – you will see a subtle change in the subtotal. This only happens when you have your tax settings set to display everything including and excluding tax.

As you can see the shipping tax gets added onto the subtotal.

Now within Magento 1.6 they have fixed this – and I’ve isolated the problem to possibly just the one function. So it might be possible to replace a few lines of code in your 1.5 core files.

Open up your app>code>core>Mage>Sales>Model>Order>Invoice>Total>Subtotal.php

look for the following lines starting at around 62 and replace so it looks like this:

$allowedSubtotal = $order->getSubtotal() - $order->getSubtotalInvoiced();$baseAllowedSubtotal = $order->getBaseSubtotal() -$order->getBaseSubtotalInvoiced();$allowedSubtotalInclTax = $allowedSubtotal + $order->getHiddenTaxAmount()+ $order->getTaxAmount() - $order->getTaxInvoiced() - $order->getShippingTaxAmount();$baseAllowedSubtotalInclTax = $baseAllowedSubtotal + $order->getBaseHiddenTaxAmount()+ $order->getBaseTaxAmount() - $order->getBaseTaxInvoiced() - $order->getBaseShippingTaxAmount();

As you can tell – the shipping gets deducted from the subtotal amount. As this is a bug I’d say update the core files as it shouldn’t have been broken any way :) .

Thanks for visiting the Magento Blog here at e-commerce web design, home of the Magento Fox!

Robert Kent Author Page


View the original article here

Products In Google (Updated)

After many a month on the Blog we’ve decided to re-launch the Google Base script with a few changes – compiling most of the comments that were recieved on the old one. There is another script on the web that is a lot like this one but I don’t think it has been edited at all recently for the changes to Magento – and in any case I cannot find it again – I would credit the start of this script with whoever wrote the original one when I find out your name.

In order to make the most out of this service please follow these steps:

Install this script and run itFollow the Setting Up Cron Tutorial (Making sure you schedule your gproducts script)Follow the Google Scheduling TutorialSit back and relax – no actually start making product and watch as they magically appear on Google!

Now to install this script simply perform the following:

Create a directory on your root called “export” and then create 2 files to put in there:

Make sure that your folder has enough permissions on it as well as those 2 files (to make sure just make them 777 or 775).

Inside your gbase.php file paste the following:

loadArea(Mage_Core_Model_App_Area::AREA_FRONTEND); // fix for catalog price rulestry {$handle = fopen(SAVE_FEED_LOCATION, 'w');$heading = array('id','mpn','title','description','link','image_link','price','brand','product_type','condition', 'availability', 'google_product_category');$feed_line= implode("\t", $heading)."\r\n";fwrite($handle, $feed_line);$products = Mage::getModel('catalog/product')->getCollection();$products->addAttributeToFilter('status', 1);$products->addAttributeToFilter('visibility', 4);$products->addAttributeToSelect('sku');$products->addAttributeToSelect('name');$products->addAttributeToSelect('description');$products->addAttributeToSelect('short_description');$products->addAttributeToSelect('url');$products->addAttributeToSelect('image');$products->addAttributeToSelect('price');$products->addAttributeToSelect('special_price');$products->addAttributeToSelect('manufacturer');$products->addAttributeToSelect('category_ids');$count = count($products);echo "Writing $count Products
";foreach($products as $product) {$product_data = array();$product_data['sku'] = $product->getSku();$product_data['mpn'] = $product->getSku(); // Thanks to jennifer for this$product_data['title'] = $product->getName();$description = str_replace('

 

','',$product->getDescription());if($description == "" || empty($description) || !$description){echo "short
";$product_data['description'] = str_replace('

 

','',iconv("UTF-8","UTF-8//IGNORE",$product->getShortDescription()));} else {echo "long
";$product_data['description'] = iconv("UTF-8","UTF-8//IGNORE",$description); // removes most the utf8 errors (doesnt like row if empty too!)}//$product_data['Deeplink'] = "http://".$_SERVER['HTTP_HOST']."/".$product->getUrlPath(); // thanks to hamish for this$product_data['Deeplink'] = $product->getProductUrl(); // thanks to webmaster128 for this one$product_data['image_link'] = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA).'catalog/product'.$product->getImage();if($product->getSpecialPrice() != NULL){ // update to check for special price or discount$product_data['price'] = round($product->getSpecialPrice(),2);} else {$product_data['price'] = round($product->getPrice(),2);}$brand = $product->getResource()->getAttribute('manufacturer')->getFrontend()->getValue($product);if($brand != "No"){$product_data['brand'] = $product->getResource()->getAttribute('manufacturer')->getFrontend()->getValue($product);} else {if(Mage::app()->getStore()->getName() == "Default Store View"){$product_data['brand'] = $product->getName();} else {$product_data['brand'] = Mage::app()->getStore()->getName();}}$product_data['product_type'] = '';$product_data['condition'] = "new";$product_data['availability'] = "In Stock"; // thanks to jennifer for thisforeach($product->getCategoryIds() as $_categoryId){$category = Mage::getModel('catalog/category')->load($_categoryId);$product_data['product_type'] .= $category->getName().', ';}$product_data['product_type'] = rtrim($product_data['product_type'],', ');echo "Added Successfully ".$product->getName()." (".$product_data["sku"].")
";$thecat = "";$product_data["google_product_category"] = $thecat;foreach($product_data as $k=>$val){$bad=array('"',"\r\n","\n","\r","\t");$good=array(""," "," "," ","");$product_data[$k] = '"'.str_replace($bad,$good,$val).'"';}$feed_line = implode("\t", $product_data)."\r\n";fwrite($handle, $feed_line);fflush($handle);}fclose($handle);}catch(Exception $e){die($e->getMessage());}

Now as long as you have followed all the steps above you should have a working google base script that automatically updates – check your google_feed.txt to see if it is populated.

As this script will no doubt keep being refinied I’ll let you all know now that any changes made will be edited in the script above – with a date of when the update was performed – so please any comments/amendments are welcome!

Thanks for visiting the Magento Blog here at E-commerce Web Design.

Robert Kent Author Page


View the original article here

Thứ Năm, 22 tháng 3, 2012

New Extension: Free Shipping Incentive

Another Magento extension for you now – this one is pretty simple.

http://www.magentocommerce.com/magento-connect/EcommerceWD/extension/7889/creare_freeshippingincentive

Basically if you have free shipping enabled and a minimum shipping amount to qualify (say £25 or so) then you will see a new box appear at the top of your right/left column.

Something like this:

As you can see from the above image, the incentive changes depending on the quantity in your cart. The styling is easy to change as it is located in the template/freeshippingincentive/freeshippingincentive.phtml file.

To install simply download this file and upload the contents to your app folder. To check it is working make sure you have the following set up:

1. left or right bar is enabled and you have selected which to display the block in your layout/freeshippingincentive.xml file.

2. Free shipping is enabled

3. Minimum amount in cart for free shipping is set and is greater than 0.

As long as all 3 of the above are met your new block should appear!

This extension has been tried and tested in version 1.5.0.1 but may work on other versions however I have yet to test. You’ll also find this extension very soon on Magento Connect – as long as they get their upload feature working that is!

http://www.magentocommerce.com/magento-connect/EcommerceWD/extension/7889/creare_freeshippingincentive

(working now)

Any problems with it let me know and I’ll fix as soon as possible!

Thanks for visiting the Magento blog here at e-commerce web design, home of the Magento Fox!

Robert Kent Author Page


View the original article here

Magento Extension: Optimised Product Addition

Hi Folks! Long time no speak!

Today I wanted to talk to your about our new extension – Optimised Product Addition You can find it on Magento Connect!

What this extension does is to add a piece of javascript to your admin panel – when you click on the “Add Product” tab this extension will set a few things to a different default setting:

Status: Enabled

Tax Class: Taxable Goods

Stock Availability: In Stock

Inventory Qty Decimal: Yes

SKU: Next availabile incremental ID (If applicable)

And That’s it! Just a quick extension that might make your lives easier if you need them. If you want to edit anything just have a look at the javascript file and comment out any lines that you don’t need.

For those who want to download and install manually here are the files.

Thanks for visiting the Magento Blog here at e-commerce web design, home of the Magento Fox!

Robert Kent Author Page


View the original article here

Magento Go: Last Chance to Sign Up for Tomorrow’s Webinar on Increasing Order Size

image

Webinar: Increasing Order Size with Site Promotions

Want to sell more by tweaking your site? Cross-selling and up-selling is one way to increase the order size of your customer's virtual cart. Setting up coupon codes and discounts is another. In our next webinar with Go Pro partner, InteractOne, you'll learn the best ways to market to your customers. Here are the details of this presentation:

Date: March 13, 2012 10:00AM PST

Presenters: Brian Dwyer, President, InteractOne, Zach Stutzman, VP-Development, InteractOne and Alyssa Gothelf, Online Marketing Manager, Magento

In this webinar, attendees will learn:

Up-selling and cross-selling on Go Setting up 'related Items' Setting up coupon codes and discounts Using Google Analytics on Go (including interpreting)

Register now


View the original article here