<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="https://www.arscommunity.com/wiki/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://www.arscommunity.com/wiki/feed.php">
        <title>Ars Community magento</title>
        <description></description>
        <link>https://www.arscommunity.com/wiki/</link>
        <image rdf:resource="https://www.arscommunity.com/wiki/lib/images/favicon.ico" />
       <dc:date>2026-04-05T09:58:53+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://www.arscommunity.com/wiki/magento/configurable-products-creation-code?rev=1448753139"/>
                <rdf:li rdf:resource="https://www.arscommunity.com/wiki/magento/default-address-for-shipping-estimation?rev=1448753140"/>
                <rdf:li rdf:resource="https://www.arscommunity.com/wiki/magento/empty-product-name-in-cart-problem?rev=1448753140"/>
                <rdf:li rdf:resource="https://www.arscommunity.com/wiki/magento/fulltext-search-improvements?rev=1448753141"/>
                <rdf:li rdf:resource="https://www.arscommunity.com/wiki/magento/get-attribute-by-code?rev=1448753141"/>
                <rdf:li rdf:resource="https://www.arscommunity.com/wiki/magento/import-orders-from-xcart?rev=1448753142"/>
                <rdf:li rdf:resource="https://www.arscommunity.com/wiki/magento/import-script-speed-up?rev=1448753142"/>
                <rdf:li rdf:resource="https://www.arscommunity.com/wiki/magento/import-users-from-xcart?rev=1448753143"/>
                <rdf:li rdf:resource="https://www.arscommunity.com/wiki/magento/index?rev=1448753143"/>
                <rdf:li rdf:resource="https://www.arscommunity.com/wiki/magento/multiple-xml-sitemap?rev=1448753144"/>
                <rdf:li rdf:resource="https://www.arscommunity.com/wiki/magento/previous-next-module-sort-problem?rev=1448753144"/>
                <rdf:li rdf:resource="https://www.arscommunity.com/wiki/magento/remove-all-of-the-products?rev=1448753145"/>
                <rdf:li rdf:resource="https://www.arscommunity.com/wiki/magento/select-product-collection-tip?rev=1448753145"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://www.arscommunity.com/wiki/lib/images/favicon.ico">
        <title>Ars Community</title>
        <link>https://www.arscommunity.com/wiki/</link>
        <url>https://www.arscommunity.com/wiki/lib/images/favicon.ico</url>
    </image>
    <item rdf:about="https://www.arscommunity.com/wiki/magento/configurable-products-creation-code?rev=1448753139">
        <dc:format>text/html</dc:format>
        <dc:date>2015-11-28T23:25:39+00:00</dc:date>
        <title>Creation of configurable products for developers</title>
        <link>https://www.arscommunity.com/wiki/magento/configurable-products-creation-code?rev=1448753139</link>
        <description>A configurable product creation is pretty similar to a usual product creation, with a few additional steps required.

A simple product can be created in this way: 


$pr = Mage::getModel('catalog/product');
$pr-&gt;setAttributeSetId($att_id);
$pr-&gt;setSku($variantcode);
$pr-&gt;setTypeId('simple');
$pr-&gt;setName('Simple product name');
$pr-&gt;setDescription('Simple product desciption');
$pr-&gt;setShortDescription('Simple product short description');
$pr-&gt;setCreatedAt(strtotime('now'));
$pr-&gt;setStatus(1);
$p…</description>
    </item>
    <item rdf:about="https://www.arscommunity.com/wiki/magento/default-address-for-shipping-estimation?rev=1448753140">
        <dc:format>text/html</dc:format>
        <dc:date>2015-11-28T23:25:40+00:00</dc:date>
        <title>Apply default shipping address on shipping estimation in Magento</title>
        <link>https://www.arscommunity.com/wiki/magento/default-address-for-shipping-estimation?rev=1448753140</link>
        <description>If you like to show the shipping rates on the cart page, you should enter the default address in the shipping settings and apply the following change.

In the file app/code/core/Mage/Checkout/Model/Session.php you should find the following line: 


$this-&gt;_quote = $quote;</description>
    </item>
    <item rdf:about="https://www.arscommunity.com/wiki/magento/empty-product-name-in-cart-problem?rev=1448753140">
        <dc:format>text/html</dc:format>
        <dc:date>2015-11-28T23:25:40+00:00</dc:date>
        <title>Magento empty product name on the cart page</title>
        <link>https://www.arscommunity.com/wiki/magento/empty-product-name-in-cart-problem?rev=1448753140</link>
        <description>If the product name is not displaying on the cart page in Magento, you should trying to change the app/code/core/Mage/Sales/Model/Mysql4/Quote/Item/Collection.php file.

