Käynnissä

Image Fetch add-on script for oscommerce

The text description explains how the script should work so if anything is not clear let me know I will explain in more detail and support with more visuals.

Oscommerce add-on: Image Fetch

Code execution example for ‘Update all images’: (PLEASE REVIEW WHILE ATTACHED IMAGES OPEN)

1. Script scans local Oscommerce DB and looks for ‘Buy URL’

2. Script scans ‘Buy URL’ code and looks for the first specific phrase that I state (only the 1st is important)

3. The script scans for ‘&WaterMark=’ In the phrase that the script finds.

4. Script replaces next char after ‘&WaterMark=’ to ‘0’ (final result: ‘&WaterMark=0’). If no ‘&WaterMark=’ exists then add ‘&WaterMark=0’

5. Script loads URL

6. In new page code add ‘BaseUrl’ + ‘ImageFolder’ + images(‘image1’,image2,image3

EXAMPLE:

BaseUrl="http://imageserver.com/324532/image/";

ImageFolder="shirts/";

Images=("11-133-076-S01,11-133-076-S02,11-133-076-S03,11-133-076-S04,11-133-076-S05,11-133-076-S06,11-133-076-S07,11-133-076-S08,11-133-076-S09,11-133-076-S10,11-133-076-S11").rTrim(",").split(",");

so final path = [url removed, login to view]

WE DOWNLOAD ONLY FIRST IMAGE only 11-133-076-S01. Not S02, S03, etc…

7. Download image to local large products image path

8. Resize to 100 width(example) and constrain proportions(for length). Save to small products image path

9. Enter local large products image file path as ‘large image’ for product in DB

10. Enter local small products image file path as ‘small image’ for product in DB

11. Add ‘image last updated’ in DB

** Support for large image and small image should be implemented throughout the website. (i.e. [url removed, login to view] should display small image when reading product description and when the user clicks on ‘click to enlarge’ it shows the large image. When creating new product there should be fields for small and large images. etc.. **

Make sure you use [url removed, login to view] as an example DB. It contains real ‘Buy URL’ fields in it.

Taidot: tiedonsyöttö, PHP, Komentosarjan asennus, Ostoskärryt, SQL

Näytä lisää: oscommerce watermark images, code update php, buy clicks website, image fetch php code, image fetch download, css background image fetch, image fetch, visuals, large image, image work, image resize, fetch, execution, download image, creating script, add on, php script open file, split file php script, file split php script, php script path, php script image watermark, image enlarge, php download image, php file open save, code add website

About the Employer:
( 35 reviews ) miami, United States

Projektin tunnus: #454513

Myönnetty käyttäjälle:

wildCat

thank you for project!

160 $ USD 4 päivässä
(313 arvostelua)
8.3