PLEASE first read carefully before providing your offer!!!
We are looking for a PHP Expert that knows WooCommerce very well.
We have a PHP snippet where I need some help. Here the code of the SNIPPET: [login to view URL]
- - - -
What does the current snippet do?
It creates a shortcode that looks e.g. like this: [animal-img id=9660 bg-color=#92462B product-id=2799,2801 price-rotation=1000 ]
animal-img = is an image like this: [login to view URL]
the image is a PNG. it is white and the animal in the middle is transparent.
bg-color = is the background color which shall fill the background from bottom to top according to the % of products sold
product-id = these are the products which are defining the %
price-rotation = the amount which would represent 100%
- - - - -
so the functionality is the following (example below):
the sum of all sales (from the past) from the products with the IDs = 2799,2801 is for example 12.385€
the price-rotation is set at 1.000€. So every 1000€ it would be 100%. And above it would start over. So 1010€ would be 1%.
the result of 12.385€ would be that it shows the image and its bg-color is filled up to 38,5% (from bottom to top).
Like this the costumers see how much of the animal is already sold. The price-rotation is eventually the price of one animal.
Looking at our example again: if the price-rotation would be set at 2.000€, it would at restart at 12.000€, and the % filled would be 19,25%.
- - - -
NOW comes the tasks I'm looking for
1) When the PRODUCTS (as defined by the product IDs) are "NOT IN STOCK", the image should be filled 100%.
2) Currently the SNIPPET is only working for the ID of PRODUCTS and not for the VARIATIONS of products, this needs to change. Also VARIATIONS need to work.
3) The current percentage of how much is sold should be shown as figure in a layer on top of the image -> like this: [login to view URL]
4) For point 3, the shortcode should get an extra information which defines the position of this percentage figure // e.g. the shortcode should include "position=10,15" // this would mean the text appears (starting point on the left bottom) 10px to the right and 15px to the top // the text should be aligned left and of the class=h2
I look forward to your quotes!
15 freelancers estão ofertando em média €69 para esse trabalho
I’m a Professional Software Engineer, specialized in WordPress, PHP. Currently working in a software a company since 2015, I can do this for you. Message me for further discussion.