Find the following code: 


        $productCollection = Mage::getModel('catalog/product')-&gt;getCollection()
            -&gt;setStoreId($this-&gt;getStoreId())
            -&gt;addIdFilter($this-&gt;_productIds)
            -&gt;addAttributeToSelect(Mage::getSingleton('sales/quote_config')-&gt;getProductAttributes())
            -&gt;addOptionsToRes…</description>
    </item>
    <item rdf:about="https://www.arscommunity.com/wiki/magento/fulltext-search-improvements?rev=1448753141">
        <dc:format>text/html</dc:format>
        <dc:date>2015-11-28T23:25:41+00:00</dc:date>
        <title>Magento full text search improvements</title>
        <link>https://www.arscommunity.com/wiki/magento/fulltext-search-improvements?rev=1448753141</link>
        <description>Magento full text search works pretty adequately judging by the code structure, however it is not that accurate with large databases. For a 200,000 product database it might give out a few thousand products for a search term where the first ones are not relevant. Additionally, most likely the search would be rather slow in this situation. We have made investigation and found a way to improve the search mechanism.</description>
    </item>
    <item rdf:about="https://www.arscommunity.com/wiki/magento/get-attribute-by-code?rev=1448753141">
        <dc:format>text/html</dc:format>
        <dc:date>2015-11-28T23:25:41+00:00</dc:date>
        <title>How to receive an attribute id by the attribute name</title>
        <link>https://www.arscommunity.com/wiki/magento/get-attribute-by-code?rev=1448753141</link>
        <description>You can use the following code to receive attribute values: 


        $attributes = Mage::getResourceModel('eav/entity_attribute_collection')
            -&gt;addFieldToFilter('attribute_code', $option)
            -&gt;load(false);
        $attribute = $attributes-&gt;getFirstItem();
        $atts = $attribute-&gt;getSource()-&gt;getAllOptions(false);
        $result = array();
        foreach($atts as $tmp)
            $result[$tmp['label']] = $tmp['value'];
        return $result;</description>
    </item>
    <item rdf:about="https://www.arscommunity.com/wiki/magento/import-orders-from-xcart?rev=1448753142">
        <dc:format>text/html</dc:format>
        <dc:date>2015-11-28T23:25:42+00:00</dc:date>
        <title>Magento import orders from X-Cart</title>
        <link>https://www.arscommunity.com/wiki/magento/import-orders-from-xcart?rev=1448753142</link>
        <description>This script can be used for the X-Cart orders import to Magento. It should be placed in the X-Cart root dir and run in browser.


&lt;?php
error_reporting(E_ALL ^ E_NOTICE);
include &quot;./auth.php&quot;;

