X Cart functionality with Twig, resources, creating a theme -


i've started making website using x-cart platform.

i've read of pages official documentation, lot of things not match current version of x-cart (5.3).

from understand, switched smarty twig, file locations , hierarchy have changed well. database structure modified , old tables don't have same names.


i'm trying entirely replace header / footer of website. html files included in lists , displayed twig, don't know how find specific files.

also, i've used webmaster kit add-on in order find templates. problem every single element displayed on page built multiple places. of them can found in /customer/layout/, part of lists such layout.header, twig files include wrappers , retrieve rest of code database, @ least that's understanding of situation.

 {##  # header logo  #  # @listchild (list="layout.header", weight="100")  #} <div id="{{ this.getuniqueid('logo') }}" class="company-logo">   <a href="{{ url() }}" title="{{ t('home') }}" rel="home"><img src="{{ this.getlogo() }}" alt="{{ t('home') }}" /></a> </div> 

i tried accessing layout.header through database, table shown in documentation doesn't exist anymore.

could please explain hierarchy , guide me through steps create custom header / footer ?

i did create costum module, still don't know files right edit in order make changes happen on website.

thank you, let me know if need additional details.

the header section defined skins/customer/layout/header/main.header.twig template or can assign needed templates layout.header view list , have same effect. may want remove existing templates , viewer classes list.

all these procedures explained here:

if want templates , viewer classes in list, can run following mysql query:

select * xc_view_lists list="layout.header";

as footer, layout.footer defines area or override skins/customer/layout/footer/main.footer.twigtemplate.

hope, helps.

tony


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -