Woocomerce Points & Rewards Change Points Rewarded Upon Quantity Change - wordpress

I Have installed Woocommerce Points & Rewards
Now the customer is rewarded with 5 points for 1 item purchased
However, I would like to reward 15 points for the same item purchased when the quantity increases to 2 units.
example:
purchase 1 item A = 5 points
purchase 2 items A = 15 points
How do I do this?

Related

HERE-API wrong route cost on Poland

I am sending a request for a route with costs for a truck. Route Warsaw - Berlin, vehicle parameters
trucks
width 255 cm
height 256 cm
length 13.6 meters
weight 14 tons
number of axles 5
The costs received, unfortunately, due to the number of axles, the api calculates for a category 5 vehicle, see Price kat 5
which is wrong because a category 5 vehicle is a vehicle that meets any of the conditions
width > 255 cm
height > 400 cm
length > 16.5 meters
weight > 42t
The api correctly interprets only the height condition, at a time the API will overinterpret the number of axles which does not affect the category of the vehicle
For an inquiry in accordance with the vehicle parameters, I meet the requirements of the price list for category 4 see Price kat 4
Please help

WooCommerce max quantity per category

I'm looking for a plugin which allows me to set the maximum quantity of a specific product category.
Example: BookA and BookB belong to "SpecialBooks". The user can only buy 3 SpecialBooks. Either
2 x BookA and 1 x BookB, or
3 x BookA but no BookB, etc.
Most of the plugins I've found allow me to set the max quantity on the product category, but this allows the user to buy 3 x BookA and 3 x BookB.

woo-commerce change Item total as per quantity of item

I want to create a woo-commerce plugin that will give a discount as per the quantity of product.
suppose, if price/roll is $1 and in one cartoon there are 36 rolls but cartoon price is $30 then when they add 36 rolls in qty price should be $30. Price for 2-5 cartoon and 6-9 cartoon is different but it in counting or in calculation we only consider the rolls, suppose 2-5 cartoon price is $0.9, if rolls are 100 then consider $0.9, 6-9 cartoon price is $0.8 and customer add 250 rolls then consider price $0.8.

Calculate how much a point is worth based on played games

My problem I have is that I need to calculate out how much a point is worth based on played games.
If a team plays a match it can get 3 points for a win, 1 point for a tie and 0 points for a loss.
And the problem here is following:
Team 1
Wins:8 Tie:2 Loss:3 Points:26 Played Games: 13
Team 2
Wins:8 Tie:3 Loss:4 Points:27 Played Games: 15
And here you can see that Team 2 has 1 more point than Team 1 has. But Team 2 has played 2 more matches and have a lesser win % then Team 1 has. But if you should list these two then Team 2 would get a higher "rating" then Team 1 has.
So how should the math look for this to make it fair? where Team 1 will have a better score here then Team 2 ?
Just divide by the number of games to get the average points per game played.
Team1: 2.0 ppg
Team2: 1.8 ppg
Okey first of all thanks for the help.
And the solution of this is the following:
p/pg * p = Real points
p = Sum(points),
pg = Played games
So for the example up top the real points will be:
Team 1: 52
Team 2: 48.6

Limit the height of bar chart in R

I have data divided in almost 25 categories. Almost all of the categories have 1000 or less products in each except for 2 or 3 categories which have more than 3000 or 4000 products. So when i plot the barchartGC of products vs categories because of these 2/3 categories rest of the bars looks very small.
I was wondering if there is any way in which we divide the height of our bar charts in 2 or 3 levels. First level for less than 1000 products and second level for those more than that products.

Resources