Skip to content
This repository has been archived by the owner on Aug 30, 2018. It is now read-only.

Update to proper default product variant price #360

Closed
wants to merge 5 commits into from

Conversation

cshold
Copy link
Contributor

@cshold cshold commented Mar 17, 2015

@carolineschnapp Saw you mention this issue in our of our themes, so making the fix here as well. Set the default liquid price to that of the selected variant when set.

Using current_variant to hold product.selected_or_first_available_variant for brevity.

cc/ @stevebosworth @mpiotrowicz @fredryk

Set a class for sold-out and on-sale items
{% endcomment %}
<div class="grid__item {{grid_item_width}}{% if sold_out %} sold-out{% endif %}{% if on_sale %} on-sale{% endif %}">
<div class="grid__item {{grid_item_width}}">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coding style question: we do not include spaces in a Liquid output tag when no filters are applied intentionally?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should definitely have spaces. I'll fix it up.

@cshold cshold closed this Mar 17, 2015
@cshold cshold deleted the product-variant-price branch March 17, 2015 15:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants