<?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>Magento2 &#8211; Selman Tunc</title>
	<atom:link href="https://selmantunc.com.tr/tag/magento2/feed/" rel="self" type="application/rss+xml" />
	<link>https://selmantunc.com.tr</link>
	<description></description>
	<lastBuildDate>Sat, 06 Feb 2021 11:13:20 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://selmantunc.com.tr/wp-content/uploads/2023/07/cropped-tumblr_inline_oglumuMbgO1tyldvk_540-150x150-1-32x32.jpg</url>
	<title>Magento2 &#8211; Selman Tunc</title>
	<link>https://selmantunc.com.tr</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Magento İzlenimlerim</title>
		<link>https://selmantunc.com.tr/php/magento-i-zlenimlerim/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sat, 06 Feb 2021 11:13:20 +0000</pubDate>
				<category><![CDATA[php]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[composer]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[magento fix]]></category>
		<category><![CDATA[Magento Tutorials]]></category>
		<category><![CDATA[Magento2]]></category>
		<guid isPermaLink="false">http://selmantunc.com.tr/2021/02/06/magento-i-zlenimlerim/</guid>

					<description><![CDATA[magento 2013-2014  Magento 1 ve 2017-2018  yıllarında   Magento 1  ve Magento 2   sürümü ile  kullandığım eticaret frameworküydü fakat zamanla bu framework’de bazı şeyler çok hoşuma gitti, bazı şeylerden nefret ettim.&#8230;]]></description>
										<content:encoded><![CDATA[<p>magento 2013-2014 

Magento 1

 ve 2017-2018  yıllarında   Magento 1  ve

Magento 2   sürümü ile  kullandığım eticaret frameworküydü fakat zamanla bu framework’de bazı şeyler çok hoşuma gitti, bazı şeylerden nefret ettim.</p>
<figure data-orig-width="768" data-orig-height="400" class="tmblr-full"><figure id="attachment_mmd_2165" class="wp-block-image "><img decoding="async" width="768" height="281" src="https://selmantunc.com.tr/wp-content/uploads/2023/07/319f73402a6a36953b5ee80bc0c4d88c1d3bb866.jpg" class="attachment-full size-full" alt="image" loading="lazy" /></figure></figure>
<p><b>Hoşuma gidenler</b></p>
<p>Bir eticaret framework ü olarak ücretsiz ve büyük sistemler için kullanılabilir çok kapsamlı bir fw, ama woocommerce gibi lightweight değildir iyi bir CPU ve Ram ister.</p>
<p>Mükemmel bir mimarisi vardır, php,composer ve diğer frameworkleri katmanlamıştır,  veritabanı mimarisi <a href="https://en.wikipedia.org/wiki/Entity%E2%80%93attribute%E2%80%93value_model">EAV</a> olduğu için alışana kadar anlamakta zorluk çekebilirsiniz. </p>
<p>E-ticarete yeni girdiyseniz ve büyük bir sistem düşünüyorsanız hemen başlangıç yapabilirsiniz, <b><i>Uyarı</i></b> büyük ölçekte ürününüz yoksa woocommerce ile başlamanızı tavsiye ederim daha az maliyetli olacaktır.</p>
<p>Programcıya verdikleri sınıf ve api lerde eticaret ile ilgili aklınıza gelebilecek herşeyi düşünmüşler mutlaka çoğu olayın <a href="https://sourcemaking.com/design_patterns/observer" title="Observes the state of an object in a program.">Observer</a> patterni var ve işinizi çok kolaylaştırıyor kendinizde <a href="https://sourcemaking.com/design_patterns/observer" title="Observes the state of an object in a program.">Observer</a> pattern eklebiliyorsunuz. </p>
<p>Çok fazla harici eklentisi var <a href="https://amasty.com/">uygun fiyatlara </a>internette bulabilirsiniz.</p>
<p>Temaları çok uygun fiyata ve kaliteli olarak themeforest da satılıyor.  </p>
<p><b>Hoşuma Gitmeyenler ve artık nefret etme sebeblerim </b></p>
<p>Yukarıda dediğim gibi mimari mükemmel ama çok katmanlı mimari olduğu için hata çıkması durumunda çok fazla gezinmek zorunda kalıyorsunuz. Neden bu kadar fazla fw yi depency yaptıkları konusundaki düşüncem ise kullanmak istediği bir fonksiyonu yada sınıfı mesela symfony paketinde bulmuş hemen eklemişler kendilerine uygun şekilde yazmaktansa nasıl olsa symfony yazıyor demişler.</p>
<p><b>Kendi modülünüzü</b> yapmak için ve yüzde %80 herşey de magento ya bağımlı kalmak çok sıkıcı ama eklenti geliştirme için verdiği api ve arayüz başarılıdır.</p>
<p><b>Frontend tarafı </b>bence tam baş belası inspector araçı gibi bişey vardı onunla hangi html nerede onları gösteriyordu orası çok hayat kurtaran özellik ama frontend bence çok zaman alan çok uğraştıran bir olay kodlama bilgisi olamayan frontend ci bile çok fazla kodlama öğrenmek zorunda kalabilir, klasör yapılarını zaten bilmek zorunda kalacaksınız.</p>
<p>Öyle durumlar oluyor ki php ve html kodları içiçe olduğundan  javascipt de iş yapmakla bitmiyor php de onu kodlamak return etmek gerekiyor backend ve frontend olarak çalışanlar için tam sıkıntılı bir olay, aslında magento için fullstack yazılımcı olmak şart oluyor.</p>
<p>magento 2 artık jquery ve knockout kullanıyor ama magento 1 prototype.js bağımlıydı mesela  ürün variant ekleme sırasında prototype.js ye  depency eklemek 1 haftadan fazla zamanımı almıştı.</p>
<p><b>Backend tarafı </b><i>Magento 1 </i>php nin en zor fw si olan zendi kullanıyordu <i>magento 2</i> de daha fazla depency geldi yani daha fazla bilgi istiyor.</p>
<p>Kendi içindeki cache sistemini açmazsanız çok çok yavaş o kadar çok katman olduğu çin input/output sayısı çok fazla php nin yorumlaması çok uzun zaman alıyor. Birde javascript bağımlılıklarını da unutmamak gerekiyor.</p>
<p>Debug yaparken insanı kanser ediyor bu süreler “android de debug yap kazancın harcadığın zamana değer :) “</p>
<p><b>Magento ile çalışan</b> şirketler olaya profesyonel olarak bakmıyor herşeyi hazır sistem,  arayuzü düzenle biter diyor ama çoğu zaman modul/eklenti geliştiriyorsun bu modülleri robot yazmıyor ki arkadaş sen zamanını, deneyimini  satarak para kazanıyorsun. Magento ile uğraşmak yerine java-c# ile falan uğraşın çok çok daha tatmin eder ve iyi maaşlar alırsınız.<br></p>
<p><b>Ve son olarak </b>herkes öyle mi bilmiyorum ama böyle bir sistemle bu kadar karmaşa ile uğraşıp gerçekten hakkettiğiniz maaşı veren hiç bir şirket yok, zaten uğraşan şirkette az yazılımcıda az,  siz siz olun sakın profesyonel olarak magento yazılımcısı olmayın.</p>
<p>Magento günün sonunda sizi tatmin etmiyor, yazılımcılık yapmıyorsunuz aslında herşeyin hazırını yapıyorsunuz.</p>
<p>Ben 3 yıldır go ve c# yazıyorum iyi ki artık php ve frameworkleri ile ilgilenmiyorum diyorum ama php de tek sevdiğim şey wordpress kaldı,  WP de bazen eşe dosta eklenti yazarım, WP biraz eğlenceli geliyor çünkü herşey daha terli toplu duruyor.</p>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to magento 2 increase customer session time</title>
		<link>https://selmantunc.com.tr/uncategorized/how-to-magento-2-increase-customer-session-time/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Mon, 24 Dec 2018 23:18:51 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Magento 2]]></category>
		<category><![CDATA[Magento2]]></category>
		<guid isPermaLink="false">http://selmantunc.com.tr/2018/12/24/how-to-magento-2-increase-customer-session-time/</guid>

					<description><![CDATA[Magento 2.1.x -&#62; Go to Stores &#62; Settings &#62; Configuration &#62; General &#62; Web &#62; Default Cookie Settings &#62; Cookie Lifetime Magento 1 -&#62; System &#62; Configuration &#62; Web &#62;&#8230;]]></description>
										<content:encoded><![CDATA[<p><a href="https://magento.stackexchange.com/questions/62193/how-to-increase-customer-session-time">Magento 2.1.x -&gt; <br></a>Go to Stores &gt; Settings &gt; Configuration &gt; General &gt; Web &gt; Default Cookie Settings &gt; Cookie Lifetime<br></p>
<p>Magento 1 -&gt;</p>
<p>System &gt; Configuration &gt; Web &gt; Session Cookie Management<br><br></p>
<h2><b>Magento 2 backend session timeout</b></h2>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>magento 2 phtml is homege ?</title>
		<link>https://selmantunc.com.tr/uncategorized/magento-2-phtml-is-homege/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Mon, 24 Dec 2018 20:15:04 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Magento2]]></category>
		<guid isPermaLink="false">http://selmantunc.com.tr/2018/12/24/magento-2-phtml-is-homege/</guid>

					<description><![CDATA[$flagHome = false;$objectManager = MagentoFrameworkAppObjectManager::getInstance();$request = $objectManager-&#62;get('MagentoFrameworkAppActionContext')-&#62;getRequest();if ($request-&#62;getFullActionName() == 'cms_index_index') {    $flagHome = true;}]]></description>
										<content:encoded><![CDATA[<pre>$flagHome = false;<br>$objectManager = MagentoFrameworkAppObjectManager::getInstance();<br>$request = $objectManager-&gt;get('MagentoFrameworkAppActionContext')-&gt;getRequest();<br>if ($request-&gt;getFullActionName() == 'cms_index_index') {<br>    $flagHome = true;<br>}</pre>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Magento 2 phtml home page link</title>
		<link>https://selmantunc.com.tr/uncategorized/magento-2-phtml-home-page-link/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Mon, 24 Dec 2018 20:14:29 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Magento2]]></category>
		<guid isPermaLink="false">http://selmantunc.com.tr/2018/12/24/magento-2-phtml-home-page-link/</guid>

					<description><![CDATA[getBaseUrl() ?&#62;]]></description>
										<content:encoded><![CDATA[<pre>getBaseUrl() ?&gt;</pre>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How To Add A JavaScript Module [magento]</title>
		<link>https://selmantunc.com.tr/uncategorized/how-to-add-a-javascript-module/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sun, 16 Dec 2018 20:52:43 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Magento 2]]></category>
		<category><![CDATA[Magento2]]></category>
		<guid isPermaLink="false">http://selmantunc.com.tr/2018/12/16/how-to-add-a-javascript-module/</guid>

					<description><![CDATA[]]></description>
										<content:encoded><![CDATA[<figure class="tmblr-embed tmblr-full" data-provider="youtube" data-orig-width="540" data-orig-height="304" data-url="https%3A%2F%2Fwww.youtube.com%2Fwatch%3Ftime_continue%3D117%26v%3D4q43-auwAbU"></figure>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>magento 2 image size</title>
		<link>https://selmantunc.com.tr/uncategorized/magento-2-image-size/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sun, 16 Dec 2018 17:23:19 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[Magento 2]]></category>
		<category><![CDATA[Magento Tutorials]]></category>
		<category><![CDATA[Magento2]]></category>
		<guid isPermaLink="false">http://selmantunc.com.tr/2018/12/16/magento-2-image-size/</guid>

					<description><![CDATA[https://devdocs.magento.com/guides/v2.2/frontend-dev-guide/themes/theme-images.html Command usage: php bin/magento catalog:images:resize]]></description>
										<content:encoded><![CDATA[<p><a href="https://devdocs.magento.com/guides/v2.2/frontend-dev-guide/themes/theme-images.html">https://devdocs.magento.com/guides/v2.2/frontend-dev-guide/themes/theme-images.html</a>
<br></p>
<p>Command usage:</p>
<p><code>php bin/magento catalog:images:resize</code></p>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to Use Grunt in Magento 2</title>
		<link>https://selmantunc.com.tr/uncategorized/how-to-use-grunt-in-magento-2/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Wed, 05 Dec 2018 09:08:18 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ecommerce]]></category>
		<category><![CDATA[Magento2]]></category>
		<category><![CDATA[php]]></category>
		<guid isPermaLink="false">http://selmantunc.com.tr/2018/12/05/how-to-use-grunt-in-magento-2/</guid>

					<description><![CDATA[Grunt is a contemporany JavaScrip task runner. The purpose of Grunt is to simplifies repetitive tasks by automating linting, compilation, minification, or uni testing. You only have to configure a&#8230;]]></description>
										<content:encoded><![CDATA[<p>Grunt is a contemporany JavaScrip task runner. The purpose of Grunt is to simplifies repetitive tasks by automating linting, compilation, minification, or uni testing. You only have to configure a task runner throught a Gruntfile. This tool can easily be utilized within all possible platforms and projects.<br>Althrought Magento 2 introduces built-in Grunt tasks, there are still several steps that have to be passed.Install NodeJs in your </p>
<p>PC  <code>npm install -g grunt-cli</code> – (Install Grunt CLI tool globally)</p>
<p><br><code>npm install</code> – (Install the node.js project dependency)</p>
<p><br><code>php bin/magento cache:clean</code> – (Remove Cache)</p>
<p><br><code>grunt clean</code> – (Clean theme by command)</p>
<p><br><code></code><code>CMD command prompt with administrator privilege</code></p>
<p><br><code>grunt exec:yourthemename</code>
<br><code>grunt less:yourthemename</code></p>
<p><br><code>grunt watch</code><code>Video Tutorial - Watch the &lt;a href=&quot;https://youtu.be/xjFQu2pUZR8&quot;&gt;Video Tutorial HERE&lt;/a&gt; </code><code> </code><code>If grunt watch or the runner from Php Storm doesn&rsquo;t work you have to start again with these commands:</code><code>&lt;br&gt;php bin/magento cache:clean &ndash; (Remove Cache)</code></p>
<p><code>&lt;br&gt;grunt clean &ndash; (Clean theme by command)</code><code>CMD command prompt with administrator privilege</code></p>
<p><code>&lt;br&gt;grunt exec:yourthemename&lt;br&gt;grunt less:yourthemename&lt;br&gt;grunt watch</code></p>
<p><a href="http://joshuasoileau.com/articles/2016/06/08/how-to-use-grunt-in-magento-2.html">http://joshuasoileau.com/articles/2016/06/08/how-to-use-grunt-in-magento-2.html</a>
<br><br><a href="https://firebearstudio.com/blog/magento-2-grunt.html">https://firebearstudio.com/blog/magento-2-grunt.html</a>
<br><br><b>How to create a custom Grunt task in Magento 2</b>
<br><a href="https://inchoo.net/magento-2/how-to-create-a-custom-grunt-task-in-magento-2/">https://inchoo.net/magento-2/how-to-create-a-custom-grunt-task-in-magento-2/</a>
<br></p>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>MAGENTO 2 child tema nasıl yapılır</title>
		<link>https://selmantunc.com.tr/uncategorized/s/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Tue, 04 Dec 2018 20:32:50 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[magento child theme]]></category>
		<category><![CDATA[Magento2]]></category>
		<category><![CDATA[submission]]></category>
		<guid isPermaLink="false">http://selmantunc.com.tr/2018/12/04/s/</guid>

					<description><![CDATA[http://www.codextblog.com/magento-2/create-a-custom-child-theme-from-luma-theme/]]></description>
										<content:encoded><![CDATA[<p><a href="http://www.codextblog.com/magento-2/create-a-custom-child-theme-from-luma-theme/">http://www.codextblog.com/magento-2/create-a-custom-child-theme-from-luma-theme/</a></p>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>[magentoframeworkexceptionnosuchentityexception] no such entity.</title>
		<link>https://selmantunc.com.tr/uncategorized/magentoframeworkexceptionnosuchentityexception/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Wed, 28 Nov 2018 13:23:05 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[magento fix]]></category>
		<category><![CDATA[Magento2]]></category>
		<category><![CDATA[php]]></category>
		<guid isPermaLink="false">http://selmantunc.com.tr/2018/11/28/magentoframeworkexceptionnosuchentityexception/</guid>

					<description><![CDATA[I had the same issue. It appeared to be caused by some entity ids that needed to be set to 0. When you transfer the data the insert records on&#8230;]]></description>
										<content:encoded><![CDATA[<p>I had the same issue. It appeared to be caused by some entity ids that needed to be set to 0.</p>
<p>When you transfer the data the insert records on these specific records are automatically generated and tend to start at 1 and not 0.</p>
<p>This script worked for me:</p>
<pre><code>SET FOREIGN_KEY_CHECKS=0;
UPDATE `store` SET store_id = 0 WHERE code='admin';
UPDATE `store_group` SET group_id = 0 WHERE name='Default';
UPDATE `store_website` SET website_id = 0 WHERE code='admin';
UPDATE `customer_group` SET customer_group_id = 0 WHERE customer_group_code='NOT LOGGED IN';
SET FOREIGN_KEY_CHECKS=1;</code></pre>
<p>Hope it helps.</p>
<p><a href="https://magento.stackexchange.com/questions/102739/magento-2-moving-site-no-such-entity">https://magento.stackexchange.com/questions/102739/magento-2-moving-site-no-such-entity</a>
<br></p>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Magento 2 If you would like to SSL</title>
		<link>https://selmantunc.com.tr/uncategorized/magento-2-if-you-would-like-to-ssl/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Wed, 28 Nov 2018 09:48:41 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[magento fix]]></category>
		<category><![CDATA[Magento2]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[ssl]]></category>
		<guid isPermaLink="false">http://selmantunc.com.tr/2018/11/28/magento-2-if-you-would-like-to-ssl/</guid>

					<description><![CDATA[If you would like to SSL &#8211; Generate SSL Letsencrypt We will secure our Magento installation using SSL from Letsencrypt. Install the Letsencrypt using the apt command below. sudo apt&#8230;]]></description>
										<content:encoded><![CDATA[<h2><b>If you would like to SSL</b>
<br></h2>
<p><b>&#8211; Generate SSL Letsencrypt</b>
<br></p>
<p>We will secure our Magento installation using SSL from Letsencrypt. Install the Letsencrypt using the apt command below.</p>
<pre><code>sudo apt install letsencrypt -y</code></pre>
<p>After the installation is complete, stop the nginx service.</p>
<pre><code>systemctl stop nginx</code></pre>
<p>Now generate the SSL certificates for the domain name using certbot command as below.</p>
<pre><code>certbot certonly --standalone -d magento.hakase-labs.pw</code></pre>
<p>Type your email address, accept the Letsencrypt TOS, then type ‘N’ for email sharing.</p>
<p>When it’s complete, you will get the result as below.</p>
<p>The Letsencrypt SSL certificate files have been generated to the ’/etc/letsencrypt/live’ directory.</p>
<p><b>FOR SSL  Configure Nginx Virtual Host file </b></p>
<pre>upstream fastcgi_backend {
        server  unix:/run/php/php7.1-fpm.sock;
}

server {
    listen 80;
    listen [::]:80;
    server_name <a href="http://www.magento-dev.com">www.magento-dev.com</a>;
    return 301 https://$server_name$request_uri;
}

server {

        listen 443 ssl;
        server_name magento-dev.com;

        ssl on;
        ssl_certificate /etc/letsencrypt/live/magento.hakase-labs.pw/fullchain.pem;
        ssl_certificate_key /etc/letsencrypt/live/magento.hakase-labs.pw/privkey.pem;

        set $MAGE_ROOT /var/www/magento2;
        set $MAGE_MODE developer;
        include /var/www/magento2/nginx.conf.sample;
}</pre>]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
