Display sale price only if the item is in stock using liquid rendering engine?

Is there someone that knows the liquid rendering engine? Client meluka.co.nz wants the sale price displayed only if the item is in stock. LiveChat advised that this can be implemented using the liquid rendering engine so if the stock is greater or equal to one the sale price (discounted price) will show up. If no product in stock the retail price will display. Ad is in tomorrow's paper so pressure is on - urgent developer's help required please!
Individual Product - Large currently:
<ul>
    <div id="rrpprice_{tag_productid}">
    <h10>{tag_retailprice}</h10>
    </div>
    <li class="price"><strong>{tag_saleprice} <h9>(inc. GST)</h9></strong></li>
    <li class="quantity">
    <p5>Quantity:</p5>
    {tag_addtocartinputfield}</li>
    <li class="instock-message instock-{tag_instock}">
    <div>
    <p5>In Stock:</p5>
    <p2>Please allow 2 - 3 days (plus delivery)</p2>
    </div>
    <div class="no-stock">
    <p5>Made to Order:</p5>
    <p2>Please allow 4 to 6 weeks for manufacture (plus delivery)</p2>
    </div>
    </li>
    <br />
    <li class="quantity">{tag_addtocart,<img alt="" src="/images/btn-add-cart.gif" />}</li>
</ul>

Sure,
You see where I was coming from -"Can you do this for me for free" - I did Cringe.
But its straight forward. Liquid you have if statements..
http://docs.businesscatalyst.com/dev-assets/reference#!/liquid-reference/reference/logic-t ags.html
And you have your liquid tags:
Developer reference
{% if isOnSale == true -%}
DO THIS
{% else -%}
DO THAT
{% endif -%}
You need to double check as the old tag returned 0 or 1 and Liquid should be proper true or false, but not sure where BC got too in the constancy yet, they been quite on updates recently. If it does not work with == true then it will be == 1

