<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: Problem with cart66 shorcodes in gravity forms html block</title>
		<link>https://legacy.forums.gravityhelp.com/topic/problem-with-cart66-shorcodes-in-gravity-forms-html-block</link>
		<description>Gravity Support Forums Topic: Problem with cart66 shorcodes in gravity forms html block</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 20:03:57 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/problem-with-cart66-shorcodes-in-gravity-forms-html-block" rel="self" type="application/rss+xml" />

		<item>
			<title>charismaarts on "Problem with cart66 shorcodes in gravity forms html block"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/problem-with-cart66-shorcodes-in-gravity-forms-html-block#post-47176</link>
			<pubDate>Mon, 23 Jan 2012 20:13:26 +0000</pubDate>
			<dc:creator>charismaarts</dc:creator>
			<guid isPermaLink="false">47176@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hello Chris:  I wanted to check in and see if any progress has been made on this.  I decided to do a further test to find out if this could be a &#34;theme&#34; or &#34;plugin&#34; conflict.  I created a new subdomain and installed a totally fresh wordpress there.  It only has the default theme of &#34;twentyeleven&#34; on it which comes with wordpress.  I installed gravity forms and cart66 and those are the  only plugins activated.  This can be all viewed here: &#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://test4.charismaarts.com/?page_id=12&#34; rel=&#34;nofollow&#34;&#62;http://test4.charismaarts.com/?page_id=12&#60;/a&#62;   &#60;/p&#62;
&#60;p&#62;I then setup a similar test and the exact same thing is happening.  The cart66 button works fine on a page; but when you put it in a html block in a gravity form; the button no longer works.  I hope that this establishes that this is not a theme or plugin conflict.  So - Please let me know about this...&#60;/p&#62;
&#60;p&#62;Thanks,&#60;/p&#62;
&#60;p&#62;Gerard
&#60;/p&#62;</description>
		</item>
		<item>
			<title>charismaarts on "Problem with cart66 shorcodes in gravity forms html block"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/problem-with-cart66-shorcodes-in-gravity-forms-html-block#post-46141</link>
			<pubDate>Wed, 11 Jan 2012 13:36:22 +0000</pubDate>
			<dc:creator>charismaarts</dc:creator>
			<guid isPermaLink="false">46141@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hello Chris:&#60;/p&#62;
&#60;p&#62;Thanks for getting back with me on this.  I am a beginning web programmer so I am a little out of my depth on this.  But I have tried to do what you suggested, and I think I have an answer although it may not do any good.  I put the add to cart button on another page that has latest version of everything.  That page is:  &#60;a href=&#34;http://dantena.com/test&#34; rel=&#34;nofollow&#34;&#62;http://dantena.com/test&#60;/a&#62;&#60;br /&#62;
It has the button on the page and then right below a form with the button in an html block; and the upper button works and the one in the form does not.  I have &#34;viewed source&#34; on the page and looked at the code for each one and they look identical, except that the first button has like &#34;task_1&#34; and the second one has &#34;task_1_2&#34; which I am thinking is OK...&#60;br /&#62;
Now there is no spacing in the closing of the CDATA; but it is that way on both; and so it seems that could not be the problem...I will paste in the source from each (page button first and form button second) so you can see:&#60;/p&#62;
&#60;p&#62;/* &#38;lt;![CDATA[ */&#60;/p&#62;
&#60;p&#62;(function($){&#60;br /&#62;
    $(document).ready(function(){&#60;br /&#62;
    $('.Cart66AjaxWarning').hide();&#60;br /&#62;
    $('#addToCart_1').click(function() {&#60;br /&#62;
      $('#task_1').val('ajax');&#60;br /&#62;
                        $('#task_1').val('addToCart');&#60;br /&#62;
          $('#cartButtonForm_1').submit();&#60;br /&#62;
          return false;&#60;br /&#62;
                    return false;&#60;br /&#62;
    });&#60;br /&#62;
  })&#60;br /&#62;
})(jQuery);&#60;/p&#62;
&#60;p&#62;/* ]]&#38;gt; */&#60;/p&#62;
&#60;p&#62;And here it is from the form:&#60;/p&#62;
&#60;p&#62;/* &#38;lt;![CDATA[ */&#60;/p&#62;
&#60;p&#62;(function($){&#60;br /&#62;
    $(document).ready(function(){&#60;br /&#62;
    $('.Cart66AjaxWarning').hide();&#60;br /&#62;
    $('#addToCart_1_2').click(function() {&#60;br /&#62;
      $('#task_1_2').val('ajax');&#60;br /&#62;
                        $('#task_1_2').val('addToCart');&#60;br /&#62;
          $('#cartButtonForm_1_2').submit();&#60;br /&#62;
          return false;&#60;br /&#62;
                    return false;&#60;br /&#62;
    });&#60;br /&#62;
  })&#60;br /&#62;
})(jQuery);&#60;/p&#62;
&#60;p&#62;/* ]]&#38;gt; */&#60;/p&#62;
&#60;p&#62;so - they seem identical and the spacing on close seems the same; so does this help any?&#60;/p&#62;
&#60;p&#62;Please let me know...&#60;/p&#62;
&#60;p&#62;Gerard
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Problem with cart66 shorcodes in gravity forms html block"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/problem-with-cart66-shorcodes-in-gravity-forms-html-block#post-46066</link>
			<pubDate>Tue, 10 Jan 2012 21:31:03 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">46066@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Looks like the shortcode is being processed by Gravity Forms, and the Cart66 button appears.  It's just not working to add to cart.  I see this in the source:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[js]
