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
- burt
- Core Team
- Posts: 4551
- Joined: Tue Oct 29, 2019 9:37 am
- Phoenix Version: v1.1.0.8
- : Buy Me A Beverage
- Has thanked: 252 times
- Been thanked: 412 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.
I am not here to build for you.
I am here to build with you. Let's help each other.
I am here to build with you. Let's help each other.
-
shopify
- Member
- Posts: 54
- Joined: Tue Mar 30, 2021 3:36 pm
- Phoenix Version:
- Has thanked: 23 times
- Been thanked: 3 times
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.
- burt
- Core Team
- Posts: 4551
- Joined: Tue Oct 29, 2019 9:37 am
- Phoenix Version: v1.1.0.8
- : Buy Me A Beverage
- Has thanked: 252 times
- Been thanked: 412 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.
I am not here to build for you.
I am here to build with you. Let's help each other.
I am here to build with you. Let's help each other.
-
shopify
- Member
- Posts: 54
- Joined: Tue Mar 30, 2021 3:36 pm
- Phoenix Version:
- Has thanked: 23 times
- Been thanked: 3 times