Check the contents of the shopping cart by using liquid

With the help of liquid is it possible to check which elements are in the shopping cart? Can if so someone point me in the right direction?

Basically what I want to achieve, it is when a page loads to check to see if some items in the shopping cart. If they are in the basket I do something if I do something else. If I can verify the quantities, even better.

I always work to capture all the liquid. = >

Hi Lynda,

Take a look at this guide - guide reference - e-Commerce partner - it also supports the update basket 'on-the-fly"mentioned Robert.

Let me know how it works.

Thank you

Mihai

PS: On the page cart.html you can insert

{{cart | json}}

to see this other properties of carriage, you can access (as individual products and so on).

At the moment but there are some areas which are 'digital', so this means that you cannot apply mathematical operations to most of them. This will be corrected in the future, see Bug: math liquid filters do not work with the data of the module

Tags: Business Catalyst

Similar Questions

  • liquid tags not made in the shopping cart?

    I shall preface this by saying that I am so frustrated that I am about to necking.

    For some reason, I have completely failed to understand the basic principles of operation between the basket and the basket of purchase as well as pages. I need to be able to target the innerHTML, failed completely to be able to do by using the model of module and the module basket (with js), so turned to liquid, which, as I understand it, should make the name of a product with {{name}}. Only it doesn't, it will display the text just as raw. {{This | json}} however works fine. I don't understand. I'm really not. So please, for the love of God, for the sake of this piece of you that feels good when you help someone else, if there is something obvious that I may have missed or miss me understand the process here, please help me.

    EDIT: I will add, I tried to add liquid tags to the shopping cart module model, and it is there that they seem not to function. It is also part of the model module purchases that I could not target the innerHTML using js. And once again, please, if you can just help me understand how it needs to operate, I can do the rest, but it's just a nightmare at the moment.

    The basic thing it is that say you the name. Name of what and where is the issue?

    If your in the basket name presentation does not return product names, it's fair for one. You need to loop through the elements of products in the basket and then convert the names into a loop for example.

    -What are you trying to do?

  • I'm paying for telephone folios and the 1800 number that is advertised on the shopping cart is not correct - what number I ring in Sydney, Australia

    I'm paying for telephone folios and the 1800 number that is advertised on the shopping cart is not correct - what number I ring in Sydney, Australia

    Do you mean you want to buy downloads additional folio? If so you are a Pro user or company, connect to your DPS dashboard and click on the "Contact Support" link at the bottom left

  • billing and shipping information on the shopping cart page

    Hello

    Can someone tell me if I can put the shipping and billing forms that usually go on the page of payment in British Colombia on the shopping cart page. What is the best way to impliment this. I can think of several ways, but they seem like wrapper work. BC this easily.

    At soon Daniel

    Hi Daniel, you can't.

  • Remove the item from the shopping cart

    OK I tried of it worked for hours and it drives me crazy.

    I have a function that removes items from your cart:
    public void RemoveFromBasket(Key:int):void {}
    document. RemoveShoppingBasketItems.url = "" http://localhost/Flex/Personalised%20Palettes-debug/ShoppingBasket.php?Remove= " "
    document. RemoveShoppingBasketItems.url += key.
    document. RemoveShoppingBasketItems.send ();
    document. ShoppingBasketCount.url = "" http://localhost/Flex/Personalised%20Palettes-debug/Header.php "; "
    document. ShoppingBasketCount.send ();
    ViewShoppingBasket();
    }

    In my MXML I have a label that displays the number of items is in the basket, which is populated by the ShoppingBasketCount HTTPService. I call the setTotal function whenever the label is updated.

    < mx:Label
    x = '640' y = '4 '.
    Text = "Your Shopping Basket contains {ShoppingBasketRepeater.currentItem.@Total} Item (s).
    Color = "#FFFFFF".
    ID = "ShoppingBasketLabel".
    updateComplete = "SetTotal (event.currentTarget.getRepeaterItem () .@total)" / >

    And the setTotal function sets the Variable Total number of items in the basket:

    public void SetTotal(Number:int):void {}
    Total = number;
    document. TestLabel.text = Total;
    }

    Once the item has been removed from the shopping cart and the ShoppingBasketCount has to be transmitted, the RemoveFromBasket function is called:
    public void ViewShoppingBasket (): void {}
    document. TestLabel.text = Total;
    If (text). TestLabel.text == 0)
    {
    document. ShoppingBasket.visible = true;
    document. ShoppingBasketGrid.visible = false;
    document. ShoppingBasketHeader.text = "your cart is empty";
    document. ProceedToCheckoutButton.visible = false;
    } else {}
    document. ShoppingBasketItems.url = "" http://localhost/Flex/Personalised%20Palettes-debug/ShoppingBasket.php "; "
    document. ShoppingBasketItems.send ();
    document. ShoppingBasket.visible = true;
    document. ShoppingBasketGrid.visible = true;
    document. ShoppingBasketHeader.text = "shopping cart";
    document. ProceedToCheckoutButton.visible = true;
    }
    ToggleMenu (0);
    }

    However when I remove the last item in the basket so that there is no more items in the basket the basket displays an empty grid. The poster 0 ShoppingBasketLabel and the TestLabel 0. If I click on the link see the Shopping Cart it will show the shopping cart is empty. Why it shows me an empty grid and not your cart is empty message when I delete the last item in the basket?

    Any help would be great!
    Thank you
    Katy

    Yes, this value of 1 is what I was afraid of.

    According to your logic the updateComplete where you call SetTotal() I will try:

    public void SetTotal(TotalCount:int):void {}
    Total = TotalCount;
    ViewShoppingBasket();
    }

    in other words, if the Total is correctly updated it.

  • How to check the date of last used database?

    We have a few databases are not used for a long time. How we can check the last date of use?

    I tried scn_to_timestamp (max (ora_rowscn)), does not, because scn_to_timestamp SNA must be not more than 5 days.
    I tried DBA_TAB_modifications, but we have not defined monitoring.

    Thank you very much

    SkyRiver

    How we can check the last date of use?

    If apps/user to connect through earpiece, you can look in the newspaper of the listener.

  • How to make a checkbox I accept in the shopping cart

    I added an exchange policy to my shopping cart.

    1. I would like to add a checkbox that musbe be checked so that the extraction process can begin.
    2. I want an error window to explain that the box should be checked if it has not been verified and that the customer tried to verify.

    Can you tell me how can I do this?

    Here is a picture of what I want to do.  I need is the code in the box and the error code, and the code to prevent the Fund to start until the box is checked. I'm not very handy javascript but can cut and past.

    Thank you!

    agree.jpg

    Will be much easier and not messed with BC script if you on the payment form. Given that the form on the next page is a web form, you can add the checkbox field and all that manually and easily add that in so that the form may not be submitted without agreeing.

  • How to customize the received email that the buyer receives the purchase to the shopping cart?

    Hello

    I've just set up a shopping cart at: http://www.themesformuse.com.
    When a command passes by, the buyer receives a receipt by e-mail.

    This receipt is very generic at the moment.
    The response email is set to "[email protected]".
    And I need to add some text to it.

    Where can I change this? I can't find it!
    Any help would be appreciated. Thank you!

    Jason

    I'm not link building! Has been a real question lol.

    In fact, I received a response from the Adobe Support:

    You can find this under Site Manager email template > system Emails > online store: invoice

  • How to align {tag_productquantity} in the shopping cart layout table?

    I inserted the {tag_productimage} tag in our shopping cart layout table. In accordance with the instructions in the following article http://kb.worldsecuresystems.com/654/bc_654.html? bc-partner I adjusted the height of .productitemcell in the Style sheet to be able to see the whole picture. However I have tried many elements of setting and nothing seems to align the {tag_productquantity} to sit in the iddle m of the cell as the rest of the information in the same row. Please see a screen shot here http://mychristmas.businesscatalyst.com/test This is a website, we are currently building http://mychristmas.businesscatalyst.com/

    Is someone can you please tell me what it is I have to settle for not having this field amount to sit at the top of the cell?

    Thanks in advance!

    Hello Erin,.

    Looks like if you give the .productitemcell a row height of 109px and then give 'input.cartInputText' high-margin of 44px all items in your shopping basket very well online.

    Hope this helps,

    Chad Smith | http://bcgurus.com/Business-Catalyst-Templates for only $7

  • When I click on add to cart, and then on the shopping cart page I show quantity 2 even I select 1 .so wha

    Hi all

    in the list of products or the details of the product page when I selct 1 quantity and click on add to cart, and then page Shopping cart in the quantity text box shows even 2, I enter quantity 1. what question would you please tell me.

    Thank you

    Hello

    When you add to cart, you can see the quantity is added two times (for example if I add 3 the wagon goes to 3 then 6) and looking at your code it seems that you have onclick action

    for example (onclick =AddToCart(275761,5662250,'',3,true))

    attached to the time the tag and the tag where it adds the amount twice more that one tag and image tags are clicked.  Remove the onclick of one of them - I did it in Firebug for a tag and it worked.

    Hope that helps

    Steve

  • Is there a tutorial showing how to integrate a PayPal add to cart and set up the shopping cart

    Looking for an easy to follow tutorial on how to add, complete and integrate a button Add to cart and buy now button for PayPal. Preferably a step by step instruction.

    Hello

    Please check these posts for a similar description:

    Re: Add a shopping cart on a Muse site

    Re: Paypal add to cart

    Kind regards

    Aish

  • How to check the permissions of security using OLE or javascript?

    I'm checking the security permissions in a PDF file using OLE or javascript.  Any help or examples would be very helpful.  A similar position said that you can NOT get the permissions via javascript.  Is this true?

    My end is set to check is "Copy of content" permission is allowed before you try to "Save as text", otherwise a dialog in Acrobat and the script hangs until the dialog box is clicked.  A way to remove the dialog box would be useful.

    It there is no way to remove the dialog box, nor can you get the permissions.

  • Please check the circuit for AM using discrete components

    Please check the attached file, that these circuits are not working. [email protected]

    Link to post below:

    http://forums.NI.com/T5/circuit-design-suite-Multisim/looking-for-MC1496-any-custom-part-library/TD-...

  • Add to the Shopping Cart stops jQuery

    Hello

    I tried to put in a jQuery zoom to page large element... but after I click on the button "add to cart". The zoom stops working.

    Someone had a similar problem? Did find a work around?

    Thank you

    BC elements such as adding to cart, consolidation, shipping will kill the DOM so where possible things like. on() must be used (latest version of jquery, before he was. live()) and other workarounds.

  • How to check the amount of memory used during execution of the program to save data in the table?

    Hi any idea how to read or check use all memory space by accumulating the table with the data?

    My program works like this: -.

    (1) values are acquired and displayed on the table

    (2) the values are acquireduring the next event and appear in the next row in the table.

    (3) and this continues...

    Please notify

    Thanks in advance

    Hi astroboy,.

    You can use 'Flatten channel' to get the size of your data.

    Mike

