Posted by greta_drupal on August 10, 2010 at 3:52pm
Greetings, fellow Central Floridians.
My name is Tyme ("greta_drupal"). I live in N. Titusville, so the Melbourne meetups are a bit of a haul. But, just want to introduce myself here, at least. Have been a web developer for 10 years: Started with HTML/CSS and ASP. Not a programmer by trade or education, but a fairly good hack. I keep asking Drupal to accept my lovely ASP code, but it refuses. So, until I cross over to PHP, I'm not a module developer. And, frankly, I have yet to have a need for which there wasn't already a module developed.
But, I am a great site builder, themer, designer, and copywriter, and anxious to build on my skills.
Cheers!
Tyme

Comments
"Plus Ubercart
"Plus Ubercart question...?"
Glad to have you around. You should certainly come to a Brevard meetup, though I'm partial to the Orlando area meetups, which are probably much farther away in Altamonte.
Thanks for checking in. I'm just glad people are using GDO around here - when I go to DrupalCamps or training in other areas, I ask if everyone has a D.O. account and a GDO account, and most don't.
Ryan Price
DrupalEasy Podcast
Well, Orlando gives me an
Well, Orlando gives me an excuse to eat way too much at Ethos or the Love Hut...or both in the same trip!
Welcome Tyme
Don't listen to Ryan, he lives in in Orlando ;-)
All kidding aside the Altamonte meetings are probably just a little bit further for you but they also happen to be on a Saturday which may make it easier.
You also mentioned having an Ubercart question but I didn't see it in your post.
Gil Creque
Ubercart (emergency) Question
Oh, right, I did. BTW, I just asked on #drupal-ubercart (66 people on and nobody will respond) and posted yesterday to Ubercart.org. I've told client that I am not an Ubercart specialist, but they are in a panic b/c adwords campaign has started. You all are my last hope! ...Hey, if you like fantasy football, there could be a free membership in it for you. ;-)
Two issues:
#1: After user completes PayPal order then clicks the "return to site" link, it returns to /cart/checkout/complete page. However, in several browsers, the page renders blank, although the source code is seen in View Source. So, I'm working blind on the second issue.
#2: Found guidance on UBercart.org forum for entering Google Conversion Code. Said to add it on "cart checkout header", using PHP Filter, as this would add it to all checkout pages. I did that, but would like a check of my code to be sure that I added correctly for PHP input. Here is what I added to that 'cart checkout header' exactly as is:
<!-- Google Code for SignUp Conversion Page -->
<script type="text/javascript">
/* <![CDATA[ /
var google_conversion_id = 1013900043;
var google_conversion_language = "en";
var google_conversion_format = "2";
var google_conversion_color = "ffffff";
var google_conversion_label = "XL6aCN3z4gEQ64q84wM";
var google_conversion_value = 0;
/ ]]> */
</script>
<script type="text/javascript" src="https://www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<div style="display:inline;">
<img height="1" width="1" style="border-style:none;" alt="" src="https://www.googleadservices.com/pagead/conversion/1013900043/?label=XL6aCN3z4gEQ64q84wM&guid=ON&script=0"/>
</div>
</noscript>
NOTE: Will glady pay a bounty for the assistance.
I am also not an expert on
I am also not an expert on Ubercart but one thing that strikes me here is you using the PHP filter. Since you are using no PHP here you should be able to just use the Full HTML filter. I'm basing this on what I read here. http://www.ubercart.org/forum/support/8622/third_party_affiliate_code_ch...
Gil Creque
If this works, my bounty can
If this works, my bounty can be lunch at Ethos... :)
if you get a white screen, but the source code is loading, it involves Javascript. I normally only have problems like this in Firefox and related browsers.
I recommend you create a new input format... call it "Raw HTML" and then don't check any of the boxes... this is much better than using PHP format, and much more secure. example: http://www.fugutalk.com/?p=3647
A Raw filter is the best practice for pasting Javascript or Flash codes. Also, since there is a noscript version, you could just include the area inside the noscript tag instead - looks like that should work, unless the user's browser has an ad-blocker.
P.S. do you or the other people testing have an ad-blocking plugin of some kind?
Ryan Price
DrupalEasy Podcast
Unfortunately, I have done
Unfortunately, I have done that. I always create an "HTML Pro" unrestricted input filter for my admin use. I tried pasting in the Conversion code using that, as well as trying PHP.
However, the white screen of death occured before I even modified the Ubercart header in anyway. It was inherited.
The worst part about this situation is that I never bill a client for my learning curve, and I am spending a great deal of time on this issue. (I've already given them lots of free time.) Moreover, I don't have any desire to be an Ubercart specialist, so it really is a waste of time...time needed on another client project tricky bug.
No ad-blocking plugins.
(Ethos is on me, anyway, next time that I'm in town.)
Am I correct that the
Am I correct that the /cart/checkout/complete 'page' is generated purely from Ubercart module files? I mean, I have combed through it; but, in other posts, people have referred to making a change on that "page".
Also, trying to verify that Google Analytics for Ubercart is working. The module is enabled, but I don't see any ecommerce code in footer; only the basic GA. Another posts referred to the "products, ..." widgets in Google Analytics. Don't see any of those, and I'm running the most current version of on D6.17.
At least if the Google Analytics for Ubercart was working it would be delivering helpful ecommerce stats.
Separate issue to the 1.) white screen of death; and the 2.) where the heck is the conversion code issues.
Most Drupal "pages" are not
Most Drupal "pages" are not generated "purely" by a module. The module defines a page callback in the hook_menu() function. Around that still go all of your blocks and menus, and your theme. The callback only accounts for the $content variable in your page.tpl.php. The page you're looking at is generated by the uc_cart_checkout_complete() function in the uc_cart.pages.inc file.
What is does, essentially, is try to read the current order from the user's session. That function then calls another, uc_cart_complete_sale() in the uc_cart.module file, which should show messages on screen, like the "Welcome" message if you're a new user, or the ubercart "completion message". It also is configured to send email in some situations.
Honestly, this function is attempting a lot - it rolls over your order status, logs you in if you're a new user, empties the shopping cart - a lot of moving parts. Maybe one of those steps is failing...?
Ryan Price
DrupalEasy Podcast
Tried that. I'm not seeing it
Tried that. I'm not seeing it in source code for a checkout page. Is the escaping out of the CDATA correct in my above code? Other unrelated page CDATA code is written thusly, for example:
<!--//--><![CDATA[//><!--jQuery.extend(Drupal.settings, { "basePath": "/", "admin_menu": { "margin_top": 1 }, "googleanalytics": { "trackOutgoing": 1, "trackMailto": 1, "trackDownload": 1, "trackDownloadExtensions": "7z|aac|avi|csv|doc|exe|flv|gif|gz|jpe?g|js|mp(3|4|e?g)|mov|pdf|phps|png|ppt|rar|sit|tar|torrent|txt|wma|wmv|xls|xml|zip" }, "thickbox": { "close": "Close", "next": "Next \x3e", "prev": "\x3c Prev", "esc_key": "or Esc Key", "next_close": "Next / Close on last", "image_count": "Image !current of !total" }, "defPaymentMsg": "Continue with checkout to complete payment.", "ucURL": { "adminOrders": "/admin/store/orders/", "checkoutPaymentDetails": "/cart/checkout/payment_details/", "checkoutLineItems": "/cart/checkout/line_items", "creditCardCVVInfo": "/cart/checkout/credit/cvv_info" }, "ucShowProgressBar": true, "ucDefaultPayment": "paypal_wps" });
//--><!]]>
I'm fuzzy on the syntax for that.
I tried escaping the CDATA as
I tried escaping the CDATA as shown in the other code example, but the Conversion code still is not showing in processed page source view.
Client is quite distressed
Client is quite distressed about this (me too). If anyone knows a Drupal specialist who can address this issue ASAP, for pay, please let me know.
Resolved the "white screen of
Resolved the "white screen of death" Ubercart issue. Hooray! Turns out that the culprit was this setting in Ubercart checkout settings
Login users when new customer accounts are created at checkout.When I unchecked that option, the cart/checkout/complete page loaded fully without fail. [No layout issues for Firefox, at least.]
Still have the unresolved issue of conversion code not appearing in source code. (Although, I do see an additional Google Analytics reference to the GA account #, but it is not the actual conversion code -- the HTML part of that that would show in source.)
BIG thanks to Ryan for
BIG thanks to Ryan for talking me through the issue and offering great suggestions. I was just about to employ those suggestions when I stumbled upon the problem. But, he got me focusing more on the redirection process of that cart/checkout/complete, which lead to my looking at settings that might relate to that.
Nice talking to you
Nice talking to you yesterday.
Just to be clear, you are pasting the code in the following box:
"Checkout completion message header:"
on
/admin/store/settings/checkout/edit/messages
and choosing Raw HTML or PHP Format or another relevant filter, yes?
Also, are you redirecting on checkout? If you are, you have to paste the code onto the thank you page.
Ryan Price
DrupalEasy Podcast
Correct. I pasted the Google
Correct. I pasted the Google conversion code as you described it, with raw HTML filter. (Even tried the noscript version. Also tried PHP Filter).
Now, I am not redirecting on checkout.
Although, I did try that - redirecting to a Thank You page node that I created. In that case, I created a block and pasted the conversion code in the block (with raw HTML filter), which I assigned to the footer reason. For some reason, even though "print $closure" is in the template files, it does not show as a selectable block. Else, I'd have pasted the code in $closure block.
For those tests, I was not seeing the conversion code in Source. That was during the "white screen of death" period. Haven't tried that on testing site. I'm now doing all of the lovely security updates that came out last night -- including 2 jumps for core + Ubercart -- so, I'll try that after the updates. I'm so hoping the Ubercart update doesn't break anything. Ack!
I could hard code the conversion code into a custom template for the Thank You node, but I'd rather not.
Tested custom Thank You page,
Tested custom Thank You page, post updates. The conversion code does show on the node Thank You page source code -- code placed in a block, assigned to footer. However, when I set the "checkout settings" redirect URL to TY page (as http://testing.suicidefantasy.com/node.122), I get the white screen of death.
What is interesting about that 'blank' page (same true before), is that the browser favicon is that of RSS feed page. Odd.
So, maybe I have uncovered 2 Ubercart bugs. But, the day is young...perhaps more.
NEW QUESTION:
Is there anyplace else I could embed the conversion code (save the module files themselves) for the Ubercart default /cart/checkout/complete page?