<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The Magento Expert</title>
	<atom:link href="http://www.the-mage-expert.com/tag/order/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.the-mage-expert.com</link>
	<description>Your Magento Commerce Expert</description>
	<lastBuildDate>Tue, 24 Jan 2023 09:37:24 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.8.6</generator>
	<item>
		<title>“Session size exceeded allowed session max size” problem solution</title>
		<link>http://www.the-mage-expert.com/1218/magento2-session-size-exceeded-allowed-session-max-size-problem-solution/</link>
		<comments>http://www.the-mage-expert.com/1218/magento2-session-size-exceeded-allowed-session-max-size-problem-solution/#comments</comments>
		<pubDate>Thu, 26 May 2022 08:13:21 +0000</pubDate>
		<dc:creator><![CDATA[Mex]]></dc:creator>
				<category><![CDATA[Magento Solutions]]></category>
		<category><![CDATA[Admin]]></category>
		<category><![CDATA[Magento 2]]></category>
		<category><![CDATA[order]]></category>
		<category><![CDATA[session]]></category>

		<guid isPermaLink="false">http://www.the-mage-expert.com/?p=1218</guid>
		<description><![CDATA[You get the error main.WARNING: Session size of … exceeded allowed session max size of … when adding items to an order in the Magento 2 admin area? There is an easy solution to that problem, just run the following&#8230;]]></description>
				<content:encoded><![CDATA[<p>You get the error <strong>main.WARNING: Session size of … exceeded allowed session max size of …</strong> when adding items to an order in the Magento 2 admin area? There is an easy solution to that problem, just run the following command from your Magento 2 root directory:</p><pre class="crayon-plain-tag">php bin/magento config:set system/security/max_session_size_admin 0</pre><p></p>]]></content:encoded>
			<wfw:commentRss>http://www.the-mage-expert.com/1218/magento2-session-size-exceeded-allowed-session-max-size-problem-solution/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting the PayPal transaction ID</title>
		<link>http://www.the-mage-expert.com/1116/magento-getting-the-paypal-transaction-id/</link>
		<comments>http://www.the-mage-expert.com/1116/magento-getting-the-paypal-transaction-id/#comments</comments>
		<pubDate>Thu, 29 Dec 2016 08:53:57 +0000</pubDate>
		<dc:creator><![CDATA[Mex]]></dc:creator>
				<category><![CDATA[Magento Solutions]]></category>
		<category><![CDATA[order]]></category>
		<category><![CDATA[PayPal]]></category>

		<guid isPermaLink="false">http://www.the-mage-expert.com/?p=1116</guid>
		<description><![CDATA[Use the following code to get the Magento PayPal transaction ID from an order object: [crayon-69f2f566ab080/]]]></description>
				<content:encoded><![CDATA[<p>Use the following code to get the Magento PayPal transaction ID from an order object:</p>
<p></p><pre class="crayon-plain-tag">$transactionId = $order-&gt;getPayment()-&gt;getLastTransId();</pre><p></p>]]></content:encoded>
			<wfw:commentRss>http://www.the-mage-expert.com/1116/magento-getting-the-paypal-transaction-id/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sort order items by SKU</title>
		<link>http://www.the-mage-expert.com/1053/magento-sort-order-items-by-sku-order-detail-page/</link>
		<comments>http://www.the-mage-expert.com/1053/magento-sort-order-items-by-sku-order-detail-page/#comments</comments>
		<pubDate>Tue, 19 Apr 2016 10:54:01 +0000</pubDate>
		<dc:creator><![CDATA[Mex]]></dc:creator>
				<category><![CDATA[Magento Solutions]]></category>
		<category><![CDATA[order]]></category>
		<category><![CDATA[product]]></category>
		<category><![CDATA[SKU]]></category>

		<guid isPermaLink="false">http://www.the-mage-expert.com/?p=1053</guid>
		<description><![CDATA[If you want to change the default sorting of the ordered items on the order detail page, go ahead and override app/design/adminhtml/default/default/template/sales/order/view/items.phtml in your theme and replace [crayon-69f2f566ab800/] with [crayon-69f2f566ab873/] Done. If you open the detail page of an order&#8230;]]></description>
				<content:encoded><![CDATA[<p>If you want to change the default sorting of the ordered items on the order detail page, go ahead and override <strong>app/design/adminhtml/default/default/template/sales/order/view/items.phtml</strong> in your theme and replace</p>
<p></p><pre class="crayon-plain-tag">&lt;?php $_items = $this-&gt;getItemsCollection() ?&gt;
    &lt;?php $i=0;foreach ($_items as $_item):?&gt;
        &lt;?php if ($_item-&gt;getParentItem()) continue; else $i++;?&gt;
        &lt;tbody class=&quot;&lt;?php echo $i%2?'even':'odd' ?&gt;&quot;&gt;
            &lt;?php echo $this-&gt;getItemHtml($_item) ?&gt;
            &lt;?php echo $this-&gt;getItemExtraInfoHtml($_item) ?&gt;
        &lt;/tbody&gt;
    &lt;?php endforeach; ?&gt;</pre><p></p>
<p>with </p>
<p></p><pre class="crayon-plain-tag">&lt;?php $_items = $this-&gt;getItemsCollection() ?&gt;
    &lt;?php $_sortedItems = array(); ?&gt;
    &lt;?php foreach ($_items as $_item) : ?&gt;
        &lt;?php $_sortedItems[$_item-&gt;getSku()] = $_item;?&gt;
    &lt;?php endforeach;?&gt;
    &lt;?php ksort($_sortedItems); // This is where the sorting by SKU takes place ?&gt;
    &lt;?php $i=0;foreach ($_sortedItems as $_item):?&gt;
        &lt;?php if ($_item-&gt;getParentItem()) continue; else $i++;?&gt;
        &lt;tbody class=&quot;&lt;?php echo $i%2?'even':'odd' ?&gt;&quot;&gt;
            &lt;?php echo $this-&gt;getItemHtml($_item) ?&gt;
            &lt;?php echo $this-&gt;getItemExtraInfoHtml($_item) ?&gt;
        &lt;/tbody&gt;
    &lt;?php endforeach; ?&gt;</pre><p></p>
<p>Done. If you open the detail page of an order with 2+ items, they should be sorted by SKU.</p>]]></content:encoded>
			<wfw:commentRss>http://www.the-mage-expert.com/1053/magento-sort-order-items-by-sku-order-detail-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating order including custom options programmatically</title>
		<link>http://www.the-mage-expert.com/693/magento-creating-order-with-custom-options-programmatically/</link>
		<comments>http://www.the-mage-expert.com/693/magento-creating-order-with-custom-options-programmatically/#comments</comments>
		<pubDate>Wed, 15 Oct 2014 09:15:27 +0000</pubDate>
		<dc:creator><![CDATA[Mex]]></dc:creator>
				<category><![CDATA[Magento Solutions]]></category>
		<category><![CDATA[custom options]]></category>
		<category><![CDATA[order]]></category>

		<guid isPermaLink="false">http://www.the-mage-expert.com/?p=693</guid>
		<description><![CDATA[Using the following code, you can create an order including custom options programmatically. [crayon-69f2f566abf8c/]]]></description>
				<content:encoded><![CDATA[<p>Using the following code, you can create an order including custom options programmatically.</p>
<p></p><pre class="crayon-plain-tag">$quote = Mage::getModel('sales/quote')-&gt;setStoreId(Mage::app()-&gt;getStore('default')-&gt;getId());
$quote-&gt;setCustomerEmail($mail);
$product = Mage::getModel('catalog/product')-&gt;load($productId);
$buyInfo = array(
                    'qty' =&gt; 1,
                     'options' =&gt; array($optionId =&gt; $optionValue)
                );
$quote-&gt;addProduct($product, new Varien_Object($buyInfo));
         
$addressData = array(
                'firstname' =&gt; $firstName,
                'lastname' =&gt; $lastName,
                'street' =&gt; $street,
                'city' =&gt; $city,
                'postcode' =&gt; $postCode,
                'telephone' =&gt; '-',
                'country_id' =&gt; $country,
                'region_id' =&gt; $regionId, 
        );
         
$billingAddress = $quote-&gt;getBillingAddress()-&gt;addData($addressData);
$shippingAddress = $quote-&gt;getShippingAddress()-&gt;addData($addressData);
$shippingAddress-&gt;setCollectShippingRates(true)-&gt;collectShippingRates()
                        -&gt;setShippingMethod('flatrate_flatrate')
                        -&gt;setPaymentMethod('bankpayment');
         
$quote-&gt;getPayment()-&gt;importData(array('method' =&gt; 'bankpayment'));
$quote-&gt;collectTotals()-&gt;save();
         
$service = Mage::getModel('sales/service_quote', $quote);
$service-&gt;submitAll();

$order = $service-&gt;getOrder();
// ...</pre><p></p>]]></content:encoded>
			<wfw:commentRss>http://www.the-mage-expert.com/693/magento-creating-order-with-custom-options-programmatically/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting orders with items that have a certain attribute set</title>
		<link>http://www.the-mage-expert.com/608/magento-getting-orders-withitems-with-certain-attribute-set/</link>
		<comments>http://www.the-mage-expert.com/608/magento-getting-orders-withitems-with-certain-attribute-set/#comments</comments>
		<pubDate>Mon, 03 Mar 2014 14:58:38 +0000</pubDate>
		<dc:creator><![CDATA[Mex]]></dc:creator>
				<category><![CDATA[Magento Solutions]]></category>
		<category><![CDATA[attributeset]]></category>
		<category><![CDATA[order]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://www.the-mage-expert.com/?p=608</guid>
		<description><![CDATA[The following MySQL query returns all Magento orders that have at least one item with attribute set id 9. [crayon-69f2f566ac741/]]]></description>
				<content:encoded><![CDATA[<p>The following MySQL query returns all Magento orders that have at least one item with attribute set id 9.</p>
<p></p><pre class="crayon-plain-tag">/* 9 = attribute set Id */
select
	increment_id,
	created_at,
	entity_id 
from
	sales_flat_order 
where
	entity_id not in (
		SELECT
			o.entity_id      
		FROM
			sales_flat_order o      
		LEFT JOIN
			sales_flat_order_item i        
				ON o.entity_id = i.order_id      
		LEFT JOIN
			catalog_product_entity p        
				ON i.product_id = p.entity_id      
		WHERE
			p.attribute_set_id = 9
	)</pre><p></p>]]></content:encoded>
			<wfw:commentRss>http://www.the-mage-expert.com/608/magento-getting-orders-withitems-with-certain-attribute-set/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting an orders tracking information</title>
		<link>http://www.the-mage-expert.com/591/magento-getting-orders-tracking-information/</link>
		<comments>http://www.the-mage-expert.com/591/magento-getting-orders-tracking-information/#comments</comments>
		<pubDate>Wed, 29 Jan 2014 09:07:29 +0000</pubDate>
		<dc:creator><![CDATA[Mex]]></dc:creator>
				<category><![CDATA[Magento Solutions]]></category>
		<category><![CDATA[order]]></category>
		<category><![CDATA[shipment tracking]]></category>

		<guid isPermaLink="false">http://www.the-mage-expert.com/?p=591</guid>
		<description><![CDATA[Using the following code, you can obtain the tracking information of a Magento order. [crayon-69f2f566acd9d/]]]></description>
				<content:encoded><![CDATA[<p>Using the following code, you can obtain the tracking information of a Magento order.</p>
<p></p><pre class="crayon-plain-tag">$trackingCollection = $order-&gt;getTracksCollection();
$firstItem = $trackingCollection-&gt;getFirstItem();
$trackingNumber = $firstItem-&gt;getNumber();
...</pre><p></p>]]></content:encoded>
			<wfw:commentRss>http://www.the-mage-expert.com/591/magento-getting-orders-tracking-information/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting order data on success page (success.phtml)</title>
		<link>http://www.the-mage-expert.com/469/magento-getting-order-data-on-success-page/</link>
		<comments>http://www.the-mage-expert.com/469/magento-getting-order-data-on-success-page/#comments</comments>
		<pubDate>Wed, 02 Oct 2013 12:09:13 +0000</pubDate>
		<dc:creator><![CDATA[Mex]]></dc:creator>
				<category><![CDATA[Magento Solutions]]></category>
		<category><![CDATA[order]]></category>

		<guid isPermaLink="false">http://www.the-mage-expert.com/?p=469</guid>
		<description><![CDATA[To get the order data on the Magento success page, use the following code. The key here is to create an order object and get the data from there. [crayon-69f2f566ae134/]]]></description>
				<content:encoded><![CDATA[<p>To get the order data on the Magento success page, use the following code. The key here is to create an order object and get the data from there.</p>
<p></p><pre class="crayon-plain-tag">$order = Mage::getModel('sales/order')-&gt;loadByIncrementId($this-&gt;getOrderId());
$date = $order-&gt;getCreatedAtStoreDate();
// ...</pre><p></p>]]></content:encoded>
			<wfw:commentRss>http://www.the-mage-expert.com/469/magento-getting-order-data-on-success-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting order items on success page (success.phtml)</title>
		<link>http://www.the-mage-expert.com/395/magento-getting-ordered-items-success-page/</link>
		<comments>http://www.the-mage-expert.com/395/magento-getting-ordered-items-success-page/#comments</comments>
		<pubDate>Fri, 09 Aug 2013 11:32:47 +0000</pubDate>
		<dc:creator><![CDATA[Mex]]></dc:creator>
				<category><![CDATA[Magento Solutions]]></category>
		<category><![CDATA[order]]></category>
		<category><![CDATA[success page]]></category>

		<guid isPermaLink="false">http://www.the-mage-expert.com/?p=395</guid>
		<description><![CDATA[Use the following code to get all ordered items on the Magento success page. [crayon-69f2f566af395/]]]></description>
				<content:encoded><![CDATA[<p>Use the following code to get all ordered items on the Magento success page.</p>
<p></p><pre class="crayon-plain-tag">$order = Mage::getModel('sales/order')-&gt;loadByIncrementId($this-&gt;getOrderId());
$items = $order-&gt;getAllItems();
foreach($items as $item) {
    //...                   
}</pre><p></p>]]></content:encoded>
			<wfw:commentRss>http://www.the-mage-expert.com/395/magento-getting-ordered-items-success-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting the shipping address for an order</title>
		<link>http://www.the-mage-expert.com/322/magento-getting-shipping-address-for-order/</link>
		<comments>http://www.the-mage-expert.com/322/magento-getting-shipping-address-for-order/#comments</comments>
		<pubDate>Tue, 16 Apr 2013 08:32:27 +0000</pubDate>
		<dc:creator><![CDATA[Mex]]></dc:creator>
				<category><![CDATA[Magento Solutions]]></category>
		<category><![CDATA[address]]></category>
		<category><![CDATA[order]]></category>

		<guid isPermaLink="false">http://www.the-mage-expert.com/?p=322</guid>
		<description><![CDATA[Use the following code to get the shipping address of a Magento order: [crayon-69f2f566b148b/]]]></description>
				<content:encoded><![CDATA[<p>Use the following code to get the shipping address of a Magento order:</p>
<p></p><pre class="crayon-plain-tag">$address = $order-&gt;getShippingAddress();</pre><p></p>]]></content:encoded>
			<wfw:commentRss>http://www.the-mage-expert.com/322/magento-getting-shipping-address-for-order/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