/* &#38;lt;![CDATA[ */

(function($){
    $(document).ready(function(){
    $(&#38;#39;.Cart66AjaxWarning&#38;#39;).hide();
    $(&#38;#39;#addToCart_73&#38;#39;).click(function() {
      $(&#38;#39;#task_73&#38;#39;).val(&#38;#39;ajax&#38;#39;);
                        $(&#38;#39;#task_73&#38;#39;).val(&#38;#39;addToCart&#38;#39;);
          $(&#38;#39;#cartButtonForm_73&#38;#39;).submit();
          return false;
                    return false;
    });
  })
})(jQuery);

/* ]] &#38;amp; g t ; */&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I added some spaces to the closing &#38;amp; gt ; so it would render.  That problem with the end of the CDATA block can cause the script to not work and that might be what's going on here.  &#60;/p&#62;
&#60;p&#62;Try embedding the cart66 shortcode in the page, not the form, then look at the source and compare the script block with the CDATA.  If the closing  part is correct, then that is what is preventing things from working.&#60;/p&#62;
&#60;p&#62;Here is a recent discussion of it.  I'm not sure if we know what's causing this yet.&#60;/p&#62;
&#60;p&#62;Recent discussion of the closing of the CDATA block:&#60;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/forums/topic/form-has-stopped-displaying-being-set-to-displaynone#post-43873&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/topic/form-has-stopped-displaying-being-set-to-displaynone#post-43873&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Specifically:&#60;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/forums/topic/xhtml-validation-gf_apply_rules#post-43168&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/topic/xhtml-validation-gf_apply_rules#post-43168&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>charismaarts on "Problem with cart66 shorcodes in gravity forms html block"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/problem-with-cart66-shorcodes-in-gravity-forms-html-block#post-46064</link>
			<pubDate>Tue, 10 Jan 2012 21:21:25 +0000</pubDate>
			<dc:creator>charismaarts</dc:creator>
			<guid isPermaLink="false">46064@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Well I have done some further testing on this to eliminate one possibility; I do not have the latest version of the &#34;thesis&#34; theme on the page I showed you; so I went to another site which had latest version of thesis (1.82); so it had everything as latest version and the exact same thing happens; basically you try and click on the &#34;add to cart&#34; button (which is placed there by the shortcode in the html block); nothing happens...&#60;/p&#62;
&#60;p&#62;thanks,&#60;/p&#62;
&#60;p&#62;Gerard
&#60;/p&#62;</description>
		</item>
		<item>
			<title>charismaarts on "Problem with cart66 shorcodes in gravity forms html block"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/problem-with-cart66-shorcodes-in-gravity-forms-html-block#post-45851</link>
			<pubDate>Mon, 09 Jan 2012 05:53:27 +0000</pubDate>
			<dc:creator>charismaarts</dc:creator>
			<guid isPermaLink="false">45851@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hello:&#60;br /&#62;
I have created a form to show different payment options and using conditional html blocks to make the different payment options appear; the second and third work fine as they use Paypal buttons; but the first one is using a cart66 shortcode and the button does not work...&#60;br /&#62;
I know the shorcode works because if I use it outside of the form on the page it works; but as soon as I put it in the html block it no longer works.  I am using latest version of wordpress, gravity forms and also cart66; the version of thesis theme is 1.8...&#60;/p&#62;
&#60;p&#62;here is the page:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://charismaarts.com/la-conversation-camp-details-and-signup&#34; rel=&#34;nofollow&#34;&#62;http://charismaarts.com/la-conversation-camp-details-and-signup&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Can you help with this?&#60;/p&#62;
&#60;p&#62;Thanks!&#60;/p&#62;
&#60;p&#62;Gerard
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
