-
1. Re: Update liquid module without page reload
Stephen_Blignault Oct 12, 2014 2:00 PM (in response to Liam Kimberley)Hi Liam,
The answer here is to point to your own .tpl file, and place "[{{itemCount}} | /OrderRetrievev2.aspx]" inside your .tpl.
You probably don't need collection="" anymore either, as your scope is not within your .tpl file.
Example.
Call the module:
{module_shoppingcartsummary template="/Layouts/OnlineShop/CartSummary.tpl"}
CartSummary.tpl:
I can confirm that this updates correctly whenever you add or remove items from your cart.
Hope this helps.
Thanks,
Stephen
-
2. Re: Update liquid module without page reload
Liam Dilley Oct 12, 2014 6:41 PM (in response to Stephen_Blignault)As another note you do not need the new rendering engine to do this:
{tag_itemCount}
You already have a layout (you do not need to run a collection as well) for this and can do this and it will work.
The reason is the BC update script is looking for the specific wrapping container which you do not have.
Using the new rendering engine, if your using it for this is overkill.
-
3. Re: Update liquid module without page reload
Liam Kimberley Oct 13, 2014 3:36 AM (in response to Stephen_Blignault)Stephen, this worked perfectly, thank you.
Liam, also thank you very much for your help I had seen that there was a tag for that but i didn't know how to get it to work, it appears that the use of .tpl files was the part i was missing. I have only just learned about liquid from reading the sections under the business catalyst development area so I know it will seems like this solution is overkill but i am working my way up from scratch so I am playing with the simple items first. I have not managed to find much learning material on liquid for BC so it would be great to post some links here if they are available.
For anyone else looking to do this with the BC tags there is an in depth explanation of how exactly to do this (and a lot more) here: Business Catalyst Help | Customize your online shop look and feel
the only reading i have found on liquid for BC so far is here: http://docs.businesscatalyst.com/developers#!/beta
Thanks again!
-
4. Re: Update liquid module without page reload
Liam Dilley Oct 13, 2014 5:47 AM (in response to Liam Kimberley)But it is Beta, Things change and also it changes the editor in the admin. So if you have done it for a client site - Note that because when they next go to use it the editor will have changed and they wont know what to do.
-
5. Re: Update liquid module without page reload
Liam Kimberley Oct 13, 2014 6:44 AM (in response to Liam Dilley)Sorry, the syntax of that message was a bit scrambled but I think I know what you mean. I know that you cannot use the wysiwyg editor on BC with liquid and I know that this is a Beta tool as this is clearly described in the BC documentation linked above. I am not building websites for others so I don't think this should be an issue.



