BC pop up alerts and shooping cart  strings

Hi everyone,
I am trying to make custum  alert messages in Portuguese on a BC website using this code from : Customizing Online Shop Alert Message Strings
and also customize the online shop layout strings like "Shoping cart is empty! continue shooping " and  "1 item(s), Total: €12,00 VIEW CART"
to "Carrinho de compras vazio! continuar as compras." and "1 item(s), Total:€ 12,00 VER CARRINHO DE COMPRAS"using this piece of code i found somewere here on the forum too:
" <script type="text/javascript">
var ele = GetElementsByClass('cartLink');
if(ele[0])   ele[0].innerHTML = 'O CARRINHO DE COMPRAS EST&Agrave; VAZIO!';// replace with your own message!
  function UpdateProductExtras(c, p, res) {
  document.getElementById('catCartDetails').innerHTML = 'O carrinho de compras est&aacute; vazio! <a href="/catalogos">VOLTAR</a>'; // replace with your own message!
var ele = GetElementsByClass('cartSummaryItem');
if(ele[0])   ele[0].innerHTML = 'Carrinho de compras vazio.';// replace with your own message!
  function UpdateProductExtras(c, p, res) {
  document.getElementById('cartSummaryItem').innerHTML = 'Carrinho de compras vazio.'; // replace with your own message!
var ele = GetElementsByClass('cartSummaryLink');
if(ele[0])   ele[0].innerHTML = 'Ver carrinho de compras >';// replace with your own message!
  function UpdateProductExtras(c, p, res) {
  document.getElementById('cartSummaryLink').innerHTML = 'Ver carrinho de compras >'; // replace with your own message!
</script>"
The piece of code works, but everytime BC fires a pop up window, like wen we add a new product to the shoping cart or wen we hit the empty shoping cart button, they go back to the original strings in English, and only when we refresh the browser or move to another catalog and continue shoping, the messages go back to Portuguese.
How can i Fix this?
The same happens to the pop up window messages from the js file from Customizing Online Shop Alert Message Strings, only change to Portuguese if we refresh the browser.

Place the code further down in the page perhaps, also sounds like a caching problem, is it the same in all browsers?

Similar Messages

  • Using a SQL Query in an Alert and Matching a String

    I've created an alert in 12.0.4 using a SQL Query and the field that I'm trying to match is a string.  Originally the query returned multiple rows but when the alert still didn't fire, I modified the query WHERE clause to return only one row:
    NAME                                RESPONSE
    Are area lights working?            No
    My expression in the metric is RESPONSE.  In the Monitor I'm matching a string equal to No.  (Do I need double quotes around the matchvalue?  Single quotes?  No quotes?)  The metric is in the 15min scan group, the role is xMII Developers and I'm in that role. The monitor alert string is ' =  '.  Both metric and monitor are active and I've subscribed to the monitor.  Other alerts in the 15min scan group (all based on tag queries) are firing off properly.
    Why is nothing showing up in the Alert Log?
    David Macindoe

    David,
    Did you figure out the answer?  If not, I will try to find someone to address your question.
    Mike

  • Formula to calculate SUM of multiple sheets of excel and the result to be stored in another excel sheet and pop up alerts for multiple rows

    I have a excel with multiple
         sheets with data as shown below
    SHEET 1
    A 1
    B 2
    C 3
    SHEET 2
    B 1
    C 2
    A 3
    SHEET 3
    C 1
    A 2
    B 3
    My
    query is splitted into 3 categories
    I want to have a formula to do math calculation such that data of "A" of SHEET 1 is  calculated with "A" of SHEET2 irrespective of the location of "A".
    When I include SHEET3, the formula should automatically identify the location of "A" or "B" or "C" and give the result corresponding to A, B or C. Since I want to bifurcate daily report and output printed. I want to use another
    excel for output. How to link multiple sheets of one excel and print the output of above in
         another excel?
    Assume, I have 4 SHEETS,  "SHEET 1", "SHEET 2", "SHEET 3" and "SHEET 4". Math calculation need to be done using all 4 sheets. If
    I include "SHEET 5", the formula should ignore SHEET 1  automatically and give the results of SHEETS 2 to 5. Similarly, if I include SHEET 6, SHEET 1 and 2 need to be ignored for further calculation and SHEET 3-6 need to be used. How to write
    such formula?
    How to get pop up alert for multiple rows, if a specific condition is hit?

    Maybe VBA Code should be a good option for you. I suggest you post you issue to
    Excel for Developers forum.
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us.
    Thanks for your understanding.
    Best Regards,
    Wind

  • Approval procedure to check and pop up alert when Inventory transfer

    HI Experts,
    I want to do an approval procedure to check and pop up alert when Inventory transfer To warehouse 01 by Query.how to query for the following statement in Approval Procedure?
    Regards,

    Hi,
    This query is also used in the approval procedure of inventory transfer created:
    if (SELECT $[$5.1.0]) = '01'
    select 'true'
    it will gives alert after document approved or requesting approval.
    Rgds,

  • Ovi Suite annoying alerts and pop-ups

    The features of the Ovi Suite are OK. User interfaces also are nice. But what's with these alerts and application pop-ups??? Why do I need to get alert "No internet connection" if I'm even not using the application? Why the application pops up when doing something in background (sync I suppose)? Additionally because of the huge memory usage I always switch the application off and on when required.
    As I've already told I like the application. But these few things spoils the party.

    As I use wifi connection on my laptop the internet usually switches from one wifi router to another and I get this OVI "no internet" alert. Sometimes when I'm away and come back I have 5-10 alert pop-ups.
    Maybe you would make a tick box in the options menu to diable this message. OR let the alert popup dissapear when the internet is back?
    Now I simply kill the ovi aplication when not needed.
    Using Windows 7, with N81. Ovi is 2.0.2.42.
    What happened to old good Nokia PC Suite?
    Message Edited by vanarebane on 30-Dec-2009 07:51 PM

  • How to pop up alert "No Data found" if there are no values in database

    Hi All,
    Please tell me how to pop up alert if there is no data found and all fields are null in report for given parameter value. or else is there any way to trigger user while entering parameter value that wrong parameter value. (I dnt want to use drop down) in my report.
    Please help me. Any help will be valuable.
    Thanks.

    There's no way that I know of to do this as a "Pop-up", but providing a "no records returned" warning still easy enough to do.
    Just insert a new Report Header section...
    Add a text box that has whatever message you'd like to display.
    Right click the new header section and choose Selection Expert
    Click the X-2 button next to Suppress (No Drill-Down)
    Enter a formula similar to this...
    IF COUNT({TableName.FieldName}) < 1 THEN FALSE ELSE TRUE
    This will suppress the warning if records are present and display it if there are none.
    HTH,
    Jason

  • How to make a pause between an Alert and a plateformRequest ?

    Hello,
    I' programming a class which realize a download from an URL called downloadURL. An overview of my code is :
    public class SoundDownloader implements CommandListener{
                 private Alert downloadAlert2;
                 private String downloadURL;
                       private MIDlet midlet;
                 public SoundDownloader(String downloadURL, MIDlet midlet){
                   this.downloadURL = downloadURL;
                            this.midlet = midlet;
                       try {                       
                   //download code using HttpConnection and openInputStream()                       
                       } catch (Exception e) {
                            downloadAlert2 = new Alert("Download error !");
                            downloadAlert2.setType(AlertType.ERROR);
                            downloadAlert2.setString("Download error : "+e.toString());
                            downloadAlert2.setTimeout(Alert.FOREVER);                      
                            display.setCurrent(downloadAlert2);//show the Alert  
                            downloadAlert2=null;
                   //I'd like to stay here until the user dismisses the Alert     
                            this.midlet.platformRequest(downloadURL);
                            this.midlet.notifyDestroyed();
    }When an exception is caught, I display an error alert and I'd like to make the user wait until he dismisses the alert before launching a download by the mobile browser (platformRequest).
    I don't get this result now! The alert is displayed, but just after (without any delay), the platformRequest method is automatically launched!
    Could someone help me please?
    Thanks in advance!
    /arkienou

    I would try catch block code with [Alert.setCommandListener|http://java.sun.com/javame/reference/apis/jsr118/javax/microedition/lcdui/Alert.html#setCommandListener(javax.microedition.lcdui.CommandListener)], roughly like below:
      downloadAlert2 = new Alert("Download error !");
      downloadAlert2.setType(AlertType.ERROR);
      downloadAlert2.setString("Download error : "+e.toString())
      downloadAlert2.setTimeout(Alert.FOREVER);
      downloadAlert2.setCommandListener(new CommandListener() {
        public void commandAction(Command c, Displayable d) {
          if (c == Alert.DISMISS_COMMAND) {
            midlet.platformRequest(downloadURL);
            midlet.notifyDestroyed();
      display.setCurrent(downloadAlert2);//show the Alert  
    }

  • CProjects-pop-up alerts for saving.

    Hi All
    Is it possible in cProjects to configure pop-up alerts , whenever the users change the status of a Project or a phase (Released, completed etc.)
    This is important because the BW reports are taking data from tables , which are updated only if the save is done and some end users are forgetting the Save.
    Pls. let me know.
    regards
    Kedar

    Hi Deepak,
    In cProjects, If any change is made and if you navigate from that project or try to close the application a pop up is automatically trigerred.
    Regards,
    Reema.

  • Pop-up message (item to cart, shipping selection)

    Hi BC Product Managers and whoever may care,
    I have had my BC website for a few years now (http://www.itsaperfectday.com). One thing that irks the hell out of me is why BC has a little pop up dialog that says "item added to cart" and "xyz shipping option selected". I know there is an option to disable this - which I have btw, but that means my shopping cart no longer shows validation errors (such as when the customer has not chosen a shipping state).
    Why on earth does BC have these pop up dialogues? Which major e-commerce  sites do you see this with? I don't see this on Amazon.com or any other major retailer. Nor do I see this with Shopify, BigCommerce, Magento based sites.
    In this day and age and for a company such as Adobe - this seems so backwards. Sorry for the rant. But I have been waiting for years to see if BC would turn this off but this just has not happened so far. 
    And while I am on a rant - same goes with poplets. The next and prev links on the poplets are not even aligned pixel perfectly. For heaven's sake you are Adobe and you sell software that helps create the most pixel perfect and elegant stuff out there. Your poplets looks very sad in comparison to what a proper poplet can look like. And also give us an option to turn off poplets and just change the big image as one clicks on the small poplet image. I know some have found a workaroud using JQuery but this should be made easy for a user to do.
    I hope someone pays attention and has these relatively minor items fixed.
    Thanks for reading through the rant.
    Satya

    Actually, I think the problem is two parts.  My bad. 
    First off, yes.  The #catshopbuy element in your case is a link and setting the attribute "disabled='disabled'" on a link does nothing.  They can still click it.  I'm assuming it's a link so that there's a fallback HREF in case they don't have javascript running. 
    So, in order to use this method to make the checkout button unclickable you'll need to use an <input type="submit" /> element instead for your checkout button.  So your current checkout button should become <input id="catshopbuy" type="submit" value="Checkout" disabled="disabled" />
    You might need to update your CSS references on screen.css around on lines 301 and 303 from "a#catshopbuy" to "#catshopbuy" since we are changing the element and your CSS is looking for an A element with that ID to style.  Also change line 299 from ".cart-form .cart-summary p.checkout a" to ".cart-form .cart-summary p.checkout #catshopbuy" That should fix your styling of the checkout button when you make it an <input/> element.
    Edit: Since your Checkout button is generated by a BC tag the above won't work.  The strategy has changes from disabling/enabling a checkout button to manually adding a fake checkout button and showing/hiding each of those based on the state of the select boxes.  See my posts below about the fake and real cart buttons.
    The reason it isn't working is because we already have javascript "onChange" events hooked up manually (inline) to your select elements. The existing onChange event is hardcoded into the html and is overriding our change function. To fix this, just change this:
        $("select").change(function() {
            checkSelectStates();
    To this:
    checkSelectStates();
    Doing this will run the script once on pageload instead of on the select changing.  We'll manually add in the javascript next to our select elements so that the script runs on changing your select options.
    Once you remove that code, you'll need to adjust the markup manually in your Cart layout.  Find the two SELECT boxes for shipping options and state.  You should find a onchange="Some javascript here" on those elements.  Basically, we just want to call our function we made so using the shipping options select box, your html is:
    <select onchange="UpdateShipping(this.value,5442892,0);" class="shippingDropDown" id="ShippingOptions" name="ShippingOptions"><option value="-1">Choose Shipping Option</option><option value="126709">USPS Priority Mail (Free Shipping) $0.00</option></select>
    After editing the onchange attribute it should look like:
    <select onchange="UpdateShipping(this.value,5442892,0);checkSelectStates();" class="shippingDropDown" id="ShippingOptions" name="ShippingOptions"><option value="-1">Choose Shipping Option</option><option value="126709">USPS Priority Mail (Free Shipping) $0.00</option></select>
    Important: Add the javascript in red above to BOTH of your SELECT boxes.  Just add it on after the ";" in the onchange attribute.
    The caveat to this whole solution is you lose the javscript fallback url that your current Checkout button (a link) links to if they don't have javascript but in my opinion, all modern phones and browsers have it and BC uses javascript a lot so if you can't lose the fallback HREF you probably can't use this solution.

  • Messaging - Remove The Pop Up Alert?

    Is there anyway to remove the pop up alert when you receive a text message?
    All I want it the tone/vibration and not a pop up saying message from XXX has arrived.
    Thank you

    No there isn't. You can restrict the amount of information that is displayed when you get the popup by turning "Show Preview" off or on in settings.
    Here is a link for the manual. http://manuals.info.apple.com/enUS/iPhone_iOS4_UserGuide.pdf

  • Can I turn off mu iCloud without losing all my documents on my iMac?My iCloud window popped up unexpectedly, and am worried about a hacker. HELP.

    Can I turn off, or remove myself my iCloud account, without losing all my documents on my iMac? My iCloud window popped up unexpectedly, and am worried about a hacker. When I try and sign out of iCloud, The iCloud window is giving me a message that "If you turn off Documents & Data, all documents stored in iCloud will be removed from this Mac". I have iMac OS X 10.7.5, 2.7ghz, Intel core i5. I don't use my iCloud service, and I somehow my iPhone linked it to my computer by mistake. I don't want the service or need it, & don't want my info in cyberspace. I don't want to lose my documents on my hard drive, and it appears that I haven't used any data in iCloud, as 5GB of 5GB is available. HELP.

    I would love to hear that Apple has remedied this problem. From other discussion strings that I am following related to this issue, it seems thus far we remain out of luck. I did discover that if I log onto iCloud.com I can access my files that way.  Still, what a pain. 
    When I got the message re iCloud Drive as I was setting up my phone after the update to iOS8, it said I wouldn't be able to access my files unless all of my devices were running iOS8 OR Yosemite. That message was misleading as it really should have said all devices need to be running iOS8 AND your mac needs to be running Yosemite, as it was not an "either or" situation.  So frustrating...

  • Receive Pop-up Alerts

    Hi All,
    I have a general requirement so was not sure where to post it.
    The requirement is as below:
    From an external system a user wants to send a 'text message' which should come as a pop up to the person logged in SAP.
    Like if the user, wants to alert the person logged in SAP about something, he needs to send a text message.
    Can this come as a pop up alert or a text message somewhere with a small notification to the user in SAP.
    Appreciate any help.
    Ankur

    Hi Ankur,
    You can try the below approach,
    Create an RFC(you can expose it as a Web Service too if you need), inside this RFC call the FM
    "SO_DOCUMENT_SEND_API1" which is basically used to send an email.
    The above FM among others, has a parameter called "RECEIVERS" in which there are three fields which you can use to achieve the above,
    1) REC_TYPE - Use this as "B" - SAP User
    2) REC_ID - Will be the ID os the SAP user to whom you want to send a note.
    3) EXPRESS - Set this as "X".
    So when you want to send a message to the SAP user from an external system, you will call this RFC/Web Service passing the UID and the text, and on successful execution of the RFC - It will send an Email to the SAP User's SBWP and also throw a pop-up(EXPRESS) with a small description of the subject to the user in realtime.
    I cannot think of any other way at this point in time, try and let me know if this works for you.
    Note: You will find enough documentation and examples on the web for "SO_DOCUMENT_SEND_API1".
    Regards,
    Chen

  • How to send IP Addr in an alert and receive the same?

    1. I have an 'alert handler' process that's sending an alert using 'Create Alert' activity.
    2. I have a listening/receiving process that get's triggered by this alert from the 'alert handler' process.
    3. The listening/receving process telnet's to a router. I want the listening/receiving process to extract the IP Address of the router from the alert that triggered this listening proecess.
    4. I tried sending the IP address of the router as 'Parameter 1' using the 'Create Alert' activity in the 'alert handler' process.
    5. In the receiving process, in order to telnet to the router, I chose 'Execute on this target reference' option for the 'Open Terminal' acitivity, but was unable to access 'Paramter 1' of the alert. It shows greyed out.
    Question:
    What is the best way to send the IP address of the router in the alert and receive the same in the listening process such that I can telnet to that router in the listening process?
    Please note: tried creating a 'terminal target'...there is no way for me to supply IP address info from outside into terminal target...looks like terminal target only takes a hard coded IP address or host name.
    Will appreciate your prompt response please.
    thanks,
    Jamal

    We discussed this, but just to post here. To view alert or other tasks parameters via the reference variable fields you have to select the show advanced checkbox.

  • Differnce between null string and an empty string??

    what is the major difference between null string and an empty string??
    I wrote the following simple program and I could see some different output.
    Other than that, any other differences that we should pay attention to???
    C:\>java TestCode
    Hello
    nullHello
    public class TestCode
         public static void main(String[] s)
         {     String s1 = "";
              String s2 = null;
              System.out.println(s1 + "Hello");
              System.out.println(s2 + "Hello");
    }

    There's a big difference between the two. A null String isn't pointing to an object, but an empty String is. For example, this is perfectly fine:
    public class TestCode
        public static void main(String[] args)
            String s = "";
            System.out.println(s.length());
    } It prints out 0 for the length of the String, just as it should. But this code will give you a NullPointerException:
    public class TestCode
        public static void main(String[] args)
            String s = null;
            System.out.println(s.length());
    } Since s isn't pointing to anything, you can't call its methods.

  • What is the difference between string != null and null !=string ?

    Hi,
    what is the difference between string != null and null != string ?
    which is the best option ?
    Thanks
    user8729783

    Like you've presented it, nothing.  There is no difference and neither is the "better option".

Maybe you are looking for