Download the PHP package albert-sointula/yii2-shop without Composer
On this page you can find all versions of the php package albert-sointula/yii2-shop. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download albert-sointula/yii2-shop
More information about albert-sointula/yii2-shop
Files in albert-sointula/yii2-shop
Package yii2-shop
Short Description E-commerce module for Yii2 framework
License
Informations about the package yii2-shop
Yii2-shop module
Powerful E-commerce module for Yii2 framework.
Installation
1. Add extension ti your project:
Run command
or add
to the require section of your composer.json.
2. You should configure "authManager" component in common configuration file:
3. Set "Yii2-multi-lang" component in backend configuration file:
4. Set "Yii2-locale" extension in frontend configuration file:
5. Set Dektrium-user module:
in frontend config:
in backend config:
in common configuration file:
6. Apply migrations:
7. Add configuration for Imagable module in common configuration file:
8. Add module to your backend config
9. Add module to your frontend config
10. Set "Yii2-email-templates" module in frontend configuration file:
https://github.com/black-lamp/yii2-email-templates
11. Set Static-page module:
Add StaticPageManager role to your admin user in auth_assignment table. Create new static pages with page keys "shop" and "cart". In your backend configuration file add this:
REQUIRES
- PHP-version: 7.0 or later
- PHP-extensions: file-info, imagick, intl
Roles and its permissions:**
attributeManager
- addAttributeValue
- deleteAttribute
- saveAttribute
- viewAttributeList
countryManager
- saveCountry
- viewCountryList
- deleteCountry
currencyManager
- updateCurrency
- viewCurrencyList
- deleteCurrency
deliveryMethodManager
- saveDeliveryMethod
- viewDeliveryMethodList
- deleteDeliveryMethod
orderManager
- deleteOrder
- deleteOrderProduct
- viewOrder
- viewOrderList
orderStatusManager
- saveOrderStatus
- viewOrderStatusList
- deleteOrderStatus
productAvailabilityManager
- saveProductAvailability
- viewProductAvailabilityList
- deleteProductAvailability
productManager
- createProduct
- createProductWithoutModeration
- deleteOwnProduct
- deleteProduct
- updateOwnProduct
- updateProduct
- viewCompleteProductList
- viewProductList
productPartner
- accessAdminPanel
- createProduct
- createProductWithoutModeration
- deleteOwnProduct
- deleteProduct
- updateOwnProduct
- updateProduct
- viewCompleteProductList
- viewProductList
shopCategoryManager
- saveShopCategory
- viewShopCategoryList
vendorManager
- saveVendor
- viewVendorList
- deleteVendor
paymentManager
- viewPaymentMethodList
- savePaymentMethod
- deletePaymentMethod
shopAdministrator extends permissions from all managers.
WIDGETS
Recommended products
Example:
Also you may use albertgeeca\shop\widgets\assets\RecommendedProductsAsset in your view.
Filtration widget
To use the widget, you must have set up relations in the models. For example in model Product:
LOGGING
Your application can record how many people watched a particular product. To enable logging, you must add the following settings in the frontend configuration file:
In it, you specify the number of products, which is stored in the table shop_product_views for one user. This value can be 'all', ie infinitely.
If the 'maxProducts' property value is "all", the "views" of Product object increases by one for a registered user once. Otherwise it will increase by one each time when registered user views product.
TRANSLATIONS
The module has translations on several languages. If there is not your language or if you would like change its on your own, you can configure it in backend or frontend configuration file:
Admin pages
- Shop main static page /admin/seo/static/save-page?page_key=shop&languageId=2
- Categories /admin/shop/category/index
- Products /admin/shop/product/index
- Countries /admin/shop/country/index
- Vendors /admin/shop/vendor/index
- Attributes /admin/shop/attribute/index
- Availability statuses /admin/shop/product-availability/index
- Currency /admin/shop/currency/index
REPORTS
- "Class 'Imagick' not found"
If you use OpenServer with PHP 7, you must install Imagick extension like here http://open-server.ru/forum/viewtopic.php?f=4&t=2897&hilit=imagick
Products displaying
You can select one of two modes: showing products of current category and its children or only current category. Use property $showChildCategoriesProducts in frontend Module class configuration. migration:
Logging This configuration is for Shop module and Cart module.
For enable logging add log component to your common configuration file:
Then apply migration, but only after you will configure your app. The migration will create tables for log targets, which are listed in configuration.
In backend and frontend configuration of your module add
Vendor list
- /shop/vendor
Partner requests email Create new templates 'partner-request-manager' and 'partner-request-partner': /admin/email-templates/default/list
You can use next variables: '{contact_person}', '{company_name}', '{website}', '{message}', '{name}', '{surname}', '{patronymic}', '{info}'
Also create template 'partner-request-accept' without variables.
Information about new product by product partner to manager - template 'new-product-to-manager'. You can use next variables: {productId}, {title}, {ownerId}, {ownerEmail}, {owner}, {link} For sending information abount new product to partner which created this product, add template 'new-product-to-partner' with variables {productId}, {title}, {ownerId}, {ownerEmail}, {owner}, {link}.
If product is moderated and status is 'accept' the mail 'accept-product-to-owner' will be sent. You may use variables: {title}, {ownerEmail}, {owner}, {link}
Links
Dektrium-User module: https://github.com/dektrium/yii2-user
All versions of yii2-shop with dependencies
yiisoft/yii2 Version >=2.0.4
yiisoft/yii2-bootstrap Version *
yii2tech/ar-position Version *
black-lamp/blcms-staticpage Version 0.*
black-lamp/yii2-multi-lang Version ^1.0.0
black-lamp/yii2-locale Version 0.7.6
black-lamp/yii2-seo Version 0.1.*
black-lamp/yii2-imagable Version 1.*
black-lamp/yii2-email-templates Version ^3.0.0
kartik-v/yii2-widgets Version *
marqu3s/yii2-summernote Version 1.0.0
evgeniyrru/yii2-slick Version 1.0.1
rmrevin/yii2-fontawesome Version ~2.17