<div class='sora_product_item_size'>
<span class='sora_size'>Size </span>
<span class='sora_addropicon'>
<select class='item_size' id='productSize'>
<option value='small'>Small</option>
<option value='medium'>Medium</option>
<option value='large'>Large</option>
</select>
</span>
</div>
<div class='sora_product_item_price item_price'>
<b>Timestamp Label</b>
<span class='sora_product_price' id='productPrice'></span>
</div>
<div class='sora-product-buy-buttons'>
<a class='item_add' href='javascript:;' onclick='addToCart()'>
<span class='add_product'><i class='fa fa-cart-plus'/>Add to Cart</span>
<span class='product_added'><i class='fa fa-check'/>Product Added</span>
</a>
<a class='sora-cart-view' href='/p/cart.html'><i class='fa fa-eye'/>View Cart</a>
<a class='sora-cart-payment' href='/p/checkout.html'><i class='fa fa-credit-card'/>Checkout</a>
</div>
<script>
function addToCart() {
var selectedSize = document.getElementById('productSize').value;
var productPrice = /* Logic to get the product price based on size */;
document.getElementById('productPrice').innerText = productPrice;
// Additional logic to add the product to the cart
// You might want to use AJAX to communicate with a server
// and update the user's cart.
}
</script>
uper ke code ko paste kare niche diye code DELETE KARNA HAI KYOKI YE APPKO DO BAR ADD TO CART VIEW TO CART AND PROCEED TO CART KAR DEGA
<div class='sora_product_item_size'><span class='sora_size'>Size </span><span class='sora_addropicon'><select class='item_size'><span class='sora_product_size meta-size'/></select></span></div>
<div class='sora_product_item_price item_price'><b><data:allBylineItems.timestamp.label/></b><span class='sora_product_price meta-price'/></div>
<div class='sora-product-buy-buttons'>
<a class='item_add' href='javascript:;'><span class='add_product'><i class='fa fa-cart-plus'/>Add to Cart</span><span class='product_added'><i class='fa fa-check'/>Product Added</span></a>
<a class='sora-cart-view' href='/p/cart.html'><i class='fa fa-eye'/>View Cart</a>
<a class='sora-cart-payment' href='/p/checkout.html'><i class='fa fa-credit-card'/>Checkout</a>
</div>
<b:include data='post' name='postLabels'/>
<b:include data='post' name='postShareButtons'/>
uper diye gaye code ko is se badal de yadi appke product ke type alag hai ye bottle strip and tube ko set karega
<div class='sora_product_item_size'>
<span class='sora_size'>Type </span>
<span class='sora_addropicon'>
<select class='item_size'>
<option value='bottle'>Bottle</option>
<option value='tube'>Tube</option>
<option value='strip'>Strip</option>
</select>
</span>
</div>
<div class='sora_product_item_price item_price'>
<b><data:allBylineItems.timestamp.label/></b>
<span class='sora_product_price meta-price'/>
</div>
<div class='sora-product-buy-buttons'>
<a class='item_add' href='javascript:;'>
<span class='add_product'><i class='fa fa-cart-plus'/>Add to Cart</span>
<span class='product_added'><i class='fa fa-check'/>Product Added</span>
</a>
<a class='sora-cart-view' href='/p/cart.html'><i class='fa fa-eye'/>View Cart</a>
<a class='sora-cart-payment' href='/p/checkout.html'><i class='fa fa-credit-card'/>Checkout</a>
</div>
<b:include data='post' name='postLabels'/>
<b:include data='post' name='postShareButtons'/>
and in post heml apne image ke niche isko paste kare or according apne rate ko set kare
<div class="mashhaa_product_item_price item_price show"><b>Price:</b><span class="mashhaa_product_price meta-price">RS.65.00</span></div>
$ ko change karne ke liye kya kare
UPER DIYE GAYE CODE ME RS NAHI INR DALNA HAI
Comments
Post a Comment