- Posts: 640
- Thank you received: 16
Change in the path for the images stored
- PeterChain
-
Topic Author
- Offline
Less
More
11 years 1 month ago #213784
by PeterChain
Change in the path for the images stored was created by PeterChain
-- HikaShop version -- : 2.6.5
-- HikaMarket version -- : 1.6.5
Before the update to 1.6.5 my images uploaded with my vendor from frontend used to be stored in this route
http://mydomain/media/com_hikashop/upload/ my_product_image.jpg
and since the update they get stored here
http://mydomain/media/com_hikashop/upload/ my_product_image.jpg
This causes me problems with other self made solutions that retrieve images directly from the original path.
Is this new path just a new "handling policy" of your code? Shall I change this with some Configuration settings?
Thank you.
-- HikaMarket version -- : 1.6.5
Before the update to 1.6.5 my images uploaded with my vendor from frontend used to be stored in this route
http://mydomain/media/com_hikashop/upload/ my_product_image.jpg
and since the update they get stored here
http://mydomain/media/com_hikashop/upload/ my_product_image.jpg
This causes me problems with other self made solutions that retrieve images directly from the original path.
Is this new path just a new "handling policy" of your code? Shall I change this with some Configuration settings?
Thank you.
Please Log in or Create an account to join the conversation.
11 years 1 month ago #213792
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Change in the path for the images stored
Hi,
I'm sorry but you wrote twice the exact same path
Regards,
I'm sorry but you wrote twice the exact same path
http://mydomain/media/com_hikashop/upload/ my_product_image.jpg
http://mydomain/media/com_hikashop/upload/ my_product_image.jpg
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
The following user(s) said Thank You: PeterChain
Please Log in or Create an account to join the conversation.
- PeterChain
-
Topic Author
- Offline
Less
More
- Posts: 640
- Thank you received: 16
11 years 1 month ago #213818
by PeterChain
Replied by PeterChain on topic Change in the path for the images stored
Woow! So ridiculous I am!
this is the real thing:
Before the update to 1.6.5 my images uploaded with my vendor from frontend used to be stored in this route
http://mydomain/media/com_hikashop/upload/vendor1/ my_product_image.jpg
and since the update they get stored here
http://mydomain/media/com_hikashop/upload/ my_product_image.jpg
this is the real thing:
Before the update to 1.6.5 my images uploaded with my vendor from frontend used to be stored in this route
http://mydomain/media/com_hikashop/upload/vendor1/ my_product_image.jpg
and since the update they get stored here
http://mydomain/media/com_hikashop/upload/ my_product_image.jpg
Please Log in or Create an account to join the conversation.
11 years 1 month ago #213844
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Change in the path for the images stored
Hi,
Yes, the new path is for me the right one ; it was a bug fix.
With the multivendor version, we separate the folders the each vendor have his own folder and can't access to images of other vendors.
But for the main vendor or with HikaMarket front-end, the vendor is the manager of the entire store and should have access to all images.
Regards,
Yes, the new path is for me the right one ; it was a bug fix.
With the multivendor version, we separate the folders the each vendor have his own folder and can't access to images of other vendors.
But for the main vendor or with HikaMarket front-end, the vendor is the manager of the entire store and should have access to all images.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
- PeterChain
-
Topic Author
- Offline
Less
More
- Posts: 640
- Thank you received: 16
11 years 1 month ago #213855
by PeterChain
Replied by PeterChain on topic Change in the path for the images stored
OK, I understand.
So now as I have maybe thousands of images inside vendor1, to make my own software compatible with both folders without having to reenter all vendor1 images to upload folder, can I use a symlink as an extention?
Wil it work or will it provide unexpected results in hikashop / hikamarket?
So now as I have maybe thousands of images inside vendor1, to make my own software compatible with both folders without having to reenter all vendor1 images to upload folder, can I use a symlink as an extention?
Wil it work or will it provide unexpected results in hikashop / hikamarket?
Please Log in or Create an account to join the conversation.
11 years 4 weeks ago #213906
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Change in the path for the images stored
Hi,
I'm not sure that HikaShop/HikaMarket will handle correctly symlinks.
If you really want all images in the same folder, I see two kind of solutions :
- Move all images (and thumbnails) in the "upload" folder and then update the "file" database table to replace "vendor1/" by "" (using a mass-action for example).
- Edit the HikaMarket "product" controller to replace the block
By
In order to re-set the "vendor1" folder for new uploads.
Regards,
I'm not sure that HikaShop/HikaMarket will handle correctly symlinks.
If you really want all images in the same folder, I see two kind of solutions :
- Move all images (and thumbnails) in the "upload" folder and then update the "file" database table to replace "vendor1/" by "" (using a mass-action for example).
- Edit the HikaMarket "product" controller to replace the block
Code:
if($vendor_id > 1)
$options['sub_folder'] = 'vendor'.$vendor_id.DS;
Code:
$options['sub_folder'] = 'vendor'.$vendor_id.DS;
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
- PeterChain
-
Topic Author
- Offline
Less
More
- Posts: 640
- Thank you received: 16
11 years 3 weeks ago #214234
by PeterChain
Replied by PeterChain on topic Change in the path for the images stored
Please Log in or Create an account to join the conversation.
11 years 3 weeks ago #214236
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Change in the path for the images stored
Hi,
My bad, the product files are not handle by the mass action.
I'll create a feature request for Xavier.
So, in that case, a SQL query will be easier.
Regards,
My bad, the product files are not handle by the mass action.
I'll create a feature request for Xavier.
So, in that case, a SQL query will be easier.
Code:
UPDATE #__hikashop_file SET file_path = REPLACE(file_path, 'vendor1/', '') WHERE file_path LIKE 'vendor1/%';
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
The following user(s) said Thank You: PeterChain
Please Log in or Create an account to join the conversation.
- PeterChain
-
Topic Author
- Offline
Less
More
- Posts: 640
- Thank you received: 16
11 years 3 weeks ago #214266
by PeterChain
Replied by PeterChain on topic Change in the path for the images stored
Thank you for the SQL hint
Please Log in or Create an account to join the conversation.
- PeterChain
-
Topic Author
- Offline
Less
More
- Posts: 640
- Thank you received: 16
11 years 3 weeks ago #214305
by PeterChain
Replied by PeterChain on topic Change in the path for the images stored
Fixed now thanks to your advise.
Thank you!
Thank you!
Please Log in or Create an account to join the conversation.
Moderators: Obsidev
Time to create page: 0.195 seconds