Hide buy button if no price

Hi,
I have an eCommerce site which is made up of two types of product:
A) Products with a price which can be bought there and then
B) Products without a price but a note saying "Call for a price"
The issue I have is that the buy button is visible for both types of product. This is fine for product A, but not for product B as the cart can be filled with items without a price.
Is there a line of javascript available that I could insert into a online shop layout template which would hide the buy button and quantity field if there is no price? So it basically says "if {tag_totalprice} is not visible, do not display {tag_addtocartinputfield} and {tag_addtocart}"
Many thanks!

Hi,
You can use one of the custom fields for any product to enter any or a specific value to mark each item as needed, display that field in a hidden div on your required layout, and just run a script that for that specific value hides the div containing the add-to-cart items.
Kind Regards,
Alex

Similar Messages

  • I brought a new Mac book air but did not buy iWork apps ( pages, numbers and keynote) now that I have downloaded OS Maverick will I get these apps free to download? Because when I visit the store it still has the buy option with the price listed

    I brought a Mac book Air this September. However I did not buy the apps pages, numbers and keynote. I was
    Delighted to hear these apps are free - however when I tried to download them from the
    App Store - I still find the buy button with the price.
    So will these apps be free

    Hello there, Anilkr.
    The following Marketing Page reviews the requirements for upgrading those Applications for free:
    Apple - Up-to-Date Program for Pages, Numbers, and Keynote
    http://www.apple.com/creativity-apps/mac/up-to-date/
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro

  • App Store - Plus Sign on buy button?

    What does it mean when there is a plus sign on the price and/or buy button in the App Store on iPhone?

    As long as both devices are connected to the same iTunes Store account, they both have access to all the apps that you've purchased.

  • Hide/ unhide option for Product prices

    Hi All,
    We want to implement hide/ unhide option for Product prices i.e. whenever the user wants to unhide the price of a product, the user should click on a link u201CHideu201D and then it should hide the price of all the products. And similarly, when the user clicks on u201CUnhideu201D link, then it should display the prices of all the products.
    Can it be done through some config or through some code changes. Can you please let me know how to achieve this.
    Thanks,
    Nikhil

    Hello Nikhil,
    I assume that you would want to achieve this at the catalog page level or at a basket level. There is no standard config that can be used at runtime to hide/unhide price elements as per user choice.
    What you could do is modify the corresponding JSP files to add your custom logic via combination of some Javascript and div tags.
    PS: Refer to the section of the item details div on the order screen which uses similar logic to collapse/unfold item details on click of the arrow buttons.
    Pradeep

  • Buy button not on menu

    Buy botton not on menu in I tune store..u can gift, wish list etc.. no buy   What's up with that?

    The Buy button is not on the same menu with those other things. You have to click on the button with the price in it.  In the example below, you click where it says "$0.99" and it starts the buy process.

  • I want to purchase all the songs on my wish list, but there is no "buy" button.

    Why do I not see a "buy" button when I go to my wish list? 

    There used to be a 'buy all' button on the wish list screen, but that has been removed from the current version of iTunes (possibly because people were accidentally clicking on it). You now need to buy each item on your wish list individually by clicking on their prices.

  • The itunes store wont let me download anything i click the buy button and it asks for my password but it wont download

    when i went to itunes on my computer it would start downloading the apps i purchased on my phone but would get stuck a processing file, then when i went to purchase a movie i would click the buy button and it would ask my password but then would not purchase or download. So i decided to buy the movie from my phone and then try to download on my computer from the purchased section but still wont download on my computer and it doesnt give me a reason why

    The Apple Support Communities are an international user to user technical support forum. As a man from Mexico my first language is Spanish. I do not speak English, however I do write in English with the aid of the Mac OS X spelling and grammar checks. I also live in a culture perhaps very very different from your own. When offering advice in the ASC, my comments are not meant to be anything more than helpful and certainly not to be taken as insults.
    Are you putting in the address where the bank sends the monthly statement?
    Apple's servers are very picky about the format of the address. If you live in the USA, then the server is expecting the style that the US Postal Service uses. One way to do this is to use the USPS ZIP Code lookup service;
    https://tools.usps.com/go/ZipLookupAction!input.action
    Enter the address to look up the ZIP code and then copy the exact USPS output into your iTunes account information.

  • I'm trying to buy more storage on my iPad but when I get to the "buy" button, it has my old Apple ID and I can't go any farther. I've changed my Apple ID on all my devices, logged out, logged back in, rebooted, etc., but that one area still has old one.

    I'm trying to buy more storage on my iPad but when I get to the "buy" button, it has my old Apple ID and I can't go any farther. I've changed my Apple ID on all my devices, logged out, logged back in, rebooted, etc., but that one area still has old one.

    You can't buy more storage on an iPad. You are referring to space on iCloud and that probably won't accomplish what you are trying to do.

  • How can I hide a button with javascript in Captivate 8?

    I need to run some javascript in my project and at the same time I want to hide a button, so I can't use advanced actions.

    It is very strange, most users who have focus on JS try to do everything with it, whereas lot of simple actions can easily be done with advanced/shared actions. I will only go to JS when it is not possible with advanced/shared actions.
    You are lucky, I was just restarting to work on an advanced training for next week when your question showed up.

  • How to hide 'SAVE' button in adobe form layout

    Hi  Friends,
    I have a requirement to hide 'SAVE' button in adobe form layout .They dont want to save the form .
    Is there any way to achieve this .I have gone through scn ,but couldnt find the proper solution
    Thanks and Regards,
    Subeesh Kannottil

    Hi Subeesh,
    Are you talking about restricting the User from Saving the Adobe Form Output. 
    Regards,
    Sivanand Ala

  • When i go to buy an app on my ipod touch, i click the buy button then the install button and it just keeps repeating itself then dissappears, why is this?

    when i go to buy an app on my ipod touch, i click the buy button then the install button and it just keeps repeating itself then dissappears, why is this?     help me please, i cant download no apps.

    If  you have iOS 3.1.3 then it is an Apple problem.

  • I created a book on iPhoto. I click on the buy button, and I get a connecting message with a blue striped rectangle. I am connected to the internet and I have made books before without any problems. I have tried for the past two weeks at various times.

    I created a book on iPhoto. I click on the buy button, and I get a  message that says Connecting with a moving blue striped rectangle. I am connected to the internet and I have made books before without any problems. I have tried for the past two weeks at various times and I get this same message each time. Any ideas about what is going on? 

    First confirm that you can create a PDF file of your book as described in this Apple document: iPhoto '11: Preview a book, card, or calendar before you order or print it. Post back with the results.
    OT

  • How to Hide advance button in input list of values Popup

    I am using input List Of Values component to select value from search Pop up, in that popup i need only basic search only , i am unable to hide advance button... plase tell me how to hide this advance option

    I haven't tried this, but check
    How to remove basic/advanced button in inputListOfValues search dialog
    This does not have complete solution, but might give you some lead.

  • I have signed in to my account and am able to brouse media but not download or purchase anything. The "buy" button is also white instead of blue and nothing happens when I click to buy. I am able to make purchaces on the same account on my I phone as well

    I have signed in to my account and am able to brouse media but not download or purchase anything. The "buy" button is also white instead of blue and nothing happens when I click to buy. I am able to make purchaces on the same account on my iphone as well. What might be causing this issue?

    Having the same problem and i just thought it was me ? So frustrating went to my local Apple store and they told me to re-load Itunes again,Done that but still can not buy songs???????????

  • Using jQuery to hide a button (wrapped in td tag) based on attribute value (name in this case)

    I have simulated what I'm trying to do here:
    http://jsfiddle.net/dayjuuk5/
    Let me know if you can't see it for any reason.
    My question- I'm not sure I understand why this method of hiding this td tag doesn't work. I'm looking for a way to hide this button on page load (not click driven).
    Thank you for your time.
    Samir

    Hi Samir,
    Thanks for your sharing.
    Best regards,
    Patrick
    Patrick Liang
    TechNet Community Support

Maybe you are looking for