Flash sale Discounted price issue

I have made conditions of flash sale but the product in the flash sale is not be added with the dicounted price
there is my code is anyone help me

{% assign discount_percentage = section.settings.discount_percentage %}
{% assign discount = discount_percentage | divided_by: 100.0 %}

{{ section.settings.section_title }}

{% for product in section.settings.flash_sale_products %} {% assign variant = product.variants.first %} {% assign original_price_cents = variant.price %} {% assign original_price = original_price_cents | divided_by: 100 %} {% assign discount_amount = original_price | times: discount %} {% assign discounted_price = original_price | minus: discount_amount %}

{% assign formatted_original_price = original_price | money | replace: “₹”, “” | replace: “.”, “” %}
{% assign formatted_discounted_price = discounted_price | money | replace: “₹”, “” | replace: “.”, “” %}

Flash Sale
{{ product.featured_image | img_tag }}

{{ product.title }}

Rs. {{ formatted_original_price }}

Rs. {{ formatted_discounted_price }}

Add to Cart
{% endfor %}
/* Your existing styles */

{% schema %}
{
“name”: “Countdown Flash Sale”,
“settings”: [
{
“type”: “header”,
“content”: “Section Settings”
},
{
“type”: “range”,
“id”: “padding_top”,
“label”: “Section Padding Top”,
“min”: 0,
“max”: 100,
“step”: 1,
“default”: 20
},
{
“type”: “range”,
“id”: “padding_bottom”,
“label”: “Section Padding Bottom”,
“min”: 0,
“max”: 100,
“step”: 1,
“default”: 20
},
{
“type”: “text”,
“id”: “section_title”,
“label”: “Section Title”,
“default”: “Flash Sale”
},
{
“type”: “range”,
“id”: “title_padding_top”,
“label”: “Title Padding Top”,
“min”: 0,
“max”: 100,
“step”: 1,
“default”: 10
},
{
“type”: “range”,
“id”: “title_padding_bottom”,
“label”: “Title Padding Bottom”,
“min”: 0,
“max”: 100,
“step”: 1,
“default”: 10
},
{
“type”: “product_list”,
“id”: “flash_sale_products”,
“label”: “Select Products for Flash Sale”
},
{
“type”: “number”,
“id”: “discount_percentage”,
“label”: “Discount Percentage”,
“default”: 20
},
{
“type”: “text”,
“id”: “end_time”,
“label”: “Countdown End Time (YYYY-MM-DDTHH:MM:SSZ)”,
“default”: “2024-12-31T23:59:59Z”
}
],
“presets”: [
{
“name”: “Countdown Flash Sale”,
“category”: “Custom”
}
]
}
{% endschema %}