Similar Messages

  • In the Itunes Wishlist there is no price button that you can psuh to buy the items. So I cant buy my whole wishlist without doing it all seperatly and I dont know the total price of all the items. Please help!

    In the Itunes Wishlist there is no price button that you can push to buy the items. So I cant buy my whole wishlist without doing it all seperatly and I dont know the total price of all the items. Please help!

    Both the button and the total cost appear to have been removed in the current version of iTunes - I don't have them either and other people have posted about it as well. You can try leaving feedback for Apple and maybe they'll be added back in a future update : http://www.apple.com/feedback/itunesapp.html

  • Quantity appears in Sales Analysis Report when the Drop Ship Warehouse is used

    Dear Experts,
    We would like your help in the following case. We are using SAP Business One 9.0 (PL10)
    When a Sales Invoice document is added to the system using the Drop Ship warehouse, then in the report 'Stock Posting List' it does not display the document, which is correct since a Drop Ship warehouse is used.
    However, the report 'Sales Analysis Report' displays the Invoice, but it also shows the quantity that is used in the document, which is not correct.
    Why is this happening? Is there any setting that excludes the display of the quantity of the document from the 'Sales Analysis Report', when the Drop Ship Warehouse is used?
    Thank you in advance
    Kind Regards,
    Vassilis Korolis

    Hi Vassilis,
    Sorry, but in my opinion it's correct.
    We also use Drop Ship and like you said in the Stock Posting List we don't have any document and it's perfect. In other way when we sell an item we want and it's true the quantity that B1 is showing.
    We want to see the for a itemcode we sold 100qty qith the value of 1000.
    There's no way to avoid this SAP B1 behaviour.
    Kind regards,
    Augusto

  • Cannot delete file: The operation can't be completed because the item "DataReferences" is in use.

    I have a My Book TB Drive where all of my Time Machine backups go to. I decided to delete some older version of backups. They ended up in my trash can. When I deleted the items in my trash can, all of them erased with the exception of one file. This file refuses to go! I have tried "Empty Trash", "Secure Empty Trash" and holding the Option Key + "Secure Empty Trash". Each time the I get the following error: The operation can’t be completed because the item “DataReferences” is in use.
    If I unplug the My Book TB Drvie, the file dissapears from the trash can. If I plug it back in, it reappears.
    I am not sure what to do anymore. Any suggestions?
    Thanks!
    MacMini
    Mountain Lion (Error originated in OS X)
    My Book TB (External Hard Drive)

    I found an article on how to allow third party apps. Posted it below just in case if anyone is interested.
    http://www.computeraudiophile.com/f11-software/your-security-preferences-allow-i nstallation-only-apps-mac-app-store-and-identified-developers-12789/
    Anyhow, I was able to do the double click on the trash it.I tried the "fast" version and the "really stuck" version and unfortunately, none of the options worked.
    Any other suggestions?

  • Hi Friends... I'm trying to delete a back-up file on mu TC but I get the message "The operation could not be completed because the item "bands" is in use. I'd like to start the Back from scratch, could help me out with deleting the current file?

    Hi Friends...
    I’m trying to delete a back-up file on mu TC but I get the message “The operation could not be completed because the item “bands” is in use. I’d like to start the Back from scratch, could help me out with deleting the current file?

    Sorry, I am very confused. I asked the following question....
    Is this the only backup file on your Mac, or do you have other backup files and data on the Time Capsule disk?
    The answer that you gave was....
    This is the only one
    Now you are saying that....
    But I have lots of other files on Time Capsule! The back up file is only one of them.
    Can you clarify, please?

  • Error message during copy of new version, it says the operation cannot be completed because the item foxfire is in use.

    During downloading of 7.0 Foxfire, during the copy I get an error message that says the operation cannot be completed because the item Foxfire is in use.

    If there are problems with updating or with the permissions then easiest is to download the full version and trash the currently installed version to do a clean install of the new version.
    Download a new copy of the Firefox program and save the disk image (dmg) file to the desktop
    * Firefox 7.0.x: http://www.mozilla.com/en-US/firefox/all.html
    * Trash the current Firefox application to do a clean (re-)install
    * Install the new version that you have downloaded
    Your profile data is stored elsewhere in the Firefox Profile Folder, so you won't lose your bookmarks and other personal data.
    * http://kb.mozillazine.org/Profile_folder_-_Firefox

  • The operation can't be completed because the item "PkgInfo" is in use.

    When I try to replace an application in my applications folder with a new version that I have downloaded from the net by copying over the old one, I get the following message:
    The operation can’t be completed because the item “PkgInfo” is in use.
    I have the original application in my Apps folder, I drag in the new version and then get that message so I have to manually take the application to the trash and then I can put the new version in the Apps folder. This has happened on many occasions since upgrading to Snow Leopard.
    Any ideas anyone on why this is happening and how to fix it?
    Thanks in advance!

    This is happening to me on 10.5.8 as well, so it's not a Snow Leopard thing.
    Generally, the copy works on trying it a second time.

  • What does this message mean - The operation can't be completed because the item "12b" is in use.

    The operation can’t be completed because the item “12b” is in use.  What does this message mean.  It appeared as I was attempting to clear my time machine backup?

    Reboot your machine make sure Aperture doesn't start (as Lion is liable to do) and try it.

  • An unrecognized HTTP response was received when attempting to crawl this item. Verify whether the item can be accessed using your browser.

    I have 2 WFE behing F5 that handles ssl termination too. I have a site abc.xyz.com.
    At aam i have
    http://abc.xyz.com in default zone and https://abc.xyz.com in internal zone.
    AT sharepoint content source; I have both http and https of the above site version.
    DNS entry of abc.xyz.com is pointing at VIP in f5 which load balances this site at 2 different ips assigned to each web front end server.
    Now when i run search in this content source, searchable item populates but there is error for http request telling An unrecognized HTTP response was received when attempting to crawl this item. Verify whether the item can be accessed using your browser.
    Why is this happening?
    Is it because requests are coming to f5 as https but search is returning it as http? Will SSL termination removal from f5 solve this issue which i really don't want to do? Will pointing dns entry to two ips in wfe instead of f5 VIP will work?
    Adit

    Hi,
    I have seen a similar post from you, my understanding is that when you ran search in your content source, there was an error. You can take a look at the following thread:
    http://social.technet.microsoft.com/Forums/en-US/94e999e3-4128-4674-97dc-e46e71fe0f46/search-service-setup-behind-f5-an-unrecognized-http-response-was-received-when-attempting-to-crawl
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

  • How dimension of the acutal display area( cm,inches) of the monitor can be found using flex?I need t

    how dimension of the acutal display area( cm,inches) of the monitor can be found using flex?I need the acutal area in term of cm or inches (width X height)

    You might be able to calculate it with Capabilities.screenDPI and Capabilities.screenResolutionX/Capabilities.screenResolutionY

  • How to update the condition price in the sales order for all the items

    Hi,
    How to update the condition price for all the itmes in the sales order to carry out the new price automatically through a stand alone program, for all the orders in the billing due list table?
    Thanks,
    Balaram

    Hi,
    There is a change in the requirement.
    Scenario:
    I have created a sales order with some 4 condition types, in that 2 condition types are of class A & B and the other two is of class C. Here I need to update the condition price of class A & B only and the remaining condition types should not get update even though there is an updated price is available.
    For the above scenario, I need to write a standalone program. Do we have any function modules to update the price of the single condition in the sales order? Please tell me how we can update the sales order at item condition level.
    Thanks.
    Balaram

  • I want to give sales discounts only for the first five sales order

    The scenario is that I have to limit the sales discount to first five sales order that is executed, from the 6th the system should not allow any sales discounts

    Hi,
    If I understand your requirement correclty you want to pass discount for a particular item for a customer only for the first five sales orders irrespective of the quantity you sell on this order. As I understand this way of limiting discount by way of the count of sales orders is not possible.
    What is though possible is to limit the discount per customer or per article or per customer and article combination to either a certain fixed value of discount or limit the discount to certain fixed quantity sold for that article.
    The config required is
    Condition type  : Scale basis -Either value scale or quantity scale. Scale type -leave this blank.
    Condition record  :Chose the scale type as "B- To Scale" and at the time of condition record creation you can define your own Calculation type -either fixed amount,percentage,quantity etc.
    All the best.
    Kartik Shah

  • How to display grand total only on the last page of my report

    Hello
    I need to display the grand total amount of the invoice only on the last page of every report. If the report has 1 page then the grand total will be displayed on the 1st page. If the report has 2 pages then a subtotal will be displayed on the 1st page adding up all the amounts on page 1 only, and the grand total will be displayed on the 2nd page, adding up all the amounts of page 1 and 2. If the report has 3 pages then the a subtotal will be displayed on page 1 adding up all the amounts of page 1, and another subtotal on page 2 adding up all the amounts of page 2, and the grand total are displayed on page 3 adding up the amounts of every page.
    supplier amount
    xx 100
    yy 100
    subtotal 200
    page 1 of 2 --here i need to display only the total amounts of page 1
    supplier amount
    subtotal brought forward 200 --then i need to bring total of page 1 over to page 2
    qq 300
    zz 300
    total 800 --here i have reached the end of the report and  
    need to display the grand total
    page 2 of 2
    --Currently i am displaying this on my report
    supplier amount
    xx 100
    yy 100
    total 800 --this one gives the problem cause it displays the grand total
    ---------- on page 1 of 2 even before you can see the amounts on the
    next pages
    page 1 of 2
    supplier amount
    qq 300
    zz 300
    total 800

    put the grand total in a frame and set it to print on the last page of the enclosing object.

  • How to display lead selection ONLY in the ALV

    HI All,
       User would like display the selected records in ALV . 
       i suggested that add two button - "Display ALL" & "Display Selected" .
       How can i only display the lead selection only in the ALV? or Hide un-selected records.
       Please help.
    Thank you so much
    Gordon

    Hi,
    Pelase have a look.. same requirement.
    get_selected_elements method for ALV
    Re: select rows in alv and show them in another alv in another view
    Web dynpro ALV table copy selected row
    cheers,
    Kris.

  • How to display a field only in the last page

    hi all
    i am using reports 6i
    i ve created summary column and i need to get it displayed only on the last page of the report
    is it possible
    kindly guide
    thanking in advance

    Dear Friend,
    where you created the summary coloumn? If your summary column in at top level you can do this just placing summary field bottom all repeating frame (all frames).
    Regards
    Ahamed Rafeeque Cherkala

Maybe you are looking for

  • Smartforms

    hi experts, i want to display all items of customer means open and closed items. but on which condition we will display. reward points.

  • Implementing a dynamic dropdown list

    Hi All, I am implementing an Adaptive RFC model that uses two custom RFC's. First RFC returns a table that has list of countries and the second RFC returns a table that lists the states of a particular country. Now using these two RFC's how do I impl

  • SAP PM04 cost flow

    Dear Expert 1. I want to know how cost flow in SAP PM04 ( refurbishment order) 2. after goods issue against PM04 order , when I do IW8W then acutal cost in cost overview tab become zero, I can see actual cost in acual/plan report but it is zero in co

  • Itunes cannot find airplay devices

    Hi, my iTunes on my Desktop (Win7 64bit) is not showing the AirPlay icon anymore. Sometimes it shows up but most of the time it doesn't. in my network there are two airplay devices, both show up all the time on my iphones/ipads. Also a second compute

  • E-FAX

    I just purchased the photosmart 6520 e all-in one printer, but cannot create an account with e-fax.  the button is greyed out. I tried one of the fix it listed by nothing.