import React from "react"; import { useProduct } from "vtex.product-context"; import styles from "./styles.module.css"; const PixPrice = () => { const inputCep = document.querySelectorAll(".vtex-address-form-4-x-input"); console.log(inputCep); // .placeholder = "Type name here.."; const productContextValue = useProduct(); const productPrice = productContextValue?.product?.priceRange?.sellingPrice?.lowPrice; const descount = (Number(productPrice) * 10) / 100; const total = Number(productPrice) - Number(descount.toFixed(2)); return (
R$ {total.toFixed(2)}
10 % de desconto