Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 4 of 4

Thread: BizRate code

  1. #1
    Vegarari is offline Member
    Join Date
    Nov 2006
    Posts
    35

    Question BizRate code

    Is anybody out there using BizRate? If so, do you know where to put the pop-up code so it does not pop-up in the Admin Orders screen?

    thanks,
    Vegarari

  2. #2
    mlittle is offline Member
    Join Date
    May 2007
    Posts
    30

    Default

    I use bizrate and assume you mean the code for the surveys. I put my in orderconfirmation.aspx.cs. Make sure you place the code somewhere in the

    if (!ord.AlreadyConfirmed)

    Mike

  3. #3
    Vegarari is offline Member
    Join Date
    Nov 2006
    Posts
    35

    Question BizRate survey code

    Hello all,
    I'm not a programmer but know that JavaScript does not work in VB. I need to somehow figure out how make this work...

    In the file orderconfirmation.aspx.vb
    I need to call some JavaScript, like
    <!-- Start of Bizrate Code -->
    <script language="JavaScript">
    var passin_x = 500; var passin_y = 500;
    </script>
    <script language="JavaScript">
    var passin = 'Q12345=';
    </script>
    <script language="JavaScript">
    var br_cartzip = 'Q123456=&Q123457=';
    </script>
    <script language ="Javascript">
    var br_cartdata = 'SKU=&MPID=&ITEMAMOUNT=|SKU=&MPID=&ITEMAMOUNT=|SKU =&MPID=&ITEMAMOUNT=|SKU=&MPID=&ITEMAMOUNT=|SKU=&MP ID=&ITEMAMOUNT=';
    </script>
    <script type="text/javascript" src="https://eval.bizrate.com/js/pos_123456.js">
    </script>
    <!-- End of Bizrate Code -->
    after this line
    DB.ExecuteSQL("Update Orders set AlreadyConfirmed=1 where OrderNumber=" & OrderNumber.ToString())
    of code, because we don't want it popping up in the admin when processing orders and only want it to pop-up once per order.

    Should I do a writer.Write ? like
    writer.Write("<script language=""JavaScript"">")
    writer.Write("<var passin_x = 500; var passin_y = 500;")
    Or is there a better way to do it?
    I am guessing others have tackled this scenario.

    ML 8.0.1.2

    Any help would be appreciated

    Thank you

  4. #4
    nharkrader is offline Junior Member
    Join Date
    Mar 2010
    Location
    NYC
    Posts
    25

    Default Bizrate survey code in orderconfirmation.aspx.cs

    I tried this, however, all I get is an InvalidRequest.aspx redirect. I've placed the survey code in multiple spots within the if (!ord.AlreadyConfirmed) brackets.

    Any suggestions as to exactly place the code within this code
    if (!ord.AlreadyConfirmed)
    {
    if (AppLogic.ProductIsMLExpress() == false &&
    AppLogic.AppConfigBool("IncludeGoogleTrackingCode" ))
    {
    Topic GoogleTrackingCode = new Topic("GoogleTrackingCode");
    if (GoogleTrackingCode.Contents.Length != 0)
    {
    output.Append(GoogleTrackingCode.Contents.Replace( "(!ORDERTOTAL!)", Localization.CurrencyStringForGatewayWithoutExchan geRate(ord.Total(true))).Replace("(!ORDERNUMBER!)" , OrderNumber.ToString()).Replace("(!CUSTOMERID!)", ThisCustomer.CustomerID.ToString()));
    }
    }
    if (AppLogic.AppConfigBool("IncludeOvertureTrackingCo de"))
    {
    Topic OvertureTrackingCode = new Topic("OvertureTrackingCode");
    if (OvertureTrackingCode.Contents.Length != 0)
    {
    output.Append(OvertureTrackingCode.Contents.Replac e("(!ORDERTOTAL!)", Localization.CurrencyStringForGatewayWithoutExchan geRate(ord.Total(true))).Replace("(!ORDERNUMBER!)" , OrderNumber.ToString()).Replace("(!CUSTOMERID!)", ThisCustomer.CustomerID.ToString()));
    }
    }


    Quote Originally Posted by mlittle View Post
    I use bizrate and assume you mean the code for the surveys. I put my in orderconfirmation.aspx.cs. Make sure you place the code somewhere in the

    if (!ord.AlreadyConfirmed)

    Mike