<?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>woocommerce &#8211; Κατασκευή Ιστοσελίδων Χανιά &amp; Θεσσαλονίκη</title>
	<atom:link href="https://selidamou.gr/tag/woocommerce/feed" rel="self" type="application/rss+xml" />
	<link>https://selidamou.gr</link>
	<description>Web design &#38; Φιλοξενία</description>
	<lastBuildDate>Tue, 10 Jul 2018 15:15:42 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>Πειράζοντας με SQL κώδικα το woocommerce stock</title>
		<link>https://selidamou.gr/problem-solving/sql-woocommerce-stock</link>
		
		<dc:creator><![CDATA[Web-Design]]></dc:creator>
		<pubDate>Mon, 18 Jun 2018 09:41:13 +0000</pubDate>
				<category><![CDATA[Problem solving]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[stock]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[woocommerce]]></category>
		<guid isPermaLink="false">https://selidamou.gr/?p=3418</guid>

					<description><![CDATA[Πολλές φορές, υπάρχουν κάποια πραγματάκια που δεν θέλουμε φυσικά να αναλωθούμε ή να φορτώσουμε τη σελίδα. όπως θέλεις μπορείς να το πεις. Σε αυτές τις περιπτώσεις ψάχνεις για μια γραμμή κώδικα ώστε να διορθώσεις το πρόβλημα σου. Μεταφορά λοιπόν από&#8230;]]></description>
										<content:encoded><![CDATA[<p>Πολλές φορές, υπάρχουν κάποια πραγματάκια που δεν θέλουμε φυσικά να αναλωθούμε ή να φορτώσουμε τη σελίδα. όπως θέλεις μπορείς να το πεις. Σε αυτές τις περιπτώσεις ψάχνεις για μια γραμμή κώδικα ώστε να διορθώσεις το πρόβλημα σου.<br />
Μεταφορά λοιπόν από virtuemart σε woocommerce και όλα τα προιόντα outofstock, αρνητικό stock και πάει λέγοντας. Ο πελάτης δεν παρακολουθεί την αποθήκη του μέσα από το eshop αλλά άντε άλλαξε 2000 προιόντα variables και μή..</p>
<p>Παρακάτω θα δούμε μερικές περιπτώσεις για να αλλάξετε μαζικά (bulk) κάποια settings μέσα στα προιόντα του woocommerce</p>
<p>Αλλάζοντας το outofstok σε instock</p>
<pre class="default prettyprint prettyprinted"><code><span class="typ">Update</span><span class="pln"> wp_postmeta </span><span class="typ">Set</span><span class="pln"> meta_value </span><span class="pun">=</span> <span class="str">'outofstock'</span> <span class="typ">Where</span><span class="pln"> meta_value </span><span class="pun">=</span> <span class="str">'instock'</span> <span class="typ">And</span><span class="pln"> meta_key </span><span class="pun">=</span> <span class="str">'_stock_status'</span></code></pre>
<p>&nbsp;</p>
<p>Αλλάζοντας το manage stock από ναι σε όχι</p>
<pre class="default prettyprint prettyprinted"><code><span class="typ">Update</span><span class="pln"> wp_postmeta </span><span class="typ">Set</span><span class="pln"> meta_value </span><span class="pun">=</span> <span class="str">'no'</span> <span class="typ">Where</span><span class="pln"> meta_value </span><span class="pun">=</span> <span class="str">'yes'</span> <span class="typ">And</span><span class="pln"> meta_key </span><span class="pun">=</span> <span class="str">'_manage_stock'</span></code></pre>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Αλλάζοντας το νούμερο που είναι σε stock, ώστε να σε αφήνει να το παραγγείλεις</p>
<pre class="default prettyprint prettyprinted"><code><span class="typ">Update</span><span class="pln"> wp_postmeta </span><span class="typ">Set</span><span class="pln"> meta_value </span><span class="pun">=</span> <span class="str">'1000'</span> <span class="typ">Where</span><span class="pln"> meta_value &lt;&gt;</span> '100<span class="str">0'</span> <span class="typ">And</span><span class="pln"> meta_key </span><span class="pun">=</span> <span class="str">'_stock'</span></code></pre>
<p>&nbsp;</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Πως να κρύψετε την τιμή και το κουμπί cart στο woo commerce</title>
		<link>https://selidamou.gr/problem-solving/hide-price-addtocart-woocommerce</link>
		
		<dc:creator><![CDATA[Web-Design]]></dc:creator>
		<pubDate>Wed, 30 Aug 2017 21:32:06 +0000</pubDate>
				<category><![CDATA[Problem solving]]></category>
		<category><![CDATA[cart]]></category>
		<category><![CDATA[hide]]></category>
		<category><![CDATA[price]]></category>
		<category><![CDATA[woocommerce]]></category>
		<guid isPermaLink="false">http://selidamou.gr/?p=3180</guid>

					<description><![CDATA[Το είχα αφήσει αυτό για λίγο καιρό, αλλά επέστρεψα απόψε Σε περίπτωση που το ψάχνει κάποιος, προσθέτουμε τον παρακάτω κώδικα στο functions.php, ώστε να κρύψουμε το κουμπάκι και τις τιμές για τους χρήστες που δεν έχουν κάνει login. Ισχύει σε&#8230;]]></description>
										<content:encoded><![CDATA[<p style="color: #555555;">Το είχα αφήσει αυτό για λίγο καιρό, αλλά επέστρεψα απόψε</p>
<p style="color: #555555;">Σε περίπτωση που το ψάχνει κάποιος, προσθέτουμε τον παρακάτω κώδικα στο functions.php, ώστε να κρύψουμε το κουμπάκι και τις τιμές για τους χρήστες που δεν έχουν κάνει login. Ισχύει σε όλη τη σελίδα:</p>
<pre style="color: #555555;"><code>//hide prices &amp; buy buttons from non logged in visitors
if ( !is_user_logged_in() ) {
	add_filter('mp_product_price_tag', '__return_false');
	add_filter('mp_buy_button_tag', '__return_false');
}</code></pre>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Πως να αφαιρέσουμε τα related products στο woocommerce</title>
		<link>https://selidamou.gr/problem-solving/%cf%80%cf%89%cf%82-%ce%bd%ce%b1-%ce%b1%cf%86%ce%b1%ce%b9%cf%81%ce%ad%cf%83%ce%bf%cf%85%ce%bc%ce%b5-%cf%84%ce%b1-related-products-%cf%83%cf%84%ce%bf-woocommerce</link>
		
		<dc:creator><![CDATA[Web-Design]]></dc:creator>
		<pubDate>Tue, 15 Aug 2017 22:03:58 +0000</pubDate>
				<category><![CDATA[Problem solving]]></category>
		<category><![CDATA[related products]]></category>
		<category><![CDATA[snippet]]></category>
		<category><![CDATA[woocommerce]]></category>
		<guid isPermaLink="false">http://selidamou.gr/?p=3200</guid>

					<description><![CDATA[Αν το θέμα σας δεν είναι φτιαγμένο για το woocommerce ή απλά θέλετε να αφαιρέσετε τα related products που είναι στο τέλος της σελίδας στην product page μας, μπορείτε να προσθέσετε το παρακάτω snippet μέσα στο functions.php του theme σας.&#8230;]]></description>
										<content:encoded><![CDATA[<p>Αν το θέμα σας δεν είναι φτιαγμένο για το woocommerce ή απλά θέλετε να αφαιρέσετε τα related products που είναι στο τέλος της σελίδας στην product page μας, μπορείτε να προσθέσετε το παρακάτω snippet μέσα στο functions.php του theme σας.</p>
<p>remove_action( &#8216;woocommerce_after_single_product_summary&#8217;, &#8216;woocommerce_output_related_products&#8217;, 20);</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Clean filter for the woocommerce brands pro plugin</title>
		<link>https://selidamou.gr/problem-solving/clean-filter-for-the-woocommerce-brands-pro-plugin</link>
		
		<dc:creator><![CDATA[Web-Design]]></dc:creator>
		<pubDate>Thu, 15 Jun 2017 21:26:04 +0000</pubDate>
				<category><![CDATA[Problem solving]]></category>
		<category><![CDATA[brands pro]]></category>
		<category><![CDATA[filter]]></category>
		<category><![CDATA[woocommerce]]></category>
		<guid isPermaLink="false">http://selidamou.gr/?p=3174</guid>

					<description><![CDATA[Having tried too many plugins for a proper brands plugin that actually does its job. I finally ended up with the woocommerce brands pro. Everything good. Does its job. Except one small problem. Like woocommerce layered nav, the similar woocommerce brand&#8230;]]></description>
										<content:encoded><![CDATA[<p>Having tried too many plugins for a proper brands plugin that actually does its job. I finally ended up with the woocommerce brands pro. Everything good. Does its job. Except one small problem. Like woocommerce layered nav, the similar woocommerce brand layered nav does not have a clear filters button-link or anything! Didnt contact support to be honest. My client had a hard time finding the purchase code and it got me a bit delayed getting some officeial support.</p>
<p>So after spending some considerable amount on google, I found out a way to overcome that and find a solution to my problem. If you observe, the filtering uses the address field of your browser. If you mannualy delete the ?filtering field, then its gone.  So what i try to do is first add a hook in the widget i want so i can call my function from anywhere in the theme and then i add my function to the themes functions file.<br />
To repeat. This is not official. Its just a small hack and it does ALTER THE CODE of the plugin, so it WILL be lost on a update that you will do..</p>
<p>&nbsp;</p>
<p>We will add one line. A hook that is, inside the plugins code. The addition goes in the file  class-wc-widget-brand-nav.php</p>
<p style="color: #444444;"><span class="name">on line 334 (woocommerce brands pro by proword version 4.3.1)</span></p>
<p style="color: #444444;">do_action( &#8216;vas_woocommerce_layered_nav_bottom&#8217; );</p>
<p>I&#8217;ll give you a screenshot as well to see where the code exactly goes.</p>
<p><img loading="lazy" class="aligncenter size-full wp-image-3175" src="http://selidamou.gr/wp-content/uploads/2018/03/banner-img.jpg" alt="" width="1295" height="481" srcset="https://selidamou.gr/wp-content/uploads/2018/03/banner-img.jpg 1295w, https://selidamou.gr/wp-content/uploads/2018/03/banner-img-300x111.jpg 300w, https://selidamou.gr/wp-content/uploads/2018/03/banner-img-768x285.jpg 768w, https://selidamou.gr/wp-content/uploads/2018/03/banner-img-1024x380.jpg 1024w, https://selidamou.gr/wp-content/uploads/2018/03/banner-img-600x223.jpg 600w" sizes="(max-width: 1295px) 100vw, 1295px" /></p>
<p style="color: #444444;">
<p style="color: #444444;">After that you go in the themes functions file and add the following lines</p>
<pre style="color: #444444;">add_action('vas_woocommerce_layered_nav_bottom', 'add_clear_filters');
function add_clear_filters() {
 $filterreset = $_SERVER['REQUEST_URI'];
 if ( strpos($filterreset,'?filtering') !== false ) {
 $filterreset = strtok($filterreset, '?');
 echo '&lt;div class="clear-filters-container"&gt;&lt;a id="woo-clear-filters" href="'.$filterreset.'"&gt;X &amp;nbsp; Remove filter&lt;/a&gt;&lt;/div&gt;';
 }
}</pre>
<p style="color: #444444;">What the above code does is to call the hook that we got in the brands pro layered nav widget file and first check if there is any filtering done. In the case the filtering is active then show to the user the remove filters link.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
