With the help of liquid create a "Total registered" in the basket

Hello fellow BC users.

I know using liquid, we are now able to view savings products in small and large product pages, but my question is how we can convert only the shopping cart to create a "Total recorded" is it even possible?

I tried several pieces of liquid code and even tried to add the value retail Custom1, but of course this is that a 'chain' is so impossible to be treated like a number.

The website that I am working on http://cctvkits.info, it is a working progress but I would like 1 or 2 items that the customer has added that it would be marked as off sooner rather than later.

As always help or advice then will be greatly received.

Thank you

Hi Tom,

You will need to use module_data to get additional information for each product in the cart, because you don't have the tags for the retail price in the shopping cart layout.

1. assign a variable that you will be totalSave.

2. loop through cart.items and get the retail price for each product

3. make the difference between that and item.price and multiply by item.quantity.

4. use of the more filter, add this to totalSave.

5. output in your page totalSave.

Let me know if you need more help on this.

PS You can convert the string customX in a number using the conversion filter

Stoiky

Tags: Business Catalyst

Similar Questions

  • need help with the generation of the totals

    Hello
    With the help of oracle 11g. I'm trying to create a query using the following data. The data are really a simpler representation of larger data sets that I work with. Sorry, but I don't know how to format it better by using this user interface. Could someone tell me how?

    tableA (col1, col2, col3, col4, col5, col6, col7)
    (pk1, abc, xyz, def, ghi, eee, fff)
    (pk2, abc, xyz, def, jkl, sss, qqq)
    (pk3, abc, xyz, mno, pqr, bbb, zzz)

    tableB (col1, col2, col3) - col1 is a foreign key to tableA
    (pk1, 10, 20)
    (pk2, 30, 90)
    (pk3, 80, 70)

    The result, I need should look like the following. I got to work with the union of all, but I would like to know if there is another way to do it without the union all. I tried to experiment with rollup, but could not make it work.

    A.col2, A.col3, A.col4, A.col5, A.col6, A.col7, sum (B.col2), sum (B.col3)
    xzy, def, ghi, eee, fff, 10, 20, ABC
    xzy, def, jkl, sss, ABC, qqq, 30, 90
    ABC, def, xzy, total, 40, 110
    xzy, mno, pqr, bbb, ABC, zzz, 80, 70
    ABC, xzy, mno, total, 80, 70
    ABC, xzy, total, total, 120, 180
    totals, totals, totals, totals, 120, 180
    select  nvl(a.col2,'totals') col2,
            nvl(a.col3,'totals') col3,
            nvl(a.col4,'totals') col4,
            nvl(a.col5,'totals') col5,
            nvl(a.col6,'totals') col6,
            nvl(a.col7,'totals') col7,
            sum(b.col2),
            sum(b.col3)
      from  tableA a,
            tableB b
      where b.col1 = a.col1
      group by grouping sets((),(a.col2,a.col3,a.col4),(a.col2,a.col3,a.col4,a.col5,a.col6,a.col7))
    /
    
    COL2   COL3   COL4   COL5   COL6   COL7   SUM(B.COL2) SUM(B.COL3)
    ------ ------ ------ ------ ------ ------ ----------- -----------
    abc    xyz    def    ghi    eee    fff             10          20
    abc    xyz    def    jkl    sss    qqq             30          90
    abc    xyz    def    totals totals totals          40         110
    abc    xyz    mno    pqr    bbb    zzz             80          70
    abc    xyz    mno    totals totals totals          80          70
    totals totals totals totals totals totals         120         180
    
    6 rows selected.
    
    SQL>
    

    SY.

  • I can't create a shortcut to the site on my desktop, when I click on the url bar I can drag on the browser to open a new, but as I drag him on my desktop I get the circle with the line through it, one that looks like a no entry sign. Help?

    I can't create a shortcut to the site on my desktop, when I click on the url bar I can drag on the browser to open a new, but as I drag him on my desktop I get the circle with the line through it, one that looks like a no entry sign. Help

    Try to drag the image to id web site (favicon) on the left side of the address bar, instead of the URL.

  • With the help of the Teststand API to create a .tpj file

    Hello

    I'm looking for an example on how to create a project teststand with the API file. I can not find a method or property to create it and add the project files to a workspace. I tried with PropertyObjectFile (class) without success.

    Let me know if you can help.

    THX

    Martin.

    TestStand 2010 SP1.

    CE that you say make sense, I managed to make it work differently using PropertyObject.WriteFile (format) just before SaveWorkspaceAndProjectFiles.

    Recap:

    Creating a workspace = Engine.NewWorkspaceFile (WorkspaceFile.AsPropertyObject (PropertyObjectFile.WriteFile [in writeFormat])(PropertyObjectFile.SaveFileIfModified[Prompt])) ((PropertyObjectFile.Path[Path])

    Creating a project = Engine.NewPropertyObjectFile [FileType] ((PropertyObjectFile.Path [Path]) (PropertyObjectFile.WriteFile [in writeFormat]) (PropertyObjectFile.SaveFileIfModified [prompt]

    Add a project to a workspace = Rootworkspace---> WorkspaceObject.NewFile [Path]---> [obj (NewFileReference)] [Index] WorkspaceObject.insertObject and WorkspaceFile.SaveWorkspaceAndProjectFiles of WorkspaceFile.AsPropertyObjectFile (PropertyObjectFile.WriteFile [in writeFormat]).

    Thank you for giving me a helping hand.

    Martin

  • How to create the ISO image of windows 8 with the help of boot, efi, sources, and support files

    Hello
    I followed folders in my USB key:

    Boot
    EFI
    Sources
    Support,

    and the following files:

    Setup
    Bootmgr.EFI
    Bootmgr

    How can I create an ISO image of windows 8 with the help of these files and folders. I even installed ADK, but I couldn't keep up with it.
    I would be very grateful if someone could help me out here.

    Secondly, I would also like to know how to create a system image of WINDOWS 8, where the hard drive breaks down.

    Concerning
    MAK

    If you have the upgrade key, go here

    http://Windows.Microsoft.com/en-us/Windows-8/create-reset-refresh-media

    You can go for the use of win8 / win7 / vista to match highlights you want - and download the win8 installation and run the installation with your key to download you need to install windows from that.  Will allow you to have an iso bootable.

    Make a picture of the control panel system / Windows 7 file recovery / system Image.  I certainly wouldn't put it on dvd.  It will be too.   Find an old preference portable hard drive and buy a $ 20 usb box, get an external hard drive.

  • With the help of several classes and create an object of a class and calling its method in a different class.

    Creating a new class, I need to move my main method class SaveDate DynamicTest class. Below I've listed the code of both classes. The goal is to be able to run my class DynamicTest program. I need help to understand the process of moving my main method of a different class and creating an object of a class and calling its method.

    public class {SaveData

    private public static final map < String, Object > myCachedTreeMap = new TreeMap < String, Object > ();

    public static final List < String > getLines (final String resourceParam, final Charset charset) throws IOException {}

    System.out.println ("please:" + resourceParam);

    If {(myCachedTreeMap.containsKey (resourceParam))

    Use the file cached, to avoid a further reading.

    System.out.println ("found in memory:" + resourceParam);

    }

    else {}

    Load the file from the disk

    System.out.println ("found in memory:" + resourceParam);

    }

    Returns a null value.

    }

    Public Shared Sub main (String [] args) throws IOException {}

    String target_dir = "C:\\myfiles\\config\\en";

    Line = "C:\\myfiles\\config\\en\\output.txt";

    File dir = new File (target_dir);

    File files [] = dir.listFiles ();

    If (file == null: files.length < 1) {}

    System.out.println ("file list is empty...");

    return;

    }

    Open the Printwriter

    PrintWriter OutputStream = new PrintWriter (output);

    try {}

    for (textFile file: files) {}

    If (textFile.isFile () & & textFile.getName () .endsWith (".txt")) {}

    readFromDisk (textFile);

    }

    }

    }

    {Finally

    outputStream.close ();

    }

    String fileNameFromCache = "en_synonyms.txt";

    Sheet1 = myCachedTreeMap.get (fileNameFromCache) object;

    System.out.println (fileNameFromCache + ": \n" + "Sheet1");

    }

    @SuppressWarnings ("resource")

    private static Sub readFromDisk(File textFile) throws FileNotFoundException, IOException {}

    BufferedReader InputStream;

    inputStream = null;

    String content = "";

    try {}

    inputStream = new BufferedReader (new FileReader (textFile));

    content = readFile (textFile);

    System.out.println ("bytes read =" + content.length ());

    Save the content

    FileContentsObject Sheet1 = new FileContentsObject (System.currentTimeMillis (),

    textFile.lastModified (), content,

    textFile.getName (),

    getLines (null, null));

    Add to the map

    myCachedTreeMap.put (textFile.getName (), Sheet1);

    }

    {Finally

    If (inputStream! = null) {}

    inputStream.close ();

    }

    }

    }

    private static String readFile(File f) throws FileNotFoundException, IOException, UnsupportedEncodingException {}

    Text of StringBuilder = new StringBuilder (1024);

    read int, N = 1024 * 1024;

    char [] buffer = new char [N];

    BufferedReader br = null;

    try {}

    BR = new BufferedReader)

    (new) InputStreamReader

    (new FileInputStream (f), 'UTF8'));

    While (true) {}

    read = br.read (buffer, 0, N);

    If (read > 0)

    Text.Append (new String (buffer, 0, read));

    if(Read < N) {}

    break;

    }

    }

    }

    {Finally

    If (br! = null)

    Br. Close();

    }

    Return text.toString ();

    }

    private static final class FileContentsObject {}

    private long cachedTime; currentTime

    private long lastModifiedTimestamp;

    private string content

    List < String > lines;

    private String fileName;

    public FileContentsObject (long cachedTime, long lastModifiedTimestamp,

    Content string, String fileName, List < String > lines) {}

    this.cachedTime = cachedTime;

    this.lastModifiedTimestamp = lastModifiedTimestamp;

    This.contents = content;

    this.fileName = filename;

    This.Lines = lines;

    SimpleDateFormat sdf = new SimpleDateFormat ("MM/dd/yy hh: mm :"); ")

    System.out.println ("time & Date:" + sdf.format (cachedTime));

    System.out.println ("' last modification timestamp:" ")

    + sdf.format (lastModifiedTimestamp));

    }

    /**

    *

    * @return the lines of the file

    */

    List < String > getLines() {}

    Return this.lines;

    }

    public String toString() {}

    "return"Sheet1 {}"+" fileName =' ' + filename + '------"+", content = "" "

    + content + "\"+ ", lastModifiedTimestamp ="

    + lastModifiedTimestamp + ', CurrentTime & Date ='

    {+ cachedTime + '}';

    }

    }

    }

    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    public class DynamicTest {}

    Public Shared Sub main (String [] args) {}

    Game characters charset = Charset.forName("UTF-8");

    try {}

    List < String > = CacheData.getLines lines ("en_synonyms", character set);

    If (rows! = null) {}

    System.out.println ("number of rows:" + lines.size ());

    for {(String ligne: lines)}

    System.out.println ("DynamicTest:" + line);

    }

    }

    } catch (IOException e) {}

    e.printStackTrace ();

    }

    try {}

    List < String > = CacheData.getLines lines ("en_stopwords", character set);

    If (rows! = null) {}

    System.out.println ("number of rows:" + lines.size ());

    for {(String ligne: lines)}

    System.out.println ("DynamicTest:" + line);

    }

    }

    } catch (IOException e) {}

    e.printStackTrace ();

    }

    }

    }

    I have read and watched videos about the creation of an object of a class and calling its method in a different class. I'm still confused on how to do it properly. By using the code below if someone can explain how to properly call the method of objects from my hand.

    Huh? You have NOT posted any 'hand' or any 'method of objects '.

    If you need help with the code, you need to view the code.

    The Java tutorials has dozens of trails "Classes and objects": what they are, how to create and how to use them.

    https://docs.Oracle.com/javase/tutorial/Java/javaOO/classes.html

    1. create an instance of a class

    2. call to one or more of the public methods of this class

    If the class has public static methods, you don't need to create an instance first.

    I suggest that you work your way through these tutorials. They include the WORKING example code.

  • Seeking help with a problem with the LR I use LR CC on a laptop, when you try to export a picture to an external hard drive, I am now without apparent reason to get the following message, "could not create a JPEG sponsor limit you 92 k Bytes.Plea.

    Seeking help with a problem with the LR


    I use LR CC on a laptop, when you try to export a picture to an external hard drive, I am now without apparent reason to get the following message.

    "Could not create a respondent JPEG limit you 92 k Bytes.Please increase the size limit files
    . (1).

    .....

    I tried to increase the size of the file several times,

    I left LR

    I restarted the computer.


    Any help or advice for this problem will be greatly appreciated


    Thanks in advance


    @stu

    Not because of the number of pixels, in this photo and the chosen level of quality there is no possible way to create a JPG file to the size of file you requested. You must change your export settings.

    Show us a copy of the export dialog box, so we can see clearly the part file setting and the size of the Image.

    Also indicate the number of this image (width and height) pixels after cropping (as appropriate) and prior to export.

  • Help with the text create a banner 96 dpi x 24 300

    I went through a few forum but still need help. IM creating a banner 96 dpi x 24 300. Its a simple text. I have 4 layers of different text, when I increase the size it changes, but once that I accept it (by selecting the checkbox) it disappear. I have enough space on my canvas for the size of the image of my choice but PS want to allow it. He even appear when I click on the place of the canvas, where he was

    Do not do text in Photoshop. Make the background image, save as PSD, go to InDesign, create a new document, place the PSD and make text ther. It causes the best quality with file size reduced.

    Resolution of the images is not DPI, it's the PPI.

  • Failed to create a 3D text (or 3D nothing else) all options in the 3D Panel are grayed out. With the help of CC 2015.1.2 on Mac Pro

    Failed to create a 3D text (or 3D nothing else) all options in the 3D Panel are grayed out. With the help of CC 2015.1.2 on Mac Pro (end 2013)

    Thanks for the update.

    Go to the Photoshop preferences > 3D > check whether it shows VRAM than 3072 MB

    Look for the system updates and see if there are updates waiting for your graphics card drivers.

    And make sure that the document you are opening is in RGB and CMYK mode not.

  • I'm on Acrobat 10 and I need help with the distribution of shape feature. Is there a way to change the registration e-mail download addressed to the? Currently all forms I create and then distribute may only be subjected to my email account... I appreciat

    I'm on Acrobat 10 for mac and I need help with the distribution of shape feature. Is there a way to change the registration e-mail download addressed to the? Currently all forms I create and then distribute may only be subjected to my email account... I appreciate any help!

    Do not use the feature distribute the form. Instead of this, just put up a button "submit" and configure it to send email using any email address you want. Just add a button and set the action of the mouse upward on "Submit a form" and use a type mailto URL and specify that you want to send the full PDF. Then activate the reader of the document: where "Advanced/extended features in Adobe Reader" is located in Acrobat XI?

    If you really want to use distribute the form for some reason, change the e-mail address in your preferences: Edit > Preferences > identity > Email address

  • Help, please! I can't select the shape I drew with the pentool again... I have the selected layer, but there is no sign of my new shape in my path Panel?  I have been sitting here for days literally and simply cannot make it appear the race that I created

    HI - can help I'm going crazy! !

    I drew a shape with the tool pen (which took me Age..) and I go back an image that I imported, I cannot select once again it.  I can see it in red, but I'm not able to select once again it.  I have the selected layer, but there is no sign of it in my Panel of traces at all.  I tried clicking on the direct Selection tool (about 100 times), I tried the Brush tool.  I've tried everything.  The same thing happened to me the other day...    Please can someone help!  Tania

    It's the plug technique on the subject:

    Using Photoshop | Manage paths

    It contains this point under manage paths:

    When using a shape or pen tool to create a work path, the new path appears as the work path in the tracks Panel. The work path is temporary; You must save it to avoid losing its contents.

    OK, the red, you mentioned is a Stoke you added. Then quick mask is not involved.

  • With the help of A6, must create menu screen which allows the user to click a button creates a branch to other screens and return to the main menu. When returning to the main screen on which button will be gray or inactive.  How can I do this?  I created

    I am trying to imitate a piece of equipment.  I need the user to be able to click on the specific buttons that have the user to another or screens.  After viewing these screens that will be the user to the main screen where the user which buttons were pressed and which still needed to be pressed.  I create buttons image with the 3 States - who has worked except when the user returns to that slide is reset to zero, and if the user does not see the 3rd State of the button.  How can I get this 3rd State of stay after the user returns to the main screen?

    You can not 'keep' a State, that's what I said in my first answer: "you can create an image with that look of '3' State, make it invisible and show it with the same action when a button is triggered. You will need to insert extra that third picture, first hide it out and make it visible to the advanced action, which I explained. I called this additional 'Done_one' image in the example. The three States you're talking about are in a totally different way to Captivate: for down, more and up-state. You can just tell Captivate to keep a low State, it will be down when the button is pressed. Where my explanation of an additional image.

    No need for all the variables. Looks like you have a lot to learn about variables and advanced actions. I don't see another easy way to achieve what you want. It is not so difficult, tons of examples on my blog.

  • With the help of Adobe Muse to create a mail template html simple electronic

    Hello

    I recently downloaded the demo of Adobe Muse to create a header for my e-mail templates.  I use constant Contact both Force application for e-mail communication and both give the option to download your html file.

    This is what looks like my overview:

    screenshot 2.jpg

    And when I download in permanent Contact and the strength of demand, it looks like this:

    screenshot 1.jpg

    I'm just trying to create a header single (photo) with the menu bar that links to the pages of our Web site.

    Make my images / CSS files must be hosted on the internet and NOT on my computer? It's the only thing I can think that it would not load either...

    Any suggestion would be great!

    Thank you!!

    Katie

    I use Mail Chimp and they have the ability to download a ZIP file with your HTML code created. Everything is hosted by Mail Chimp this way so no need to host on a foreign server. The ZIP file just needs to have everything out there (not in the files, only loose). You will need to change the image links in your HTML file to read only the name of the image ("image1.jpg" and not "/images/image1.jpg").

    I don't know if the CC or DF have the ability to ZIP. Maybe it helps

    Thank you

    Jay

  • Create a virtual machine with the physical RAM total?

    I want to virtualize ESXi 4 on my MacBook Pro. However, I have 2 GB of RAM and ESXi 4 requires a minimum of 2 GB.

    I posted in the community of ESXi (is it possible to virtualize ESXi 4 with less than 2 GB of RAM?) and there is a solution for using ESXi with less RAM, but the problem is that I first need to run the installation with 2 GB.

    Basically, I tried to create a virtual machine with 2 GB, but the maximum I can use is 1840MB. Is it something that I do with Fusion to increase this limit? I understand that I am under a host operating system and requiring too little RAM, but just to get through the ESXi installation isn't it possible to push the VM of RAM to 2 GB and the host what OS increase the pagefile to deal with the lack of RAM?

    Any help would be appreciated!

    Thank you

    You may be able to edit the .vmx file and change the memsize option either 2048 or more. The merger is able to start a virtual machine with more memory that the host, just UI prevents common users to exceed the limits of security in general.

    I'm not quite sure what would happen if the VM actually tries to use all of the memory. If all goes well, it will be just talk and run slowly. Of course, the worst case are that it crashes.

  • help me create a column with the time format

    Hi all

    Please help me find the query to create a table with 3 columns and insert the following data

    ENTITYID | CHGDATE | CHGTIME

    ======= ==================== ========

    4214984 | 2 OCTOBER 06 12.00.00.000000 AM | 07:23:57

    4214985 | 12.00.00.000000 11-SEP-08 AM | 10:52:19

    and update of the first line of the above table as follows
    ---------------------
    4214984 | 2 OCTOBER 06 07.23.57.000000 AM | 07:23:57
    ------------------------
    you will need to update the CHGDATE column with the time of the CHGTIME column.

    Sorry, we need a new format around the to_date

    select to_date(to_char(chgdate, 'mm/dd/yyyy') || ' ' || to_char(chgtime, 'hh24:mi:ss'), 'mm/dd/yyyy hh24:mi:ss') from etime3;
    

    This should telll Oracle to the format of the generated string. If this isn't the case, run select with the to_char two as separate columns to see that get us the data that we expect.

Maybe you are looking for