<?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 - q internet</title>
	<atom:link href="https://www.qinternet.uk/category/web-development/woocommerce/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.qinternet.uk</link>
	<description>Web Design, Ecommerce and Web Development made simple</description>
	<lastBuildDate>Thu, 23 May 2024 11:17:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.3</generator>

<image>
	<url>https://www.qinternet.uk/wp-content/uploads/2020/06/cropped-favicon-32x32.png</url>
	<title>Woocommerce - q internet</title>
	<link>https://www.qinternet.uk</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Woocommerce URL Coupons Applying the Wrong Code</title>
		<link>https://www.qinternet.uk/web-development/woocommerce-url-coupons-applying-the-wrong-code/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=woocommerce-url-coupons-applying-the-wrong-code</link>
		
		<dc:creator><![CDATA[Chris Quee]]></dc:creator>
		<pubDate>Tue, 04 Feb 2020 17:12:27 +0000</pubDate>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Woocommerce]]></category>
		<category><![CDATA[Wordpress]]></category>
		<guid isPermaLink="false">https://www.qinternet.uk/?p=20919</guid>

					<description><![CDATA[<p>I recently ran in to a strange problem when applying coupons via URLs in Woocommerce. I had it set up using the Woocommerce add-on...</p>
<p>The post <a rel="nofollow" href="https://www.qinternet.uk/web-development/woocommerce-url-coupons-applying-the-wrong-code/">Woocommerce URL Coupons Applying the Wrong Code</a> appeared first on <a rel="nofollow" href="https://www.qinternet.uk">q internet</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>I recently ran in to a strange problem when applying coupons via URLs in Woocommerce. I had it set up using the Woocommerce add-on for URL coupons. this is where a coupon can be applied to the shopping basket by passing it in the URL. So if you had a discount code &#8216;december19&#8217;, you could simply give your customers the URL https://www.domain.com/december19 and your chosen product and discount would be added to your shopping cart.</p>
<p>Now, the problem arose when similar coupon codes were being used for different discounts, particularly when the first part of the code was the same, so like &#8216;jan&#8217;, janr1&#8242; and so on. So inputting the code &#8216;janr1&#8217; would result in the discount set up for the code &#8216;jan&#8217; being applied.</p>
<p>I then realised that this is actually how the URL coupons add-on is intended to work, it&#8217;s to allow you to personalise the coupon codes you give to your customers. This feature can be disabled by adding a trailing slash, but it&#8217;s not always convienient, and in my case there were a number of codes that had already been published, so a solution was needed, and fast!.</p>
<p>Digging through the code of the URL coupons add-on it became clear the Woocommerce developers had added a filter that helpfully allows the coupon look up process to be hooked into.</p>
<p>To disable the feature you simply add the code below into your theme&#8217;s or child theme&#8217;s functions.php file, and any coupons added will require an exact match to be processed.</p>
<div class="dm-code-snippet dark default  dm-normal-version" style="background-color:#abb8c3;" snippet-height="">
			<div class="control-language">
                <div class="dm-buttons">
                    <div class="dm-buttons-left">
                        <div class="dm-button-snippet red-button"></div>
                        <div class="dm-button-snippet orange-button"></div>
                        <div class="dm-button-snippet green-button"></div>
                    </div>
                    <div class="dm-buttons-right">
                        <a id="dm-copy-raw-code">
                        <span class="dm-copy-text">Copy Code</span>
                        <span class="dm-copy-confirmed" style="display:none">Copied</span>
                        <span class="dm-error-message" style="display:none">Use a different Browser</span></a>
                    </div>
                </div>
                <pre class="no-line-numbers"><code id="dm-code-raw" class="no-wrap language-php">
<pre class="dm-pre-admin-side">//Woocommerce URL Coupons exact match
function cq_coupon_exact_match($url_matches, $url, $coupon_url) {
  if ($url == $coupon_url) {
    return true; 
  } else { 
    return false;
  }
}
add_filter( 'wc_url_coupons_url_matches_coupon', 'cq_coupon_exact_match', 10, 3);</pre>
</code></pre>
			</div>
        </div>
<p>This simply looks to see if the full URL is an exact match to the full coupon url, and will only return true when that is the case.</p>
<p>The post <a rel="nofollow" href="https://www.qinternet.uk/web-development/woocommerce-url-coupons-applying-the-wrong-code/">Woocommerce URL Coupons Applying the Wrong Code</a> appeared first on <a rel="nofollow" href="https://www.qinternet.uk">q internet</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Accountancy Software Integration</title>
		<link>https://www.qinternet.uk/ecommerce/accountancy-software-integration/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=accountancy-software-integration</link>
		
		<dc:creator><![CDATA[Chris Quee]]></dc:creator>
		<pubDate>Fri, 31 Jan 2020 15:55:27 +0000</pubDate>
				<category><![CDATA[eCommerce]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Woocommerce]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Accounts]]></category>
		<category><![CDATA[EPOS]]></category>
		<category><![CDATA[Sage]]></category>
		<guid isPermaLink="false">https://www.qinternet.uk/?p=22346</guid>

					<description><![CDATA[<p>Ecommerce web sites can do more than just sell your products; they can talk to accounts and stock control systems. Accounts systems such as...</p>
<p>The post <a rel="nofollow" href="https://www.qinternet.uk/ecommerce/accountancy-software-integration/">Accountancy Software Integration</a> appeared first on <a rel="nofollow" href="https://www.qinternet.uk">q internet</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Ecommerce web sites can do more than just sell your products; they can talk to accounts and stock control systems.</p>
<p>Accounts systems such as Sage (Instant Accounts, Sage 50 and many others) can be updated on the fly with the most current order information from your site, this information never needs to be manually re-typed into the system, reducing admin costs.</p>
<p>Stock control systems, or accounts packages containing stock control functionality, can also integrate with ecommerce web sites. Your customers can see at any time whether an item is in stock, or if you prefer, precisely how many items are in stock.</p>
<p>As the web sites we sell are built using one of the world’s most popular open source platforms, offering connectivity to a number of popular systems is easily achievable. In fact, if your web site offers PayPal as a payment option, you are already talking to other systems!</p>
<p>If you feel you have a need for live stock updates or integration with your accounts system, we would be glad to help.</p>
<p>The post <a rel="nofollow" href="https://www.qinternet.uk/ecommerce/accountancy-software-integration/">Accountancy Software Integration</a> appeared first on <a rel="nofollow" href="https://www.qinternet.uk">q internet</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
