<?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>gj |</title>
	<atom:link href="https://blog.gaiterjones.com/category/buy-one-get-one-free-2/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.gaiterjones.com/category/buy-one-get-one-free-2/</link>
	<description>gaiterjones</description>
	<lastBuildDate>Mon, 22 Jun 2015 12:15:22 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.4.3</generator>
	<item>
		<title>Magento &#8211; How to remove Quantity input box and Delete button for Free cart items</title>
		<link>https://blog.gaiterjones.com/magento-how-to-remove-quantity-input-box-and-delete-button-for-free-cart-items/</link>
					<comments>https://blog.gaiterjones.com/magento-how-to-remove-quantity-input-box-and-delete-button-for-free-cart-items/#comments</comments>
		
		<dc:creator><![CDATA[PAJ]]></dc:creator>
		<pubDate>Mon, 08 Aug 2011 13:09:23 +0000</pubDate>
				<category><![CDATA[5 Minute Fix]]></category>
		<category><![CDATA[Buy One Get One Free]]></category>
		<category><![CDATA[Magento]]></category>
		<guid isPermaLink="false">http://blog.gaiterjones.com/?p=510</guid>

					<description><![CDATA[For Magento 1.4.x  + BuyXGetYFree items are added and removed automatically by the extension cartcontroller code. To prevent customers from manually deleting free products from the cart we can change...<a class="more-link" href="https://blog.gaiterjones.com/magento-how-to-remove-quantity-input-box-and-delete-button-for-free-cart-items/" title="Continue reading">Continue reading</a>]]></description>
										<content:encoded><![CDATA[<h1>For Magento 1.4.x  +</h1>
<p><a title="FREE Magento Extension Buy One Get One Free" href="https://blog.gaiterjones.com/free-magento-extension-buy-one-get-one-free-discounted/">BuyXGetYFree </a>items are added and removed automatically by the extension cartcontroller code. To prevent customers from manually deleting free products from the cart we can change the template to remove the delete button and input qty box for items in the cart with a Zero value.</p>
<p>This code is based on the default Magento theme template.</p>
<p><strong>Remove Delete Button</strong></p>
<p>Open the following template file for editing:</p>
<p><em>app/design/frontend/base/YOURTHEME/template/checkout/cart/item/default.phtml</em></p>
<p>Search for “<strong>Remove item</strong>” in the default theme appears on line <strong>243</strong>.</p>
<p>Replace</p>
<pre class="brush:xml">&lt;td class="a-center"&gt;&lt;a href="&lt;?php echo $this-&gt;getDeleteUrl() ?&gt;" title="&lt;?php echo $this-&gt;__('Remove item')?&gt;" class="btn-remove btn-remove2"&gt;&lt;?php echo $this-&gt;__('Remove item')?&gt;&lt;/a&gt;&lt;/td&gt;</pre>
<p>With</p>
<pre class="brush:xml">&lt;?php if ($_item-&gt;getCalculationPrice()=='0'): ?&gt;
&lt;td class="a-center"&gt;&lt;/td&gt;
&lt;?php else: ?&gt;
&lt;td class="a-center"&gt;&lt;a href="&lt;?php echo $this-&gt;getDeleteUrl()?&gt;" title="&lt;?php echo $this-&gt;__('Remove item')?&gt;" class="btn-remove btn-remove2"&gt;&lt;?php echo $this-&gt;__('Remove item')?&gt;&lt;/a&gt;&lt;/td&gt;
 &lt;?php endif; ?&gt;</pre>
<p><strong>Remove Qty input Box</strong></p>
<p>Search for “<strong>input-text qty</strong>”, in the default theme appears on line <strong>156</strong>.</p>
<p>Replace</p>
<pre class="brush:xml">&lt;input name="cart[&lt;?php echo $_item-&gt;getId() ?&gt;][qty]" value="&lt;?php echo $this-&gt;getQty() ?&gt;" size="4" title="&lt;?php echo $this-&gt;__('Qty') ?&gt;" class="input-text qty" maxlength="12" /&gt;</pre>
<p>With</p>
<pre class="brush:xml">&lt;?php if ($_item-&gt;getCalculationPrice()=='0'): ?&gt;
&lt;?php echo $this-&gt;getQty() ?&gt;
&lt;?php else: ?&gt;
&lt;input name="cart[&lt;?php echo $_item-&gt;getId() ?&gt;][qty]" value="&lt;?php echo $this-&gt;getQty() ?&gt;" size="4" title="&lt;?php echo $this-&gt;__('Qty') ?&gt;" class="input-text qty" maxlength="12" /&gt;
&lt;?php endif; ?&gt;</pre>
<p>Refresh cache, and reload cart to test, free items should no longer have a delete button or input quantity box.</p>
<figure id="attachment_511" aria-describedby="caption-attachment-511" style="width: 620px" class="wp-caption alignnone"><a href="https://blog.gaiterjones.com/wp-content/uploads/2011/08/buyxgetyfree-cart-edit.jpg"><img fetchpriority="high" decoding="async" class="size-large wp-image-511" title="Remove delete button and quantity input box for free cart items" src="https://blog.gaiterjones.com/wp-content/uploads/2011/08/buyxgetyfree-cart-edit-620x410.jpg" alt="Remove delete button and quantity input box for free cart items" width="620" height="410" srcset="https://blog.gaiterjones.com/wp-content/uploads/2011/08/buyxgetyfree-cart-edit-620x410.jpg 620w, https://blog.gaiterjones.com/wp-content/uploads/2011/08/buyxgetyfree-cart-edit-440x291.jpg 440w, https://blog.gaiterjones.com/wp-content/uploads/2011/08/buyxgetyfree-cart-edit.jpg 937w" sizes="(max-width: 620px) 100vw, 620px" /></a><figcaption id="caption-attachment-511" class="wp-caption-text">Remove delete button and quantity input box for free cart items</figcaption></figure>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.gaiterjones.com/magento-how-to-remove-quantity-input-box-and-delete-button-for-free-cart-items/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>FREE Magento Extension Buy One Get One Free</title>
		<link>https://blog.gaiterjones.com/free-magento-extension-buy-one-get-one-free-discounted/</link>
					<comments>https://blog.gaiterjones.com/free-magento-extension-buy-one-get-one-free-discounted/#comments</comments>
		
		<dc:creator><![CDATA[PAJ]]></dc:creator>
		<pubDate>Fri, 04 Mar 2011 16:01:31 +0000</pubDate>
				<category><![CDATA[Buy One Get One Free]]></category>
		<category><![CDATA[Free Magento Extensions]]></category>
		<category><![CDATA[buy one get one free]]></category>
		<category><![CDATA[buy X get Y free]]></category>
		<category><![CDATA[category get one free]]></category>
		<category><![CDATA[coupon get one free]]></category>
		<category><![CDATA[FREE Magento Extensions]]></category>
		<guid isPermaLink="false">http://blog.gaiterjones.com/?p=273</guid>

					<description><![CDATA[FREE Magento Extension Buy One Get One Free A common requirement for an eCommerce store is the Buy X Get Y free sales promotion, where a bonus product Y is...<a class="more-link" href="https://blog.gaiterjones.com/free-magento-extension-buy-one-get-one-free-discounted/" title="Continue reading">Continue reading</a>]]></description>
										<content:encoded><![CDATA[<p><img decoding="async" class="hang-2-column     alignnone" title="Magento BuyXGetYFree Extension" src="https://blog.gaiterjones.com/wp-content/uploads/2011/03/buyxgeyfree-box.jpg" alt="Magento BuyXGetYFree Extension" width="168" height="168" /></p>
<h1>FREE Magento Extension Buy One Get One Free</h1>
<p>A common requirement for an eCommerce store is the Buy X Get Y free sales promotion, where a bonus product Y is offered if the customer <strong>buys </strong>a quantity of product X or the Spend X Get Y Free scenario where a bonus product Y is offered when the customer <strong>spends </strong>X amount on a single order.</p>
<h2>Free Magento Extension for Magento eCommerce Stores</h2>
<p>This <strong>free magento extension</strong> provides Buy X Get Y, Spend X get Y, use Coupon X get Y and buy from Category X get Y functionality for Magento eCommerce stores.</p>
<p>Tested with CE 1.3 &#8211; 1.9 and EE 1.x</p>
<p>The module code is now pretty stable and has been implemented in many Magento stores.</p>
<h3>Download Free Magento Extension</h3>
<p>Download the latest version of this <strong>free magento extension</strong> / module via Github here  <a href="https://github.com/gaiterjones/magento-buy-x-get-y-free" target="_blank">https://github.com/gaiterjones/magento-buy-x-get-y-free</a></p>
<p>Try out the extension at my development store here <a title="gaiterjones dev store" href="http://dev.gaiterjones.com/magento/" target="_blank">http://dev.gaiterjones.com/magento/</a></p>
<figure id="attachment_700" aria-describedby="caption-attachment-700" style="width: 620px" class="wp-caption alignnone"><a href="https://blog.gaiterjones.com/wp-content/uploads/2011/03/magentobuyonegetonefreeimage.jpg"><img decoding="async" class="size-large wp-image-700" title="Magento Buy one Get One Free Example" src="https://blog.gaiterjones.com/wp-content/uploads/2011/03/magentobuyonegetonefreeimage-620x219.jpg" alt="Magento Buy one Get One Free Example" width="620" height="219" srcset="https://blog.gaiterjones.com/wp-content/uploads/2011/03/magentobuyonegetonefreeimage-620x219.jpg 620w, https://blog.gaiterjones.com/wp-content/uploads/2011/03/magentobuyonegetonefreeimage-440x155.jpg 440w, https://blog.gaiterjones.com/wp-content/uploads/2011/03/magentobuyonegetonefreeimage.jpg 922w" sizes="(max-width: 620px) 100vw, 620px" /></a><figcaption id="caption-attachment-700" class="wp-caption-text">Magento Buy one Get One Free Example</figcaption></figure>
<p>&nbsp;</p>
<p><strong>Updates</strong></p>
<p>If you use this free magento extension be sure to update to the latest version, latest source code will always be available at the github.</p>
<p><span style="color: #ff0000;"><span style="color: #000000;">*  0.34 &#8211; First beta release. 05.03.2011<br />
*  0.40 &#8211; Corrected problem rendering cart in Magento versions 1.4+<br />
*  0.41 &#8211; Added logic to allow a maximum product X limit for product Y i.e. buy 5 get 1 free, buy 10 get 2 free etc.<br />
*  0.42 &#8211; 01.07.2011  Added control to ensure product Y is unique across all offers to prevent a nasty cart loop<br />
*  0.43 &#8211; 20.07.2011  Developed Coupon X get Y Free, get a free gift with a coupon.<br />
*  0.46 &#8211; 22.07.2011  Bug fixes and coupon dev.<br />
<strong>*  0.50 &#8211; 04.08.2011  Developed Category X get Y Free, get a free gift, bonus product when you buy a product that is a member of a specific category.<br />
</strong>*  0.51 &#8211; 09.08.2011  Bug fixes.<br />
</span></span>*  0.53 &#8211; 15.08.2011  Developed customer group check for Spend X<br />
*  0.53 &#8211; 25.08.2011 Tested with Magento CE 1.6.0.0<br />
*  0.56 &#8211; 21.10.2011 Enhance coupon X function.<br />
*  0.57 &#8211; 02.11.2011 Enhanced Spend X to function in multi currency store.<br />
*  0.59 &#8211; 13.01.2012 Bug Fixes<br />
*  0.61 &#8211; 08.03.2012 Fixed coupon function to ignore coupon case. Added product exclusion to Spend X function.<br />
* 0.63 &#8211; 21.03.2012 Added minimum X quantity required for Category X<br />
improved excluded products logic for Spend X. Admin updates.<br />
* 0.65 &#8211; 22.03.2012 Translation improvements.<br />
* 0.66  &#8211; 06.07.2012 Bug Fixes in Category X function<br />
* 0.70 &#8211; 16.11.2012 0.70 &#8211; Changes to indexAction to improve functionality with other modules extending cartcontroller<br />
* 0.71 &#8211; 18.11.2013 Added max limit to allow various Y products in SPEND X</p>
<p>&nbsp;</p>
<p><strong>Wishlist</strong></p>
<p>Buy category X get Y free &#8211; <strong>done (v0.50)</strong>. Many thanks to CC LLC for the development incentive.<br />
Spend X, offer choice of product<br />
Use a coupon for a free gift &#8211; <strong>done (v0.46)</strong>.<br />
Restrict offers to customer groups. Done for Spend X in v0.53.<br />
Specify cart amount required for Coupon X (<strong>done v0.55</strong>)<br />
Exclude specific products for Spend X (<strong>done v0.61</strong>)<br />
Minimum X quantity for Category X (<strong>done v0.63</strong>)</p>
<p>If you have a requirement for a specific feature let me know and I will add it to the wishlist.</p>
<p><strong>Features</strong></p>
<p>Works with simple and configurable products ( as product X), or categories containing product X.<br />
Prompts customers that a bonus product is available<br />
Multiple offers configurable<br />
Offer details customisable in admin<br />
Manage stock of offer products &#8211; send alert emails, low stock, errors etc.<br />
Use coupons for free gift promotions.<br />
Use category to define products that qualify for free/bonus product.<br />
Restrict offers based on customer groups<br />
Can work with AheadWorks products, Ajax Cart, Mobile Theme</p>
<p><strong>Installation</strong></p>
<p>Extract the extension and copy the files to the /app folder of your magento installation. Refresh your cache, log out of admin and back in again.</p>
<p><strong>Configuration</strong></p>
<p>Configure the extension under System&gt;Configuration&gt;My Extensions see below for examples. There are four sections to configure, one for each type of BUYXGETYFREE promotion, BUY X, SPEND X, CATEGORY X and COUPON X.</p>
<h3>BUY X</h3>
<p>Buy product X get, product Y free, discounted.</p>
<h3>SPEND X</h3>
<p>Spend amount X, get product Y free, discounted.</p>
<h3>COUPON X</h3>
<p>Use coupon X get product Y free, discounted.</p>
<h3>CATEGORY X</h3>
<p>Buy products that belong to a specific category X, get product Y free, discounted. Allows you to step product X to provide for example buy 3 get 1 free, buy 6 get 2 free etc.</p>
<p>You must create a new simple product to represent your free gift product (product Y), or duplicate an existing product. Product Y must have a <strong>unique ID</strong> across all configs, buy, spend and coupon. It must be saleable, should be hidden from your catalog search and have a zero price.</p>
<p>If you want to provide the same product Y free or discounted for various product X&#8217;s you must duplicate product Y for each offer so that each product Y has a unique ID number.</p>
<p>If you want to give a bonus product for multiple product X&#8217;s either use an existing category that the X products are members of, or create a dummy category, i.e. BuyXGetYFree that is not enabled/visible. Then add the X products to this category. Specify the ID number of the offer category in the extension configuration.</p>
<p>The extension works best for a free gift product that is a simple product without options. If you want to make your free gift product Y a configurable product i.e. a product with colours RED/BLACK/WHITE, then consider creating a simple product to represent the free gift i.e. &#8220;FREE RED/BLACK/WHITE GIFT &#8211; select colour at checkout&#8221; and then include a comments section at checkout to allow customer to specify the colour/size etc there.</p>
<p>To configure the extension for use with a coupon, first configure the coupon under Admin-&gt;Promotions. Configure the name of the coupon but do not apply any discount info, conditions or actions, i.e. in effect the coupon does nothing. Under the Coupon X configuration section of the extension, define product Y, the free or discounted product and the <strong>coupon code</strong> of the configured coupon. You can also configure a minimum cart total required for this coupon. Test the extension by applying the coupon to the cart, product Y should then be added.</p>
<p>Consider <a title="Magento – How to remove Quantity input box and Delete button for Free cart items" href="https://blog.gaiterjones.com/magento-how-to-remove-quantity-input-box-and-delete-button-for-free-cart-items/">modifying your theme</a> so that products that have a zero price have the quantity selection box disabled or removed in the cart or during the checkout process.</p>
<p>Test out the extension at my development store here <a title="gaiterjones dev store" href="http://dev.gaiterjones.com/magento/" target="_blank">http://dev.gaiterjones.com/magento/</a></p>
<p>Here are some examples of functionality.</p>
<figure style="width: 440px" class="wp-caption alignnone"><a href="https://blog.gaiterjones.com/wp-content/uploads/2011/07/couponx1.jpg"><img loading="lazy" decoding="async" class="hang-1-column        " style="margin: 10px;" title="Free Magento Extension - Use a Magento coupon for a free gift promotion" src="https://blog.gaiterjones.com/wp-content/uploads/2011/07/couponx1-440x254.jpg" alt="Use a Magento coupon for a free gift promotion" width="440" height="254" /></a><figcaption class="wp-caption-text">Use a Magento coupon for a free gift promotion</figcaption></figure>
<p>&nbsp;</p>
<figure style="width: 620px" class="wp-caption alignnone"><a href="https://blog.gaiterjones.com/wp-content/uploads/2011/03/buy1get1freeexample.jpg"><img loading="lazy" decoding="async" class="hang-1-column        " style="margin: 10px;" title="Free Magento Extension - Buy One Get One Free Example" src="https://blog.gaiterjones.com/wp-content/uploads/2011/03/buy1get1freeexample-620x278.jpg" alt="Buy One Get One Free Example" width="620" height="278" /></a><figcaption class="wp-caption-text">Buy One Get One Free Example</figcaption></figure>
<figure style="width: 620px" class="wp-caption alignnone"><a href="https://blog.gaiterjones.com/wp-content/uploads/2011/03/promptforbonusexample.jpg"><img loading="lazy" decoding="async" class="hang-1-column       " style="margin: 10px;" title="Free Magento Extension - Advise customer of bonus offer" src="https://blog.gaiterjones.com/wp-content/uploads/2011/03/promptforbonusexample-620x208.jpg" alt="Advise customer of bonus offer" width="620" height="208" /></a><figcaption class="wp-caption-text">Advise customer of bonus offer &#8211; prompt to buy one more.</figcaption></figure>
<figure style="width: 620px" class="wp-caption alignnone"><a href="https://blog.gaiterjones.com/wp-content/uploads/2011/03/configurableproducts.jpg"><img loading="lazy" decoding="async" class="hang-1-column       " style="margin: 10px;" title="Free Magento Extension - Buy One Get One Free with configurable products example" src="https://blog.gaiterjones.com/wp-content/uploads/2011/03/configurableproducts-620x335.jpg" alt="Buy One Get One Free with configurable products example" width="620" height="335" /></a><figcaption class="wp-caption-text">Buy One Get One Free with configurable products example</figcaption></figure>
<figure style="width: 620px" class="wp-caption alignnone"><a href="https://blog.gaiterjones.com/wp-content/uploads/2011/03/mixedofferexample.jpg"><img loading="lazy" decoding="async" class="hang-1-column       " style="margin: 10px;" title="Free Magento Extension - Mixed Offer" src="https://blog.gaiterjones.com/wp-content/uploads/2011/03/mixedofferexample-620x401.jpg" alt="Mixed Offer" width="620" height="401" /></a><figcaption class="wp-caption-text">Mixed Offer free products based on product quantity ordered and order value.</figcaption></figure>
<figure style="width: 543px" class="wp-caption alignnone"><a href="https://blog.gaiterjones.com/wp-content/uploads/2011/03/buyxgetyfreeconfigexample.jpg"><img loading="lazy" decoding="async" class="hang-1-column       " style="margin: 10px;" title="Free Magento Extension -  Example Extension Configuration for BuyXGetYFree" src="https://blog.gaiterjones.com/wp-content/uploads/2011/03/buyxgetyfreeconfigexample.jpg" alt="Example Extension Configuration for BuyXGetYFree" width="543" height="493" /></a><figcaption class="wp-caption-text">Example Configuration for BuyXGetYFree</figcaption></figure>
<figure style="width: 501px" class="wp-caption alignnone"><a href="https://blog.gaiterjones.com/wp-content/uploads/2011/03/spendxgetyfreeconfigexample.jpg"><img loading="lazy" decoding="async" class="hang-1-column       " style="margin: 10px;" title="Free Magento Extension -  Example Configuration for Spend X Get Y Free" src="https://blog.gaiterjones.com/wp-content/uploads/2011/03/spendxgetyfreeconfigexample.jpg" alt="Example Configuration for Spend X Get Y Free" width="501" height="421" /></a><figcaption class="wp-caption-text">Example Configuration for Spend X Get Y Free</figcaption></figure>
<figure style="width: 343px" class="wp-caption alignnone"><a href="https://blog.gaiterjones.com/wp-content/uploads/2011/03/couponx2.jpg"><img loading="lazy" decoding="async" class="hang-1-column        " style="margin: 10px;" title="Free Magento Extension - Configure the coupon under promotions" src="https://blog.gaiterjones.com/wp-content/uploads/2011/03/couponx2-343x440.jpg" alt="Configure the coupon under promotions" width="343" height="440" /></a><figcaption class="wp-caption-text">Configure the coupon under promotions</figcaption></figure>
<figure style="width: 440px" class="wp-caption alignnone"><a href="https://blog.gaiterjones.com/wp-content/uploads/2011/03/couponx3.jpg"><img loading="lazy" decoding="async" class="hang-1-column         " style="margin: 10px;" title="Free Magento Extension - Example configuration for Coupon" src="https://blog.gaiterjones.com/wp-content/uploads/2011/03/couponx3-440x288.jpg" alt="Example configuration for Coupon" width="440" height="288" /></a><figcaption class="wp-caption-text">Example configuration for Coupon X get Y free promotion.</figcaption></figure>
<p>&nbsp;</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.gaiterjones.com/free-magento-extension-buy-one-get-one-free-discounted/feed/</wfw:commentRss>
			<slash:comments>291</slash:comments>
		
		
			</item>
	</channel>
</rss>
