Main Directory¶
root/
├── app/
│ ├── addons/ <- Add-ons and extensions
│ ├── controllers/ <- Controllers, processing of requests
│ ├── functions/ <- Platform funtions
│ ├── lib/ <- Third party PHP libraries
│ ├── payments/ <- Payment methods
│ ├── schemas/ <- Various PHP schemas
│ └── Tygh/ <- Platform classes
├── design/
│ ├── backend/ <- Admin panel design
│ └── themes/ <- Storefront design (site themes)
├── images/ <- Images and thumbnails
├── install/ <- Installation files
├── js/
│ ├── addons/ <- JavaScript add-on scripts
│ ├── lib/ <- Third party JavaScript libraries
│ └── tygh/ <- JavaScript platform scripts
├── var/
│ ├── cache/ <- Cache
│ ├── files/ <- Export/import files
│ ├── downloads/ <- Files of digital products and applications
│ ├── langs/ <- Translations
│ └── themes_repository/ <- Themes and templates for installation
├── admin.php <- Admin login script
├── index.php <- Buyer login script
├── api.php <- API login script
├── config.local.php <- Web server settings
├── config.php <- Core settings
└── init.php <- Core connection
App: Controllers, Classes, Functions, Libraries¶
Language: PHP
root/
└── app/
├── addons/ <- Add-ons and extensions
│ ├── [add-on id]/ <- Folder name matches add-on id
│ ├── banners/ <- Banners
│ ├── seo/ <- SEO
│ └── ... <- etc.
│
├── controllers/ <- Controllers:
│ ├── backend/ <- Admin panel
│ ├── common/ <- Common
│ └── frontend/ <- Storefront
│
├── functions/ <- Platform functions:
│ ├── smarty_plugins/ <- Smarty Plugins
│ ├── fn.catalog.php <- Work with products and catalog
│ ├── fn.cart.php <- Work with orders, checkout
│ ├── fn.common.php <- Common functions
│ ├── fn.fs.php <- Work with files
│ ├── ... <- Other functions
│ └── fn.users.php <- Work with customers
│
├── lib/ <- Third party libraries:
│ ├── other/ <- Smarty, lessphp, PHPMailer, CAPTCHA etc.
│ ├── pear/ <- Crypt, GeoIp, PEAR, Text, Diff
│ └── vendor/ <- Library connection
│
├── payments/ <- Payment methods:
│ ├── paypal.php <- PayPal
│ └── ... <- and others
│
├── schemas/ <- PHP schemas:
│ ├── block_manager/ <- Blocks and block manager
│ ├── exim/ <- Export/Import CSV
│ ├── menu/ <- Admin panel menu
│ ├── permissions/ <- Privileges and access rights
│ ├── promotions <- Promotions
│ └── ... <- and others
│
└── Tygh/ <- Platform classes:
├── Api/ <- Classes and methods of the RestFULL API
├── BlockManager/ <- Classes and methods of blocks
├── Shippings/ <- Classes and methods of shipping methods
├── Database.php <- Database methods
├── Http.php <- Methods for POST and GET requests
├── Registry.php <- Registry repository methods
└── ... <- and others
Admin Panel Templates and Design¶
Languages: Smarty, CSS, Less
root/
│
└ design/ <- Templates and styles
│
└ backend/ <- Admin panel
├─ css/ <- CSS and LESS styles
│ ├── addons/ <- Add-on styles
│ │ ├─ [module_id]/ <- Folder name matches add-on id
│ │ ├─ hybrid_auth/
│ │ ├─ seo/
│ │ └─...
│ │
│ ├── lib/ <- Style libraries
│ │ ├─ 960/
│ │ ├─ bootstrap_switch/
│ │ ├─ daterangepicker/
│ │ ├─ twitterbootstrap/
│ │ └─ui
│ ├── glyphs.css <- CSS styles
│ ├── styles.less <- LESS styles
│ └── ...
│
├─ mail/ <- Templates for email notifications and mailing lists
│ ├── media/ <- Static data for emails:
│ │ └─ images/ <- Images
│ └── templates/ <- Email templates by sections
│ ├─ addons/
│ ├─common/
│ ├─ companies/
│ ├─ orders/
│ ├─ payments/
│ └─profiles/
│
├─ media/ <- Static data:
│ ├── fonts/ <- Fonts
│ └── images/ <- Images
│ ├─ addons/
│ ├─ block_manager/
│ ├─ lib/
│ └─ ...
│
└─ templates/ <- Admin panel templates
├── addons/ <- Add-ons by folders
│ ├─ hybrid_auth/
│ ├─ seo/
│ ├─ banners/
│ └─ ...
├── buttons/ <- Buttons
│ ├─ button.tpl
│ ├─ colorpicker.tpl
│ ├─ save.tpl
│ └─ ...
├── common/ <- Common templates
│ ├─ scripts.tpl
│ ├─ styles.tpl
│ ├─ price.tpl
│ └─ ...
├── pickers/ <- Pop-ups
│ ├─ categories/
│ ├─ products/
│ ├─ users/
│ └─ ...
└── views/ <- Controller (page) templates
├─ payments/
├─ products/
├─ categories/
└─ ...
Storefront Templates and Design (Site Themes)¶
Languages: Smarty, CSS, Less
root/
│
└ design/ <- Templates and styles
│
└ themes/ <- Themes
│
└ [theme_name]/ <- Folder with theme files
│ For example: basic or responsive
├── css/ <- Basic CSS or LESS styles
│ ├── addons/ <- Add-on styles
│ │ ├ [addon_id]/
│ │ ├ banners/ <- «Banners management» add-on
│ │ ├ hybrid_auth/ <- «Social Login» add-on
│ │ └ ... <- other add-ons
│ │
│ ├── lib/ <- Style libraries
│ │ ├ bootstrap/
│ │ └ ui/
│ │
│ ├── base.css <- CSS files and LESS themes
│ ├── grid.less
│ ├── print.css
│ ├── styles.css
│ └── ...
│
├── layouts/ <- Layout schemas for theme installation
│ ├── layouts_multivendor.xml
│ ├── layouts_ultimate.xml
│ └── layouts_widget_mode.xml
│
├── mail/ <- Email and invoice templates
│ ├── media/ <- Static data
│ └ images/ <- Images
│ └── templates/ <- Templates
│ ├ addons/ <- Add-ons by folders
│ │ ├ [addon_id]/
│ │ ├ news_and_emails/
│ │ └ ...
│ ├ orders/ <- When ordering
│ ├ promotions/
│ └ ...
│
├── media/ <- Static data
│ ├── fonts/ <- Fonts
│ └── images/ <- Images
│ ├ addons/
│ │ ├ [addon_id]/
│ │ ├ image_zoom/
│ │ └ ...
│ ├ icons/ <- Icons
│ ├ lib/
│ ├ patterns/
│ └ ...
│
├── styles/ <- Styles from the wysiwyg editor
│ ├── data/
│ │ ├ [style_name].css <- Style CSS
│ │ ├ [style_name].less <- Style LESS
│ │ ├ [style_name].png <- Style icon
│ │ └ ...
│ ├── manifest.json <- List of styles
│ └── schema.json <- Wysiwyg editor settings
│
└── templates/ <- Smarty templates
├── addons/ <- Hooks and add-on templates
│ ├ [addon_id]/
│ ├ banners/
│ └ ...
├── blocks/ <- Blocks
│ ├ categories/ <- Blocks of the category list (menu)
│ ├ checkout/ <- For the checkout page
│ ├ list_templates/ <- Product list templates
│ ├ menu/ <- Menu
│ ├ pages/ <- Blocks of the page list (menu)
│ ├ product_filters/ <- Product filters
│ ├ product_list_templates/ <- Category page templates
│ ├ product_tabs/ <- Product tabs
│ ├ product_templates/ <- Product detail page
│ ├ products/ <- Product blocks
│ ├ static_templates/ <- Static templates
│ ├ wrappers/ <- Block wrappers
│ └ [template_name].tpl <- Various templates
├── buttons/ <- Buttons
│ └ [button_name].tpl
├── common/ <- Common templates (samples)
│ ├ [template_name].tpl
│ ├ scripts.tpl <- All scripts connection
│ ├ styles.tpl <- All styles connection
│ ├ price.tpl <- Price showing
│ ├ product_data.tpl <- Product data processing
│ └ .... <- and others
├── pickers/ <- Pop-up windows for object selection
│ ├ categories/ <- "Select category" window
│ └ products/ <- "Select product" window
├── views/ <- Main platform templates
│ ├ block_manager/ <- Render blocks
│ │ └ render/
│ │ ├ location.tpl <- Header, content, footer
│ │ ├ container.tpl <- Connection of the container with sections
│ │ ├ grid.tpl <- Connection of the block section
│ │ └ block.tpl <- Block connection
│ │
│ ├ [controller_name]/ <- Controller templates
│ │ └ [mode].tpl <- Controller mode template
│ ├ categories/
│ ├ checkout/
│ ├ products/
│ └ ...
├ 404.tpl <- 404
├ index.tpl <- Page building
└ meta.tpl <- Meta data