1001 Freelance Projects
Latest Projects from
Freelance Marketplaces
View Project
View this project in detail
(Note: you will be redirected to external marketplace)
Project title:
WooCommerce PHP/Javascript Scripting
Posted by:
External project from PeoplePerHour
Started:
13-Apr-2023 18:54 GMT
Description:
Hello, I'm building a custom plugin for my own personal use. It allows me to view the dimensions of a file I have uploaded. It outputs the height and the width. This part is completed.

What you must do: I have a number of pre-defined print-sizes, which I can list in pixels. For example:
A4 equals 1984x2816 pixels
A5 equals 1398x1984 pixels
30x30 Square equals 2900x2900 pixels
etc.

I would like a script to create a number of HTML checkboxes based on suitability of the pre-defined print-size compared to the uploaded image size. An uploaded image sized 2000x2900 pixels will yield a high quality print, at 240 DPI, when produced at A4 size (requires no less than 1984x2816 pixels).

There should be some deviation allowed, perhaps 500 pixels or 5%, whatever is easier to code.

In this example the script would highlight A4 as the most 'suitable' print size (can be done with a css class 'match') as the exact size is within the deviation of 500 pixels of 5%. All the other print sizes that are smaller than A4 and match the print aspect ratio should now also be available as checkboxes, no additional class should be added. ie. A5 equals 1398x1984 pixels.

The aspect ratio is important. Notice we have a size called '30x30 Square' which equals 2900x29000 pixels. I would like this option to be available as a checkbox, however I want a class attached called 'mismatch', which I will use to note that though the pixel size is suitable, the aspect ratio will be completely incorrect.

A final example. The user supplies image dimensions 1400 x 2000 pixels. Result would be one single checkbox "A5" as it is the only suitable size available. It would have the class 'match', as it is within the deviation of 500 pixels or 5%.

There should follow a 'submit' button, titled 'add to variations.

That ends the first part of the script.

The second part I need your help with; I wish to take the user's selection(s) and create a new attribute group, we'll hard-code it's name "print_dimensions". With each selected checkbox, as above, your script will create a new attribute term (if it does not exist already) and attach to this product, it will also create a variation from the attribute with the default price of: 10.00 and no stock management.

This should all happen via AJAX, with NO page reload.

I can provide some example code, where I have attempted these functions, but I do not have the skill to complete the coding. I need professional help!

Thanks kindly,
Project ID:
3320842
Project category:
Project budget:
View this project in detail
(Note: you will be redirected to external marketplace)
Last Projects / Browse Projects
  Project Started
AGIT SUDIANTO
Category: Public Relations, System Admin
Budget: $10 - $30 USD
01 Apr 2023 16:04 GMT
Brand Manager for Medical Content Writing
Category: Artificial Intelligence, Content Writing, Medical Writing, Technical Writing
Budget: $250 - $750 USD
01 Apr 2023 16:04 GMT
Logo for after school program
Category: Graphic Design, Illustration, Logo Design, Photoshop, T Shirts
Budget: $10 - $30 USD
01 Apr 2023 16:04 GMT
I need a soldering specialist -- 2
Category: Electrical Engineering, Electronics, Engineering, Soldering
Budget: £250 - £750 GBP
01 Apr 2023 16:04 GMT
Simple copy typing work
Category: Copy Typing, Data Entry, Data Processing, Excel, Word
Budget: ₹1500 - ₹12500 INR
01 Apr 2023 16:03 GMT
Japanese to Chinese translation (hentai game translation/long term)
Category: Japanese Translator, Simplified Chinese Translator, Translation
Budget: $750 - $1500 USD
01 Apr 2023 16:03 GMT
Logo Brand
Category: 3D Design, Graphic Design, Illustration, Logo Design, Photoshop
Budget: $15 - $25 USD
01 Apr 2023 16:02 GMT
Bakerved Ayurvedic Cookies
Category: HTML, Web Design
Budget: ₹12500 - ₹37500 INR
01 Apr 2023 16:01 GMT
Sewing pattern designer
Category: Fashion Design, Pattern Making
Budget: $10 - $30 USD
01 Apr 2023 16:00 GMT
graphic designer needed
Category: Brochure Design, Corporate Identity, Covers & Packaging, Graphic Design, Logo Design
Budget: $15 - $25 USD
01 Apr 2023 16:00 GMT
Add 2 Images to Shopify Page
Category: CSS, HTML, Shopify, Shopify Templates, Web Design
Budget: $10 - $30 USD
01 Apr 2023 15:59 GMT
Excellent fiction story needed.
Category: Creative Writing, Fiction, Ghostwriting, Romance Writing
Budget: $150 - $400 USD
01 Apr 2023 15:56 GMT
Small Azure project for 12$ only.
Category: Azure, Microsoft Azure
Budget: $2 - $8 CAD
01 Apr 2023 15:54 GMT
BUSCO DESARROLLADOR WEB CON EXPERIENCIA COMPROBABLE EN DISEÑO FRONT-END Y BACK-END
Category: SEO, Shopify, Web Hosting, Web Design, WordPress
Budget: $2 - $8 AUD
01 Apr 2023 15:54 GMT
Looking a flutter developer to customer my application source code
Category: Flutter, IPhone, JavaScript, Mobile App Development
Budget: ₹1500 - ₹12500 INR
01 Apr 2023 15:54 GMT
Browse All Projects
Projects by Skills ...
android
ajax
asp
aspnet
cms
cpp
csharp
css
delphi
design
drupal
excel
facebook
flash
html
java
javascript
joomla
iphone
mysql
photoshop
php
python
ruby
seo
sql
sysadm
translate
typing
twitter
vbnet
xml
wordpress
writing
New!
Проекты на русском
(Projects in Russian)

Copyright © 2005-2022
1001 Freelance Projects