Return to products page after Add to Cart

hi,
is it possible to return the the current catalog products page after the user presses Add to Cart?
thanks in advance.
Frank.

thanks.
had i think about it and what i really need is for the javascript to be refreshed on the Large Product page after clicking Add to Cart.
Frank.
edit: i searched the forum and found this:
<script type="text/javascript">
function AddProductExtras(){
document.location.reload(true);
</script>
and also tried to refresh the js using this:
<script type="text/javascript">
function AddProductExtras(){
javascript:location.reload(true);
</script>
but both get rid of the "items added to cart" message and both reload the whole page which looks and feels rubbish!
i've decided to go to the shop cart using tag_buynow and added a continue shopping button using {module_goback,image}.
it's not the way i wanted the site to work but it's better than having clunky reloads and js not working.

Similar Messages

  • Return to OAF page after invoking configurator

    Hi,
    I’m having a problem to return my OAF page – after invoking configuration pages.
    I know that this topic was discussed here before, but without any summering conclusions.
    Can anyone please assist?
    I’d appreciate any help.
    Thanks in advance,
    Rona

    This is my code when invoking the configurator (called from the CO - processFormRequest)
    The return URL is mapped for a valid java class.
    else if ((event != null) && (event.equals("config")))
    String webAgent = pageContext.getProfile("APPS_FRAMEWORK_AGENT");
    String database = pageContext.getProfile("TWO_TASK").toLowerCase();
    String organizationId = pageContext.getParameter("configOrganizationId");
    String itemId = pageContext.getParameter("configItemId");
    Number applId = new Number(pageContext.getResponsibilityApplicationId());
    Number respId = new Number(pageContext.getResponsibilityId());
    Serializable[] param = {itemId, organizationId, applId.toString()};
    Serializable uiDefId = am.invokeMethod("getConfigUiDefId",param);
    Serializable sessionTicket = am.invokeMethod("getSessionTicket");
    String returnPath = "http://ronal.corp.audiocodes.com:8988/OA_HTML/jsp/Checkout";
    String initMsg = "<initialize>"+
    "<param name='database_id'>"+database+"</param>"+
    "<param name='icx_session_ticket'>"+sessionTicket+"</param>"+
    "<param name='calling_application_id'>"+ applId+"</param>"+
    "<param name='responsibility_id'>"+respId+"</param>"+
    "<param name='ui_def_id'>"+uiDefId+"</param>"+ //TEMP ? REPLACE WITH
    PROFILE?
    "<param name='ui_type'>JRAD</param>"+
    "<param name='inventory_item_id'>"+itemId+"</param>"+
    "<param name='organization_id'>"+organizationId+"</param>"+
    "<param name='return_url'>"+returnPath+"</param>"+
    "</initialize>";
    String configPath = webAgent+"/OA_HTML/CZInitialize.jsp?XMLmsg="+ initMsg;
    pageContext.setForwardURL(configPath,
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    null,
    true, // Retain AM
    OAWebBeanConstants.ADD_BREAD_CRUMB_NO, // Do not display breadcrumbs
    OAWebBeanConstants.IGNORE_MESSAGES);
    }

  • Customize modal popup after "add to cart"

    So after you click "add to cart" my client wants a modal pop-up to work like Targets.
    http://www.target.com/p/apple-ipod-touch-16gb-mp3-player-4th-generation-with-touch-screen- wi-fi-black-me178ll-a/-/A-14000297#prodSlot=medium_1_1 (click add to cart)
    The big thing is to have a VIEW CART button on this modal.  I read the page that says how to change the text for the modal pop-up, but not how to insert images or button.  Anyone have any ideas?
    - Also being able to add "recomended items" for this modal as well

    Liam is right. This is some heavy coding. However, if you want to take stab at it, Here are a few starting points.
    1) js.cookie
    2) your favorite modal code
    3) you will have to run a seperate function along with the add to cart function
    4) you may have to supress the alert window when adding an item to cart
    5) as far as view cart in the window, this would be the easy part.
    With a little research and  firebug you can figure it out.

  • Can I return to previous page after clicking a bookmark hyperlink?

    I am writing a book that I want readers to be able to click on a hyperlink to view more information about things, but then easily return to the previous page. For example:
    Ingredients:
    1 - apple
    2 - bananas
    4 cups sugar
    apple, bananas, and sugar would be hyperlinks taking the user to spot in the book where I discuss each. I want them to be able to easily return to the page that sent them, but cannot find a way to do it.
    Thank you!

    Well, perhaps I should give a little more detailed example to illustrate why I'm trying to do this. I see now that my initial example was probably overly simple.
    The book is an emergency care manual for providers in the field.
    It will have, for example, a section devoted to intubation that describes the technique, medications to use, proper verification, and so forth (this section would be a significant amount of information).  Then in a different section, say cardiac arrest, it will say "perform intubation per general guidelines" which will be just one little line of the entire cardiac arrest section.  I want to hyperlink "perform intubation.." to the intubation section but then have a way to quickly and easily return to the cardiac arrest section.
    Does that make more sense? Maybe there's a better way than hyperlinks/bookmarks, but I haven't discovered it yet.
    Thanks.

  • Master Detail module returns to Master page after Detail record saved

    Using Oracle Designer Editor version 10.1.2.0.2 I have generated a Web PL/SQL package
    set up as a Master/Detail where the Master and Detail records appear in separate windows.
    The Master window contains multi-records each with a link to the related Detail records.
    The user clicks on the Detail link and the window that appears will allow the user to insert
    a new Detail record. Once the user clicks the Save button I need the Detail window to disappear
    and the focus returned to the Master records preferably after a new query is performed.
    What are the steps I need to perform to navigate back to the Master page and close the Detail
    page?
    Thanks,
    Mark

    The simple answer is that to do exactly what you want would take some fundamental changes to the way the framework works. The actionInsert procedure does what it does - it saves the changes and redisplays the form. You can do post-generation changes to make it do something else, like return to the Master, but I'd advise against it.
    But if you want a way to return to the Master window, where the user clicks a button or link on the detail form after saving changes, that we can do. Just make a note of the URL that does the initial display of the Master page - probably my_module_name$.startup. Go into the detail module component, and click the User Text tab. Then at Text Location, "Bottom of View Form" (or Top if you want the link there) add for a link:
    htf.anchor('my_module_name$.startup','Return to Master')Or for a button:
    htf.formOpen('my_module_name$.startup','GET')||htf.formsubmit('Return to Master')||htf.formCloseYou may need to set the SECECS preference for this module to "No" to get this to work.
    An alternative to my method is to define an Action Item in the module that does a navigation. I often am linking directly to the View form for a master table, rather than a record list, as you are, and Action Items don't work well for that, but one might work fine for you.

  • How do you return to web page after executing servlet?

    When I submit some values to my servlet from a page, using a from, how do I get back into the web page directory? When you call the servlet, the url turns to "./servlet", and if I click on submit again, it tries to find "./servlet/servlet" so obviously it kicks up an error.
    Basically I want the servlet to accept answers in a form, rebuild that form using the answers submitted, and go back to that rebuild. Hopefully, the user shouldn't notice anything changing, which is the idea, excepth his/her answers have been stored by the servlet.
    ANY help would be much appreciated.
    Thanks,
    Miles

    Could you briefly explain how this works joshman. Are you saying use send.redirect or something else I have not found? if so, could you elborate a bit (some method names would be usefull too). I have no idea about headers, which probably doesn't help.
    The problem is I either have to out.println the modified html (with the answers in the values in the input tags), which means I must get the web server to look in the directory where the original page came from, otherwise pictures and other stuff dont show. Then just outputting the html would be as if the original html file was given with inserted values.
    OR
    I have to save modified html files in the same directory under different names, give these to the client and delete them after a while to save spacew. I'd rather not have to do this as it complicates stuff.
    Cheers again.

  • Why can I not return to home page after exitting web mail?

    My home page is Virgin Media. I can log in and out of my isp's Google powered web mail but am not automatically returned to my home page and cannot access it by the 'back' button. I have to close and re-open the browser and there is often a delay before the browser re-opens.

    That's an expected behavior.  You cannot access home-shared music unless the person who shares actually has iTunes up and running.  My suggestion is all the users to make iTunes to automatically launch when the computers start.  If using Windows I believe there isn't a way for iTunes to launch and sort of hides.  If using Mac OS, iTunes can launch and hide by checking the box on System Preferences > Users & Groups > [User] > Login Items.  Hope this helps.

  • Tabular form loses entered data on return from error page after validation

    APEX 3.2
    I have a manually-built tabular form with validation. I display the error on the error page. When using Firefox and Chrome, when returning from the error page, the data I entered in the tabular form is still displayed. When using IE, that data is NOT retained.
    This worked properly at one time in IE.
    Suggestions?
    Thanks,
    -Ken

    APEX 3.2
    I have a manually-built tabular form with validation. I display the error on the error page. When using Firefox and Chrome, when returning from the error page, the data I entered in the tabular form is still displayed. When using IE, that data is NOT retained.
    This worked properly at one time in IE.
    Suggestions?
    Thanks,
    -Ken

  • Product Attribute not dispalying before add to cart

    I'm creating an ecommerce website with BC.  I have created a test product.  I added two product attributes.  When I view the product page, the attributes do not show up.  How do I get the product attributes to show up so a customer can select the attribute options before adding to the cart?

    OK I figured it out.  I had to add {tag_attributes} to my Module Template.

  • Tree node selection lost after returning from called page

    Hi
    in a default unbound task flow i have a Page1 calling Page2.
    Page1 displays a master-detail data using treetable component, while Page2 displays detail data (selected from Page1) as a read-only form.
    When coming back from Page2, Page1 tree node selection is lost and tree table is rendered as if was called for a first time (detail data are disclosed).
    How can I restore an original selection?
    (Jdev 11.1.2.2)
    Many thanx

    1. before goind to the Page 2, remember somewhere the selected row keys, as follows:
        RowKeySet rks = yourTreeTable.getSelectedRowKeys();2. after returning to the page 1, do as follows:
        Iterator rksIterator = rks.iterator();
        if (rksIterator.hasNext()) {
                 List key = (List)rksIterator.next();
                 JUCtrlHierBinding treeTableBinding = null;
                 treeTableBinding =
                         (JUCtrlHierBinding)((CollectionModel)table.getValue()).getWrappedData();
                 JUCtrlHierNodeBinding node =
                     treeTableBinding.findNodeByKeyPath(key);
                 RowKeySet newRks = new RowKeySetImpl();
                 if (node != null)
                     newRks.add(node.getKeyPath());
                 callSelectionListener(yourTreeTable, newRks);
                // refresh your tree table  - ommited here
         // where is:
         protected void callSelectionListener(RichTreeTable table, RowKeySet discRows) {
             SelectionEvent selEv =
                 new SelectionEvent(table, new RowKeySetImpl(), discRows);
             JSFUtils.resloveMethodExpression("bindings.YourVO.treeModel.makeCurrent", // <--  of course, adjust this value to the your selectionListener expression
                                              null,
                                              new Class[] { SelectionEvent.class },
                                              new Object[] { selEv });
         } // of makeCurrent()
        public  Object resloveMethodExpression(String expression, Class returnType, Class[] argTypes, Object[] argValues) {
            FacesContext facesContext = FacesContext.getCurrentInstance();
            Application app = facesContext.getApplication();
            ExpressionFactory elFactory = app.getExpressionFactory();
            ELContext elContext = facesContext.getELContext();
            MethodExpression methodExpression = elFactory.createMethodExpression(elContext, expression, returnType, argTypes);
            return methodExpression.invoke(elContext, argValues);
        }

  • Refresh First page after returning from a framed pop-up window

    HI Can anyone help me on this technical problem.
    I have got one mainpage and from there i'm calling a popup with two frames (left, right). At frame right i'm populating the tableview.
    So when i submit(button) in tableview(right), the table contents has to be replicated in the first page and the popup has to be closed. So far it has be done successfully.
    The problem is when i return to the first page the page is not getting <b> refreshed automatically</b>. FYI, i'm not using mvc for performance reasons.
    So i need your help on how to refresh the first page, after control passes from popup.
    Here is the code, that calls the popup window
    winvar=window.open("organization.htm", 'main','height=450,width=650,status=yes,scrollbars=yes,toolbar=no,resizable=yes');

    Hi Craig & Raja,
    Let me tell thanks for your response. But your valuable solutions are not working for me. Please, check this code and please let me know that any thing went wrong.
    Here is the code
    My main page is progress.htm
    ============================
    <script language = "javascript">
        function openOrgTree(){      
           var winvar;
           winvar=window.open("organization.htm", '<b>Main</b>','height=450,width=650,status=yes,scrollbars=yes,toolbar=no,resizable=yes');
      </script>
    <htmlb:inputField id          = "InputOrgPlan"
                            showHelp    = "X"
                            onValueHelp = "javascript:openOrgTree()" />
          <% if application->i_desc is not initial.%>
          <htmlb:tableView id              = "tvX"
                           headerVisible   = "false"
                           design          = "alternating"
                           visibleRowCount = "3"
                           fillUpEmptyRows = "true"
                           columnWrapping  = "false"
                           onHeaderClick   = "MyEventHeaderClick"
                           onRowSelection  = "MyEventRowSelection"
                           keyColumn       = "Text"
                           table           = "<%= application->i_desc %>"
                           iterator        = "<%= iterate %>" />
          <% endif. %>
          </td></tr>
    organization.htm (is the frames container)
    =========================================
      <!-- frames -->
    <frameset  rows="110%,*">
        <frameset  cols="40%,*" >
            <frame name="left" src="tree.htm" marginwidth="0" marginheight="0" scrolling="No" frameborder="0">
            <frame name="right" src="table.htm" marginwidth="0" marginheight="0" scrolling="auto" frameborder="0">
    table.htm (right frame)
    ==========================
       function callSubmit()
         alert(parent.window.name);  
    // displays the name as "<b>Main</b>" which i gave at the time opening oraganization.htm
    //        parent.window.opener.refresh();
    // window.opener.location.href = window.opener.location.href ;
             window.opener.refresh();
             parent.close(); // to close the popup
    // all of the above are not working
       </script>
      <htmlb:page onLoad = "callSubmit()">
    <htmlb:button id            = "submitbutton"
                        onClick       = "myButtonClick"
                        onClientClick = "callSubmit()"
                        width         = "10"
                        text          = "Submit" />
    i need onClick to populate the internal table and onClientClick to refresh the opener.
    if event->id = 'submitbutton'.
          refresh application->i_desc.
          application->i_desc = i_desc.
    Regards
    Swaroop

  • Best way to refresh page after returning from task flow?

    Hello -
    (Using jdev 11g release 1)
    What is the best way to refresh data in a page after navigating to and returning from a task flow with an isolated data control scope where that data is changed and commited to the database?
    I have 2 bounded task flows: list-records-tf and edit-record-tf
    Both use page fragments
    list-records-tf has a list.jsff fragment and a task flow call to edit-record-tf
    The list.jsff page has a table of records that a user can click on and a button which, when pressed, will pass control to the edit-record-tf call. (There are also set property listeners on the button to set values in the request that are used as parameters to edit-record-tf.)
    The edit-record-tf always begins a new transaction and does not share data controls with the calling task flow. It consists of an application module call to set up the model according to the parameters passed in (edit record X or create new record Y or...etc.), a page fragment with a form to allow users to edit the record, and 2 different task flow returns for saving/cancelling the transaction.
    Back to the question - when I change a record in the edit page, the changes do not show up on the list page until I requery the data set. What is the best way to get the list page to refresh itself automatically upon return from the edit-record-tf?
    (If I ran the edit task flow in a popup dialog I could just use the return listener on the command component that launched the popup. But I don't want to run this in a dialog.)
    Thank you for reading my question.

    What if you have the bean which has refresh method as TF param? Call that method after you save the data. or use contextual event.

  • HT204088 Why does AppStore crash when I try to return to Utilities category after viewing a second or third app (AppStore quits ,iPad (1.1) goesto home page with AppStore on it. 20+ of 32GB available, 28 apps installed, iOS 5.1.1 (says sw "up to date")

    My ipad(1.1) jumps out of Appstore after I've viewed 2or 3 apps, seems to be happening more often now. It returns to the page the Appstore icon is on. When I select Appstore again, it opens on the page of the last app downloaded, then I can return and browse Utilities category until next crash. It has 20+ GB available of 32GB, 28 apps installed, I don't use iTunes. I don't know what OS is installed, it's not cellular enabled. I haven't checked other categories and unsure if reducing open browser tabs affects the problem, possibly lets Appstore run longer before crashing. It always crashes when I attempt to return to the category. OSVersion is 5.1.1, Update Check says software is up to date. It has crashed if I scroll thru the pages of apps too fast.

    If you have more than one user account, these instructions must be carried out as an administrator.
    Triple-click anywhere in the line below to select it:
    syslog -k Sender kernel -k Message CSeq "I/O error"
    Copy the selected text to the Clipboard (command-C).
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V).
    The command may take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear.
    Post any lines of output that appear below what you entered — the text, please, not a screenshot.

  • Is it possible not to update Product Stock Quantity upon ADD TO CART event?

    Greetings,
    Is it possible that the Product Stock Quantity (In Stock) not to be updated on Add to Cart event or when the basket still exist?
    And the updates/decrease of quantity will only happen when the customer have successfully paid or checked out.

    Not at the moment no. BC removes the item from the system on add to cart.

  • How can I get my mac to return to my home page after closing, now it returns to last page viewed.

    Can anyone tell me how to get my desk top IMac to return to my home page after leaving the internet?  Now it returns to the last page viewed,
    I hate that!

    Depends what OS X and Browser you are using?
    If you are on Snow Leopard (10.6) and Safari (5.1.7) then open Safari Preferences, select the General tab and make sure that:
    1. Safari opens with: A new window
    2 New windows open with: Homepage
    3. Homepage: is set to the desired https: site

Maybe you are looking for

  • Bluetooth Headset only works for iTunes not in web browser?

    I've recently upgraded to Snow Leopard. I've reconnected both of my Plantronics Headsets and have been able to use them with iTunes. Today I wanted to watch some shows on Hulu, and while the bluetooth "appears" to be connected, when I select Use Plan

  • Assign GL account to tax code-jurisdiction combination

    Hi, I need to assign a different GL account to each tax code - jurisdiction code combination. can anyone let me know how can I do this? Thanks, Nitish

  • GSBER is empty via BAPI_ACC_DOCUMENT_POST

    Hello! Could you help? I'm creating the financial document through BAPI_ACC_DOCUMENT_POST with two tax positions.   PE_DOCUMENTHEADER-BUS_ACT = 'RFBU'.   PE_DOCUMENTHEADER-USERNAME = SY-UNAME.   PE_DOCUMENTHEADER-HEADER_TXT = PI_BKTXT.   PE_DOCUMENTH

  • Cmd+c does not copy anything to clipboard

    Hi there. My clipboard dos not work. When I press cmd+c the edit menu highlights, but I can't paste after that. There is nothing in clipboard. I also tried it with mouse with same results. I does not work in any application. Thanks for help.

  • Itunes No Paypal Option???

    So i know that itunes has a paypal options but its not showing up for me. Im on a macbook and when i log into my itunes account and go to payment methods it only shows master card, visa, and american express. It *does not* show any paypal option anyw