<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>custom property for cart items</title>
    <link>http://forums.shopify.com/categories/2/posts/19713</link>
    <language>en-us</language>
    <description>Feed for discussion topic custom property for cart items</description>
    <item>
      <title>custom property for cart items</title>
      <author>sneakyimp</author>
      <pubDate>Fri, 16 May 2008 20:31:04 +0000</pubDate>
      <link>http://forums.shopify.com/categories/2/posts/19713</link>
      <guid>http://forums.shopify.com/categories/2/posts/19713</guid>
      <description>&lt;p&gt;My cousin has asked me to look at her shopify cart to see if it&amp;#8217;s possible to prompt the user for custom text for certain products.  She has these charm bracelets which can be customized with your name or something like &amp;#8216;Donny &amp;#38; Suzee 4Ever&amp;#8217; or something like that.&lt;/p&gt;


	&lt;p&gt;I tried adding this to the &amp;#8216;add to cart&amp;#8217; form in collection.liquid:&lt;br /&gt;&lt;code&gt;&lt;pre&gt;
Custom Text: &amp;lt;input type="text" name="note" value="" /&amp;gt;&amp;lt;br&amp;gt;
&lt;/pre&gt;&lt;/code&gt;&lt;/p&gt;


	&lt;p&gt;And then I tried this in cart.liquid:&lt;br /&gt;&lt;code&gt;&lt;pre&gt;
      {% tablerow item in cart.items cols:3  %}

        &amp;lt;h3&amp;gt;{{ item.title }}&amp;lt;/h3&amp;gt;
        &amp;lt;div class="cart-thumb"&amp;gt;
          &amp;lt;img src="{{item.product.featured_image | product_img_url: 'thumb' }}" alt="{{item.title | escape }}" title="{{item.title | escape }}" /&amp;gt;
        &amp;lt;/div&amp;gt;
        &amp;lt;span class="money fl"&amp;gt;{{ item.price | money}} each.&amp;lt;/span&amp;gt;
        &amp;lt;div class="myNewClass"&amp;gt;custom text: {{ item.customText}}&amp;lt;/div&amp;gt;
