Adjustment to a PHP script
- or -
Post a project like this2024
£10(approx. $12)
- Posted:
- Proposals: 11
- Remote
- #2134299
- Awarded
Full Stack Developer| POS System Expert | Hybrid Mobile Application Developer | Web APP Developer | Graphic Designer | UI/UX
Chandigarh
Amazon FBA, Amazon Store, eBay Store /Drop shipping, Website Design and development, And Data Entry
Houilles
440408269210935201228928165245219490102116019216536423142262342354546927
Description
Experience Level: Entry
I have a PHP script that is run by a cron job to rearrange an xml file.
The XML file contains product data, ready for import into my website.
The product data gets adjusted by the PHP script to get create extra records for "parent products" (i.e. it checks the SKU field of each product, and if there are some products with a certain character, it recognises these as child products, or options of teh same product, and creates a new record for a "parent product", copying all data from one of teh child products.
However, it does not work quite how i want, because it shoudl create the price field as the lowest value of all related child products., instead it actually just copies the price from another of the the child product, not necessarily the cheapest.
I need someone to tell me a line of code to add, that will make the price for the newly created product the lowest value of any associated product.
The XML file contains product data, ready for import into my website.
The product data gets adjusted by the PHP script to get create extra records for "parent products" (i.e. it checks the SKU field of each product, and if there are some products with a certain character, it recognises these as child products, or options of teh same product, and creates a new record for a "parent product", copying all data from one of teh child products.
However, it does not work quite how i want, because it shoudl create the price field as the lowest value of all related child products., instead it actually just copies the price from another of the the child product, not necessarily the cheapest.
I need someone to tell me a line of code to add, that will make the price for the newly created product the lowest value of any associated product.
GARTH T.
100% (5)Projects Completed
6
Freelancers worked with
5
Projects awarded
32%
Last project
3 Jun 2020
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
Hi
Share more details -
GARTH , please share script details.
709027707164
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies