I explained it in the visual below, but let me give more details. We are selling a package of 12 items. Here I am entering the price of the 12-item product, but I want to automatically show the price of one item (9) for this amount.
The discounted price (7.2) of those who make large purchases should also be visible in the table. In this way, the customer can see the item prices more clearly.
In B2BKing you would need to enter the price per piece directly, it's not possible to enter a price per pack. To achieve that setup with a 12-piece product, this would be the best configuration:
(1) Set the prices as follows with a price of 9 and a 20% discount for 24+ items:
(2) Configure a step (product pack) quantity of 12:
This will make it so the quantity automatically goes from 12, to 24, 36, 48 etc. (The customer cannot purchase other quantities outside 12 multiples)
On the frontend it will look like this:
Let me know if you have any questions or anything I can help with,
What I mean to say here is this. As seen in the example image, there is a product that costs 504 TL for 12 pieces (package). There is no single piece sale anyway, but the customer should also see the unit price.
I want to show this. I will only write 504 TL for the 12-package, but with a plugin or a different setting, customers will automatically see that the unit price is sold for 42 TL.
I understand you'd like to show the unit price for your products that are sold in 12-piece packages. B2BKing doesn't have a built-in feature to automatically calculate and display unit prices like that.
If you wish, we can try to provide you with a custom code solution that would divide the main price by 12 to show the per-piece price. Here's a code snippet you can use (add it to your theme's functions.php or a code snippets plugin):
add_action('woocommerce_after_shop_loop_item_title', 'display_unit_price', 11);
add_action('woocommerce_single_product_summary', 'display_unit_price', 11);
function display_unit_price() {
global $product;
$price = $product->get_price();
$unit_price = $price / 12;
echo 'Unit Price: ' . wc_price($unit_price) . ' per piece';
}
But this snippet would simply apply globally to all products.
I am not sure if you need it for specific products only, or if other products have a different package qty, etc.
I explained it in the visual below, but let me give more details. We are selling a package of 12 items. Here I am entering the price of the 12-item product, but I want to automatically show the price of one item (9) for this amount.
The discounted price (7.2) of those who make large purchases should also be visible in the table. In this way, the customer can see the item prices more clearly.
Attached files: wf.jpg
Hello Kerim,
Thank you for purchasing our plugin,
In B2BKing you would need to enter the price per piece directly, it's not possible to enter a price per pack. To achieve that setup with a 12-piece product, this would be the best configuration:
(1) Set the prices as follows with a price of 9 and a 20% discount for 24+ items:
(2) Configure a step (product pack) quantity of 12:
This will make it so the quantity automatically goes from 12, to 24, 36, 48 etc. (The customer cannot purchase other quantities outside 12 multiples)
On the frontend it will look like this:
Let me know if you have any questions or anything I can help with,
Kind regards,
Stefan
What I mean to say here is this. As seen in the example image, there is a product that costs 504 TL for 12 pieces (package). There is no single piece sale anyway, but the customer should also see the unit price.
I want to show this. I will only write 504 TL for the 12-package, but with a plugin or a different setting, customers will automatically see that the unit price is sold for 42 TL.
Attached files: Screenshot (1).png
Hi Kerim,
I understand you'd like to show the unit price for your products that are sold in 12-piece packages. B2BKing doesn't have a built-in feature to automatically calculate and display unit prices like that.
If you wish, we can try to provide you with a custom code solution that would divide the main price by 12 to show the per-piece price. Here's a code snippet you can use (add it to your theme's functions.php or a code snippets plugin):
Kind regards,
Stefan