etc, etc.
&lt;/pre&gt;&lt;/code&gt;&lt;/p&gt;


	&lt;p&gt;No dice though.  Can someone tell me how I might allow customers to specify a little bit of text &lt;em&gt;only on items with a particular tag or belong to a particular collection&lt;/em&gt; ?&lt;/p&gt;</description>
    </item>
    <item>
      <title>HunkyBill commented</title>
      <author>HunkyBill</author>
      <pubDate>Fri, 16 May 2008 22:17:33 +0000</pubDate>
      <link>http://forums.shopify.com/categories/2/posts/19713#comment-19720</link>
      <guid>http://forums.shopify.com/categories/2/posts/19713#comment-19720</guid>
      <description>&lt;p&gt;Hi,&lt;/p&gt;


	&lt;p&gt;If you check out &lt;a href="http://www.lucyann.ca"&gt;http://www.lucyann.ca&lt;/a&gt;, you&amp;#8217;ll see your charm bracelet customization to the nth degree.. it&amp;#8217;s old code, needs some re-factoring to modernize it, but you can clearly see it exploits Shopify to the max. That site is online since 2006 without much change, works like a charm.&lt;/p&gt;


	&lt;p&gt;As for your need of customizing certain products only, that is also very easy, with tags or without, you just need to leverage liquid cleverly.&lt;/p&gt;


	&lt;p&gt;If you understand the code I used, you&amp;#8217;re well on your way. If it&amp;#8217;s greek to you, you&amp;#8217;ll need to brush up fast on Javascript, or hire an expert. Having done it before, many times, it becomes easier and easier&amp;#8230;&lt;/p&gt;


	&lt;p&gt;Good luck! Have fun with it!&lt;/p&gt;</description>
    </item>
    <item>
      <title>sneakyimp commented</title>
      <author>sneakyimp</author>
      <pubDate>Fri, 16 May 2008 22:25:40 +0000</pubDate>
      <link>http://forums.shopify.com/categories/2/posts/19713#comment-19721</link>
      <guid>http://forums.shopify.com/categories/2/posts/19713#comment-19721</guid>
      <description>&lt;p&gt;Hi Bill&lt;/p&gt;


	&lt;p&gt;Thanks for your response, I really appreciate it.  However, digging through the hundreds of lines of Javascript you have in there isn&amp;#8217;t something I&amp;#8217;m particularly excited about doing.   I can&amp;#8217;t even tell where you assign the dialog launcher to your &amp;#8216;Customize Item&amp;#8217; button.&lt;/p&gt;


	&lt;p&gt;I&amp;#8217;m no stranger to Javascript and would really by psyched if you could outline the basic process in broad strokes.&lt;/p&gt;</description>
    </item>
    <item>
      <title>HunkyBill commented</title>
      <author>HunkyBill</author>
      <pubDate>Sat, 17 May 2008 19:06:52 +0000</pubDate>
      <link>http://forums.shopify.com/categories/2/posts/19713#comment-19730</link>
      <guid>http://forums.shopify.com/categories/2/posts/19713#comment-19730</guid>
      <description>&lt;p&gt;&lt;strong&gt;product.liquid&lt;/strong&gt;&lt;br /&gt;- recognize a product needs customization, decide what kind&lt;br /&gt;- build dom to collect info, glue that into existing dom&lt;br /&gt;- if shopper customized.. save info as cookie, go to cart&lt;br /&gt;- if shopper did not customize, alert them and wait on product&lt;/p&gt;


	&lt;p&gt;&lt;strong&gt;cart.liquid&lt;/strong&gt;&lt;br /&gt;- for each product, decide if it needed customization&lt;br /&gt;- if so, read the cookie set in product.liquid for details&lt;br /&gt;- build &lt;span class="caps"&gt;DOM&lt;/span&gt; to reflect custom settings&lt;br /&gt;- allow shopper to change settings, add new items&lt;br /&gt;- if adding new items, provide same customization as product&lt;br /&gt;- if checking out, save all customization into cart.attributes&lt;br /&gt;- checkout&amp;#8230;.&lt;/p&gt;


	&lt;p&gt;Any guesses as to why we charge a &lt;strong&gt;tiny bit&lt;/strong&gt; of money for doing all that? It works great by the way.&lt;/p&gt;


	&lt;p&gt;Some people expect that for free for some reason. Same types of people who probably drive Hummers and have Nannies raise their children while they rip off the elderly for their life savings as they holiday at Club Med.&lt;/p&gt;


	&lt;p&gt;Hope that helps!&lt;/p&gt;


	&lt;p&gt;I probably missed 3 or 4 crucial other steps in this broad canvas&amp;#8230;me bad&amp;#8230;I have other things to do these days&amp;#8230; That recipe above is &lt;span class="caps"&gt;NOT&lt;/span&gt; lucyann because I have radically altered the recipe since those days.. I look back at that code and shudder&amp;#8230; most of it is idle now anyway.. and I never bothered to amputate the bad stuff&amp;#8230; no wonder you had trouble with it&amp;#8230;&lt;/p&gt;</description>
    </item>
    <item>
      <title>BBG commented</title>
      <author>BBG</author>
      <pubDate>Sun, 18 May 2008 12:47:49 +0000</pubDate>
      <link>http://forums.shopify.com/categories/2/posts/19713#comment-19737</link>
      <guid>http://forums.shopify.com/categories/2/posts/19713#comment-19737</guid>
      <description>&lt;p&gt;I wrote up how to add a custom color choice property &lt;a href="http://fishdujour.typepad.com/blog/shopify-custom-product-color-variations.html"&gt;here&lt;/a&gt;. You should be able to use this as a starting point if you know javascript.&lt;/p&gt;</description>
    </item>
    <item>
      <title>HunkyBill commented</title>
      <author>HunkyBill</author>
      <pubDate>Sun, 18 May 2008 13:15:50 +0000</pubDate>
      <link>http://forums.shopify.com/categories/2/posts/19713#comment-19738</link>
      <guid>http://forums.shopify.com/categories/2/posts/19713#comment-19738</guid>
      <description>&lt;p&gt;@Gavin,&lt;/p&gt;


	&lt;p&gt;Nice article.. I would add one caveat as well. When you include the products customization in the actual product.description (which does work), you run into the small issue that when the product description is output as text, that javascript is output too. This caused me to puzzle over how to hide it, which led me to using the blogs as a source of that data.&lt;/p&gt;


	&lt;p&gt;I requested a new liquid feature to strip scripts when desired, but short of me patching Liquid myself for all of Shopify, that seems to be unlikely to occur.&lt;/p&gt;</description>
    </item>
    <item>
      <title>BBG commented</title>
      <author>BBG</author>
      <pubDate>Mon, 19 May 2008 13:25:25 +0000</pubDate>
      <link>http://forums.shopify.com/categories/2/posts/19713#comment-19744</link>
      <guid>http://forums.shopify.com/categories/2/posts/19713#comment-19744</guid>
      <description>&lt;p&gt;Thanks HunkyBill. I&amp;#8217;ve updated the page.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
