Powerstore 3
Can anyone tell me how to make the item/product image optional?
Can anyone tell me how to make the item/product image optional?
on the product insert and update page, delete the following 2 lines:
$WAFV_Errors .= WAValidateRQ(((isset($WA_DFP_UploadStatus["WA_UploadResult2"]["serverFileName"]))?$WA_DFP_UploadStatus["WA_UploadResult2"]["serverFileName"]:"") . "",true,9);
$WAFV_Errors .= WAValidateRQ(((isset($WA_DFP_UploadStatus["WA_UploadResult1"]["serverFileName"]))?$WA_DFP_UploadStatus["WA_UploadResult1"]["serverFileName"]:"") . "",true,10)
OK, I'll do that. Could you give more detail so I can find the page/file and lines? Where is the product insert and update page?
Will this make it OPTIONAL or just no picture?
Thanks.
admin/products_update.php lines 146 - 147
admin/products_insert.php lines 140 - 141
These are the lines that validate whether an image is uploaded or not making them required. By removing the validation, the upload is optional.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.