├── app
└── code
│ └── Apptha
│ ├── Vacationmode
│ ├── view
│ │ ├── adminhtml
│ │ │ ├── web
│ │ │ │ ├── js
│ │ │ │ │ └── js.js
│ │ │ │ ├── css
│ │ │ │ │ ├── css.css
│ │ │ │ │ └── source
│ │ │ │ │ │ └── _module.less
│ │ │ │ └── fonts
│ │ │ │ │ ├── Vacation.eot
│ │ │ │ │ ├── Vacation.ttf
│ │ │ │ │ ├── Vacation.woff
│ │ │ │ │ ├── Vacation.woff2
│ │ │ │ │ └── Vacation.svg
│ │ │ ├── templates
│ │ │ │ ├── vacationmode_index_index.phtml
│ │ │ │ └── vacationmode
│ │ │ │ │ └── vacationmode.phtml
│ │ │ └── layout
│ │ │ │ ├── vacationmode_vacationmode_exportcsv.xml
│ │ │ │ ├── vacationmode_vacationmode_exportexcel.xml
│ │ │ │ ├── vacationmode_vacationmode_new.xml
│ │ │ │ ├── vacationmode_vacationmode_grid.xml
│ │ │ │ └── vacationmode_vacationmode_index.xml
│ │ └── frontend
│ │ │ └── layout
│ │ │ └── default.xml
│ ├── composer.json
│ ├── registration.php
│ ├── etc
│ │ ├── di.xml
│ │ ├── email_templates.xml
│ │ ├── frontend
│ │ │ └── routes.xml
│ │ ├── crontab.xml
│ │ ├── adminhtml
│ │ │ └── routes.xml
│ │ ├── module.xml
│ │ └── cron_groups.xml
│ ├── Block
│ │ └── Adminhtml
│ │ │ ├── Index
│ │ │ └── Index.php
│ │ │ └── Vacationmode
│ │ │ └── Edit
│ │ │ └── Tabs.php
│ ├── Controller
│ │ └── Adminhtml
│ │ │ └── Index
│ │ │ └── Index.php
│ └── Model
│ │ ├── Vacationmode.php
│ │ └── ResourceModel
│ │ ├── Vacationmode.php
│ │ └── Vacationmode
│ │ └── Collection.php
│ └── Marketplace
│ ├── view
│ ├── frontend
│ │ ├── web
│ │ │ └── images
│ │ │ │ ├── stars.png
│ │ │ │ ├── icon_sprite.png
│ │ │ │ ├── plus-minus.png
│ │ │ │ ├── no-store-logo.png
│ │ │ │ ├── no-banner-image.png
│ │ │ │ └── all_review_rating.png
│ │ ├── email
│ │ │ ├── seller_order_notification.html
│ │ │ ├── contactform.html
│ │ │ ├── subscription_seller_notification.html
│ │ │ ├── seller_product_notification.html
│ │ │ ├── seller_product_outofstock_notification.html
│ │ │ ├── seller_order_item_request.html
│ │ │ ├── subscription_admin_notification.html
│ │ │ ├── subscription_sellersuccess_notification.html
│ │ │ └── seller_order_item_cancel_return.html
│ │ ├── templates
│ │ │ ├── success.phtml
│ │ │ ├── product
│ │ │ │ ├── configurableattributes.phtml
│ │ │ │ └── submit.phtml
│ │ │ ├── seller
│ │ │ │ └── sellervideo.phtml
│ │ │ ├── cart.phtml
│ │ │ ├── onepage.phtml
│ │ │ ├── assignproduct
│ │ │ │ └── comparepriceattributes.phtml
│ │ │ └── account
│ │ │ │ └── link.phtml
│ │ └── layout
│ │ │ ├── marketplace_order_items.xml
│ │ │ ├── marketplace_order_items_request.xml
│ │ │ ├── sales_order_item_renderers.xml
│ │ │ ├── marketplace_seller_allseller.xml
│ │ │ ├── marketplace_order_mange.xml
│ │ │ ├── marketplace_seller_review.xml
│ │ │ ├── marketplace_general_changebuyer.xml
│ │ │ ├── marketplace_order_manage.xml
│ │ │ ├── marketplace_order_vieworder.xml
│ │ │ ├── marketplace_seller_profile.xml
│ │ │ ├── marketplace_contact_form.xml
│ │ │ ├── marketplace_product_preview.xml
│ │ │ ├── marketplace_seller_paypal.xml
│ │ │ ├── marketplace_product_manage.xml
│ │ │ ├── marketplace_seller_transactions.xml
│ │ │ ├── marketplace_assignproduct_add.xml
│ │ │ └── marketplace_assignproduct_edit.xml
│ └── adminhtml
│ │ ├── email
│ │ └── contactform.html
│ │ ├── templates
│ │ └── grid
│ │ │ └── view.phtml
│ │ └── layout
│ │ ├── marketplaceadmin_review_index.xml
│ │ ├── marketplaceadmin_sellers_index.xml
│ │ ├── marketplaceadmin_transactions_index.xml
│ │ ├── marketplaceadmin_payments_index.xml
│ │ ├── marketplaceadmin_products_index.xml
│ │ ├── marketplaceadmin_review_grid.xml
│ │ ├── marketplaceadmin_sellers_grid.xml
│ │ ├── marketplaceadmin_payments_grid.xml
│ │ ├── marketplaceadmin_products_grid.xml
│ │ ├── marketplaceadmin_allpayments_index.xml
│ │ ├── marketplaceadmin_allpayments_grid.xml
│ │ ├── marketplaceadmin_transactions_grid.xml
│ │ ├── marketplaceadmin_subscriptionplans_grid.xml
│ │ ├── marketplaceadmin_subscriptionplans_index.xml
│ │ ├── marketplaceadmin_subscriptionprofiles_index.xml
│ │ ├── marketplaceadmin_subscriptionprofiles_grid.xml
│ │ ├── marketplaceadmin_review_edit.xml
│ │ ├── marketplaceadmin_sellers_edit.xml
│ │ └── marketplaceadmin_payments_edit.xml
│ ├── composer.json
│ ├── registration.php
│ ├── Model
│ ├── Session.php
│ ├── Order.php
│ ├── Review.php
│ ├── ResourceModel
│ │ ├── Order.php
│ │ ├── Seller.php
│ │ ├── Payments.php
│ │ ├── Review.php
│ │ ├── Customoption.php
│ │ ├── Orderitems.php
│ │ ├── Subscriptionplans.php
│ │ ├── Subscriptionprofiles.php
│ │ ├── Order
│ │ │ └── Collection.php
│ │ ├── Review
│ │ │ └── Collection.php
│ │ ├── Seller
│ │ │ └── Collection.php
│ │ ├── Orderitems
│ │ │ └── Collection.php
│ │ ├── Payments
│ │ │ └── Collection.php
│ │ ├── Customoption
│ │ │ └── Collection.php
│ │ ├── Subscriptionplans
│ │ │ └── Collection.php
│ │ └── Subscriptionprofiles
│ │ │ └── Collection.php
│ ├── Customoption.php
│ ├── Orderitems.php
│ ├── Payments.php
│ ├── Subscriptionplans.php
│ ├── Subscriptionprofiles.php
│ ├── Config
│ │ └── Source
│ │ │ ├── Isack.php
│ │ │ ├── Status.php
│ │ │ └── Profilestatus.php
│ └── System
│ │ └── Config
│ │ └── Status.php
│ ├── Controller
│ ├── Configuration.php
│ ├── Adminhtml
│ │ ├── Products
│ │ │ └── Grid.php
│ │ ├── Transactions
│ │ │ └── Grid.php
│ │ ├── Allpayments
│ │ │ ├── Grid.php
│ │ │ └── NewAction.php
│ │ ├── Subscriptionprofiles
│ │ │ └── Grid.php
│ │ ├── Sellers
│ │ │ └── Grid.php
│ │ └── Subscriptionplans
│ │ │ └── NewAction.php
│ └── Seller
│ │ ├── Allseller.php
│ │ └── Displayseller.php
│ ├── etc
│ ├── module.xml
│ ├── webapi_rest
│ │ └── events.xml
│ ├── frontend
│ │ └── routes.xml
│ ├── adminhtml
│ │ └── routes.xml
│ ├── crontab.xml
│ └── events.xml
│ └── Block
│ ├── Seller
│ └── Changebuyer.php
│ ├── Onepage
│ └── Failure.php
│ ├── Adminhtml
│ ├── Products.php
│ ├── Subscriptionprofiles.php
│ ├── Subscriptionplans.php
│ └── Allpayments.php
│ └── Contact
│ └── Form.php
└── README.md
/app/code/Apptha/Vacationmode/view/adminhtml/web/js/js.js:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/app/code/Apptha/Vacationmode/view/adminhtml/web/css/css.css:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/view/frontend/web/images/stars.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Apptha/Marketplace-M2/HEAD/app/code/Apptha/Marketplace/view/frontend/web/images/stars.png
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/view/frontend/web/images/icon_sprite.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Apptha/Marketplace-M2/HEAD/app/code/Apptha/Marketplace/view/frontend/web/images/icon_sprite.png
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/view/frontend/web/images/plus-minus.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Apptha/Marketplace-M2/HEAD/app/code/Apptha/Marketplace/view/frontend/web/images/plus-minus.png
--------------------------------------------------------------------------------
/app/code/Apptha/Vacationmode/view/adminhtml/web/fonts/Vacation.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Apptha/Marketplace-M2/HEAD/app/code/Apptha/Vacationmode/view/adminhtml/web/fonts/Vacation.eot
--------------------------------------------------------------------------------
/app/code/Apptha/Vacationmode/view/adminhtml/web/fonts/Vacation.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Apptha/Marketplace-M2/HEAD/app/code/Apptha/Vacationmode/view/adminhtml/web/fonts/Vacation.ttf
--------------------------------------------------------------------------------
/app/code/Apptha/Vacationmode/view/adminhtml/web/fonts/Vacation.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Apptha/Marketplace-M2/HEAD/app/code/Apptha/Vacationmode/view/adminhtml/web/fonts/Vacation.woff
--------------------------------------------------------------------------------
/app/code/Apptha/Vacationmode/view/adminhtml/web/fonts/Vacation.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Apptha/Marketplace-M2/HEAD/app/code/Apptha/Vacationmode/view/adminhtml/web/fonts/Vacation.woff2
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/view/frontend/web/images/no-store-logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Apptha/Marketplace-M2/HEAD/app/code/Apptha/Marketplace/view/frontend/web/images/no-store-logo.png
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/view/frontend/web/images/no-banner-image.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Apptha/Marketplace-M2/HEAD/app/code/Apptha/Marketplace/view/frontend/web/images/no-banner-image.png
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/view/frontend/web/images/all_review_rating.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Apptha/Marketplace-M2/HEAD/app/code/Apptha/Marketplace/view/frontend/web/images/all_review_rating.png
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | Marketplace
2 | ===========
3 |
4 | Apptha Marketplace extension used to sell multi-vendors products into single store. It's allows sellers to add/edit/delete their products and customer buy multi-vendors product in single store.
5 | Seller can add different types of product. Also admin will get commission based on seller products.
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "apptha/marketplace",
3 | "description": "Apptha Marketplace Extension ",
4 | "require": {
5 | "magento/magento-composer-installer": "*"
6 | },
7 | "type": "magento2-module",
8 | "version": "1.1",
9 | "extra": {
10 | "map": [
11 | [
12 | "*",
13 | "Apptha/Marketplace"
14 | ]
15 | ]
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/app/code/Apptha/Vacationmode/view/adminhtml/web/css/source/_module.less:
--------------------------------------------------------------------------------
1 | @vacationmode-icons-admin__font-name-path: "@{baseDir}Apptha_Vacationmode/fonts/Vacation";
2 | @vacationmode-icons-admin__font-name : 'VacationMode';
3 | .lib-font-face(
4 | @family-name: @vacationmode-icons-admin__font-name,
5 | @font-path: @vacationmode-icons-admin__font-name-path,
6 | @font-weight: normal,
7 | @font-style: normal
8 | );
9 | .admin__menu .item-parent.parent.level-0 > a:before {
10 | font-family: @vacationmode-icons-admin__font-name;
11 | content: "\2708";
12 | }
13 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/view/frontend/email/seller_order_notification.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | {{template config_path="design/email/header_template"}}
4 |
5 |
6 |
7 |
8 | Hi {{var seller_name}}, Kindly check out the details
9 | on the latest product[s] purchased. Buyer Name: {{var
10 | buyer_name}} Email id: {{var buyer_email}} Order id:
11 | #{{var increment_id}}
12 |
13 | {{layout handle="marketplace_order_items" order_id=$order_id
14 | seller_id=$seller_id area="frontend"}}
15 |
16 |
17 |
18 |
19 | {{template config_path="design/email/footer_template"}}
20 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/view/frontend/email/contactform.html:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 | {{template config_path="design/email/header_template"}}
10 |
11 |
12 |
14 |
15 |
16 |
17 |
18 |
19 |
20 | Name : {{var name}} E-mail : {{var email}} Contact No. :
21 | {{var contact}} Message : {{var message}}
22 |
23 |
24 |
25 |
26 | {{template config_path="design/email/footer_template"}}
27 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/view/adminhtml/email/contactform.html:
--------------------------------------------------------------------------------
1 |
4 |
10 |
11 | {{template config_path="design/email/header_template"}}
12 |
13 |
14 |
16 |
17 |
18 |
19 |
20 |
21 |
22 | Name : {{var name}} E-mail : {{var email}} Contact No. :
23 | {{var contact}} Message : {{var message}}
24 |
25 |
26 |
27 |
28 | {{template config_path="design/email/footer_template"}}
29 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/view/frontend/email/subscription_seller_notification.html:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 | {{template config_path="design/email/header_template"}}
10 |
11 |
12 |
14 |
15 |
16 |
17 |
18 |
19 |
20 | Hi {{var sellername}},
21 |
22 | Your subscription plan "{{var plan}}" was expired
23 |
24 |
25 |
26 | {{template config_path="design/email/footer_template"}}
27 |
--------------------------------------------------------------------------------
/app/code/Apptha/Vacationmode/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "apptha/vacationmode",
3 | "description": "Apptha Vacationmode",
4 | "require": {
5 | "php": "~5.5.0|~5.6.0",
6 | "magento/module-store": "0.74.0-beta4",
7 | "magento/module-theme": "0.74.0-beta4",
8 | "magento/module-widget": "0.74.0-beta4",
9 | "magento/module-backend": "0.74.0-beta4",
10 | "magento/module-catalog": "0.74.0-beta4",
11 | "magento/module-email": "0.74.0-beta4",
12 | "magento/module-ui": "0.74.0-beta4",
13 | "magento/module-variable": "0.74.0-beta4",
14 | "magento/module-media-storage": "0.74.0-beta4",
15 | "magento/framework": "0.74.0-beta4",
16 | "magento/magento-composer-installer": "*"
17 | },
18 | "type": "magento2-module",
19 | "version": "0.74.0-beta4",
20 | "license": [
21 | "OSL-3.0",
22 | "AFL-3.0"
23 | ],
24 | "extra": {
25 | "map": [
26 | [
27 | "*",
28 | "Apptha/Vacationmode"
29 | ]
30 | ]
31 | }
32 | }
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/view/frontend/email/seller_product_notification.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | {{template config_path="design/email/header_template"}}
4 |
5 |
6 |
8 |
9 |
10 |
11 |
12 |
13 |
14 | Hi {{var receivername}},
15 | Your product is Out Of Stock. So please check below status and update the product.
16 | Product Name : {{var productname}}
17 | SKU : {{var sku}}
18 | Quantity : {{var qty}}
19 | Allowed Minimum Quantity : {{var minqty}}
20 |
21 |
22 |
23 | {{template config_path="design/email/footer_template"}}
24 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/view/frontend/email/seller_product_outofstock_notification.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | {{template config_path="design/email/header_template"}}
4 |
5 |
6 |
8 |
9 |
10 |
11 |
12 |
13 |
14 | Hi {{var receivername}},
15 | Your product quantity is very low. So please check below status and update the product.
16 | Product Name : {{var productname}}
17 | SKU : {{var sku}}
18 | Quantity : {{var qty}}
19 | Allowed Minimum Quantity : {{var minqty}}
20 |
21 |
22 |
23 | {{template config_path="design/email/footer_template"}}
24 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/view/frontend/email/seller_order_item_request.html:
--------------------------------------------------------------------------------
1 |
2 | {{template config_path="design/email/header_template"}}
3 |
4 |
5 |
6 |
7 | Hi {{var receivername}},
8 | Kindly check out the order {{var requesttype}} request sent
9 | by the {{var requestperson}}.
10 | {{var requestperson}} Name: {{var requestperson_name}}
11 | Email id: {{var requestperson_email}} Order id: #{{var
12 | increment_id}}
13 |
14 |
Requested product(s) in the order : {{layout
15 | handle="marketplace_order_items_request" order_id=$order_id
16 | product_id=$product_id seller_id=$seller_id area="frontend"}} {{if
17 | reason}}
18 |
19 | Reason : {{var reason}}
20 |
{{/if}} {{if requesturl}} To {{var requesttype}} ordered item click here {{/if}}
22 |
23 |
24 |
25 | {{template config_path="design/email/footer_template"}}
26 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/view/frontend/email/subscription_admin_notification.html:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 | {{template config_path="design/email/header_template"}}
10 |
11 |
12 |
14 |
15 |
16 |
17 |
18 |
19 |
20 | Hi {{var ownername}},
21 |
22 |
23 | A member with email "{{var selleremail}}" has subscribed
24 | successfully for "{{var planname}}" and paid {{var
25 | planamount}} {{var currency}} as subscription fee.
26 |
27 |
28 |
29 |
30 | {{template config_path="design/email/footer_template"}}
31 |
--------------------------------------------------------------------------------
/app/code/Apptha/Vacationmode/view/adminhtml/web/fonts/Vacation.svg:
--------------------------------------------------------------------------------
1 | Generated by Glyphter
--------------------------------------------------------------------------------
/app/code/Apptha/Vacationmode/view/adminhtml/templates/vacationmode_index_index.phtml:
--------------------------------------------------------------------------------
1 |
26 | * @copyright Copyright (c) 2017 Apptha. (http://www.apptha.com)
27 | * @license http://www.apptha.com/LICENSE.txt
28 | *
29 | */
30 | ?>
31 | Vacation Mode
--------------------------------------------------------------------------------
/app/code/Apptha/Vacationmode/view/adminhtml/templates/vacationmode/vacationmode.phtml:
--------------------------------------------------------------------------------
1 |
26 | * @copyright Copyright (c) 2017 Apptha. (http://www.apptha.com)
27 | * @license http://www.apptha.com/LICENSE.txt
28 | *
29 | */
30 | echo $block->getGridHtml() ?>
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/view/frontend/email/subscription_sellersuccess_notification.html:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 | {{template config_path="design/email/header_template"}}
10 |
11 |
12 |
14 |
15 |
16 |
17 |
18 |
19 |
20 | Hi {{var sellername}},
21 |
22 |
23 | You have successfully subscribed for "{{var
24 | planname}}" . You have paid {{var planamount}}
25 | [{{var currency}}] as subscription fee and it will expire on {{var
26 | enddate}}".
27 |
28 |
29 |
30 |
31 | {{template config_path="design/email/footer_template"}}
32 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/view/adminhtml/templates/grid/view.phtml:
--------------------------------------------------------------------------------
1 |
27 | * @copyright Copyright (c) 2017 Apptha. (http://www.apptha.com)
28 | * @license http://www.apptha.com/LICENSE.txt
29 | *
30 | * */
31 | ?>
32 | getGridHtml(); ?>
33 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/view/frontend/email/seller_order_item_cancel_return.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | {{template config_path="design/email/header_template"}}
4 |
5 |
6 |
8 |
9 |
10 |
11 |
12 |
13 |
14 | Hi {{var receivername}},
15 | Your order has been {{var actiontype}} by the {{var
16 | sellername}}.
17 | {{var requestperson}} Name: {{var requestperson_name}}
18 | Email id: {{var requestperson_email}} Order id: #{{var
19 | increment_id}}
20 |
21 |
{{var actiontype}} product(s) in the order : {{layout
22 | handle="marketplace_order_items_request" order_id=$order_id
23 | product_id=$product_id seller_id=$seller_id area="frontend"}}
24 |
25 |
26 |
27 |
28 |
29 |
30 | {{template config_path="design/email/footer_template"}}
31 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/view/frontend/templates/success.phtml:
--------------------------------------------------------------------------------
1 |
8 |
9 |
10 | getOrderId()) :?>
11 | getCanViewOrder()) :?>
12 |
= $block->escapeHtml(__('Your order number is: %1.', sprintf('%s ', $block->escapeUrl($block->getViewOrderUrl()), $block->getOrderId())), ['a', 'strong']) ?>
13 |
14 |
= $block->escapeHtml(__('Your order # is: %1 .', $block->getOrderId()), ['span']) ?>
15 |
16 |
= $block->escapeHtml(__('We\'ll email you an order confirmation with details and tracking info.')) ?>
17 |
18 |
19 | = $block->getAdditionalInfoHtml() ?>
20 |
21 |
26 |
27 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/registration.php:
--------------------------------------------------------------------------------
1 |
26 | * @copyright Copyright (c) 2017 Apptha. (http://www.apptha.com)
27 | * @license http://www.apptha.com/LICENSE.txt
28 | *
29 | */
30 | \Magento\Framework\Component\ComponentRegistrar::register ( \Magento\Framework\Component\ComponentRegistrar::MODULE, 'Apptha_Marketplace', __DIR__ );
31 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/Model/Session.php:
--------------------------------------------------------------------------------
1 |
27 | * @copyright Copyright (c) 2017 Apptha. (http://www.apptha.com)
28 | * @license http://www.apptha.com/LICENSE.txt
29 | *
30 | */
31 | namespace Apptha\Marketplace\Model;
32 |
33 | /**
34 | * Customer session model
35 | */
36 | class Session extends \Magento\Customer\Model\Session {
37 | }
38 |
--------------------------------------------------------------------------------
/app/code/Apptha/Vacationmode/registration.php:
--------------------------------------------------------------------------------
1 |
26 | * @copyright Copyright (c) 2017 Apptha. (http://www.apptha.com)
27 | * @license http://www.apptha.com/LICENSE.txt
28 | *
29 | */
30 | \Magento\Framework\Component\ComponentRegistrar::register(
31 | \Magento\Framework\Component\ComponentRegistrar::MODULE,
32 | 'Apptha_Vacationmode',
33 | __DIR__
34 | );
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/Controller/Configuration.php:
--------------------------------------------------------------------------------
1 | customerSession = $customerSession;
40 | $this->resultPageFactory = $resultPageFactory;
41 | $this->storeManager = $storeManager;
42 | parent::__construct($context);
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/app/code/Apptha/Vacationmode/etc/di.xml:
--------------------------------------------------------------------------------
1 |
2 |
32 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/view/frontend/templates/product/configurableattributes.phtml:
--------------------------------------------------------------------------------
1 |
23 | * @copyright Copyright (c) 2017 Apptha. (http://www.apptha.com)
24 | * @license http://www.apptha.com/LICENSE.txt
25 | */
26 | $optionId=$this->getData('optionid');
27 | $attributeData=$this->getData('attributedata');
28 | if ($attributeData->usesSource ()) {
29 | echo $attributeData->getSource ()->getOptionText ( $optionId );
30 | }
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/etc/module.xml:
--------------------------------------------------------------------------------
1 |
2 |
32 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/view/frontend/templates/product/submit.phtml:
--------------------------------------------------------------------------------
1 |
23 | * @copyright Copyright (c) 2017 Apptha. (http://www.apptha.com)
24 | * @license http://www.apptha.com/LICENSE.txt
25 | */
26 | ?>
27 |
--------------------------------------------------------------------------------
/app/code/Apptha/Vacationmode/view/adminhtml/layout/vacationmode_vacationmode_exportcsv.xml:
--------------------------------------------------------------------------------
1 |
2 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/app/code/Apptha/Vacationmode/view/adminhtml/layout/vacationmode_vacationmode_exportexcel.xml:
--------------------------------------------------------------------------------
1 |
2 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/app/code/Apptha/Vacationmode/Block/Adminhtml/Index/Index.php:
--------------------------------------------------------------------------------
1 |
27 | * @copyright Copyright (c) 2017 Apptha. (http://www.apptha.com)
28 | * @license http://www.apptha.com/LICENSE.txt
29 | *
30 | */
31 | namespace Apptha\Vacationmode\Block\Adminhtml\Index;
32 |
33 | class Index extends \Magento\Backend\Block\Widget\Container {
34 | public function __construct(\Magento\Backend\Block\Widget\Context $context, array $data = []) {
35 | parent::__construct ( $context, $data );
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/app/code/Apptha/Vacationmode/Controller/Adminhtml/Index/Index.php:
--------------------------------------------------------------------------------
1 |
27 | * @copyright Copyright (c) 2017 Apptha. (http://www.apptha.com)
28 | * @license http://www.apptha.com/LICENSE.txt
29 | *
30 | */
31 | namespace Apptha\Vacationmode\Controller\Adminhtml\Index;
32 |
33 | class Index extends \Magento\Backend\App\Action {
34 | public function execute() {
35 | $this->_view->loadLayout ();
36 | $this->_view->getLayout ()->initMessages ();
37 | $this->_view->renderLayout ();
38 | }
39 | }
40 |
41 | ?>
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/etc/webapi_rest/events.xml:
--------------------------------------------------------------------------------
1 |
2 |
32 |
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/etc/frontend/routes.xml:
--------------------------------------------------------------------------------
1 |
2 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/Controller/Adminhtml/Products/Grid.php:
--------------------------------------------------------------------------------
1 |
27 | * @copyright Copyright (c) 2017 Apptha. (http://www.apptha.com)
28 | * @license http://www.apptha.com/LICENSE.txt
29 | *
30 | */
31 | namespace Apptha\Marketplace\Controller\Adminhtml\Products;
32 |
33 | use Apptha\Marketplace\Controller\Adminhtml\Products;
34 |
35 | class Grid extends Products {
36 | /**
37 | *
38 | * @return void
39 | */
40 | public function execute() {
41 | return $this->_resultPageFactory->create ();
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/app/code/Apptha/Vacationmode/etc/email_templates.xml:
--------------------------------------------------------------------------------
1 |
2 |
32 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/app/code/Apptha/Vacationmode/view/adminhtml/layout/vacationmode_vacationmode_new.xml:
--------------------------------------------------------------------------------
1 |
2 |
32 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/app/code/Apptha/Vacationmode/Model/Vacationmode.php:
--------------------------------------------------------------------------------
1 |
27 | * @copyright Copyright (c) 2017 Apptha. (http://www.apptha.com)
28 | * @license http://www.apptha.com/LICENSE.txt
29 | *
30 | */
31 | namespace Apptha\Vacationmode\Model;
32 |
33 | class Vacationmode extends \Magento\Framework\Model\AbstractModel {
34 | /**
35 | * Initialize resource model
36 | *
37 | * @return void
38 | */
39 | protected function _construct() {
40 | $this->_init ( 'Apptha\Vacationmode\Model\ResourceModel\Vacationmode' );
41 | }
42 | }
43 | ?>
--------------------------------------------------------------------------------
/app/code/Apptha/Vacationmode/etc/frontend/routes.xml:
--------------------------------------------------------------------------------
1 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/Controller/Adminhtml/Transactions/Grid.php:
--------------------------------------------------------------------------------
1 |
27 | * @copyright Copyright (c) 2017 Apptha. (http://www.apptha.com)
28 | * @license http://www.apptha.com/LICENSE.txt
29 | *
30 | */
31 | namespace Apptha\Marketplace\Controller\Adminhtml\Transactions;
32 |
33 | use Apptha\Marketplace\Controller\Adminhtml\Transactions;
34 |
35 | class Grid extends Transactions {
36 | /**
37 | *
38 | * @return void
39 | */
40 | public function execute() {
41 | return $this->_resultPageFactory->create ();
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/Model/Order.php:
--------------------------------------------------------------------------------
1 |
26 | * @copyright Copyright (c) 2017 Apptha. (http://www.apptha.com)
27 | * @license http://www.apptha.com/LICENSE.txt
28 | *
29 | * */
30 | namespace Apptha\Marketplace\Model;
31 |
32 | use Magento\Framework\Model\AbstractModel;
33 |
34 | /**
35 | * This class initiates order model
36 | */
37 | class Order extends AbstractModel {
38 | /**
39 | * Define resource model
40 | */
41 | protected function _construct() {
42 | $this->_init ( 'Apptha\Marketplace\Model\ResourceModel\Order' );
43 | }
44 | }
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/Model/Review.php:
--------------------------------------------------------------------------------
1 |
26 | * @copyright Copyright (c) 2017 Apptha. (http://www.apptha.com)
27 | * @license http://www.apptha.com/LICENSE.txt
28 | *
29 | * */
30 | namespace Apptha\Marketplace\Model;
31 |
32 | use Magento\Framework\Model\AbstractModel;
33 |
34 | /**
35 | * This class initiates seller model
36 | */
37 | class Review extends AbstractModel {
38 | /**
39 | * Define resource model
40 | */
41 | protected function _construct() {
42 | $this->_init ( 'Apptha\Marketplace\Model\ResourceModel\Review' );
43 | }
44 | }
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/etc/adminhtml/routes.xml:
--------------------------------------------------------------------------------
1 |
2 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/Model/ResourceModel/Order.php:
--------------------------------------------------------------------------------
1 |
27 | * @copyright Copyright (c) 2017 Apptha. (http://www.apptha.com)
28 | * @license http://www.apptha.com/LICENSE.txt
29 | *
30 | * */
31 | namespace Apptha\Marketplace\Model\ResourceModel;
32 |
33 | /**
34 | * This class initiates order model primary id
35 | */
36 | class Order extends \Magento\Framework\Model\ResourceModel\Db\AbstractDb {
37 | /**
38 | * Define order
39 | */
40 | protected function _construct() {
41 | $this->_init ( 'marketplace_sellerorder', 'id' );
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/Model/ResourceModel/Seller.php:
--------------------------------------------------------------------------------
1 |
27 | * @copyright Copyright (c) 2017 Apptha. (http://www.apptha.com)
28 | * @license http://www.apptha.com/LICENSE.txt
29 | *
30 | * */
31 | namespace Apptha\Marketplace\Model\ResourceModel;
32 |
33 | /**
34 | * This class initiates seller model primary id
35 | */
36 | class Seller extends \Magento\Framework\Model\ResourceModel\Db\AbstractDb {
37 | /**
38 | * Define main table
39 | */
40 | protected function _construct() {
41 | $this->_init ( 'marketplace_seller', 'id' );
42 | }
43 | }
--------------------------------------------------------------------------------
/app/code/Apptha/Vacationmode/Model/ResourceModel/Vacationmode.php:
--------------------------------------------------------------------------------
1 |
27 | * @copyright Copyright (c) 2017 Apptha. (http://www.apptha.com)
28 | * @license http://www.apptha.com/LICENSE.txt
29 | *
30 | */
31 | namespace Apptha\Vacationmode\Model\ResourceModel;
32 |
33 | class Vacationmode extends \Magento\Framework\Model\ResourceModel\Db\AbstractDb {
34 | /**
35 | * Initialize resource model
36 | *
37 | * @return void
38 | */
39 | protected function _construct() {
40 | $this->_init ( 'marketplace_vacation', 'vacation_id' );
41 | }
42 | }
43 | ?>
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/Model/ResourceModel/Payments.php:
--------------------------------------------------------------------------------
1 |
27 | * @copyright Copyright (c) 2017 Apptha. (http://www.apptha.com)
28 | * @license http://www.apptha.com/LICENSE.txt
29 | *
30 | * */
31 | namespace Apptha\Marketplace\Model\ResourceModel;
32 |
33 | /**
34 | * This class initiates seller payments
35 | */
36 | class Payments extends \Magento\Framework\Model\ResourceModel\Db\AbstractDb {
37 | /**
38 | * Define main table
39 | */
40 | protected function _construct() {
41 | $this->_init ( 'marketplace_seller_payments', 'id' );
42 | }
43 | }
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/Model/ResourceModel/Review.php:
--------------------------------------------------------------------------------
1 |
27 | * @copyright Copyright (c) 2017 Apptha. (http://www.apptha.com)
28 | * @license http://www.apptha.com/LICENSE.txt
29 | *
30 | * */
31 | namespace Apptha\Marketplace\Model\ResourceModel;
32 |
33 | /**
34 | * This class initiates seller model primary id
35 | */
36 | class Review extends \Magento\Framework\Model\ResourceModel\Db\AbstractDb {
37 | /**
38 | * Define main table
39 | */
40 | protected function _construct() {
41 | $this->_init ( 'marketplace_sellerreview', 'id' );
42 | }
43 | }
--------------------------------------------------------------------------------
/app/code/Apptha/Vacationmode/etc/crontab.xml:
--------------------------------------------------------------------------------
1 |
2 |
32 |
33 |
34 |
35 | */10 * * * *
36 |
37 |
38 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/Model/Customoption.php:
--------------------------------------------------------------------------------
1 |
26 | * @copyright Copyright (c) 2017 Apptha. (http://www.apptha.com)
27 | * @license http://www.apptha.com/LICENSE.txt
28 | *
29 | * */
30 | namespace Apptha\Marketplace\Model;
31 |
32 | use Magento\Framework\Model\AbstractModel;
33 |
34 | /**
35 | * This class initiates seller model
36 | */
37 | class Customoption extends AbstractModel {
38 | /**
39 | * Define resource model
40 | */
41 | protected function _construct() {
42 | $this->_init ( 'Apptha\Marketplace\Model\ResourceModel\Customoption' );
43 | }
44 | }
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/Model/Orderitems.php:
--------------------------------------------------------------------------------
1 |
26 | * @copyright Copyright (c) 2017 Apptha. (http://www.apptha.com)
27 | * @license http://www.apptha.com/LICENSE.txt
28 | *
29 | * */
30 | namespace Apptha\Marketplace\Model;
31 |
32 | use Magento\Framework\Model\AbstractModel;
33 |
34 | /**
35 | * This class initiates order items model
36 | */
37 | class Orderitems extends AbstractModel {
38 | /**
39 | * Define resource model
40 | */
41 | protected function _construct() {
42 | $this->_init ( 'Apptha\Marketplace\Model\ResourceModel\Orderitems' );
43 | }
44 | }
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/Model/Payments.php:
--------------------------------------------------------------------------------
1 |
26 | * @copyright Copyright (c) 2017 Apptha. (http://www.apptha.com)
27 | * @license http://www.apptha.com/LICENSE.txt
28 | *
29 | * */
30 | namespace Apptha\Marketplace\Model;
31 |
32 | use Magento\Framework\Model\AbstractModel;
33 |
34 | /**
35 | * This class initiates subscription profiles model
36 | */
37 | class Payments extends AbstractModel {
38 | /**
39 | * Define resource model
40 | */
41 | protected function _construct() {
42 | $this->_init ( 'Apptha\Marketplace\Model\ResourceModel\Payments' );
43 | }
44 | }
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/Model/ResourceModel/Customoption.php:
--------------------------------------------------------------------------------
1 |
27 | * @copyright Copyright (c) 2017 Apptha. (http://www.apptha.com)
28 | * @license http://www.apptha.com/LICENSE.txt
29 | *
30 | * */
31 | namespace Apptha\Marketplace\Model\ResourceModel;
32 |
33 | /**
34 | * This class initiates seller model primary id
35 | */
36 | class Customoption extends \Magento\Framework\Model\ResourceModel\Db\AbstractDb {
37 | /**
38 | * Define main table
39 | */
40 | protected function _construct() {
41 | $this->_init ( 'marketplace_customoption', 'id' );
42 | }
43 | }
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/etc/crontab.xml:
--------------------------------------------------------------------------------
1 |
2 |
32 |
33 |
34 |
35 | */1 * * * *
36 |
37 |
38 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/Model/ResourceModel/Orderitems.php:
--------------------------------------------------------------------------------
1 |
27 | * @copyright Copyright (c) 2017 Apptha. (http://www.apptha.com)
28 | * @license http://www.apptha.com/LICENSE.txt
29 | *
30 | * */
31 | namespace Apptha\Marketplace\Model\ResourceModel;
32 |
33 | /**
34 | * This class initiates orderitems model primary id
35 | */
36 | class Orderitems extends \Magento\Framework\Model\ResourceModel\Db\AbstractDb {
37 | /**
38 | * Defines order items
39 | */
40 | protected function _construct() {
41 | $this->_init ( 'marketplace_sellerorderitems', 'id' );
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/Model/Subscriptionplans.php:
--------------------------------------------------------------------------------
1 |
26 | * @copyright Copyright (c) 2017 Apptha. (http://www.apptha.com)
27 | * @license http://www.apptha.com/LICENSE.txt
28 | *
29 | * */
30 | namespace Apptha\Marketplace\Model;
31 |
32 | use Magento\Framework\Model\AbstractModel;
33 |
34 | /**
35 | * This class initiates seller model
36 | */
37 | class Subscriptionplans extends AbstractModel {
38 | /**
39 | * Define resource model
40 | */
41 | protected function _construct() {
42 | $this->_init ( 'Apptha\Marketplace\Model\ResourceModel\Subscriptionplans' );
43 | }
44 | }
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/Block/Seller/Changebuyer.php:
--------------------------------------------------------------------------------
1 |
26 | * @copyright Copyright (c) 2017 Apptha. (http://www.apptha.com)
27 | * @license http://www.apptha.com/LICENSE.txt
28 | *
29 | */
30 | namespace Apptha\Marketplace\Block\Seller;
31 |
32 | class Changebuyer extends \Magento\Framework\View\Element\Template {
33 |
34 | /**
35 | * Prepare layout for change buyer
36 | *
37 | * @return Object
38 | */
39 | public function _prepareLayout() {
40 | $this->pageConfig->getTitle ()->set ( __ ( 'Become a Seller' ) );
41 | return parent::_prepareLayout ();
42 | }
43 | }
--------------------------------------------------------------------------------
/app/code/Apptha/Vacationmode/etc/adminhtml/routes.xml:
--------------------------------------------------------------------------------
1 |
2 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/Controller/Seller/Allseller.php:
--------------------------------------------------------------------------------
1 |
27 | * @copyright Copyright (c) 2017 Apptha. (http://www.apptha.com)
28 | * @license http://www.apptha.com/LICENSE.txt
29 | *
30 | */
31 | namespace Apptha\Marketplace\Controller\Seller;
32 |
33 | /**
34 | * This class contains loading all seller functions
35 | */
36 | class Allseller extends \Magento\Framework\App\Action\Action {
37 | /**
38 | * Load Page Layout
39 | *
40 | * @return void
41 | */
42 | public function execute() {
43 | $this->_view->loadLayout ();
44 | $this->_view->renderLayout ();
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/Model/ResourceModel/Subscriptionplans.php:
--------------------------------------------------------------------------------
1 |
27 | * @copyright Copyright (c) 2017 Apptha. (http://www.apptha.com)
28 | * @license http://www.apptha.com/LICENSE.txt
29 | *
30 | * */
31 | namespace Apptha\Marketplace\Model\ResourceModel;
32 |
33 | /**
34 | * This class initiates seller subscription plans model primary id
35 | */
36 | class Subscriptionplans extends \Magento\Framework\Model\ResourceModel\Db\AbstractDb {
37 | /**
38 | * Define main table
39 | */
40 | protected function _construct() {
41 | $this->_init ( 'marketplace_subscription_plans', 'id' );
42 | }
43 | }
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/Model/Subscriptionprofiles.php:
--------------------------------------------------------------------------------
1 |
26 | * @copyright Copyright (c) 2017 Apptha. (http://www.apptha.com)
27 | * @license http://www.apptha.com/LICENSE.txt
28 | *
29 | * */
30 | namespace Apptha\Marketplace\Model;
31 |
32 | use Magento\Framework\Model\AbstractModel;
33 |
34 | /**
35 | * This class initiates subscription profiles model
36 | */
37 | class Subscriptionprofiles extends AbstractModel {
38 | /**
39 | * Define resource model
40 | */
41 | protected function _construct() {
42 | $this->_init ( 'Apptha\Marketplace\Model\ResourceModel\Subscriptionprofiles' );
43 | }
44 | }
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/Controller/Seller/Displayseller.php:
--------------------------------------------------------------------------------
1 |
27 | * @copyright Copyright (c) 2017 Apptha. (http://www.apptha.com)
28 | * @license http://www.apptha.com/LICENSE.txt
29 | *
30 | */
31 | namespace Apptha\Marketplace\Controller\Seller;
32 |
33 | /**
34 | * This class contains seller page functions
35 | */
36 | class Displayseller extends \Magento\Framework\App\Action\Action {
37 | /**
38 | * Load Page Layout
39 | *
40 | * @return $resultPage
41 | */
42 | public function execute() {
43 | $this->_view->loadLayout ();
44 | $this->_view->renderLayout ();
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/Model/ResourceModel/Subscriptionprofiles.php:
--------------------------------------------------------------------------------
1 |
27 | * @copyright Copyright (c) 2017 Apptha. (http://www.apptha.com)
28 | * @license http://www.apptha.com/LICENSE.txt
29 | *
30 | * */
31 | namespace Apptha\Marketplace\Model\ResourceModel;
32 |
33 | /**
34 | * This class initiates seller subscription plans model primary id
35 | */
36 | class Subscriptionprofiles extends \Magento\Framework\Model\ResourceModel\Db\AbstractDb {
37 | /**
38 | * Define main table
39 | */
40 | protected function _construct() {
41 | $this->_init ( 'marketplace_subscription_profiles', 'id' );
42 | }
43 | }
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/Controller/Adminhtml/Allpayments/Grid.php:
--------------------------------------------------------------------------------
1 |
27 | * @copyright Copyright (c) 2017 Apptha. (http://www.apptha.com)
28 | * @license http://www.apptha.com/LICENSE.txt
29 | *
30 | */
31 | namespace Apptha\Marketplace\Controller\Adminhtml\Allpayments;
32 |
33 | use Apptha\Marketplace\Controller\Adminhtml\Allpayments;
34 |
35 | class Grid extends Allpayments {
36 | /**
37 | *
38 | * @return void
39 | */
40 | public function execute() {
41 | /**
42 | * To create result page for seller payments grid
43 | */
44 | return $this->_resultPageFactory->create ();
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/view/frontend/templates/seller/sellervideo.phtml:
--------------------------------------------------------------------------------
1 |
23 | * @copyright Copyright (c) 2017 Apptha. (http://www.apptha.com)
24 | * @license http://www.apptha.com/LICENSE.txt
25 | */
26 | ?>
27 | getRequest ()->getParam ( 'id' );
29 | $objectModelManager = \Magento\Framework\App\ObjectManager::getInstance ();
30 | $isLinkEnabled = 0;
31 | $videoUrl = $objectModelManager->get ( 'Magento\Catalog\Model\Product' )->load ( $productId )->getVideoUrl ().' ';
32 | parse_str( parse_url( $videoUrl, PHP_URL_QUERY ), $my_array_of_vars );
33 | $url = $my_array_of_vars['v'];
34 | ?>
35 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/Model/ResourceModel/Order/Collection.php:
--------------------------------------------------------------------------------
1 |
27 | * @copyright Copyright (c) 2017 Apptha. (http://www.apptha.com)
28 | * @license http://www.apptha.com/LICENSE.txt
29 | *
30 | * */
31 | namespace Apptha\Marketplace\Model\ResourceModel\Order;
32 |
33 | /**
34 | * This class contains order model collection
35 | */
36 | class Collection extends \Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection {
37 | /**
38 | * Define model & resource model
39 | */
40 | protected function _construct() {
41 | $this->_init ( 'Apptha\Marketplace\Model\Order', 'Apptha\Marketplace\Model\ResourceModel\Order' );
42 | }
43 | }
--------------------------------------------------------------------------------
/app/code/Apptha/Vacationmode/view/adminhtml/layout/vacationmode_vacationmode_grid.xml:
--------------------------------------------------------------------------------
1 |
2 |
32 |
33 |
34 |
35 |
36 |
37 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/Model/ResourceModel/Review/Collection.php:
--------------------------------------------------------------------------------
1 |
27 | * @copyright Copyright (c) 2017 Apptha. (http://www.apptha.com)
28 | * @license http://www.apptha.com/LICENSE.txt
29 | *
30 | * */
31 | namespace Apptha\Marketplace\Model\ResourceModel\Review;
32 |
33 | /**
34 | * This class contains seller model collection
35 | */
36 | class Collection extends \Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection {
37 | /**
38 | * Define model & resource model
39 | */
40 | protected function _construct() {
41 | $this->_init ( 'Apptha\Marketplace\Model\Review', 'Apptha\Marketplace\Model\ResourceModel\Review' );
42 | }
43 | }
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/Model/ResourceModel/Seller/Collection.php:
--------------------------------------------------------------------------------
1 |
27 | * @copyright Copyright (c) 2017 Apptha. (http://www.apptha.com)
28 | * @license http://www.apptha.com/LICENSE.txt
29 | *
30 | * */
31 | namespace Apptha\Marketplace\Model\ResourceModel\Seller;
32 |
33 | /**
34 | * This class contains seller model collection
35 | */
36 | class Collection extends \Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection {
37 | /**
38 | * Define model & resource model
39 | */
40 | protected function _construct() {
41 | $this->_init ( 'Apptha\Marketplace\Model\Seller', 'Apptha\Marketplace\Model\ResourceModel\Seller' );
42 | }
43 | }
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/Controller/Adminhtml/Subscriptionprofiles/Grid.php:
--------------------------------------------------------------------------------
1 |
27 | * @copyright Copyright (c) 2017 Apptha. (http://www.apptha.com)
28 | * @license http://www.apptha.com/LICENSE.txt
29 | *
30 | */
31 | namespace Apptha\Marketplace\Controller\Adminhtml\Subscriptionprofiles;
32 |
33 | use Apptha\Marketplace\Controller\Adminhtml\Subscriptionprofiles;
34 |
35 | class Grid extends Subscriptionprofiles {
36 | /**
37 | *
38 | * @return void
39 | */
40 | public function execute() {
41 | /**
42 | * To create result page for subscription profiles grid
43 | */
44 | return $this->_resultPageFactory->create ();
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/view/frontend/templates/cart.phtml:
--------------------------------------------------------------------------------
1 |
26 | * @copyright Copyright (c) 2016 Apptha. (http://www.apptha.com)
27 | * @license http://www.apptha.com/LICENSE.txt
28 | *
29 | */
30 | ?>
31 | getSessionValue();
38 | if($customerSession->getMyValue()){
39 | ?>
40 | getMyValue();?>
41 | getItemsCount()) {
44 | echo $block->getChildHtml('with-items');
45 | } else {
46 | echo $block->getChildHtml('no-items');
47 | }
48 |
49 | $customerSession->unsMyValue();
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/Model/ResourceModel/Orderitems/Collection.php:
--------------------------------------------------------------------------------
1 |
27 | * @copyright Copyright (c) 2017 Apptha. (http://www.apptha.com)
28 | * @license http://www.apptha.com/LICENSE.txt
29 | *
30 | * */
31 | namespace Apptha\Marketplace\Model\ResourceModel\Orderitems;
32 |
33 | /**
34 | * This class contains orderitems model collection
35 | */
36 | class Collection extends \Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection {
37 | /**
38 | * Define model & resource model
39 | */
40 | protected function _construct() {
41 | $this->_init ( 'Apptha\Marketplace\Model\Orderitems', 'Apptha\Marketplace\Model\ResourceModel\Orderitems' );
42 | }
43 | }
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/Model/ResourceModel/Payments/Collection.php:
--------------------------------------------------------------------------------
1 |
27 | * @copyright Copyright (c) 2017 Apptha. (http://www.apptha.com)
28 | * @license http://www.apptha.com/LICENSE.txt
29 | *
30 | * */
31 | namespace Apptha\Marketplace\Model\ResourceModel\Payments;
32 |
33 | /**
34 | * This class contains seller subscription plans model collection
35 | */
36 | class Collection extends \Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection {
37 | /**
38 | * Define model & resource model
39 | */
40 | protected function _construct() {
41 | $this->_init ( 'Apptha\Marketplace\Model\Payments', 'Apptha\Marketplace\Model\ResourceModel\Payments' );
42 | }
43 | }
--------------------------------------------------------------------------------
/app/code/Apptha/Vacationmode/etc/module.xml:
--------------------------------------------------------------------------------
1 |
2 |
32 |
33 |
34 |
35 |
36 |
37 |
38 | >
39 |
40 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/Model/ResourceModel/Customoption/Collection.php:
--------------------------------------------------------------------------------
1 |
27 | * @copyright Copyright (c) 2017 Apptha. (http://www.apptha.com)
28 | * @license http://www.apptha.com/LICENSE.txt
29 | *
30 | * */
31 | namespace Apptha\Marketplace\Model\ResourceModel\Customoption;
32 |
33 | /**
34 | * This class contains customoption model collection
35 | */
36 | class Collection extends \Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection {
37 | /**
38 | * Define model & resource model
39 | */
40 | protected function _construct() {
41 | $this->_init ( 'Apptha\Marketplace\Model\Customoption', 'Apptha\Marketplace\Model\ResourceModel\Customoption' );
42 | }
43 | }
--------------------------------------------------------------------------------
/app/code/Apptha/Vacationmode/Block/Adminhtml/Vacationmode/Edit/Tabs.php:
--------------------------------------------------------------------------------
1 |
27 | * @copyright Copyright (c) 2017 Apptha. (http://www.apptha.com)
28 | * @license http://www.apptha.com/LICENSE.txt
29 | *
30 | */
31 | namespace Apptha\Vacationmode\Block\Adminhtml\Vacationmode\Edit;
32 |
33 | /**
34 | * Admin page left menu
35 | */
36 | class Tabs extends \Magento\Backend\Block\Widget\Tabs {
37 | /**
38 | *
39 | * @return void
40 | */
41 | protected function _construct() {
42 | parent::_construct ();
43 | $this->setId ( 'vacationmode_tabs' );
44 | $this->setDestElementId ( 'edit_form' );
45 | $this->setTitle ( __ ( 'Vacationmode Information' ) );
46 | }
47 | }
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/Block/Onepage/Failure.php:
--------------------------------------------------------------------------------
1 | _checkoutSession = $checkoutSession;
30 | parent::__construct($context, $data);
31 | $this->_isScopePrivate = true;
32 | }
33 |
34 | /**
35 | * @return mixed
36 | */
37 | public function getRealOrderId()
38 | {
39 | return $this->_checkoutSession->getLastRealOrderId();
40 | }
41 |
42 | /**
43 | * Payment custom error message
44 | *
45 | * @return string
46 | */
47 | public function getErrorMessage()
48 | {
49 | $error = $this->_checkoutSession->getErrorMessage();
50 | return $error;
51 | }
52 |
53 | /**
54 | * Continue shopping URL
55 | *
56 | * @return string
57 | */
58 | public function getContinueShoppingUrl()
59 | {
60 | return $this->getUrl('checkout/cart');
61 | }
62 | }
63 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/Model/Config/Source/Isack.php:
--------------------------------------------------------------------------------
1 |
27 | * @copyright Copyright (c) 2017 Apptha. (http://www.apptha.com)
28 | * @license http://www.apptha.com/LICENSE.txt
29 | *
30 | * */
31 | namespace Apptha\Marketplace\Model\Config\Source;
32 |
33 | /**
34 | * This class contains seller subscription status functions
35 | */
36 | class Isack implements \Magento\Framework\Option\ArrayInterface {
37 | const YES = 1;
38 | const NO = 0;
39 | /**
40 | * To option array
41 | *
42 | * @return array
43 | */
44 | public function toOptionArray() {
45 | return [
46 | static::YES => __ ( 'Yes' ),
47 | static::NO => __ ( 'No' )
48 | ];
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/Model/ResourceModel/Subscriptionplans/Collection.php:
--------------------------------------------------------------------------------
1 |
27 | * @copyright Copyright (c) 2017 Apptha. (http://www.apptha.com)
28 | * @license http://www.apptha.com/LICENSE.txt
29 | *
30 | * */
31 | namespace Apptha\Marketplace\Model\ResourceModel\Subscriptionplans;
32 |
33 | /**
34 | * This class contains seller subscription plans model collection
35 | */
36 | class Collection extends \Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection {
37 | /**
38 | * Define model & resource model
39 | */
40 | protected function _construct() {
41 | $this->_init ( 'Apptha\Marketplace\Model\Subscriptionplans', 'Apptha\Marketplace\Model\ResourceModel\Subscriptionplans' );
42 | }
43 | }
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/view/frontend/layout/marketplace_order_items.xml:
--------------------------------------------------------------------------------
1 |
2 |
32 |
35 |
36 |
37 |
38 |
39 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/Block/Adminhtml/Products.php:
--------------------------------------------------------------------------------
1 |
26 | * @copyright Copyright (c) 2017 Apptha. (http://www.apptha.com)
27 | * @license http://www.apptha.com/LICENSE.txt
28 | *
29 | */
30 | namespace Apptha\Marketplace\Block\Adminhtml;
31 |
32 | use Magento\Backend\Block\Widget\Grid\Container;
33 | /**
34 | * This class contains product container functions
35 | * @author user
36 | *
37 | */
38 | class Products extends Container {
39 | /**
40 | * Constructor
41 | *
42 | * @return void
43 | */
44 | protected function _construct() {
45 | $this->_controller = 'adminhtml_products';
46 | $this->_blockGroup = 'Apptha_Marketplace';
47 | $this->_headerText = __ ( 'Manage Products' );
48 | }
49 | }
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/view/frontend/layout/marketplace_order_items_request.xml:
--------------------------------------------------------------------------------
1 |
2 |
32 |
35 |
36 |
37 |
38 |
39 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/Model/ResourceModel/Subscriptionprofiles/Collection.php:
--------------------------------------------------------------------------------
1 |
27 | * @copyright Copyright (c) 2017 Apptha. (http://www.apptha.com)
28 | * @license http://www.apptha.com/LICENSE.txt
29 | *
30 | * */
31 | namespace Apptha\Marketplace\Model\ResourceModel\Subscriptionprofiles;
32 |
33 | /**
34 | * This class contains seller subscription plans model collection
35 | */
36 | class Collection extends \Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection {
37 | /**
38 | * Define model & resource model
39 | */
40 | protected function _construct() {
41 | $this->_init ( 'Apptha\Marketplace\Model\Subscriptionprofiles', 'Apptha\Marketplace\Model\ResourceModel\Subscriptionprofiles' );
42 | }
43 | }
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/view/adminhtml/layout/marketplaceadmin_review_index.xml:
--------------------------------------------------------------------------------
1 |
2 |
32 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/app/code/Apptha/Vacationmode/Model/ResourceModel/Vacationmode/Collection.php:
--------------------------------------------------------------------------------
1 |
27 | * @copyright Copyright (c) 2017 Apptha. (http://www.apptha.com)
28 | * @license http://www.apptha.com/LICENSE.txt
29 | *
30 | */
31 | namespace Apptha\Vacationmode\Model\ResourceModel\Vacationmode;
32 |
33 | class Collection extends \Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection {
34 |
35 | /**
36 | * Define resource model
37 | *
38 | * @return void
39 | */
40 | protected function _construct() {
41 | $this->_init ( 'Apptha\Vacationmode\Model\Vacationmode', 'Apptha\Vacationmode\Model\ResourceModel\Vacationmode' );
42 | $this->_map ['fields'] ['page_id'] = 'main_table.page_id';
43 | }
44 | }
45 | ?>
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/view/adminhtml/layout/marketplaceadmin_sellers_index.xml:
--------------------------------------------------------------------------------
1 |
2 |
32 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/view/adminhtml/layout/marketplaceadmin_transactions_index.xml:
--------------------------------------------------------------------------------
1 |
2 |
32 |
34 |
35 |
36 |
37 |
38 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/view/frontend/layout/sales_order_item_renderers.xml:
--------------------------------------------------------------------------------
1 |
2 |
32 |
34 |
35 |
36 |
37 |
38 |
39 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/Model/Config/Source/Status.php:
--------------------------------------------------------------------------------
1 |
27 | * @copyright Copyright (c) 2017 Apptha. (http://www.apptha.com)
28 | * @license http://www.apptha.com/LICENSE.txt
29 | *
30 | * */
31 | namespace Apptha\Marketplace\Model\Config\Source;
32 |
33 | /**
34 | * This class contains seller subscription status functions
35 | */
36 | class Status implements \Magento\Framework\Option\ArrayInterface {
37 | const ENABLED = 1;
38 | const DISABLED = 0;
39 | /**
40 | * To option array
41 | *
42 | * @return array
43 | */
44 | public function toOptionArray() {
45 | return [
46 | static::ENABLED => __ ( 'Enabled' ),
47 | static::DISABLED => __ ( 'Disabled' )
48 | ];
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/view/adminhtml/layout/marketplaceadmin_payments_index.xml:
--------------------------------------------------------------------------------
1 |
2 |
32 |
34 |
35 |
36 |
37 |
38 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/view/adminhtml/layout/marketplaceadmin_products_index.xml:
--------------------------------------------------------------------------------
1 |
2 |
32 |
34 |
35 |
36 |
37 |
38 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/view/adminhtml/layout/marketplaceadmin_review_grid.xml:
--------------------------------------------------------------------------------
1 |
2 |
32 |
34 |
35 |
36 |
37 |
39 |
40 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/view/frontend/layout/marketplace_seller_allseller.xml:
--------------------------------------------------------------------------------
1 |
2 |
32 |
35 |
36 |
37 |
38 |
39 |
40 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/view/adminhtml/layout/marketplaceadmin_sellers_grid.xml:
--------------------------------------------------------------------------------
1 |
2 |
32 |
34 |
35 |
36 |
37 |
39 |
40 |
--------------------------------------------------------------------------------
/app/code/Apptha/Vacationmode/view/adminhtml/layout/vacationmode_vacationmode_index.xml:
--------------------------------------------------------------------------------
1 |
2 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/view/adminhtml/layout/marketplaceadmin_payments_grid.xml:
--------------------------------------------------------------------------------
1 |
2 |
32 |
34 |
35 |
36 |
37 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/view/adminhtml/layout/marketplaceadmin_products_grid.xml:
--------------------------------------------------------------------------------
1 |
2 |
32 |
34 |
35 |
36 |
37 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/view/adminhtml/layout/marketplaceadmin_allpayments_index.xml:
--------------------------------------------------------------------------------
1 |
2 |
32 |
34 |
35 |
36 |
37 |
38 |
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/view/adminhtml/layout/marketplaceadmin_allpayments_grid.xml:
--------------------------------------------------------------------------------
1 |
2 |
32 |
34 |
35 |
36 |
37 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/view/adminhtml/layout/marketplaceadmin_transactions_grid.xml:
--------------------------------------------------------------------------------
1 |
2 |
32 |
34 |
35 |
36 |
37 |
39 |
40 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/Controller/Adminhtml/Sellers/Grid.php:
--------------------------------------------------------------------------------
1 |
27 | * @copyright Copyright (c) 2017 Apptha. (http://www.apptha.com)
28 | * @license http://www.apptha.com/LICENSE.txt
29 | *
30 | */
31 | namespace Apptha\Marketplace\Controller\Adminhtml\Sellers;
32 |
33 | use Apptha\Marketplace\Controller\Adminhtml\Sellers;
34 |
35 | class Grid extends Sellers {
36 | protected function _prepareCollection() {
37 | $collection = $this->_gridFactory->create ()->getCollection ();
38 | $this->setCollection ( $collection );
39 | parent::_prepareCollection ();
40 | return $this;
41 | }
42 | /**
43 | *
44 | * @return void
45 | */
46 | public function execute() {
47 | return $this->_resultPageFactory->create ();
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/Model/System/Config/Status.php:
--------------------------------------------------------------------------------
1 |
27 | * @copyright Copyright (c) 2017 Apptha. (http://www.apptha.com)
28 | * @license http://www.apptha.com/LICENSE.txt
29 | *
30 | * */
31 | namespace Apptha\Marketplace\Model\System\Config;
32 |
33 | use Magento\Framework\Option\ArrayInterface;
34 |
35 | /**
36 | * This class contains seller Status functions
37 | */
38 | class Status implements ArrayInterface {
39 | const ENABLED = 1;
40 | const DISABLED = 0;
41 |
42 | /**
43 | * Function to get Options
44 | *
45 | * @return array
46 | */
47 | public function toOptionArray() {
48 | return [
49 | static::ENABLED => __ ( 'Approved' ),
50 | static::DISABLED => __ ( 'Disapproved' )
51 | ];
52 | }
53 | }
54 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/view/adminhtml/layout/marketplaceadmin_subscriptionplans_grid.xml:
--------------------------------------------------------------------------------
1 |
2 |
32 |
34 |
35 |
36 |
37 |
39 |
40 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/view/adminhtml/layout/marketplaceadmin_subscriptionplans_index.xml:
--------------------------------------------------------------------------------
1 |
2 |
32 |
34 |
35 |
36 |
37 |
38 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/view/frontend/layout/marketplace_order_mange.xml:
--------------------------------------------------------------------------------
1 |
2 |
32 |
34 |
35 |
36 |
37 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/view/frontend/layout/marketplace_seller_review.xml:
--------------------------------------------------------------------------------
1 |
2 |
32 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
--------------------------------------------------------------------------------
/app/code/Apptha/Vacationmode/etc/cron_groups.xml:
--------------------------------------------------------------------------------
1 |
2 |
32 |
33 |
34 | 10
35 | 1
36 | 2
37 | 10
38 | 60
39 | 600
40 |
41 |
42 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/Block/Adminhtml/Subscriptionprofiles.php:
--------------------------------------------------------------------------------
1 |
26 | * @copyright Copyright (c) 2017 Apptha. (http://www.apptha.com)
27 | * @license http://www.apptha.com/LICENSE.txt
28 | *
29 | */
30 | namespace Apptha\Marketplace\Block\Adminhtml;
31 | use Magento\Backend\Block\Widget\Grid\Container;
32 | /**
33 | * This class contains subscription profiles info
34 | */
35 | class Subscriptionprofiles extends Container {
36 | /**
37 | * Constructor
38 | *
39 | * @return void
40 | */
41 | protected function _construct() {
42 | /**
43 | * Set grid data
44 | */
45 | $this->_controller = 'adminhtml_subscriptionprofiles';
46 | $this->_blockGroup = 'Apptha_Marketplace';
47 | $this->_headerText = __ ( 'Subscribed Profiles' );
48 | }
49 | }
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/Controller/Adminhtml/Allpayments/NewAction.php:
--------------------------------------------------------------------------------
1 |
27 | * @copyright Copyright (c) 2017 Apptha. (http://www.apptha.com)
28 | * @license http://www.apptha.com/LICENSE.txt
29 | *
30 | */
31 | /**
32 | * This class contains seller subscription plan add functionality
33 | */
34 | namespace Apptha\Marketplace\Controller\Adminhtml\Allpayments;
35 |
36 | use Apptha\Marketplace\Controller\Adminhtml\Allpayments;
37 |
38 | /**
39 | * This class contains for new subscription plan action
40 | */
41 | class NewAction extends Allpayments {
42 | /**
43 | * Seller review add action
44 | */
45 | public function execute() {
46 | /**
47 | * Redirect to edit subscription plan page
48 | */
49 | $this->_redirect ( '*/payments/index' );
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/view/adminhtml/layout/marketplaceadmin_subscriptionprofiles_index.xml:
--------------------------------------------------------------------------------
1 |
2 |
32 |
34 |
35 |
36 |
37 |
38 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/view/frontend/templates/onepage.phtml:
--------------------------------------------------------------------------------
1 |
9 |
10 |
11 |
12 |
15 |
16 |
17 |
18 |
25 |
31 |
40 |
41 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/view/adminhtml/layout/marketplaceadmin_subscriptionprofiles_grid.xml:
--------------------------------------------------------------------------------
1 |
2 |
32 |
34 |
35 |
36 |
37 |
40 |
41 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/Controller/Adminhtml/Subscriptionplans/NewAction.php:
--------------------------------------------------------------------------------
1 |
27 | * @copyright Copyright (c) 2017 Apptha. (http://www.apptha.com)
28 | * @license http://www.apptha.com/LICENSE.txt
29 | *
30 | */
31 | /**
32 | * This class contains seller subscription plan add functionality
33 | */
34 | namespace Apptha\Marketplace\Controller\Adminhtml\Subscriptionplans;
35 |
36 | use Apptha\Marketplace\Controller\Adminhtml\Subscriptionplans;
37 |
38 | /**
39 | * This class contains for new subscription plan action
40 | */
41 | class NewAction extends Subscriptionplans {
42 | /**
43 | * Seller review add action
44 | */
45 | public function execute() {
46 | /**
47 | * Redirect to edit subscription plan page
48 | */
49 | $this->_redirect ( '*/*/edit' );
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/view/frontend/layout/marketplace_general_changebuyer.xml:
--------------------------------------------------------------------------------
1 |
2 |
32 |
34 |
35 |
36 |
37 |
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/view/frontend/layout/marketplace_order_manage.xml:
--------------------------------------------------------------------------------
1 |
2 |
32 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
42 |
43 |
44 |
45 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/Block/Adminhtml/Subscriptionplans.php:
--------------------------------------------------------------------------------
1 |
26 | * @copyright Copyright (c) 2017 Apptha. (http://www.apptha.com)
27 | * @license http://www.apptha.com/LICENSE.txt
28 | *
29 | */
30 | namespace Apptha\Marketplace\Block\Adminhtml;
31 | use Magento\Backend\Block\Widget\Grid\Container;
32 | /**
33 | * This class contains review grid
34 | */
35 | class Subscriptionplans extends Container {
36 | /**
37 | * Constructor
38 | *
39 | * @return void
40 | */
41 | protected function _construct() {
42 | /**
43 | * Setup subscription plans grid info
44 | */
45 | $this->_controller = 'adminhtml_subscriptionplans';
46 | $this->_blockGroup = 'Apptha_Marketplace';
47 | $this->_headerText = __ ( 'Manage Subscription' );
48 | parent::_construct ();
49 | }
50 | }
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/view/frontend/layout/marketplace_order_vieworder.xml:
--------------------------------------------------------------------------------
1 |
2 |
32 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
42 |
43 |
44 |
45 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/Model/Config/Source/Profilestatus.php:
--------------------------------------------------------------------------------
1 |
27 | * @copyright Copyright (c) 2017 Apptha. (http://www.apptha.com)
28 | * @license http://www.apptha.com/LICENSE.txt
29 | *
30 | * */
31 | namespace Apptha\Marketplace\Model\Config\Source;
32 |
33 | /**
34 | * This class contains seller subscription status functions
35 | */
36 | class Profilestatus implements \Magento\Framework\Option\ArrayInterface {
37 | const PENDING = 0;
38 | const ACTIVE = 1;
39 | const COMPLETE = 2;
40 | /**
41 | * To option array
42 | *
43 | * @return array
44 | */
45 | public function toOptionArray() {
46 | return [
47 | static::PENDING => __ ( 'Pending' ),
48 | static::ACTIVE => __ ( 'Active' ),
49 | static::COMPLETE => __ ( 'Complete' )
50 | ];
51 | }
52 | }
53 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/Block/Adminhtml/Allpayments.php:
--------------------------------------------------------------------------------
1 |
26 | * @copyright Copyright (c) 2017 Apptha. (http://www.apptha.com)
27 | * @license http://www.apptha.com/LICENSE.txt
28 | *
29 | */
30 | namespace Apptha\Marketplace\Block\Adminhtml;
31 |
32 | use Magento\Backend\Block\Widget\Grid\Container;
33 | /**
34 | * This class contains subscription profiles info
35 | */
36 | class Allpayments extends Container {
37 | /**
38 | * Constructor
39 | *
40 | * @return void
41 | */
42 | protected function _construct() {
43 | /**
44 | * Set grid data
45 | */
46 | $this->_controller = 'adminhtml_allpayments';
47 | $this->_blockGroup = 'Apptha_Marketplace';
48 | $this->_headerText = __ ( 'Seller Payments List' );
49 | $this->_addButtonLabel = __ ( 'Back' );
50 | parent::_construct ();
51 | }
52 | }
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/view/frontend/layout/marketplace_seller_profile.xml:
--------------------------------------------------------------------------------
1 |
2 |
32 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
43 |
44 |
45 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/view/frontend/layout/marketplace_contact_form.xml:
--------------------------------------------------------------------------------
1 |
2 |
32 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
43 |
44 |
45 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/view/frontend/layout/marketplace_product_preview.xml:
--------------------------------------------------------------------------------
1 |
2 |
32 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
43 |
44 |
45 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/view/frontend/layout/marketplace_seller_paypal.xml:
--------------------------------------------------------------------------------
1 |
2 |
32 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/etc/events.xml:
--------------------------------------------------------------------------------
1 |
2 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/view/adminhtml/layout/marketplaceadmin_review_edit.xml:
--------------------------------------------------------------------------------
1 |
2 |
32 |
34 |
35 |
36 |
38 |
39 |
40 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/view/adminhtml/layout/marketplaceadmin_sellers_edit.xml:
--------------------------------------------------------------------------------
1 |
2 |
32 |
34 |
35 |
36 |
38 |
39 |
40 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/view/frontend/templates/assignproduct/comparepriceattributes.phtml:
--------------------------------------------------------------------------------
1 |
26 | * @copyright Copyright (c) 2017 Apptha. (http://www.apptha.com)
27 | * @license http://www.apptha.com/LICENSE.txt
28 | *
29 | */
30 |
31 | $attributes=$this->getData('attributes');
32 | $productDetail=$this->getData('productdetail');
33 | foreach ( $attributes as $attribute ) {
34 | /**
35 | * Get the value for a specific attribute for a simple product
36 | */
37 | $attributeId = $attribute->getProductAttribute ()->getAttributeId ();
38 | $optionValue = $productDetail->getData ( $attribute->getProductAttribute ()->getAttributeCode () );
39 | ?>
40 |
43 |
--------------------------------------------------------------------------------
/app/code/Apptha/Vacationmode/view/frontend/layout/default.xml:
--------------------------------------------------------------------------------
1 |
2 |
32 |
34 |
35 |
36 |
39 |
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/Block/Contact/Form.php:
--------------------------------------------------------------------------------
1 |
26 | * @copyright Copyright (c) 2017 Apptha. (http://www.apptha.com)
27 | * @license http://www.apptha.com/LICENSE.txt
28 | *
29 | */
30 | namespace Apptha\Marketplace\Block\Contact;
31 |
32 | use Magento\Framework\View\Element\Template;
33 |
34 | /**
35 | * This class used to display the contact admin form for seller
36 | */
37 | class Form extends \Magento\Directory\Block\Data {
38 |
39 | /**
40 | * Prepare layout for contact form
41 | *
42 | * @return \Magento\Framework\View\Element\AbstractBlock::_prepareLayout()
43 | */
44 | public function _prepareLayout() {
45 | /**
46 | * Set page title
47 | */
48 | $this->pageConfig->getTitle ()->set ( __ ( "Contact Admin" ) );
49 | /**
50 | * Call prepare layout
51 | */
52 | return parent::_prepareLayout ();
53 | }
54 | }
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/view/adminhtml/layout/marketplaceadmin_payments_edit.xml:
--------------------------------------------------------------------------------
1 |
2 |
32 |
34 |
35 |
36 |
38 |
39 |
40 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/view/frontend/layout/marketplace_product_manage.xml:
--------------------------------------------------------------------------------
1 |
2 |
32 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
43 |
44 |
45 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/view/frontend/layout/marketplace_seller_transactions.xml:
--------------------------------------------------------------------------------
1 |
2 |
32 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/view/frontend/layout/marketplace_assignproduct_add.xml:
--------------------------------------------------------------------------------
1 |
2 |
32 |
33 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
44 |
45 |
46 |
47 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/view/frontend/layout/marketplace_assignproduct_edit.xml:
--------------------------------------------------------------------------------
1 |
2 |
32 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/app/code/Apptha/Marketplace/view/frontend/templates/account/link.phtml:
--------------------------------------------------------------------------------
1 |
26 | * @copyright Copyright (c) 2017 Apptha. (http://www.apptha.com)
27 | * @license http://www.apptha.com/LICENSE.txt
28 | *
29 | */
30 | ?>helper( 'Apptha\Marketplace\Helper\Data' );
32 | $moduleEnabledOrNot = $helper->getModuleEnable ();
33 | if ($moduleEnabledOrNot) {
34 | ?>
35 |
36 | helper ( 'Apptha\Marketplace\Helper\Data' )->getHeadTitle ();
39 | if (empty ( $websiteTitle )) {
40 | $websiteTitle = __ ( "Marketplace" );
41 | }
42 | ?>
43 | getLinkAttributes() ?>>escapeHtml($block->getLabel()).__($websiteTitle)?>
44 | getCounter()) ? '' . $block->escapeHtml($block->getCounter()) . ' ' : ''; ?>
45 |
46 |
47 |
--------------------------------------------------------------------------------