Rank: Advanced Member
Groups: Member
Joined: 6/16/2009(UTC) Posts: 134
Was thanked: 8 time(s) in 8 post(s)
|
Hello! Quote:01. Is it possible to have bulk prices? i.e. give the customer a discount when he orders 50 10x15's (instead of normal price of i.e 0.50 cents a price of 0.45 cents. Yes! It is the standard Virtuemart feature. You can set different prices for different quantities. Go to Administer, open the properties of the product you want to set prices for. Then click List Prices button and add new price. Quote:02. Is it possible to predefine the order details? I have now the problem that sometimes they forget to choose between a gloss or a matt finish. For example if photo 01 is added and they forget to assign the finish when photo 2 is added and a gloss finish is selected, when you then switch back to photo 01 a gloss finish is selected. But to make it more complicated when photo 03 is added and an matt finish is choosen, when you switch to photo 01 then photo 01 finish is matt, when you then switch to photo 02 and then back to photo 01 the finish is gloss! To prevent this i thought to have this predefined. Maybe in the backend an extra option with the attributes in the photoorder module? I've tried to reproduce this strange behavior, but with no success. When I change attributes and then click Apply to all, it applies to all files, currently added into the upload list. If I change attributes and does not click Apply to all button, it applies only for selected files. Note, that there are possible to select several files and then it applies to each selected file. But I found another bug when I add file, set order details, then remove from upload list and add again - the order details are not shown in the description field for that file. I've fixed it in the attached photoorder.js file. Please, replace components/com_photoorder/assets/photoorder.js with this one, and replace code into the components/com_photoorder/views/order/tmpl/default.php from this: Code://Add event handlers.
iu.addEventListener("SelectionChange", "ImageUploader1_SelectionChange");
iu.addEventListener("BeforeUpload", "ImageUploader1_BeforeUpload");
to that: Code://Add event handlers.
iu.addEventListener("SelectionChange", "ImageUploader1_SelectionChange");
iu.addEventListener("BeforeUpload", "ImageUploader1_BeforeUpload");
iu.addEventListener("UploadFileCountChange", "ImageUploader1_UploadFileCountChange");
I've also add additional check in BeforeUpload event handler to unsure if the customer specify order details for all selected files: Code:if (missingFiles.length > 0) {
alert('You need to specify order details for this files:\r\n' + missingFiles.join(', '));
return false; // do not start upload
}
Quote:03. Also is it possible to have the qauntity also always to start with 1. I thought to predefine this in components/com_photoorder/models/photoorder.php Here in the function addToCart() i changed the $quantity = 0; to $quantity = 1; but this didn't helped Yes. I've made the necessary changes in the photoorder.js file. Find this code and change the 'Quantity' string to your localized name of this attribute. Code:// set default value for Quantity attribute
if (!val && el.name == 'Quantity') {
val = 1;
}
To add quality meter you need to set QualityMeterFormats parameter. Add this code: Code://Configure quality meter.
iu.addParam("QualityMeterFormats", "9 x 13,1800,1200,1.5;10 x 15,2100,1500,1.5;13 x 18,3000,2400,1.5;15 x 21,4000,3200,2;20 x 30,6000,4000,2");
into the components/com_photoorder/views/order/tmpl/default.php file before Code://Tell Image Uploader writer object to generate all necessary HTML code to embed
//Image Uploader to the page.
iu.writeHtml();
The detailed explanation how to configure quality meter you can find in the documentation. Edited by user Wednesday, April 14, 2010 10:38:46 PM(UTC)
| Reason: Not specified |