Skip to content
This repository has been archived by the owner on Jul 18, 2024. It is now read-only.

YSHOP2-375: Wording update for section/blocks settings #310

Merged
merged 3 commits into from
Apr 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions sections/feature-products-by-category.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

{% style %}
.section-featured-products-by-category-{{id}}{
padding-top: {{ section.settings.padding_top }}px;
padding-bottom: {{ section.settings.padding_bottom }}px;
padding-top: {{ section.settings.space_top }}px;
padding-bottom: {{ section.settings.space_bottom }}px;
}
.section-featured-products-by-category-{{id}} .yc-section-title{
margin-top: 0;
Expand Down Expand Up @@ -44,7 +44,7 @@
{%- endfor -%}
{%- endpaginate %}
</div>
{% if section.settings.link_of_collection_by_category == true %}
{% if section.settings.show_more_button == true %}
<div class='button-container'>
<a href='/collections/{{ category.slug }}' class='yc-btn'>{{ 'general.show_more_button' | t }}</a>
</div>
Expand Down Expand Up @@ -84,22 +84,22 @@
},
{
"type": "range",
"id": "padding_top",
"id": "space_top",
"min": 5,
"max": 160,
"step": 1,
"unit": "px",
"label": "Padding Top",
"label": "Space Top",
"default": 10
},
{
"type": "range",
"id": "padding_bottom",
"id": "space_bottom",
"min": 5,
"max": 160,
"step": 1,
"unit": "px",
"label": "Padding Bottom",
"label": "Space Bottom",
"default": 10
},
{
Expand All @@ -116,8 +116,8 @@
},
{
"type": "checkbox",
"id": "link_of_collection_by_category",
"label": "Link of collection by category",
"id": "show_more_button",
"label": "Show more button",
"default": true
},
{
Expand Down
6 changes: 3 additions & 3 deletions templates/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,15 @@
"settings": {
"number_of_products": 8,
"show_compare_at_price": true,
"link_of_collection_by_category": true,
"show_more_button": true,
"countdown_message": "<p>Hurry up! There aren't many items left in stock.<\/p>",
"countdown_year": 0,
"countdown_month": 0,
"countdown_day": 0,
"countdown_hour": 0,
"countdown_minute": 0,
"padding_top": 20,
"padding_bottom": 30,
"space_top": 20,
"space_bottom": 30,
"category": "2bab572d-5197-418d-9072-1f0b82ff9fb8",
"section_title_position": "center"
}
Expand Down