CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • &snippet=1 producing blank contribution page
Pages: [1]

Author Topic: &snippet=1 producing blank contribution page  (Read 9292 times)

bpmccain

  • I post frequently
  • ***
  • Posts: 255
  • Karma: 5
  • CiviCRM version: 4.1
  • CMS version: Drupal 7.12
  • MySQL version: 5.2
  • PHP version: 5.2
&snippet=1 producing blank contribution page
June 12, 2013, 06:51:06 pm
I'm trying to add &snippet=1 to a contribution page, but it is just returning a blank page with the following source code:

Code: [Select]
        <div class="crm-container-snippet" bgColor="white">

       
    <!-- .tpl file invoked: CRM/Contribute/Form/Contribution/Main.tpl. Call via form.tpl if we have a form in the page. -->
            <form  action="/civicrm/contribute/transact" method="post" name="Main" id="Main" >



  <div><input name="qfKey" type="hidden" value="8fd2b14e9035f8eac2380209b66c22cf_3498" />
<input name="hidden_processor" type="hidden" value="1" />
</div>



 
         
 

</form>
   
    </div>     


snippet=1 works for profiles, but doesn't seem to be working for any of my contribution pages.

Any ideas?

Brian

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: &snippet=1 producing blank contribution page
June 12, 2013, 10:56:24 pm
can you explain why you are trying to use a snippet to get a profile in to a contribution page, rather than adding the profile by the standard method?
may be able to help more if we know the purpose
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

bpmccain

  • I post frequently
  • ***
  • Posts: 255
  • Karma: 5
  • CiviCRM version: 4.1
  • CMS version: Drupal 7.12
  • MySQL version: 5.2
  • PHP version: 5.2
Re: &snippet=1 producing blank contribution page
June 13, 2013, 07:19:22 am
I'm not using the snippet to add the profile to a contribution page. The profile has been added to the contribution page as normal.

I'm trying to use the snippet to get the whole contribution page inside of an iframe, but it comes up blank.

My reference to profiles was simply to indicate that I can use the snippet=1 feature to put the profile directly inside of an iframe and it works fine. The same doesn't seem to work for me on a contribution page.

What we're trying to do (and I know this is ridiculous, but that is the way it is at the moment), is get a contribution page on our main wordpress website. Our CRM database is hosted elsewhere and is drupal based (since it was started before wordpress civi was available). I want to use the snippet, so that we embed the contribution page on the main site inside of an iframe and still keep the main webpage style.

I just tested the demo site, and there is similar behaviour there. Adding &snippet=1 to the end of a contribution page URL results in the profile being displayed, but none of the contribution elements.

Brian


« Last Edit: June 13, 2013, 07:21:04 am by bpmccain »

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: &snippet=1 producing blank contribution page
June 13, 2013, 12:31:39 pm
sorry for misunderstanding. don't think i have heard of this being done. but sure someone else will chip in.
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • &snippet=1 producing blank contribution page

This forum was archived on 2017-11-26.