All things Shopify and commerce
Hi partners,
We are using Trade theme in our store and want to implement Volume Pricing.
We tried to use Sami Wholesale app but it had some conflicts with Trade theme, that's why it didn't work properly on a product detail page.
Two questions here:
1. Can we implement Volume Pricing without using any third party app?
2. Can any other wholesale app implement Volume Pricing without conflicting with the Trade theme?
Thanks in advance.
Hi @vinh0225
You can follow this documentation to add volume pricing
https://help.shopify.com/en/manual/b2b/theme-code/quantity-pricing#volume-pricing
Hi,
By use of metafields for pricing tiers, modifying the product template, and using JavaScript to update prices dynamically you can get the solution
Javascript example for Dynamic Pricing
<script>
document.addEventListener('DOMContentLoaded', function() {
var quantityInput = document.querySelector('input[name="quantity"]');
var priceElement = document.querySelector('.product-price');
function updatePrice() {
var quantity = parseInt(quantityInput.value);
var price = parseFloat(priceElement.getAttribute('data-base-price'));
if (quantity >= 10) {
price *= 0.9; // Example: 10% discount for 10+ items
} else if (quantity >= 5) {
price *= 0.95; // Example: 5% discount for 5+ items
}
priceElement.textContent = '$' + price.toFixed(2);
}
quantityInput.addEventListener('input', updatePrice);
});
</script>
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024