Maybe you are looking for

  • HP Pavilion Gaming 15-ak025TX: SSD upgrade 15-ak025TX HP Pavilion Gaming possible?

    Hi I just bought the Pavilion Gaming laptop yesterday. I want to add in an SSD for faster starting. Currently, there is only a 1 TB of HARD drive. I searched HP's site, but can not find all of the information a free location for one SSD. Can anyone h

  • Default program

    Hello, running a Windows 7 laptop. Common problem, frequently asked question: Initially, I was opening a file "wmlp. I messed up the settings and now my default program to open all my files is 'Microsoft Word 2010' (at the moment). I am aware that I

  • Aspire 7750G Bluetooh does not start

    Hello I bought a used aspire 7750 G-2638G75Mnkk [redacted to comply with guidelines] with a damaged hard drive, so the Méthot recovery to reinstall Windows would not work.After installing Windows 7 64 bit, I downloaded and installed all the relevant

  • Hibernate questions about laptop Pavilion g6

    I seem to have issues where if I play any kind of game from PC for half an hour, the computer automatically hibernate after a half hour. At first, I thought it was due to the internal temperature, but since I found that this is not the case. HP Pavil

  • No noise at all but 'device is functioning properly.

    Just today, my computer has lost all sound and I have no idea why. I'm good with computers and can almost always fix things myself but right now it's pretty much my last option. I have no idea why I have this loss because the device is recognized, th