Post by uebz » Tue Sep 04, 2018 1:18 am

Does OpenCart3.x require Bootstrap to be used in order to create your own theme? Can you create a theme that doesn't use Bootstrap?

Newbie

Posts

Joined
Sat Sep 01, 2018 1:44 pm

Post by straightlight » Tue Sep 04, 2018 1:22 am

Yes, it is a requirement.

- catalog/controller/startup/sass.php file.

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 IP_CAM » Tue Sep 04, 2018 2:49 am

If you don't want Bootstrap to be part of your Opencart, you could use the latest Version 1.5.6.5_rc,
it's a perfect working Code, and you could later still add responsive Themes, if you ever change your mind.
And it will function up to PHP v.7.2.x at least, with only one system/library/encryption.php file to replace:
encryption.php ( for up to PHP-7.x Versions )
viewtopic.php?f=198&t=204707&p=733515#p725077
https://www.opencart.com/index.php?rout ... n_id=34428
https://www.opencart.com/index.php?rout ... n_id=34060
Opencart v.1.5.6.5_rc:
https://github.com/opencart/opencart/tr ... 306fb75707
You just cannot install 1.5.6.5_rc under PHP v.7.x, by use of the default install routine, just to have
this mentioned too. But I linked an install routine for PHP v.7.x on the Forum Page, linked below:
viewtopic.php?f=20&t=206762&p=733511#p733490
Good Luck! ;)
Ernie
---

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by paulfeakins » Tue Sep 04, 2018 7:13 pm

straightlight wrote:
Tue Sep 04, 2018 1:22 am
Yes, it is a requirement.
Really?

Are you sure it's not possible to create an OC theme without it?

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by straightlight » Tue Sep 04, 2018 7:39 pm

paulfeakins wrote:
Tue Sep 04, 2018 7:13 pm
straightlight wrote:
Tue Sep 04, 2018 1:22 am
Yes, it is a requirement.
Really?

Are you sure it's not possible to create an OC theme without it?
Positive. The sass controller will still import the scss file from vendors even though a new theme gets created and even though the bootstrap file has not been added into the header.twig file. However, based on the codes being used from CSS, the browser results may not provide full accuracy based on the SCSS enforcement.

Which is why, this bootstrap 4 documentation exists: https://getbootstrap.com/docs/4.0/getti ... d/theming/
Every Sass variable in Bootstrap 4 includes the !default flag allowing you to override the variable’s default value in your own Sass without modifying Bootstrap’s source code. Copy and paste variables as needed, modify their values, and remove the !default flag. If a variable has already been assigned, then it won’t be re-assigned by the default values in Bootstrap.

Variable overrides within the same Sass file can come before or after the default variables. However, when overriding across Sass files, your overrides must come before you import Bootstrap’s Sass files.
In the case of OC, it does come before (which is not a bad thing). However, the first bolded statement still applies conditionally and the overrides do come after the Sass file has been instantiated in OC.

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 uebz » Wed Sep 05, 2018 5:02 pm

Can we use BootStrap 4?

Newbie

Posts

Joined
Sat Sep 01, 2018 1:44 pm

Post by straightlight » Wed Sep 05, 2018 10:05 pm

Starting from OC v3.1.0.0a, Bootstrap 4 is compatible.

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
Who is online

Users browsing this forum: No registered users and 57 guests