Carousel Slider Sale price/reviews Dawn Theme

Hi,

I have integrated a carousel slider to my shopify store and now the problem is, it only shows the regular price and not pulling up the sale price and reviews. I want it to show identical like how it is in featured collection regular and sale price side by side and reviews in between.

Much appreciated for help and thanks in advance.

FEATURED COLLECTION:

CAROUSEL:

CAROUSEL CODE:

{%- capture flickity_options -%}
{
  "prevNextButtons": true,
  "pageDots": false,
  "contain": true,
  "cellAlign": "left",
  "groupCells": true,

  "arrowShape": {"x0": 20, "x1": 60, "y1": 40, "x2": 60, "y2": 35, "x3": 25}
  
}
{%- endcapture -%}
 

{% if section.settings.title != blank %}

  ## {{ section.settings.title | escape }}

{% endif %}
 
{%- assign collection = collections[section.settings.collection] -%}
{%- assign product_limit = section.settings.product_count -%}
 
    
      {% for product in collection.products limit: product_limit %}
        

           
            
            ### {{ product.title }}
              

{{ product.price | money }}

        
          
      
  
    {% endfor %}
   
    

{% schema %}
{
  "name": "Collection Slider",
  "settings": [
    {
      "type": "text",
      "id": "title",
      "label": "Heading",
      "default": "Featured Collection"
    },
    {
      "type": "collection",
      "id": "collection",
      "label": "Collection"
    },
    {
      "type": "range",
      "id": "product_count",
      "min": 4,
      "max": 12,
      "label": "Number of products to display",
      "default": 4
    }
  ],
  "presets": [
    {
      "category": "Collection",
      "name": "Collection Slider",
      "settings": {}
    }
  ]
}
{% endschema %}

Hi @Javsi

We have checked and corrected the CAROUSEL CODE you sent. Please try copying it and replacing the old code:

{%- capture flickity_options -%}
    {
          "prevNextButtons": true,
          "pageDots": false,
          "contain": true,
          "cellAlign": "left",
          "groupCells": true,
        
          "arrowShape": {"x0": 20, "x1": 60, "y1": 40, "x2": 60, "y2": 35, "x3": 25}
          
        }
{%- endcapture -%}

    {% if section.settings.title != blank %}
        

            ## {{ section.settings.title | escape }}
        

    {% endif %}
    {%- assign collection = collections[section.settings.collection] -%}
    {%- assign product_limit = section.settings.product_count -%}
    
        {% for product in collection.products limit: product_limit %}
            

                
                    
                        ### {{ product.title }}
                        
                            
                        

                        
                            {%- unless product.price_varies == false and product.compare_at_price_varies %}
                                {{ 'products.product.price.regular_price' | t }}
                                
                                    <s>
                                        {% if settings.currency_code_enabled %}
                                            {{ compare_at_price | money_with_currency }}
                                        {% else %}
                                            {{ compare_at_price | money }}
                                        {% endif %}
                                    </s>
                                
                            {%- endunless -%}
                            

{{ product.price | money }}

                        

                    
                

            {% endfor %}
        

    

    
        
            rel="stylesheet"href="https://unpkg.com/flickity@2/dist/flickity.min.css"
            {% schema %}
            {
  "name": "Collection Slider",
  "settings": [
    {
      "type": "text",
      "id": "title",
      "label": "Heading",
      "default": "Featured Collection"
    },
    {
      "type": "collection",
      "id": "collection",
      "label": "Collection"
    },
    {
      "type": "range",
      "id": "product_count",
      "min": 4,
      "max": 12,
      "label": "Number of products to display",
      "default": 4
    }
  ],
  "presets": [
    {
      "category": "Collection",
      "name": "Collection Slider",
      "settings": {}
    }
  ]
}{% endschema %}

I hope that it will work for you.