include $xcart_dir.'/magento/app/Mage.php';
Mage::app('admin');
func_flush('Import orders');
$orders = func_query(&quot;select * from $sql_tbl[orders] where 1 order by orderid limit 5000, 500&quot;);
if ($orders)
foreach($orders as $index=&gt;$order) {
    $quote = Mage::getModel('sales/quote')-&gt;load($order['orderid']…</description>
    </item>
    <item rdf:about="https://www.arscommunity.com/wiki/magento/import-script-speed-up?rev=1448753142">
        <dc:format>text/html</dc:format>
        <dc:date>2015-11-28T23:25:42+00:00</dc:date>
        <title>Import script speed up</title>
        <link>https://www.arscommunity.com/wiki/magento/import-script-speed-up?rev=1448753142</link>
        <description>During the import of products using default Magento import tool or a custom  configurable products import script most likely you will face slow speed problem when trying to import a huge amount of products.

During the investigation I have founded that a time period of one product import increases with each new product added. As the result it is not possible to import 1000+ products with the Magento API.</description>
    </item>
    <item rdf:about="https://www.arscommunity.com/wiki/magento/import-users-from-xcart?rev=1448753143">
        <dc:format>text/html</dc:format>
        <dc:date>2015-11-28T23:25:43+00:00</dc:date>
        <title>Magento import X-Cart users</title>
        <link>https://www.arscommunity.com/wiki/magento/import-users-from-xcart?rev=1448753143</link>
        <description>This script is allow to import the X-Cart users into Magento database. 


&lt;?php
error_reporting(E_ALL ^ E_NOTICE);
include &quot;./auth.php&quot;;

include $xcart_dir.'/magento/app/Mage.php';
func_flush('Import users');
$users = func_query(&quot;select * from $sql_tbl[customers] where usertype='C' order by login limit 4400, 200&quot;);
if ($users)
foreach($users as $index=&gt;$user) {
    $customer = Mage::getModel('customer/customer')-&gt;setWebsiteId(1);
    $customer-&gt;loadByEmail($user['email']);
    if (!$customer-&gt;g…</description>
    </item>
    <item rdf:about="https://www.arscommunity.com/wiki/magento/index?rev=1448753143">
        <dc:format>text/html</dc:format>
        <dc:date>2015-11-28T23:25:43+00:00</dc:date>
        <title>Magento tricks, tips and bugfixes.</title>
        <link>https://www.arscommunity.com/wiki/magento/index?rev=1448753143</link>
        <description>Magento is pretty useful software. However missing documentation is its main problem to my mind. It's the problem for both developers and store owners (because it increases cost of any software changes). 

	*  Magento full-text search improvements
	*  Multiple xml sitemap in Magento
	*  Apply default shipping address on shipping estimation in Magento
	*  Universal way to select a product collection in Magento
	*  Magento empty product name in cart problem
	*  Magento Previous-Next module problem…</description>
    </item>
    <item rdf:about="https://www.arscommunity.com/wiki/magento/multiple-xml-sitemap?rev=1448753144">
        <dc:format>text/html</dc:format>
        <dc:date>2015-11-28T23:25:44+00:00</dc:date>
        <title>Multiple xml sitemap in Magento</title>
        <link>https://www.arscommunity.com/wiki/magento/multiple-xml-sitemap?rev=1448753144</link>
        <description>When the amount of the products/categories/pages in Magento is becoming bigger then 50000 in sum, it's required to split the xml sitemap to a few chunks. It's possible to do with the small fix in the code/core/Mage/Sitemap/Model/Sitemap.php.

We need to add the new function here</description>
    </item>
    <item rdf:about="https://www.arscommunity.com/wiki/magento/previous-next-module-sort-problem?rev=1448753144">
        <dc:format>text/html</dc:format>
        <dc:date>2015-11-28T23:25:44+00:00</dc:date>
        <title>Magento Previous-Next module problem</title>
        <link>https://www.arscommunity.com/wiki/magento/previous-next-module-sort-problem?rev=1448753144</link>
        <description>The Previous-Next module problem in Magento has got the small problem: the next (or previous) product is not right. So, for example, you are expecting to see the “some product” as the next one, but actually you see “another product”. 

This problem is related with the products sort order when the products are selecting by previous-next module. By default it's selecting the products by its id, instead of the category “sort by”.</description>
    </item>
    <item rdf:about="https://www.arscommunity.com/wiki/magento/remove-all-of-the-products?rev=1448753145">
        <dc:format>text/html</dc:format>
        <dc:date>2015-11-28T23:25:45+00:00</dc:date>
        <title>Remove all of the Magento product</title>
        <link>https://www.arscommunity.com/wiki/magento/remove-all-of-the-products?rev=1448753145</link>
        <description>It is pretty easy to clean up the database with the following code: 


$mp = Mage::getModel('catalog/product')
-&gt;getCollection();
foreach($mp as $p) $p-&gt;delete();


Of course the following things should be included at the top of the script: 


include $magento_dir.'/app/Mage.php';
Mage::app('admin');</description>
    </item>
    <item rdf:about="https://www.arscommunity.com/wiki/magento/select-product-collection-tip?rev=1448753145">
        <dc:format>text/html</dc:format>
        <dc:date>2015-11-28T23:25:45+00:00</dc:date>
        <title>Universal way to select a product collection</title>
        <link>https://www.arscommunity.com/wiki/magento/select-product-collection-tip?rev=1448753145</link>
        <description>Usually when you create your own block with some products inside, you are going to use some standard template for the products visualization (or at least the similar one). ou can select all of the required attributes this way in this situation:


        $collection = Mage::getResourceModel('catalog/product_collection')
            -&gt;setStoreId($this-&gt;getStoreId())
            -&gt;addMinimalPrice()
            -&gt;addFinalPrice()
            -&gt;addTaxPercents()
            -&gt;addAttributeToSelect('*')…</description>
    </item>
</rdf:RDF>
