upload image with option to choose your own map

  • Posts: 342
  • Thank you received: 10
  • Hikashop Business Hikashop Multisite
1 year 4 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: 1 year 4 months ago by Sailfin73. Reason: Better explanation

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

  • Posts: 64471
  • Thank you received: 9312
  • MODERATOR
1 year 4 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: 342
  • Thank you received: 10
  • Hikashop Business Hikashop Multisite
1 year 4 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: 64471
  • Thank you received: 9312
  • MODERATOR
1 year 3 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: Sailfin73

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

  • Posts: 256
  • Thank you received: 2
  • Hikashop Business
2 weeks 6 days 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: 64471
  • Thank you received: 9312
  • MODERATOR
2 weeks 6 days 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: 256
  • Thank you received: 2
  • Hikashop Business
2 weeks 3 days 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: 64471
  • Thank you received: 9312
  • MODERATOR
2 weeks 3 days 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.092 seconds
Powered by Kunena Forum