F
F
freeman02042016-12-30 16:31:25
PHP
freeman0204, 2016-12-30 16:31:25

How to display a standard slider in opencart 2 on the main page?

prntscr.com/dppb14 As I understand it, there is a standard slider in the banners section called Home Page Slideshow? How now to display it on the main page under the header? Is this done in the admin panel or through code?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
E
Egor, 2016-12-30
@freeman0204

In the admin. In the templates, find home, and install the module in the desired position.

M
Maxim Fedorov, 2017-06-06
@Evgenij_nechujveter

It doesn't work because:
1. You can't override constants declared in an interface
2. You can't override the signature of methods declared in an interface, i.e. if you declared the setVariable($var) method in the interface, then the classes implementing the interface must have exactly the same method with exactly the same parameters
3. The class must implement all the METHODS declared in the interface, but you have the getHtml($template) method in the class BadTemplate is not defined
You should read what interfaces are and how to work with them

V
Vyacheslav, 2017-06-06
@Firik67

1. Install an IDE, copy the code there, look at the error that it will show
2. Read about interfaces again
3. Understand that you need to implement ALL methods in the implementing class declared in the interface

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question