News - CrystalCommerce Liquid Documentation for Designers

News

Added Checkout Summary Hook

Nov 30, 2013 Added Checkout Summary Hook

Per ticket #6339, I’ve added the ability to specify in the admin a snipped of markup that will be inserted into the head of the document on checkout. See the docs under features for more info.


Updated Advanced Search Liquid and Javascript

Jul 17, 2013 Updated Advanced Search Liquid and Javascript

Per ticket #5697, we’ve updated the advanced_search.liquid to remove some dependencies on prototype. The autocomplete now uses jQuery UI autocomplete. The Edit/New form controls are now accessible from the liquid template.

The additions are:

<div class="advanced_search_form_controls">
  <a href='#' id='edit_advanced_search'>Edit Advanced Search</a>
  |
  <a href='/advanced_search' id='new_advanced_search'>New Advanced Search</a>
</div>
{% if search_performed %}
...
{% endif %}
<script language="javascript" type="text/javascript">
  jQuery(function($){
    $("#advanced_search_form input[data-autocomplete]").each(function(index, el) {
      $(el).autocomplete({
        source: $(el).attr('data-autocomplete'),
        minLength: 2,
        select: function(e, ui) {
          $(e.target).val(ui.item.value);
        }
      });
    });

    if ($("#advanced_search_form").attr('data-search-performed') == "true") {
      $("#advanced_search").hide();
    } else {
      $(".advanced_search_form_controls").hide();
    }

    $('#edit_advanced_search').click(function() {
      $('#advanced_search').toggle();
    });
  });
</script>


Disable prototype javascript library

Jul 1, 2013 Disable prototype javascript library

Added the disable_prototype flag to the theme config. This will disable prototype responses from the server, and stop the loading of prototype in your HTML head.


Add debug to js_minify_tag

Jun 13, 2013 Add debug to js_minify_tag

Added the debug flag to the js_minify_tag filter, works the same as the css_minify_tag flag. See the theme_config for more details.



New site layout

Jun 10, 2013 New site layout

As you can tell, I’ve updated the look of this docs site and moved a few things around. This was part of the process to move from jekyll to middleman. I was getting really tired of the jekyll templating with liquid and markdown.

If you find anything missing or acting strange, let me know.


Sort Variants By Price

May 15, 2013 Sort Variants By Price

The variants attribute on the product drop will return in descending order by price. It will use sell price in normal mode and buy price in buy order mode.


Added tag_list to page drop

May 14, 2013 Added tag_list to page drop

Added the tag_list attribute to the page drop, editedable in the admin. Good for putting different pages in different menues.

{% if page.tag_list contains 'topmenu' %}
  <li class="page_item"><h2><a href="{{ page.url }}">{{ page.title }}</a></h2></li>
{% endif %}

Added Static Buylist Export

May 12, 2013 Added Static Buylist Export

A store can now enable a static buylist download for their customers. A drop has been added to the buylist homepage which allows you to link to this download if it is available. For example:

{% if static_buylist.enabled? %}
  <a href="{{ static_buylist.csv_download_url }}">Download our buylist as CSV</a>
{% endif %}