- if @order.present? :javascript window.rrSpace = ( rrSettingsConversion = { debug: "false", parameters: { firstname: "#{@order.billing_address.first_name} #{@order.billing_address.last_name}", email: "#{@order.email}", externalidentifier: "#{@order.email}", amount: "#{number_to_currency(@order.total_price)}", referralcode: "#{@order.promo_codes.join(', ')}" } } ); (function (f, r, n, d, b, y) { b = f.createElement(r), y = f.getElementsByTagName(r)[0]; b.async = 1; b.src = n; b.id = 'RR_DIVID'; y.parentNode.insertBefore(b, y); })(document, 'script', '//valken.referralrock.com/webpixel/beta/universalv03.js');