Finished up another interesting osCommerce project this week, which involved allowing the shop owner to put a “flag” on a product. This flag determines whether the product requires interaction from the customer in terms of an upload (think in terms of an image for a printed t-shirt).
Step 1 was to add in the flag capability. Easy, I simply added an extra column in the category structure, along with the relevant DB changes.
Step 2 was to add in the upload facility in the account_history_info.php page. There is a contribution that allows file uploads from the product_info.php but this was unsuitable as the site already has too much complications in contributions – QTPro, different attributes and so on.
When the files are chosen, they are uploaded and show in the page;
Step 3 was to allow the Shop Owner to grab the files, make the product and use the order.php page as so;
to uploads images of the product;
At this point, Shop Owner emails the client asking him/her to log in to the account_history_info page.
Step 4 the account_history_info page shows the two client uploaded images and the two admin uploaded images.
along with “Fancy Box” popup to show the two admin images larger;
At this point, the client can “approve” the product, or “reject” the product – and tell the Shop Owner why.
If the product is rejected, the Admin/order shows this;
The Shop Owner makes the corrections, and uploads the images of the new product using the orders page. The customer can now see the new product and can again “approve” or “reject”;
This time, the product is perfect, so the customer “approves”.
The Shop Owner can now send the product to the customer.
As you can see, quite a big task, and fiddly to get right. This involved changes across multiple files, though the two main files changed are admin/orders.php and account_history_info.php
A very nice project to work on, and I am very pleased with the end result. As is my client;
….you did a great job….