liquid related products

Hi guys ive just started setting up for liquid and thought, I wish to begin by making related products on a tabular presentation.

I added this code to my great product

RELATED PRODUCTS

{tag_relatedproducts, 4, true model = "" collection "relatedProducts" = "}     {% for article on relatedProducts.items-%}
Placeholder image
{{item.custom1}}

{{item.name}}

{{item.salePrice}}

{tag_addtocart}
{% endfor}

I'm not sure if this is the right way to do it but it seems to work ok... only my price have no $ and my product names have no connection with great view.

Screen Shot 2015-07-24 at 5.08.50 pm.png

That's why im im thinking something wrong.

This | JSON on my articles or whatever it is you gets all the information output.

Take a look at to see what you get.

Tags: Business Catalyst

Similar Questions

  • Is there a liquid tag for related products?

    It doesn't seem to be liquid tag for related products. I am now using {tag_relatedproducts}.

    I would use {{relatedproducts}} because I would use Reiunnaitre = "true" to get rid of the default table.

    Am I missing something or is there no liquid tags for related products? It would be useful to have a.

    If she is not there, is there another way to use a list instead of a table for related products?

    Thank you.

    That's what said Liam...

    For related products as a liquid, use a collection on your {tag_relatedproducts}:

    {tag_relatedproducts, 4, true model = "" collection "relatedProducts" = "}

    {% If relatedProducts.items-%}

    {% for article on relatedProducts.items-%}


    {{ item | json }}

    {% endfor}
    {endif %}

    NB: Please take note of the specific command model = "" before = "yourVariableName" in this case. " Trust me, you exchange these autour, in some cases, product related collection will be empty. I can't emphasize this point enough.

    Hope this helps

    -Stephen

  • Custom template for related products?

    So, this is the first time I try to customize an ecommerce solution beyond the normal stuff of the BC. Customer wants a specific view for related products, so my first thought was to use a custom template, but it doesn't seem to work.

    So I almost with the help of the model of module, a decline in the amount of 1 - and hoping I can use a custom template for the display of the small product instead since I use that related products.

    I forgot something? Is it possible to use a custom template for the {tag_relatedproducts}?

    Thank you Joel however I have more control over the layout as a few styles of it. I ended up jumping in with the beta version of liquid to get what I need, what gave me some other customizations.

    TAGS cannot take a custom template variable, I chose to store it in a tag "capture." So based on some conflicts of naming of my catalog images, I was able to target specific catalogs, then browse related products and build them up as I wanted.

    Here is an example of what I chose to go with.

    {capture products %} %

    {tag_productlist, true true, 3,}

    {% for %} endcapture

    model {module_catalogue catalogId = "{{this.id"}} "=" "collection ="cat"}

    {tag_name}

    {% If {cat.imageUrl} contains 'show' and ({{this.id}} == {{tag_productlist_5_8.catalogId}}%}}

    {tag_productlist, true true, 3,}

    {% elsif {cat.imageUrl} contains "display" %}

    {% for %} tag_productlist_5_8.items products

    REF #: {{product.custom3}}

    MFG #: {{product.custom2}}

    Price: {{product.saleprice}}

     

    {% endfor %}

    {% products.items %} elsif

    {tag_cataloguelist, true true, 2,}

    {% for %} tag_catalogueList_3_9.items products

    Price: {{product.saleprice}}

    {% endfor %}

    {% other %}

    {tag_cataloguelist, true true, 2,}

    {tag_productlist, true true, 3,}

    {% endif %}

  • Customizing the Table of related products

    Working with a sensitive layout, I have a problem with the table of related products using the {tag_relatedproducts}. I got the layout of small product to respond well, but not when it appears in the productTable productItem table of the elements. Tips for each productItem stack, with every other compensation?

    Thanks in advance!

    Never mind. I simply applied the following CSS

    TR .productItem {}

    Width: 100%;

    height: auto;

    Clear: both;

    display: block;

    }

  • Elements of related products that overlap

    Hello

    I put related products at the bottom of the page, I'm trying to adjust the spacing between the elements.

    I can't find the CSS to change this option. Help, please.

    http://puzzlefurniture.worldsecuresystems.com/lounge-Suite/Bolzano-2-seater-sofa

    Thank you!

    Hey,.

    This occurs because the images of 3 products are sqezed in this column - http://screencasteu.worldsecuresystems.com/Mihai/2012-08-06_1133.png

    To avoid this you must overwrite the width = 100% property here - http://screencasteu.worldsecuresystems.com/Mihai/2012-08-06_1134.png - in this example, I put it manually to 800px. The opposite would be to change the layout of the page.

  • See related products in Dreamweaver

    Hi all I am fairly new to all this, so forgive me! I'm doing a site for my brother who will sell the body of the guitar and their corresponding parts. I have install a single mysql - one of the fields database table determines if the input is an organ or a part - there is also a field in which (if it is a part) the body its bound to is entered. Thus part54 maybe related to the Appeal1 for example. I have set up a page in DW CS5 that correctly displays the bodies, I then created a second set of records that I'm trying to filter by the current record in the first Recordset. If the user displays the point number 1 then all the parts related to this product can be listed on the same page (and eventually clicked for more information). I am really struggling to find a way to refer to the current record is displayed in the first set of the second. Please can you advise me? Thus, in English Recordset2 must display all records where the relateditemfield = the currently displayed record. I hope I gave enough information here, please shout if not. Thanks in advance. John.

    Take the information from my last post and reverse the logic... The php code is displayed on your page and not processed by the server because you do not have an opening tag.

  • Question to display related products.

    Hello

    I need a type of "those who watched this also watched these?" of the thing.  You have probably seen on trolleys.  They are common enough, but I'm not sure of the logic.

    I work with PHP & MySQL on a dynamic page of population.  The page can contain any product from the database.

    So if the product being viewed now is class A, I want to display 4 random thumbnails of category A...  Similarly, if the current product is class B, I want pictures of category B and so on...

    I got A LOT of Categories.  So what is the best way to do this?

    Nancy O.

    You would need a column "product_category" in your database.

    When you get the details of the initial product, also get the "product_category" and assign it to a variable:

    $getProductDetails = $conn-> query ("SELECT * FROM Products WHERE the product_id = ' $product_id '") or die ($conn-> error);

    $getProductDetails = $getProductDetails-> fetch_assoc();

    $product_category = $getProductDetails ["product_category"];

    Then check the variable $product_category against the database column "product_category":

    <>

    Get 4 random products to display by category of products table

    $selectRandomProducts = $conn-> query ("SELECT * FROM Products WHERE the product_category = ' $product_category ' ORDER OF RAND() LIMIT 4") or die ($conn-> error);

    ?>

    Then, wrap echo on the results of the $selectRandomProducts variable with the help of some time:

    fetch_assoc()) {? >}

    You should get to where you need to be.

  • URL of default product in case of multiple catalogs

    I have a strange situation with a configuration of ecommerce.

    Customer has a product in the two catalogues. One for the general public and the other for wholesalers (behind a secure area).

    The URL of the product are so something like:

    in line-shop/sub-sub-catalog/product-name

    and

    wholesalers/sub-sub-catalog /-name of the product

    Now, on the public site, they have a product that has the above designated product as a Up-Sell/Cross sell related products.

    The problem is that BC renders the URL of wholesalers for this product when it is listed as a related product, so public users get a page access denied when you click on this product.

    I first thought that affecting the canonical URL to the URL of the public catalogue will arrange but it had no effect.

    BC seems to use the latest catalogue (in alphabetical order) which is attributed to the product as the default URL.

    So the only way I can see to resolve this is to rename catalogs to change the alpha order - but is obviously not if possible.

    (but then the wholesale customers will have something similar, though not as bad)

    I don't think that we can access the different product URLS via module_data / liquid and adjust the product URL programmatically assimilated? or can we?

    Can't think of a way to solve this problem?

    I have the same problem. Upsell-Cross sell products jumping around to one of multiple catalogs not the value default language (or the top of the list).

    Links get generated by the present: the displayed catalog would be chosen on the ID account less.

    ID # are generated in the system.

    You can use the URL redirects.

  • HP LaserJet M425dn MFP 400: This product number is not associated with the supplied serial number.

    I'm checking the the warranty status of my M425dn.

    The warranty registration page, I enter my serial number and click on submit. Website "this product can be identified by the serial number only. Please enter a product number below or change the serial number above. »

    I then enter the number of related product as shown on the back label of the device: CF286A. I click send again. Now the page returns "this product number is not associated with the supplied serial number. Please check your records and make any necessary changes. »

    I have triple checked my serial number and product number. I so need to know the status of the guarantee of this device. What should I do?

    Yes, I am aware of the presentation of the printer and where are product information stickers. In fact, I have pictures of the thumbnails so that I can refer to them without having to look at the back of the unit whenever I need something.

    (In most circumstances, I could use web interface of the device to get information. "(But for some reason, the number of product is not included in the page of information of the device web interface... or any other page)."

    My unit sticker clearly shows CF286A without extra character.

    However, I now know why I have a problem. After stop HP 800-474-6836 support (moved to 800-334-5144) and passing through the quick second support 75 (don't fall for the trick of being told to go online - wait around 10 seconds of silence for the next part of the guest and eventually you will get to the point ask the bot to phone the model information), I was able to speak to a representative very nice who understood that my camera was a replacement warranty and the warranty replacement serial number has never been activated. She finds my serial number with the original purchase of a previous file number, activated the serial number of replacement and after a brief support is now send me another replacement aircraft, from one day to the next day, free of charge.

    It is regrettable that this model has been nothing else into trouble, but it's good to know that the warranty service is not too difficult.

  • Where is the support for Sonicwall products?

    I had a post on a topic that is important here since Friday 21. There is no entry at all. This seems to be a forum "network security" generic, non-specific to sonicwall, but I see nowhere elsewhere on the Dell site for questions on sonicwall products. The old forum of sonicwall is read-only.

    -What is it? It is quite appalling. If support for sonicwall products is this low I would hesitate before buying again the sonicwall.

    Uniquehandle,

    This isn't a technical support forum, a public forum that users and come to ask questions and get assistance with their products.

    Yes, just a forum for network security, they are spotted but especially all the posts here are the Dell SonicWALL UTM product and other related products.

    Yes, there is a lot of activity here of people like me, who work in technical support for Dell SonicWALL. But this isn't a replacement for Technical Support requests.

    No, we are not required to answer questions on this forum, but we do so in the interest of the community and to increase the amount of knowledge that our users have. This helps to learn more about the product and have the ability to help other people on this forum when they display asking questions. There is also no SLA on response to any post on this forum.

    Yes, the SonicWALL forum was read-only for a while that we are Dell SonicWALL and our community is now the responsibility of the Dell family.

    Our support for our products is very strong and only get better every day. Yes, our support is provided with a contract, but this is to make sure that we, Dell SonicWALL, can pay the technicians.

    From what you've posted so that you do not have a support contract with us very probably you don't have a case with Technical Support. If this isn't the case, you do not have a case with technical support and troubleshooting went beyond your support contract send me a DM and I will look into the issue.

    WARNING: It is, in any case form or shape, a guarantee that I have the poster of this response, or any other employee of SonicWALL Dell will be troubleshoot or solve your problem via this medium. It's just to discuss the issue with the opportunity to provide a form of help and guidance with your question.

    #Iwork4Dell

  • Try adding "adding a history of product under consideration."

    I try to add the product given iStory http://docs.businesscatalyst.com/user-manual/e-Commerce/Products/adding-a-viewed-product-h history

    but I get errors in the code when I place:

    {% if globals.cookie.lastVisited %}
    {% assign prodIds = globals.cookie.lastVisited | append: "]" | prepend: "[" | split: "%2C" | join: "," %}
    {module_data resource="products" version="v3" fields="canonicalUrl, name, smallImage" where="\{'id':\{'$in': {{prodIds}} \}\}" collection="lastProducts" template=""}
    <h4>Your last visited products:</h4>
    <ul>
       {% for item in lastProducts.items %}
       <li><a alt="{{item.name}}" href="{{item.canonicalUrl}}"><img alt="{{item.name}}" src="{{item.smallImage}}?Action=thumbnail&Width=50&Height=50"/></a></li>  
       {% endfor %}
    </ul>
    {% endif %}


    Any help would be appreciated.

    Okay, it looks like I did it after 1000 x times of attempts, the structure is as follows:

    STEP 1: create your main template for pages:

    Main model >

    Insert libraries as follows:

    1 - Jquery latest (since I'm working on jQuery v1.11.1)

    2 - Jquery.cookies

    Inside the container, you have your {tag_pagecontent} just after the liquid code provided:

    {tag_pagecontent}

    {% If globals.cookie.lastVisited %}

    {% assign prodIds = globals.cookie.lastVisited: Add: "]"} » | Add: '[' | Split: '%2 C ' | join: ',' %}

    {module_data resources = 'products' version = "v3" field = "canonicalUrl, smallImage" where = "\ {'id': \ {"$dans": \ {{prodIds}}} \}" "lastProducts" =' model collection = ""}

    Your last visited products:

      {% for section in lastProducts.items %}

         

    • {{item.name}}
    • {% endfor %}

      {% endif %}

      STEP 2: This may work ok for you, but I use another way to make my exit of products:

      Inside of your grand - product.tpl (if you use the model liquid custom products) or online store > great - product.html

      Insert the code below: (just as it is! minor errors fixed)

      Always make sure that you don't have a single error on your logs set your JS libraries and avoid conflicts of BC Js.

      If the above doesn't work just try captures all the code in JS order first and LIQUID on your shop online > large - product.html

      Hope this helps the community, and I believe BC should create a possible comments and problems on this page, rather than here.

    • Share of liquid - correct but, syntax Poplets for poplet specific list?

      Hello... I'm just starting to build a site using liquid and it would be great to see snippets of code for how others solve problems. I hope that the community is in place to share.

      I worked on the creation of an image of poplet list:

      < ul >

      {% for poplet in poplets %}

      < li > < img src = "{{poplet.path}}? Action = miniature & amp; Width = 1200 "alt =" {{custom4}} {{name}} "/ > < /li >

      {% endfor %}

      < /ul >

      But can not find a way to get a table/list of specific poplets (so the watch poplet product list 1, poplet 2, then hover). I see done allusion to liquid for Designers · Shopify liquid Wiki · GitHub but don't know if Shopify liquid is exactly the same as liquid BC, so be it I can't understand it.

      If anyone can share, it would be much appreciated.

      Thank you

      Paul

      Hi Paul,.

      I studied more this type of installation - unfortunately at the moment it is not possible to implement a full-fledged liquid powered product list. There are a few things missing (like the ability to get the URL of the catalogue - this not is not implemented immediately), some bugs that need to be sorted - the data types for query parameters create pagination for the products.

      I've added to my to-do list, as soon as all the missing pieces are rejected or fixed, I'll write a tutorial.

      Thank you

      Mihai

    • Clarification of the @Levmbrs VS @Relative

      Hello

      I have the following hierarchy:

      Production of compact
      Subcompact
      Minicompact

      Medium-sized production ('Production Compact' brother)


      When I set on @Levmbrs ("Production Compact", 0) it brings 'Midsize Production' in the calc and it calculates. When I change to @Relative ("Production Compact", 0 ") does not 'production of medium size. Why @Levmbrs would not exclude the "average size"?

      @levmbrs refers to the level zero members of a Dimension while @relative refers to the level zero members under the specified member. Levmbrs is really supposed to use the name of the dimension (look at the tech ref). I guess it's smart enough to know if you select a dimension member, he knows the dimension that you are in and takes all the lev 0 members

    • Can I install the Hyperion, WebLogic, and Oracle products on the same server

      I want to install 11 Hyperion, planning products and related products in a production environment. I find the following statement in the document of Hyperion: "the application server and the Hyperion product that you deploy must be installed on the same computer." This confused me.

      The next is what I think: weblogic server in sever installation 1 (UNIX), install the Oracle server in 2 performance management (UNIX) and install Service Foundation Hyperion Essbase, server and Planning Server 3 (Windows), it's a good solution? What I have to install Weblogic and Hyperion server products in the same Windows machine?
      (Here, contain the Oracle Hyperion and Hyperion willl deployed on Weblogic server repository data). Can recommend you a better solution? I think that, if I use multiple servers for different purposes, the performance may be better.
      Please advise and correct me, thank you!

      Bob

      Yes, if you need to share the burden between products that use web applications then you need to install weblogic on servers that you divide to load between.

      See you soon

      John
      http://John-Goodwin.blogspot.com/

    • {tag_relatedproducts, 6, true}

      Changing {tag_productlist, 3, 100, true} to {tag_productlist, 3, 100, true, true} you can return products like a UL.


      It also works with {tag_relatedproducts}?

      I'm using {tag_relatedproducts, 6, true} right now here is the list of related products, but always a table, does not not in receptive.

      No, but you can use the liquid instead... Re: custom template for related products?

    Maybe you are looking for

    • New Mac, same disk external DRIVE for the library; does not see the files

      I reconnected my iTunes library from a disk external DRIVE to my new computer, but iTunes does not recognize my files of the ALAC instead, he goes to the cloud and plays music from Apple things. How can I listen to my files? All the files are there,

    • Change language querty

      Hello I added a virtual keyboard that supports a QWERTY Hebrew work and it is great, but the physical works in English - y at - it a solution for this?

    • LifeCam 1.4 and Windows 7

      I tried to install MS LifeCam 1.4 software on my laptop with Windows 7. Received a message that there is a compatibility issue. Looking for the solution online. MS solution: IN THE WINDOW of FILE DOWNLOAD, click RUN OR OPEN. PROBLEM: File download wi

    • eHome receiver sometimes does not work after restarting

      Sometimes my Receiver USB ehome stops working after a reboot, and it has the most recent drivers from Microsoft that is the only driver for the device. I use it with Windows Media Center, and sometimes it doesn't work after reboot, or after the relea

    • Activation after I changed to win 7 Home Premium Pro

      I bought and used my drives home premium to install on my laptop, then as a worker for a company, I was given a win7 pro key to simply access the DC, I changed my code and activated, now I try to install my home premium on my computer at home that it