Hello All,
I want to amend my categories.php file to save category images to catalog/images/category
I'd amended it by changing this:
const DIR_FS_CATALOG_IMAGES = DIR_FS_CATALOG . 'images/';
to const DIR_FS_CATALOG_IMAGES = DIR_FS_CATALOG . 'images/category/';
This worked except now I had a problem - my product images were now being saved in images/category/. I had no idea product images and category images used the same file I'd amended.
So how would I go about achieving this?
Category Images
-
- Lead Developer
- Posts: 2439
- Joined: Tue Oct 29, 2019 9:37 am
- : Buy Me A Beverage
- Has thanked: 51 times
- Been thanked: 138 times
Re: Category Images
You made a global change. You need this in a specific place.
You would
(a) undo what you did in the configuration file
and
(b) amend the relevant piece of code in admin/categories.php file.
You would
(a) undo what you did in the configuration file
and
(b) amend the relevant piece of code in admin/categories.php file.
Gamechanger Addon: Queued Emails, try before you buy.
Re: Category Images
I think there is come confusion about the file I amended. To clarify, it was the admin/categories.php file that I made my change and not the configuration file.
-
- Lead Developer
- Posts: 2439
- Joined: Tue Oct 29, 2019 9:37 am
- : Buy Me A Beverage
- Has thanked: 51 times
- Been thanked: 138 times
Re: Category Images
Probably.
If you're able to amend that core code, you are able to amend other core code, right?
Have a think and have a go.
I prefer to show people how to fish, rather than give them a fish.
If you're able to amend that core code, you are able to amend other core code, right?
Have a think and have a go.
I prefer to show people how to fish, rather than give them a fish.
Gamechanger Addon: Queued Emails, try before you buy.