Hello Ming,
Please correct me, if I am incorrect at any point.
To display an image in konakart front-end, I need to handle 2 things: (1) upload the image at KonaKart\webapps\konakart\images\prod\ (2) set the path of uploaded images to product's tables in konakartadmin. Path here should refer to 'prod/' folder in point-1.
Now the suggested method "scaleImage" applies scaling and copies the file from source to target folder. So should I use this method to achieve above point-1 ? How should I generate folder structure within 'prod/' folder for different products ?
Once I achieve point-1 then I know the related properties to set for image path in admin product object.
Please advice.
regards,
Abhed
Please correct me, if I am incorrect at any point.
To display an image in konakart front-end, I need to handle 2 things: (1) upload the image at KonaKart\webapps\konakart\images\prod\ (2) set the path of uploaded images to product's tables in konakartadmin. Path here should refer to 'prod/' folder in point-1.
Now the suggested method "scaleImage" applies scaling and copies the file from source to target folder. So should I use this method to achieve above point-1 ? How should I generate folder structure within 'prod/' folder for different products ?
Once I achieve point-1 then I know the related properties to set for image path in admin product object.
Please advice.
regards,
Abhed