A
A
alexiusgrey2022-02-07 22:51:09
WordPress
alexiusgrey, 2022-02-07 22:51:09

How to make a product from 50 pieces have a different price?

I'm more interested in the snippet without plugins, but I'm also considering free plugins.
There is a snippet that changes the price by a certain percentage depending on the units of the product in the cart, but there is anyone, there can be 10 pieces of five different products, not 50 pieces of one.
Maybe somehow through a new numeric meta-field? I can add them.
For example, <50 take the value from the standard _price/_variation_price, and substitute 50< from your own _opt_price?
Has anyone done something similar?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
rPman, 2022-02-08
@rPman

https://woocommerce.com/products/dynamic-pricing/ ( description in Russian )

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question