Page 1 of 1

Where to place custom .scss files for catalog?

Posted: Tue Apr 17, 2018 3:57 pm
by anvasila
Hello everyone,

I use opencart 3.0.2.0 and I try to add a new file for my custom css styles. But i can't find where to add them. I try to edit the catalog/controller/startup/sass.php file but as i can see it never excecuted. I already enable the Sass from admin but no changes.

I try to add in index.php this, but with no result again.
require_once(VQMod::modCheck(DIR_SYSTEM . 'sass.php'));

Finally i try to add @import "../custom"; in view/theme/default/stylesheet/sass/bootstrap/_bootstrap.scss but no success again......

I don't know what else i can do. I search in web but i couldn't find a solution.

I need your help. Thank you in advance!!!

Re: Where to place custom .scss files for catalog?

Posted: Tue Apr 17, 2018 8:50 pm
by straightlight
Any changes you make needs to involve these steps afterwards: viewtopic.php?f=176&p=718325#p717782 (only if the 2nd link steps fails) and viewtopic.php?f=176&p=718325#p718325

Re: Where to place custom .scss files for catalog?

Posted: Wed Apr 18, 2018 1:24 pm
by ostechnologies
You can place it under catalog > view > stylesheet / custom.css and provide its path in header.twig file.

Re: Where to place custom .scss files for catalog?

Posted: Fri Oct 27, 2023 7:52 pm
by parkookk
Hi,
Where should I add the custom-style.scss file?

Re: Where to place custom .scss files for catalog?

Posted: Mon Oct 30, 2023 8:43 pm
by paulfeakins
ostechnologies wrote:
Wed Apr 18, 2018 1:24 pm
You can place it under catalog > view > stylesheet / custom.css and provide its path in header.twig file.
Yes I think this is probably the best way.