- Posts: 637
- Thank you received: 26
upload image with option to choose your own map
9 years 1 month ago - 9 years 1 month ago #278532
by Lumiga
Kind regards,
Lumiga
upload image with option to choose your own map was created by Lumiga
-- HikaShop version -- : 3.2.0
-- Joomla version -- : 3.7.5
-- PHP version -- : 7
Hi Hikashop,
It would be nice when you upload an image for a product or category in Hikashop that you could choose your own (sub)folder.
So you can organise all your images in your own folder structure.
I know there is a setting in the configuration for the upload folder url. But now all images uploaded to Hikashop are stored in the same folder and if you have to select an image from a 500+ images folder it's hard to pick one.
I know I can make folders through FTP or in the Media Manager and upload them there, but in that case you have to leave Hikashop. And that's not user friendly for the customers.
Hope you understand me now
Kind regards,
Lumiga
-- Joomla version -- : 3.7.5
-- PHP version -- : 7
Hi Hikashop,
It would be nice when you upload an image for a product or category in Hikashop that you could choose your own (sub)folder.
So you can organise all your images in your own folder structure.
I know there is a setting in the configuration for the upload folder url. But now all images uploaded to Hikashop are stored in the same folder and if you have to select an image from a 500+ images folder it's hard to pick one.
I know I can make folders through FTP or in the Media Manager and upload them there, but in that case you have to leave Hikashop. And that's not user friendly for the customers.
Hope you understand me now
Kind regards,
Lumiga
Kind regards,
Lumiga
Last edit: 9 years 1 month ago by Lumiga. Reason: Better explanation
Please Log in or Create an account to join the conversation.
9 years 1 month ago #278533
by nicolas
Replied by nicolas on topic upload image with option to choose your own map
Hi,
I don't understand what you mean by "choose your own map".
What is a map ?
If you're talking about folders, note that you can create them via the Joomla media manager. You don't need to use FTP.
I don't understand what you mean by "choose your own map".
What is a map ?
If you're talking about folders, note that you can create them via the Joomla media manager. You don't need to use FTP.
Please Log in or Create an account to join the conversation.
9 years 1 month ago #278570
by Lumiga
Kind regards,
Lumiga
Replied by Lumiga on topic upload image with option to choose your own map
Hi Nicolas,
I have update the issue, so hopefully you will understand me better now.
Kind regards,
Lumiga
I have update the issue, so hopefully you will understand me better now.
Kind regards,
Lumiga
Kind regards,
Lumiga
Please Log in or Create an account to join the conversation.
9 years 1 month ago #278637
by nicolas
Replied by nicolas on topic upload image with option to choose your own map
Hi,
Thank you for your feedback. It's much more clear now.
We'll take that into account for future improvements of that area.
Thank you for your feedback. It's much more clear now.
We'll take that into account for future improvements of that area.
The following user(s) said Thank You: Lumiga
Please Log in or Create an account to join the conversation.
7 years 10 months ago #302002
by jameswadsworth
Replied by jameswadsworth on topic upload image with option to choose your own map
Hi,
has this feature been implemented?
We see in the storeFiles function in the admin files class there is the variable $subPath.
Can this be used to specify a particular sub folder in which to save a file?
Thanks
has this feature been implemented?
We see in the storeFiles function in the admin files class there is the variable $subPath.
Can this be used to specify a particular sub folder in which to save a file?
Thanks
Please Log in or Create an account to join the conversation.
7 years 10 months ago #302005
by nicolas
Replied by nicolas on topic upload image with option to choose your own map
Hi,
No it hasn't.
The SubPath can allow you to specify a particular sub folder in which to save a file when you call the storeFiles function, yes. However, I don't see how that will help you ?
No it hasn't.
The SubPath can allow you to specify a particular sub folder in which to save a file when you call the storeFiles function, yes. However, I don't see how that will help you ?
Please Log in or Create an account to join the conversation.
7 years 10 months ago #302054
by jameswadsworth
Replied by jameswadsworth on topic upload image with option to choose your own map
Hi Nicolas, I hope you had a good Christmas.
The $subPath variable does help up. However we encountered a problem with the function getPath. Even if we passed the $subPath variable to the getPath function, the getPath function only returned the $uploadFolder without the $subPath. To "get it working" we changed the last line in the function getPath to.
Would it also be possible in future releases to add the variable $subPath to the function deleteFiles?
Thanks, James
The $subPath variable does help up. However we encountered a problem with the function getPath. Even if we passed the $subPath variable to the getPath function, the getPath function only returned the $uploadFolder without the $subPath. To "get it working" we changed the last line in the function getPath to.
Code:
return $uploadFolder.$subPath;
Would it also be possible in future releases to add the variable $subPath to the function deleteFiles?
Thanks, James
Please Log in or Create an account to join the conversation.
7 years 10 months ago #302058
by nicolas
Replied by nicolas on topic upload image with option to choose your own map
Hi,
It would be problematic to change the behavior of the subPath function as it will affect HikaMarket which relies on that subPath variable. Changing it will introduct a break of compatibility. It would be better if you could just copy that function in your custom code. Note that if you need to change the behavior of that function being used by other functions in HikaShop, you can do an override of the hikashopFileClass class and redefine that function in your override.
Adding a $subPath variable to the deleteFiles function is possible yes.
It would be problematic to change the behavior of the subPath function as it will affect HikaMarket which relies on that subPath variable. Changing it will introduct a break of compatibility. It would be better if you could just copy that function in your custom code. Note that if you need to change the behavior of that function being used by other functions in HikaShop, you can do an override of the hikashopFileClass class and redefine that function in your override.
Adding a $subPath variable to the deleteFiles function is possible yes.
Please Log in or Create an account to join the conversation.
Time to create page: 0.075 seconds