Hiding product layout when gift voucher selected

In the example below I am using the "retail price" in my product layouts, but I don't want to show that line when a product is a gift voucher. Don't be confused that I use retail price and case price interchangeably.
I gave the line an id of "caseprice" and now I want to hide it whenever gift voucher is selected in the product details.
I've included below what i've been working on....Can anyone see what i'm doing wrong here?  THANKS!
<div class="shop-product-small">
<h4>{tag_name}</h4>
<div class="image">{tag_smallimage}</div>
<ul>
    <li class="price">Price: <strong>{tag_saleprice}</strong> </li>
    <li class="retail" id="caseprice">Case price: {tag_retailprice} per bottle</li>
    <li class="custom2">{tag_custom2}</li>
    <li class="custom1">{tag_custom1}</li>
    <li class="quantity">Qty: <strong>{tag_addtocartinputfield}</strong> {tag_addtocart}</li>
</ul>
</div>
<script language="javascript"><!-- 
var caseprice = "{tag_giftvoucher}"; 
if caseprice == "1") { 
     document.getElementById("caseprice").style.display = 'none';
//--></script>

Hi Oli,
We need this too - did you have any luck?
We are so confused as on our website we have no section to buy a gift voucher yet 2 customers have and have redeemed them?!?
Cheers,
DD

Similar Messages

  • Once attribute price selected, updating the price on the large product layout?

    For my e-commerce site I need to setup, when a customer picks an attribute (such as 'Custom Artwork +£5.00') The price on the large product layout updates automatically before proceeding to the Shopping Cart for the price to update.
    Is this achievable?

    Hi Paul,
    In case you still in need, (assuming you are using the attribute to pass the information to the cart) you can adjust the displayed price to reflect the selected option.
    --not sure if this is the right way.. however it works.
    ---html--
    <div id="catProdAttributes2_8090953" class="productAttributes">
         <div class="catProductAttributeGroup" data-productattributegroup="1851262">
              <div class="catProdAttributeTitle">Warehouse</div>
              <div class="catProdAttributeItem">    
              <input type="radio" id="13466918" name="1851262" mandatory="1" />    
              <span>US Warehouse $0</span>
              <img src="/images/attributeimageUS.png" alt="US Warehouse" border="0" /></div>
              <div class="catProdAttributeItem">
              <input type="radio" id="13466919" name="1851262" mandatory="1" />
              <span>AUS Warehouse $2.26</span>
              <img src="/images/attributeimageAUS.png" alt="AUS Warehouse" border="0" />
              </div>
         </div>
    </div>
                    <span class="updated_price">{tag_totalprice}</span>
                    <span style="display:none;" class="original_price">{tag_totalprice}</span>
    --Script---
    <script type="text/javascript">
    $('.catProdAttributeItem img').on("click",function(){
    $(this) .siblings ('input[type=radio]') .attr('checked', true);
    var original_price = $('.original_price').text() .replace(/[^0-9\.]/g, '');
    parseFloat(this.original_price);
    var warehouse_price = $(this).siblings('.catProdAttributeItem span') .text() .replace(/[^0-9\.]/g, '');
         warehouse_price=parseFloat(warehouse_price);
    var total_price = parseFloat(original_price) + parseFloat(warehouse_price);
    $('.updated_price').html('$' + total_price.toFixed(2));
    </script>

  • {tag_invoicediscountamount} is not rendering Gift Voucher discount!

    Hi Guys,
    I tried to insert the  {tag_invoicediscountamount} in the shopping cart and in the invoice layouts and it seems to render only the discount for when a discount code is entered, am I right?
    If it's not with the {tag_invoicediscountamount}, what is the right tag to display  the Gift Voucher discount amount?
    Thanks!

    Here is a handy Tag Quick Reference for you:
    Tags - Quick Reference http://bit.ly/LvZ4su

  • Reveal pages when checkbox is selected?

    Hi,
    I'm used to Acrobat Pro but new to LiveCycle. I need to hide several pages on a form until a user activates a checkbox. ie/  user clicks on "[x] category one" and the page that contains category one content appears. If the user deselects the checkbox, the page is hidden. ie/ user clears [ ] category one and the page with the content disappears from the user's screen.
    \i think it's called 'reveal page' but am not sure. Can someone point me in the right direction, please?
    Thanks!

    Well since I answered my own question, I thought I'd put the answer here just in case someone else can use it.
    First, some griping about LiveCycle: (you have to put up with this because this product is horrible and I had to pay a fortune to use it...)
    In this day and age, why pc only? I needed only this one tiny but crucial function but was forced to borrow a pc and then purchase pc-only software ($300+) that I will doubtless use again. All of this should have been doable in Acrobat Pro with some scripting. (If your Google skills are better than mine and you find an answer, then please share it here and save others the pain and expense...)
    Why is there a complete disregard for any sense of accepted, standard shortcuts - keyboard, mouse dragging and other placement methods? Where is the ability to drag guides out from rulers? Why can I not hold shift while CTRL+dragging a form object to keep things lined up? BTW, ALT is how this copy-dragging should be done - not CTRL. Where are the smart-guides? Why, when I target an object in the Actions Builder do I have to manually scroll or tediously collapse each page in the tree menu to get to the items further down the list? What a waste of my precious and now non-profitable time on this project.
    I spent hours creating beautiful client-approved documents in InDesign only to discover that LiveCycle cannot import my work in a way that preserves my layout, causing me to have to rebuild all of my form elements. We're talking here about 9 documents, and almost 150 pages of pain-staking layout that had to be redone. And don't tell me that I should have used LiveCycle to begin with. This should have been much more seamless than it was.
    Seriously, this product is expensive, non-inclusive, non-standard, non-compliant, and resembles using Windows 95 in ways that no sane person should have to put up with, yet alone pay for and put up with in 2014. Yes, Adobe High Priests, I'm talking in vain to you, knowing that this will fall upon indifferent, deaf ears.
    OK - so here's the answer to my question. In a nutshell, the steps to hide/reveal pages based on the user checking or unchecking a box are:
    Create the checkbox by dragging "Checkbox" from the Object Library. Enter the question text and ensure that the Data Binding Name is unique for each instance. Let's say that all the check box items are on page 2 of the document. When the user selects the first checkbox, page three is revealed. So, for that check box, name it something like "CheckBox_Page3". The others would be called "CheckBox_Page4", "CheckBox_Page5", and so on.
    Select the first check box (Let's stick with CheckBox_Page3 as our example.) and then right-click it, choosing Actions=>Add Action (or Edit Action if an action already exists). The Action Builder dialogue opens.
    I'll need two actions for each check box. One that says, "If this box is unselected, then the page is hidden," and another that says, "If this box is selected, then the page is visible." Set the Condition to: "When check box CheckBox_Page3 is unselected" and the Result to: Show or Hide An Object [HIDDEN]. Then, scroll through and select Page 3 in the left hand column.
    Set the second action so that the Condition is: "When the check box CheckBox_Page3 is selected" and the Result to: "Show or Hide An Object [VISIBLE]. Then, scroll through again to select Page 3.
    Go through all of your check boxes until all the pages are set up with an unchecked/hidden and checked/visible configuration.
    The last thing to do is to select all of the pages that will be hidden/revealed in the left column. When that list is selected, visit the SubForm tab; Presence section and choose from the pick-list: "Hidden (exclude from layout)." Now the document will open with the appropriate pages hidden from view until a user selects the corresponding check box.
    Save OFTEN. Test thoroughly and on multiple platforms. Good luck.
    -Pete

  • Tree item when-tree-node-selected fires differently from 6i to 10g.

    In forms 6i, when you keyboard navigate between tree nodes, the wtns trigger will fire. In 10g it does not. In 10g, it will fire if you press the tab key or mouse click on a node.
    Anyone know if this was done on purpose?
    I ran into this after finally trying my props.fmb in 10g. It works fine in 6i, but not in 10g
    copy of my form is here:
    http://www.tailboom.com/oracle.php
    Forms [32 Bit] Version 6.0.8.18.3 (Production) cleint server
    Forms [32 Bit] Version 10.1.2.0.2 (Production)
    I wrote most of the tree handling code for oracle apps APPTREE. This is the code that most if not all tree's in apps uses to build standard tree. So I have a pretty good understanding of the forms tree item. And know the wtns fired for web forms 6i on every node like 6i client server. This is very strange IMO.
    Thanks.
    --pat                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Oleg,
    thanks for the reference. Although the bug you identify deals with when-tree-node-activated, it is possible they fixed the when-tree-node-selected issue at the same time. With my test tree, i can currently duplicate both issues. I tried to download the patch, but it is only available for linux and unix. No windows patch. I don't have my linux env up and running to where I can test yet. So I can not confirm.
    --pat                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Is there a way to view when gift cards were added so you can see what they were spent on?

    Is there a way to view when gift cards were added so you can see what they were spent on?

    No, you can't view a list of gift card redemptions, you can only view your account's purchase history : log into your account on your computer's iTunes via the Store > View Account menu option, you should then see a Purchase History section with a 'see all' link to the right of it, click on that and you should then see a list of your purchases - if you select a link on that history then it should show how it was charged e.g. mine show 'Store Credit' as I only use gift cards

  • Datepicker on custom popup page close the popup page when date is selected

    Hi
    I have created a custom popup page according to the "How-To": Build Custom Popup Pages in Oracle Application Express. http://www.oracle.com/technology/products/database/application_express/howtos/how_to_create_custom_popups.html
    I have changed one of the search fields to a date and use the datepicker.
    When running the custom popup page from a simple form page, and select a date with the datepicker, the custom popup page is closed, and I return to the form page.
    How do I prevent the popup page to be closed, when date is selected ?
    BR Klaus

    Is there a way to control the javascript in the
    standard datepicker.No.
    Why would you want the builtin date picker window to hang around after the user selects a date?

  • How can I control the Product Category in the Pre-select screen

    Dear ,my expert :
       I  work in ROS scenario . In my case ,the supplier can select Product Category A, Product Category B,and Product Category C when they  filled the data in the  registration scren . And the purchaser A just is responsibility for the Product Category A ,and the purchaser B ,C are the same situation .
      So ,my question is :
       1,How can I control the Product Category in the Pre-select screen? I mean that the Purchaser A can just select the   Product Category A in the Pre-select screen .
       2,You know the supplier select two category  is one BP in the system ,So if the purchaser A accepe the supplier ,the purchaser B will find the status is "accepted ",So the purchaser B will be confused about it .
       SO ,in my case ,any one has the suggestions ,any link welcome .
       Bestregards
      alex

    Hi Alex,
    As per standard SRM solution, this is not supported. Purchasers who accept new suppliers, accept them on the whole and not for any specific product category. There is no such thing as Purchaser being responsible for specific prod category in ROS.
    What you could do however is to build a custom workflow to achieve it. You could have category approvers after the purchaser has accepted the supplier. Based on the category provided by the supplier in the reg form, you could route these suppliers to appropriate category approvers.
    Regards,
    Nikhil

  • Export ALV with the current layout to excel via selection screen

    Hello,
    I want to export my ALV table with my default layout, but from the selection screen. In other words i want the function "List ->export -> spreadsheet" to be done via the selection screen when the user push the "run" button.
    Is that possible ?
    Thx in advance.

    Hi,
    Provide a Check box or radio button in the Selection Screen.
    Then if it is marked then download the content of the internla table into an Excel  using the below code.
    types : begin of header,
                head(30) type C,
               end of header.
    data : t_header type table of header,
             wa_header type header.
    wa_header = 'Purchase order'.
    append wa_header to t_header.
    wa_header = 'Company Code'.
    append wa_header to t_header.
    (Like this u can add the header names according to the download layout ).
    DATA:  l_filename    TYPE string,
           l_filen       TYPE string,
           l_path        TYPE string,
           l_fullpath    TYPE string,
           l_usr_act     TYPE I.
    l_filename = SPACE.
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_SAVE_DIALOG
      EXPORTING
        DEFAULT_FILE_NAME    = l_filename
      CHANGING
        FILENAME             = l_filen
        PATH                 = l_path
        FULLPATH             = l_fullpath
        USER_ACTION          = l_usr_act
      EXCEPTIONS
        CNTL_ERROR           = 1
        ERROR_NO_GUI         = 2     
        NOT_SUPPORTED_BY_GUI = 3
        others               = 4.
    IF sy-subrc = 0
          AND l_usr_act <>
          CL_GUI_FRONTEND_SERVICES=>ACTION_CANCEL.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
        FILENAME                        = l_fullpath
       FILETYPE                        = 'DAT'
      TABLES
        DATA_TAB                        = T_DOWNL
    FIELDNAMES                        = T_header
    EXCEPTIONS
       FILE_WRITE_ERROR                = 1
       NO_BATCH                        = 2
       GUI_REFUSE_FILETRANSFER         = 3
       INVALID_TYPE                    = 4
       NO_AUTHORITY                    = 5
       UNKNOWN_ERROR                   = 6
       HEADER_NOT_ALLOWED              = 7
       SEPARATOR_NOT_ALLOWED           = 8
       FILESIZE_NOT_ALLOWED            = 9
       HEADER_TOO_LONG                 = 10
       DP_ERROR_CREATE                 = 11
       DP_ERROR_SEND                   = 12
       DP_ERROR_WRITE                  = 13
       UNKNOWN_DP_ERROR                = 14
       ACCESS_DENIED                   = 15
       DP_OUT_OF_MEMORY                = 16
       DISK_FULL                       = 17
       DP_TIMEOUT                      = 18
       FILE_NOT_FOUND                  = 19
       DATAPROVIDER_EXCEPTION          = 20
       CONTROL_FLUSH_ERROR             = 21
       OTHERS                          = 22.
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    Edited by: Sumodh P on Apr 20, 2010 10:09 AM

  • Add "wrap your product as a gift" option in shopping cart or product checkout

    Hi, does anybody have an idea of to add an option in the checkout, so the user be able to select the "wrap this product as a gift" option, and add a cost to the total price if the option is checked?
    I´m trying to figure it out, and the only option available is on the shipping options. Yet, that looks more like delivery options only (ups, FedEx etc..) It may work, but need more options.
    Basically, the idea of my client is put a checkbox with a text labelthat says: "wrap your product as a gift" . Charge the client some extra money for the service, and add a text box for the client to type a message for a gift card included in the package that will deliver.
    Any ideas? tips? Thanks.

    Thanks Liam, I have added Gift Wrap to the shipping options - which sort of makes sense as it is part of how the item(s) is(are) shipped ;-) This gives customers the option to ship with or without gift wrapping and the gift wrap cost is included with the shipping cost if that makes sense?  This seems to work ok for a store selling similar sized items.
    Steve

  • HT1918 why am i getting 'your purchase cannot be completed' when gifting apps. worked first 3 times then this.

    why am i getting 'your purchase cannot be completed' when gifting apps. It worked for 3 purchases then stopped

    Pete, you have found like many before you, that eventually software becomes out of date, where software developers at different points no longer support old versions of their product, which eventually fossilizes your computer. It is inevitable.
    You have heard of dog years, well computer years are even shorter, which makes your seven year old laptop certainly middle aged. It is still useful, running the applications it always has, so keep it. But online its years will show.
    With the internet, new software developments affect browsers, and plugins, with java, flash etc.
    Software development is often in step with hardware innovation, and most Apple hardware is not very upgradable and Apple don't support things for very long.
    This leaves you with a an old PowerBook that will still be good for the things it does, though it will have increasing limitations with some modern internet media sites.
    Mozilla no longer support 10.4 Tiger but fortunately there is a group who have kept it alive with their version of Firefox,
    http://www.floodgap.com/software/tenfourfox/
    Check it out, it may be just what your need.

  • Cannot find "Products.jar" when intalling ODBC for 10g

    The intall directions say to point to the path where Products.jar file is located after unziping the download. I see Products.xml but no Products.jar file. I am unable to install ODBC.

    Hi Jon,
    Were you able to successfully create an ODBC DSN entry using 10.1.0.3.1 driver?
    I installed the Oracle ODBC Driver 10.1.0.3.1 using the Oracle Universal Installer v10g. I also couldn't find the Products.jar file, so I selected products.xml file. The OUI said installation was successful.
    However, when I go to ODBC Data Source Administrator and try to add a new entry, it GPFs.
    Then I tried uninstalling the 10.1.0.2 driver, but it still doesn't work.
    Any hints?
    Thank you in advance!

  • Unable to redeem my gift voucher on wallet

    Hi m unable to redeem my gift voucher code on wallet.. I followed all d steps and ny net connectivity is also good.. But when ever m opening the link (copy and activate) wallet is opening but there is no option for Microsoft gift voucher..

    hi mate, if you are experiencing problems redeeming your gift voucher, you need to contact whoever provided you with the gift voucher or your nearest Nokia Care point for resolution of this issue.

  • Can any body tell me how to create a layout variant in the selection

    hi friends i would like to know how to create a layout variant in the selection screen and how to select the variant to display the ouptut using the layout using disvariant.please if possible give me example. thanks in advance.

    hi,
    I shall give you the code. It will definitely work.
    <u><b>Declerations you need to make</b></u>
    data:      WK_VARIANT      LIKE DISVARIANT,
               WX_VARIANT      LIKE DISVARIANT,
               WK_REPID        LIKE SY-REPID,
               WK_VARIANT_SAVE(1) TYPE C,
               WK_EXIT(1) TYPE C.
    <b><u>Things you need to do in the initialization event:</u></b>
    INITIALIZATION.
      PERFORM F_INIT_VARIANT.
      PERFORM F_VARIANT_DEFAULT USING PR_VARI.
    *&      Form  f_init_variant
    FORM F_INIT_VARIANT .
      CLEAR WK_VARIANT.
      WK_REPID = SY-REPID.
      WK_VARIANT-REPORT = WK_REPID.
      WK_VARIANT-USERNAME = SY-UNAME.
      WK_VARIANT_SAVE = 'A'.
    ENDFORM.                    " f_init_variant
    *&      Form  f_variant_default
    FORM F_VARIANT_DEFAULT  USING    P_PR_VARI.
      WX_VARIANT = WK_VARIANT.
      IF NOT P_PR_VARI IS INITIAL.
        WX_VARIANT-VARIANT = P_PR_VARI.
      ENDIF.
      CALL FUNCTION 'LVC_VARIANT_DEFAULT_GET'
        EXPORTING
          I_SAVE        = WK_VARIANT_SAVE
        CHANGING
          CS_VARIANT    = WX_VARIANT
        EXCEPTIONS
          WRONG_INPUT   = 1
          NOT_FOUND     = 2
          PROGRAM_ERROR = 3
          OTHERS        = 4.
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      CASE SY-SUBRC.
        WHEN 0.
          P_PR_VARI = WX_VARIANT-VARIANT.
        WHEN 2.
          CLEAR P_PR_VARI.
      ENDCASE.
    ENDFORM.                    " f_variant_default
    <b><u> After this Things you need to do in the At selection screen event:</u></b>
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR PR_VARI.
      PERFORM F_VARIANT_F4 USING PR_VARI.
    *&      Form  f_variant_f4
    FORM F_VARIANT_F4  USING    P_PR_VARI.
      CALL FUNCTION 'LVC_VARIANT_F4'
        EXPORTING
          IS_VARIANT    = WK_VARIANT
          I_SAVE        = WK_VARIANT_SAVE
        IMPORTING
          E_EXIT        = WK_EXIT
          ES_VARIANT    = WX_VARIANT
        EXCEPTIONS
          NOT_FOUND     = 1
          PROGRAM_ERROR = 2
          OTHERS        = 3.
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      IF WK_EXIT IS INITIAL.
        WK_VARIANT-VARIANT = WX_VARIANT-VARIANT.
        P_PR_VARI = WX_VARIANT-VARIANT.
      ENDIF.
    ENDFORM.                    " f_variant_f4
    After this finally when you call the output using REUSE_ALV_GRID_DISPLAY YOU NEED TO mention this parameter in the function module
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          <i><u><b>IS_LAYOUT          = WA_LAYOUT</b></u></i>
          <i><u><b>I_SAVE             = 'X'</b></u></i>
          <u><i>I_DEFAULT          = 'X'</i></u>
          <u><b>IS_VARIANT         = WK_VARIANT</b></u>
        TABLES
          T_OUTTAB           = ITAB1
        EXCEPTIONS
          PROGRAM_ERROR      = 1
          OTHERS             = 2.
    Once you do this,,, you can create a layout variant.
    P.S. Mark all helpful answers for points.
    JLN

  • ITunes says Gift Voucher redeemed, but it has never been used...

    I bought an iTunes gift voucher sent through the iTunes store via email.
    When my friend input the code for the very first time iTunes said the voucher has already been redeemed.
    Does anyone know why this might be or perhaps how this can be resolved ?
    Thank you in advance.

    Most places you buy gift cards at should have given you a special receipt with a number to call if you have problems with the code.  If they don't give you that reciept, then you can contact iTunes and hopefully they can help you, and then find a new place to buy your gift cards.

Maybe you are looking for