Post by rammi22 » Wed Feb 09, 2022 3:42 pm

Hello,

System: OC v3.0.3.7

As i understand, there is a SASS extension installed out of the box. But when i try to use SASS, the code no executed:

Code: Select all

// custom.scss
body {
    background: blue;
    &.test {
    	background: yellow;
    }
}
...

the assigned HTML:

Code: Select all

...
<body class="text">
...
Expected: body.background = yellow
Actual: body.background = blue

I've found the settting in the admin area:
Image

It's hard to see, if acrive is enabled because of the color, but in the source code the input are enabled.

I'am looking for documentation part about how to use SASS, if not available maybe any link to a tutorial would be helpfull.

Greets

Attachments

Bildschirmfoto vom 2022-02-09 08-33-55.png

Bildschirmfoto vom 2022-02-09 08-33-55.png (155.64 KiB) Viewed 3341 times


Newbie

Posts

Joined
Tue Feb 08, 2022 2:53 am

Post by straightlight » Sat Feb 12, 2022 11:27 pm

If this issue hasn't been reported on Github Opencart repository already, I would suggest to do so in this case. In the meantime, your topic title states that you're using OC v3.0.3.8 version whereas your first post indicates: 3.0.3.7 . Therefore, if this issue has to be reported on Github Opencart repository, then it would have to be for OC v3.0.3.8 release at this time.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by Gergely » Wed Feb 16, 2022 1:00 am

rammi22 wrote:
Wed Feb 09, 2022 3:42 pm

Code: Select all

// custom.scss
body {
    background: blue;
    &.test {
    	background: yellow;
    }
}
...

Code: Select all

...
<body class="text">
...
Possibly just a typo? The scss targets body.test, your html has body.text. Though seeing that this topic is almost a week old, you probably have figured that out by now...

Active Member

Posts

Joined
Wed Sep 30, 2020 7:58 pm

Post by parkookk » Fri Oct 27, 2023 7:33 pm

Hi, anybody knows how to use SASS in Opencart 3038?
Thanks

I am using English OpenCart 3.0.3.8, Default Template/Theme, php 7.4, Latest Brave Browser (No Ads-Blocker, etc.)


User avatar
Active Member

Posts

Joined
Thu Jan 17, 2013 11:56 pm
Location - london

Post by SohBH » Sat Oct 28, 2023 6:18 pm

Hi, Sass allows you to avoid repetition. Use Live Sass Compiler to compile it.

View all extensions | Request custom work | Pricing | Contact Me


User avatar
Active Member

Posts

Joined
Mon Nov 02, 2020 12:01 am
Location - Malaysia
Who is online

Users browsing this forum: No registered users and 12 guests