upload image with option to choose your own map

  • Posts: 584
  • Thank you received: 22
  • Hikaserial Subscription Hikashop Multisite
6 years 7 months ago #278532

-- 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


Kind regards,
Lumiga
Last edit: 6 years 7 months ago by Lumiga. Reason: Better explanation

Please Log in or Create an account to join the conversation.

  • Posts: 81504
  • Thank you received: 13064
  • MODERATOR
6 years 7 months ago #278533

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.

Please Log in or Create an account to join the conversation.

  • Posts: 584
  • Thank you received: 22
  • Hikaserial Subscription Hikashop Multisite
6 years 7 months ago #278570

Hi Nicolas,

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.

  • Posts: 81504
  • Thank you received: 13064
  • MODERATOR
6 years 7 months ago #278637

Hi,

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.

  • Posts: 272
  • Thank you received: 3
5 years 3 months ago #302002

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

Please Log in or Create an account to join the conversation.

  • Posts: 81504
  • Thank you received: 13064
  • MODERATOR
5 years 3 months ago #302005

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 ?

Please Log in or Create an account to join the conversation.

  • Posts: 272
  • Thank you received: 3
5 years 3 months ago #302054

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.

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.

  • Posts: 81504
  • Thank you received: 13064
  • MODERATOR
5 years 3 months ago #302058

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.

Please Log in or Create an account to join the conversation.

Time to create page: 0.078 seconds
Powered by Kunena Forum