Added Channel Manager Connector module to QloApps
This commit is contained in:
@@ -699,6 +699,7 @@ class InstallModelInstall extends InstallAbstractModel
|
||||
'statsequipment',
|
||||
'blockcart',
|
||||
'blockuserinfo',
|
||||
'qlochannelmanagerconnector',
|
||||
);
|
||||
}
|
||||
return $modules;
|
||||
|
||||
0
modules/qlochannelmanagerconnector/CHANGELOG.txt
Normal file
0
modules/qlochannelmanagerconnector/CHANGELOG.txt
Normal file
125
modules/qlochannelmanagerconnector/CustomizationPolicy.txt
Normal file
125
modules/qlochannelmanagerconnector/CustomizationPolicy.txt
Normal file
@@ -0,0 +1,125 @@
|
||||
Webkul Software Customization Policy
|
||||
=====================================
|
||||
|
||||
1.Definitions :
|
||||
------------------
|
||||
|
||||
=> "Webkul" means Webkul Software Pvt. Ltd.
|
||||
|
||||
=> "Customization" means those services by which functionality / features are added to a product that are not included in the base installation of a product, which are aimed to suit the specific needs of the customer.
|
||||
|
||||
=> "Module" means the custom add-on module to be developed and provided by Webkul to you in accordance with this policy and the Order Form.
|
||||
|
||||
=> "Order Form" means the order form (electronic or hard copy), accepted by Webkul, through which you ordered the Module to be developed and provided by Webkul and which sets out the details, specifications and parameters of the customized Module to be provided.
|
||||
|
||||
=> "Software" means the software licensed by Webkul to you pursuant to the terms and conditions of a Webkul Software License Agreement.
|
||||
|
||||
2. Module Development :
|
||||
-----------------------
|
||||
|
||||
=> All customization Services and use of the Module are subject to the terms and conditions of Webkul’s Software Licence Agreement, found on Webkul’s website, and are also subject to the terms and conditions set forth in the Order Form, as well as the customization parameters. No other customization services will be provided unless expressly agreed upon by you and Webkul in writing, signed by authorized representatives of you and Webkul.
|
||||
|
||||
3. Customization Services :
|
||||
---------------------------
|
||||
|
||||
=> Customization Services will be provided in accordance with the terms of the Order Form and subject to the conditions set forth on the Order Form including full payment of all fees and adherence to all time limits and scheduling restrictions.
|
||||
|
||||
=> If expressly stated on the Order Form, the Customization Services and Module shall be subject to acceptance by you in accordance with the acceptance criteria set forth in the Order Form. Where there is no acceptance criteria set forth on the Order Form, acceptance shall be deemed to occur upon the earliest of:
|
||||
|
||||
-> completion of the acceptance criteria,
|
||||
|
||||
-> Webkul's completion of the Customization Services and written notification to you of such completion,
|
||||
|
||||
-> your use of the Module in other than a test environment.
|
||||
|
||||
=> Notwithstanding the foregoing, if acceptance testing, delivery or completion is delayed by thirty (30) days or more for reasons not related to Webkul’s performance, you must pay the value of any milestone that is contingent on acceptance. Such acceptance does not negate any warranty rights that you may have respecting the Module, as set forth herein. You are solely responsible for preparing your facilities and equipment for installation of the Module, where applicable.
|
||||
|
||||
=> Webkul will make reasonable efforts to accommodate your time and deadline requirements with respect to the performance of Customization Services; however, meeting such requirements is subject to availability of resources, both human and equipment at the time of your request and is dependent on your availability to provide input and to perform necessary actions. Webkul shall not be liable in any way for any delay or damage arising from Webkul’s failure to meet such of your requirements or any deadlines.
|
||||
|
||||
=> Any changes to the Customization Services or Module requirements after execution of the Order Form will be subject to a cost and delivery re-assessment, and a written change order or re-quote that has been mutually agreed upon by you and Webkul in writing. Webkul reserves the right to make changes in the design of its Software without the obligation to make equivalent changes to the Module.
|
||||
|
||||
=> If, pursuant to your request, Webkul reviews drawings and documents prepared by others in connection with the Customization Services, including your personnel and other consultants, contractors, and suppliers, Webkul’s review of such drawings and documents shall be only to confirm general compliance with the intent of the design and information given, and shall not constitute acceptance by Webkul of any responsibility for correctness of specifications or details of such drawings and documentation. Webkul shall be entitled to rely on all information provided, and decisions and approvals made, by you in connection with Webkul’s work hereunder. You agree that Webkul and its personnel shall not be subject to any liability or costs relating to the Customization Services to the extent such liability and costs are attributable to any information provided by you that is not complete, accurate or current in all material respects.
|
||||
|
||||
=> The Module, and all parts thereof, shall at all times be treated as Software licensed to you under the terms and conditions of the Licence Agreement.
|
||||
|
||||
4. Term and Termination
|
||||
------------------------
|
||||
|
||||
=> The term of the Development Services, if any, shall be as set out on the Order Form.
|
||||
|
||||
=> Customization Services may be terminated by Webkul immediately upon notice for cause if:
|
||||
|
||||
-> you materially breach any agreement entered into between you and Webkul, including Webkul’s Licence Agreement and/or any User / software license agreement relating to Webkul’s products (or you consistently fail to properly perform and observe your obligations under such agreements or any applicable Webkul Software policy), and you fail to rectify the situation within ten (10) calendar days of notice from Webkul; or
|
||||
|
||||
-> you become insolvent, or a receiver or receiver-manager is appointed for any part of your property, or you make an assignment, proposal or arrangement for the benefit of your creditors or you file an assignment in bankruptcy, or any proceedings under any bankruptcy or insolvency laws are commenced against you.
|
||||
|
||||
=> Webkul shall have the right to terminate Customization Services immediately upon notice to you, without penalty or refund, if any agreement relating to the Software is terminated for any reason.
|
||||
|
||||
=> Each party shall have the right to terminate the Development Services for convenience upon ninety (90) days’ notice to the other party.
|
||||
|
||||
=> Termination of the Customization Services or any agreement shall not affect your payment obligation for any Customization Services performed by Webkul prior to the date of termination, regardless of whether you have had, as at the date of termination, any use of the Module or part thereof. In the event that the Customization Services are terminated prior to the delivery of the Module to you, Webkul shall not be obligated to deliver any work-in-progress or any portion of the Module to you, unless otherwise expressly agreed by the parties in writing.
|
||||
|
||||
5. Fees
|
||||
--------
|
||||
|
||||
=> You shall pay fees for the Customization Services and Module license in accordance with the fee schedule set forth in the Order Form. Webkul shall submit invoices to you for all fees and payments due, including applicable expenses, on a monthly basis in arrears. You shall pay to Webkul the full amount of each invoice received from Webkul within seven (7) days of receipt of the invoice. All invoices shall detail the nature of the Customization Services performed, the fees payable, and the basis on which the calculation of the fees has been made.
|
||||
|
||||
=> You are responsible for, and shall pay all taxes relating to the Customization Services and the Module. Unless otherwise indicated, all amounts payable by you under an Order Form are exclusive of any tax, duty, levy, or similar government charge that may be assessed by any jurisdiction, whether based on gross revenue, the delivery, possession or use of the Module, other Software or Customization Services, or otherwise.
|
||||
|
||||
=> If you fail to pay any amount due within thirty (30) days of such payment becoming due and payable, in addition to any other rights and remedies available to Webkul, Webkul shall be entitled to charge interest on all outstanding amounts at the lesser of 18% per annum or the maximum rate permitted by law, such interest commencing as of the due date for such payment. You shall also be responsible for paying for all reasonable fees and costs incurred by Webkul, including legal fees, in collecting any overdue amounts or enforcing any provision of any agreement entered into between you and Webkul.
|
||||
|
||||
=> Pricing is subject to Webkul’s understanding of the project requirements, the terms of this policy and the Order Form. Webkul reserves the right to invoice you for additional Customization Services requested by you, or that are required based on incomplete details or specifications provided by you, that are not specified in the Order Form but are provided by Webkul to you, provided that Webkul provides you with notice that such additional Customization Services are not included in the Order Form and are subject to Webkul’s then current time and materials fee schedule for such Customization Services. Invoices for such additional Customization Services shall be subject to payment in accordance with this Section.
|
||||
|
||||
6. Intellectual Property Rights
|
||||
--------------------------------
|
||||
|
||||
=> Webkul shall own all intellectual property rights (whether or not patentable or registrable under copyright, trade-mark or similar legislation or subject to analogous protection) in and to the Module, and all work conceived, created, invented, produced, designed or reduced to practice by Webkul and its personnel as a result of or with respect to any and all Customization Services provided to you. Your rights and obligations relating to the use of the Module shall be governed by the terms of the applicable Webkul Software License Agreement regardless of whether you may have contributed to any Module in any way. The foregoing shall not be deemed to transfer ownership to Webkul of any pre-existing intellectual property rights that you may have in the materials that you provide to Webkul in order to permit Webkul to perform the Customization Services; however, to the extent that you have provided such materials to Webkul, you hereby grant Webkul a non-exclusive, non-transferable, royalty-free license to use all such materials for the purposes of performing the Customization Services and providing you with the Module.
|
||||
|
||||
7. Limited Warranty and Limitation of Liability
|
||||
-----------------------------------------------
|
||||
|
||||
=> Limited Warranty: Webkul warrants that all services provided by Webkul shall be provided in a competent, professional manner by persons who are fully trained and qualified to perform the Customization Services. Webkul does not represent or warrant that the Customization Services or Module provided hereunder will be capable of achieving a particular result for your business, or that the operation of the Module will be error free or uninterrupted, or that all errors in the Module can be found or corrected, although Webkul shall use commercially reasonable efforts to do so. Without limiting the foregoing, this warranty is valid only for the six (6) months following the acceptance date as set forth in Section 3(b). The above warranty shall not apply to defects or non-conformities resulting from:
|
||||
|
||||
-> improper or inadequate maintenance or installation of the Module
|
||||
|
||||
-> use of the Module in combination with software, interfaces, or other materials that are not supplied or specifically authorized by Webkul,
|
||||
|
||||
-> unauthorized or improper use or modification of the Module, including use that is not contemplated in the Order Form or instructions provided by Webkul,
|
||||
|
||||
-> abuse, negligence, accident, or other damage from external sources, or
|
||||
|
||||
->improper preparation of your facilities or equipment for installation and use or the Module.
|
||||
|
||||
=> Limitation of Liability:
|
||||
|
||||
-> save as otherwise provided in a written agreement between you and Webkul, and to the maximum extent permitted by applicable law, Webkul makes no warranty or condition, express or implied, statutory or otherwise, with respect to the module or the Customization services, including, without limitation, the implied warranties or conditions of merchantability and fitness for a particular purpose.
|
||||
|
||||
-> in no event shall Webkul be liable to you or any other person for any indirect, special, punitive, exemplary, consequential or incidental damages (including without limitation, damages for loss of revenues or profits, business interruption, loss of business information, and the like) arising out of the use, inability to use or the performance or non-performance of, the module or the provision of the Customization services, even if Webkul has been advised of the possibility of such damage or claim, or it is foreseeable.
|
||||
|
||||
-> in no event shall Webkul’s maximum aggregate liability to you for direct damages exceed the total amount paid by you for the Customization services performed by Webkul within the six (6) months preceding the date on which the claim arose.
|
||||
|
||||
8. General Terms and Conditions
|
||||
-------------------------------
|
||||
=> As Webkul is primarily a plugin and app development company and its main focus is on constant plugin development fulfilling various latest requirements and keeping up with the latest trends, Webkul has all the right to release the same customized plugin as a new plugin in future to be available to all its customers. The same may include few or every feature of the customisation. Webkul reserve all the rights to do the same as the customisation done for the client is Intellectual property of Webkul.
|
||||
|
||||
=> The customization undertaken by Webkul would be identical to the discussed requirements, and would not include any sort of additional changes or alterations. Any additional changes or alterations would be considered as a separate project and would be charged separately.
|
||||
|
||||
=> Webkul would be providing customization support for only one month from the delivery of the project. For any further support extended to you, the same shall be charged separately which includes specifically any further help or bug /error fix.
|
||||
|
||||
=> The cost of customization doesn’t include the cost of extension installation or exchange of the extension, if it has not been specifically quoted within the project cost.
|
||||
|
||||
=> During the project customization, you ought not to edit or change any of the files and it is also advisable to have a backup every-time a change is made. If you, on your own, are making certain changes, it is advisable to back up the files, folder and database. Before doing anything on your own, you need to inform Webkul if Webkul is working on the project or your support period is subsisting.
|
||||
|
||||
=> The customization charge will include a single template. Any time during or after the customization if you change the template, you shall be wholly and solely liable for any loss or damage emanating from the same. Webkul will not be responsible for any loss or damage done due to the same.
|
||||
|
||||
=> All the communication will take place through Webkul’s help desk system only. If the need arises, the issues can be discussed via Skype once in week or month. Webkul does not allow screen sharing and remote desktop.
|
||||
|
||||
=> Customization cost will not include any free consulting beyond the scope of the project.
|
||||
|
||||
=> If while making any changes by yourself or by your team, something gets damaged, then Webkul will not be responsible for it. This includes any issues faced by you for your own fault even during the support period of the module or project.
|
||||
|
||||
=> Webkul will not be responsible for any damages during the customization. It is advised that you must have a proper backup management system deployed.
|
||||
|
||||
=> The terms and conditions of this Policy shall be governed by Indian Laws, and the courts in Delhi alone shall only have exclusive jurisdiction to resolve/ adjudicate upon any disputes.
|
||||
|
||||
=> If any dispute arises between webkul and you/Licensee at any time, in connection with the validity, interpretation, implementation or alleged breach of any provision of this Agreement, the same shall be referred to a sole Arbitrator who shall be an independent and neutral third party appointed exclusively by Webkul. You shall not object to the appointment of the Arbitrator so appointed by Webkul. The place of arbitration shall be Delhi, India. The Arbitration & Conciliation Act, 1996 as amended by The Arbitration & Conciliation (Amendment) Act, 2015, shall govern the arbitration proceedings. The arbitration proceedings shall be held in the English language.
|
||||
223
modules/qlochannelmanagerconnector/LICENSE.txt
Normal file
223
modules/qlochannelmanagerconnector/LICENSE.txt
Normal file
@@ -0,0 +1,223 @@
|
||||
SOFTWARE LICENCE AGREEMENT
|
||||
===============================
|
||||
|
||||
This AGREEMENT is made effective on the date of the purchase of the software between Webkul Software Pvt. Ltd.,Company incorporated under the Companies Act, 1956 (hereinafter referred to as “Licensor"), and the purchaser of the software/ product (hereinafter referred to as "Licensee").
|
||||
|
||||
Preamble
|
||||
==================
|
||||
Licensor is a web and mobile product based organization engaged in the business of developing and marketing software for enterprise level e-commerce businesses. It is an ISO and NSR (NASSCOM) certified organization having a team of more than 150 creative engineers which come from different backgrounds. It has developed more than 700 web extensions and apps in the past few years for open source platforms which are used and trusted globally. Licensee now wishes to obtain license, and Licensor wishes to grant a license, to allow use of the software so purchased in developing the e-commerce business website/ mobile app of the Licensee, subject to the terms and conditions set forth herein.
|
||||
|
||||
|
||||
THEREFORE, with the intent to be legally bound, the parties hereby agree as follows:
|
||||
|
||||
|
||||
Agreement
|
||||
================
|
||||
|
||||
1.Definitions :
|
||||
------------------
|
||||
As used in this Agreement, the following capitalized terms shall have the definitions set forth below:
|
||||
|
||||
|
||||
"Derivative Works" are works developed by Licensee, its officers, agents, contractors or employees, which are based upon, in whole or in part, the Source Code and/or the Documentation and may also be based upon and/or incorporate one or more other preexisting works of the Licensor. Derivative Works may be any improvement, revision, modification, translation (including compilation or recapitulation by computer), abridgment, condensation, expansion, or any other form in which such a preexisting work may be recast, transformed, or adapted. For purposes hereof, a Derivative Work shall also include any compilation that incorporates such a preexisting work.
|
||||
|
||||
|
||||
"Documentation" is written, printed or otherwise recorded or stored (digital or paper) material relating to the Software and/or Source Code, including technical specifications and instructions for its use including Software/ Source Code annotations and other descriptions of the principles of its operation and instructions for its use.
|
||||
|
||||
|
||||
"Improvements" shall mean, with respect to the Software, all modifications and changes made, developed, acquired or conceived after the date hereof and during the entire term of this Agreement.
|
||||
|
||||
|
||||
"Source Code" is the computer programming source code form of the Software in the form maintained by the Licensor, and includes all non-third-party executables, libraries, components, and Documentation created or used in the creation, development, maintenance, and support of the Software as well as all updates, error corrections and revisions thereto provided by Licensor, in whole or in part.
|
||||
|
||||
|
||||
2. Software License.
|
||||
-------------------------
|
||||
|
||||
(a)Grant of License. For the consideration set forth below, Licensor hereby grants to Licensee, and Licensee hereby accepts the worldwide, non-exclusive, perpetual, royalty-free rights and licenses set forth below:
|
||||
|
||||
|
||||
(i)The right and license to use and incorporate the software, in whole or in part, to develop its website/ mobile app (including the integration of all or part of the Licensor’s software into Licensee's own software) on one domain ( Except Joomla modules , listed on store are entitled to be used on unlimited domain as per the standard guidelines ) only, solely for the own personal or business use of the Licensee. However, the License does not authorize the Licensee to compile, copy or distribute the said Software or its Derivative Works.
|
||||
|
||||
|
||||
(ii)The right and license does not authorize the Licensee to make any backup or archival copies of the Software and / or the Source Code and Documentation.
|
||||
|
||||
(iii)The right and license does not authorize the Licensee to migrate the domain license to another domain.
|
||||
|
||||
|
||||
(b)Scope; Rights and Responsibilities.
|
||||
|
||||
|
||||
(i)Licensor shall enable the Licensee to download one complete copy of the Software.
|
||||
|
||||
|
||||
(ii)The Software is intended for the sole use of the Licensee in development of its own website/ mobile app.
|
||||
|
||||
|
||||
(iii)Licensee does not have the right to hand over, sell, distribute, sub-license, rent, lease or lend any portion of the Software or Documentation, whether modified or unmodified, to anyone. Licensee should not place the Software on a server so that it becomes accessible via a public network such as the Internet for distribution purposes. In case the Licensee is using any source code management system like github, it can use the code there only when it has paid subscription from such management system.
|
||||
|
||||
|
||||
(iv)Licensee is not authorized to appoint, or work with, third parties to perform any development services using the Source Code, the source code to Derivative Works and/or the Documentation on behalf of, or working with, the Licensee. Release of Source Code, Derivative Work source code and/or Documentation to any third party shall be considered as violation of the Agreement, inter-alia entailing forthwith termination and legal action.
|
||||
|
||||
|
||||
|
||||
(c)Ownership.
|
||||
|
||||
|
||||
(i)Software and Source Code. All right, title, copyright, and interest in the Software, Source Code, Software Modifications and Error corrections will be and remain the property of Licensor.
|
||||
|
||||
|
||||
(ii)Derivative Works. As creation of Derivative Works by the Licensee is prohibited, thus, all right, title, copyright, and interest in any and/or all Derivative Works and Improvements created by, or on behalf of, Licensee will also be deemed to the property of Licensor. Licensor shall be entitled to protect copyright / intellectual property in all such Derivative Works and Improvements also in any country as it may deem fit including without limitation seeking copyright and/or patent protection.
|
||||
|
||||
|
||||
3.Consideration.
|
||||
--------------------
|
||||
|
||||
(a)Licensee shall pay to Licensor the amount as mentioned on the website from where the order is placed, as one-time, upfront fees in consideration for the licenses and rights granted hereunder (hereinafter referred to as the "License Fee"). The License Fee to be paid by Licensee shall be paid upfront at the time of placing the order, and no credit will be allowed under any circumstances.
|
||||
|
||||
|
||||
(b)Once paid, the License Fees shall be non-refundable. The Licensee has fully satisfied itself about the Software and has seen the demonstration, and only thereafter has placed the order. Thus, the License Fees or any part thereof is non-refundable. No claim for refund of the Licence Fees shall be entertained under any circumstances.
|
||||
|
||||
|
||||
|
||||
4.Representations and Warranties.
|
||||
-------------------------------------
|
||||
|
||||
(a)Mutual. Each of the parties represents and warrants to the other as follows.
|
||||
|
||||
|
||||
(i)such party is a legal entity duly organized, validly existing and in good standing;
|
||||
|
||||
|
||||
(ii)such party has the power and authority to conduct its business as presently conducted and to enter into, execute, deliver and perform this Agreement.
|
||||
|
||||
|
||||
(iii)This Agreement has been duly and validly accepted by such party and constitutes the legal, valid and binding obligations of such party respectively, enforceable against such party in accordance with their respective terms;
|
||||
|
||||
|
||||
(iv)the acceptance, execution, delivery and performance of this Agreement does not and will not violate such party's charter or by-laws; nor require any consent, authorization, approval, exemption or other action by any third party or governmental entity.
|
||||
|
||||
|
||||
(b)Licensor warrants that, at the time of purchase of the Software:
|
||||
|
||||
|
||||
the Software will function materially as set forth in the website or published functionality provided by Licensor to customers and potential customers describing the Software; and
|
||||
|
||||
|
||||
Software add-ons, if purchased by the Licensee from the Licensor, will not materially diminish the features or functions of or the specifications of the Software as they existed as of the execution of this Agreement.
|
||||
|
||||
|
||||
|
||||
(c)Title. Licensor represents and warrants that it is the exclusive owner of all copyright/ intellectual property in the Software (including the Source Code) and has good and marketable title to the Software (including the Source Code) free and clear of all liens, claims and encumbrances of any nature whatsoever (collectively, "Liens"). Licensor's grant of license and rights to Licensee hereunder does not, and will not infringe any third party's property, intellectual property or personal rights.
|
||||
|
||||
|
||||
|
||||
5.Term.
|
||||
-------------
|
||||
|
||||
(a)Subject to Licensee's payment obligations, this Agreement shall commence as on the date of making payment of the Software by the Licensee to the Licensor, and shall continue until terminated by either party.
|
||||
|
||||
|
||||
(b)The Licensor retains the right to terminate the license at any time, if the Licensee is not abiding by any of the terms of the Agreement. The Licensee may terminate the Agreement at any time at its own discretion by uninstalling the Software and /or by destroying the said Software (or any copies thereof). However, the Licensee shall not be entitled to seek any refund of the amount paid by it to the Licensor, under any circumstances.
|
||||
|
||||
|
||||
(c)Survival. In the event this Agreement is terminated for any reason, the provisions set forth in Sections 2(a), 2(b), and 2(c) shall survive.
|
||||
|
||||
|
||||
|
||||
|
||||
6. Indemnification
|
||||
----------------------
|
||||
|
||||
The Licensee release the Licensor from, and agree to indemnify, defend and hold harmless the Licensor (and its officers, directors, employees, agents and Affiliates) against, any claim, loss, damage, settlement, cost, taxes, expense or other liability (including, without limitation, attorneys' fees) (each, a "Claim") arising from or related to: (a) any actual or alleged breach of any obligations in this Agreement; (b) any refund, adjustment, or return of Software,(c) any claim for actual or alleged infringement of any Intellectual Property Rights made by any third party or damages related thereto; or (d) Taxes.
|
||||
|
||||
|
||||
7. Limitation of Liability
|
||||
------------------------------
|
||||
|
||||
The Licensor will not be liable for any direct, indirect, incidental, special, consequential or exemplary damages, including but not limited to, damages for loss of profits, goodwill, use, data or other intangible losses arising out of or in connection with the Software, whether in contract, warranty, tort etc. (including negligence, software liability, any type of civil responsibility or other theory or otherwise) to the Licensee or any other person for cost of software, cover, recovery or recoupment of any investment made by the Licensee or its affiliates in connection with this Agreement, or for any other loss of profit, revenue, business, or data or punitive or consequential damages arising out of or relating to this Agreement. Further, the aggregate liability of the Licensor, arising out of or in connection with this Agreement or the transactions contemplated hereby will not exceed at any time, or under any circumstances, the total amounts received by the Licensor from the Licensee in connection with the particular software giving rise to the claim.
|
||||
|
||||
|
||||
8. Force Majeure
|
||||
---------------------
|
||||
|
||||
The Licensor will not be liable for any delay or failure to perform any of its obligations under this Agreement by reasons, events or other matters beyond its reasonable control.
|
||||
|
||||
|
||||
9. Relationship of Parties
|
||||
------------------------------
|
||||
|
||||
The Licensor and Licensee are independent legal entities, and nothing in this Agreement will be construed to create a partnership, joint venture, association of persons, agency, franchise, sales representative, or employment relationship between the parties. The Licensee will have no authority to make or accept any offers or representations on behalf of the Licensor. The relationship between the parties is that of Licensor and Licensee only, and the rights, duties, liabilities of each party shall be governed by this Agreement.
|
||||
|
||||
|
||||
10. Modification
|
||||
------------------------
|
||||
|
||||
The Licensor may amend any of the terms and conditions contained in this Agreement at any time and solely at its discretion. Any changes will be effective upon the posting of such changes on the Portal/ website, and the Licensee is responsible for reviewing these changes and informing itself of all applicable changes or notices. The continued use of a software by the Licensee after posting of any changes by the Licensor, will constitute the acceptance of such changes or modifications by the Licensee.
|
||||
|
||||
|
||||
|
||||
11.Miscellaneous.
|
||||
-----------------------
|
||||
|
||||
(a)General Provisions. This Agreement: (i) may be amended only by a writing signed by each of the parties; (ii) may be executed in several counterparts, each of which shall be deemed an original but all of which shall constitute one and the same instrument; (iii) contains the entire agreement of the parties with respect to the transactions contemplated hereby and supersedes all prior written and oral agreements, and all contemporaneous oral agreements, relating to such transactions; (iv) shall be governed by, and construed and enforced in accordance with, the laws of India; and (v) shall be binding upon, and inure to the benefit of, the parties and their respective successors and permitted assigns. Each of the parties hereby irrevocably submits to the jurisdiction of the Courts at Delhi, India, for the purposes of any action or proceeding arising out of or relating to this Agreement or the subject matter hereof and brought by any other party.
|
||||
|
||||
|
||||
(b)Assignment. Licensee cannot assign, pledge or otherwise transfer, whether by operation of law or otherwise, this Agreement, or any of its obligations hereunder, without the prior written consent of Licensor, which consent shall not be unreasonably withheld.
|
||||
|
||||
|
||||
(c)Notices. Unless otherwise specifically provided herein, all notices, consents, requests, demands and other communications required or permitted hereunder:
|
||||
|
||||
|
||||
(i)shall be in writing;
|
||||
|
||||
|
||||
(ii)shall be sent by messenger, certified or registered mail/email, or reliable express delivery service, to the appropriate address(es) set forth below; and
|
||||
|
||||
|
||||
(iii)shall be deemed to have been given on the date of receipt by the addressee, as evidenced by a receipt executed by the addressee (or a responsible person in his or her office), the records of the Party delivering such communication or a notice to the effect that such addressee refused to claim or accept such communication, if sent by messenger, mail or express delivery service.
|
||||
|
||||
|
||||
All such communications shall be sent to the following addresses or numbers, or to such other addresses or numbers as any party may inform the others by giving five days' prior notice:
|
||||
|
||||
|
||||
If to Webkul Software Pvt. Ltd.:
|
||||
|
||||
|
||||
|
||||
Webkul Software Pvt. Ltd.
|
||||
|
||||
H-28, ARV Park, Sector 63, NOIDA – 201301,
|
||||
|
||||
Uttar Pradesh, India
|
||||
|
||||
|
||||
If to Licensee:
|
||||
|
||||
At the address mentioned by the Licensee
|
||||
|
||||
(at the time of placing order of generating Invoice)
|
||||
|
||||
|
||||
(d)Severability. It is the intent of the parties that the provisions of this Agreement be enforced to the fullest extent permissible under the laws and public policies of India in which enforcement hereof is sought. In furtherance of the foregoing, each provision hereof shall be severable from each other provision, and any provision hereof which is/ becomes unenforceable shall be subject to the following: (i) if such provision is contrary to or conflicts with any requirement of any statute, rule or regulation in effect, then such requirement shall be incorporated into, or substituted for, such unenforceable provision to the minimum extent necessary to make such provision enforceable; (ii) the court, agency or arbitrator considering the matter is hereby authorized to (or, if such court, agency or arbitrator is unwilling or fails to do so, then the parties shall) amend such provision to the minimum extent necessary to make such provision enforceable, and the parties hereby consent to the entry of an order so amending such provision; and (iii) if any such provision cannot be or is not reformed and made enforceable pursuant to clause (i) or (ii) above, then such provision shall be ineffective to the minimum extent necessary to make the remainder of this Agreement enforceable. Any application of the foregoing provisions to any provision hereof shall not effect the validity or enforceability of any other provision hereof.
|
||||
|
||||
|
||||
(e)By purchasing the Software, the Licensee acknowledge that it has read this Agreement, and that it agrees to the content of the Agreement, its terms and agree to use the Software in compliance with this Agreement.
|
||||
|
||||
|
||||
(f)The Licensor holds the sole copyright of the Software. The Software or any portion thereof is a copyrightable matter and is liable to be protected by the applicable laws. Copyright infringement in any manner can lead to prosecution according to the current law. The Licensor reserves the right to revoke the license of any user who is not holding any license or is holding an invalid license.
|
||||
|
||||
|
||||
(g)This Agreement gives the right to use only one copy of the Software on one domain solely for the own personal or business use of the Licensee, subject to all the terms and conditions of this Agreement. A separate License has to be purchased for each new Software installation. Any distribution of the Software without the written consent of the Licensor (including non-commercial distribution) is regarded as violation of this Agreement, and will entail immediate termination of the Agreement and may invite liability, both civil and criminal, as per applicable laws.
|
||||
|
||||
|
||||
(h)The Licensor reserves the rights to publish a selected list of users/ Licensees of its Software, and no permission of any Licensee is needed in this regard. The Licensee agrees that the Licensor may, in its sole discretion, disclose or make available any information provided or submitted by the Licensee or related to it under this Agreement to any judicial, quasi-judicial, governmental, regulatory or any other authority as may be required by the Licensor to co-operate and / or comply with any of their orders, instructions or directions or to fulfill any requirements under applicable Laws.
|
||||
|
||||
|
||||
(i)If the Licensee continues to use the Software even after the sending of the notice by the Licensor for termination, the Licensee agree to accept an injunction to restrain itself from its further use, and to pay all costs (including but not limited to reasonable attorney fees) to enforce injunction or to revoke the License, and any damages suffered by the Licensor because of the misuse of the Software by the Licensee.
|
||||
|
||||
|
||||
12. Arbitration
|
||||
-----------------------
|
||||
|
||||
If any dispute arises between the Licensor and the Licensee at any time, in connection with the validity, interpretation, implementation or alleged breach of any provision of this Agreement, the same shall be referred to a sole Arbitrator who shall be an independent and neutral third party appointed exclusively by the Licensor. The Licensee shall not object to the appointment of the Arbitrator so appointed by the Licensor. The place of arbitration shall be Delhi, India. The Arbitration & Conciliation Act, 1996 as amended by The Arbitration & Conciliation (Amendment) Act, 2015, shall govern the arbitration proceedings. The arbitration proceedings shall be held in the English language.
|
||||
1
modules/qlochannelmanagerconnector/README.md
Normal file
1
modules/qlochannelmanagerconnector/README.md
Normal file
@@ -0,0 +1 @@
|
||||
## Channel Manager Connector
|
||||
@@ -0,0 +1,60 @@
|
||||
<?php
|
||||
/**
|
||||
* 2010-2023 Webkul.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* All right is reserved,
|
||||
* Please go through this link for complete license : https://store.webkul.com/license.html
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade this module to newer
|
||||
* versions in the future. If you wish to customize this module for your
|
||||
* needs please refer to https://store.webkul.com/customisation-guidelines/ for more information.
|
||||
*
|
||||
* @author Webkul IN <support@webkul.com>
|
||||
* @copyright 2010-2023 Webkul IN
|
||||
* @license https://store.webkul.com/license.html
|
||||
*/
|
||||
|
||||
class QcmcChannelManagerBooking extends ObjectModel
|
||||
{
|
||||
public $id_order;
|
||||
public $date_add;
|
||||
|
||||
public static $definition = array(
|
||||
'table' => 'qcmc_channel_manager_booking',
|
||||
'primary' => 'id_channel_manager_booking',
|
||||
'fields' => array(
|
||||
'id_order' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedInt'),
|
||||
'date_add' => array('type' => self::TYPE_DATE, 'validate' => 'isDate', 'copy_post' => false),
|
||||
),
|
||||
);
|
||||
|
||||
/**
|
||||
* Returns bookings created by api by channel manager
|
||||
* @param integer $idOrder : send id_order if you want booking of a particular order
|
||||
* @param string $orderWay : Send order way (DESC|ASC) sorted by date_add
|
||||
* @return [array of bookings | false]
|
||||
*/
|
||||
public static function getChannelManagerBookings($idOrder = 0, $orderWay = 'ASC')
|
||||
{
|
||||
$sql = 'SELECT * FROM `'._DB_PREFIX_.'qcmc_channel_manager_booking` WHERE 1';
|
||||
|
||||
if ($idOrder) {
|
||||
$sql .= ' AND `id_order` = '.(int)$idOrder;
|
||||
}
|
||||
|
||||
$sql .= ' ORDER BY `date_add` '.$orderWay;
|
||||
|
||||
if ($result = Db::getInstance()->executeS($sql)) {
|
||||
if ($idOrder) {
|
||||
// if needs only one order row then send only one row from the array
|
||||
$result = $result[0];
|
||||
}
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
/**
|
||||
* 2010-2023 Webkul.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* All right is reserved,
|
||||
* Please go through LICENSE.txt file inside our module
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade this module to newer
|
||||
* versions in the future. If you wish to customize this module for your
|
||||
* needs please refer to CustomizationPolicy.txt file inside our module for more information.
|
||||
*
|
||||
* @author Webkul IN
|
||||
* @copyright 2010-2023 Webkul IN
|
||||
* @license LICENSE.txt
|
||||
*/
|
||||
|
||||
class QcmcChannelManagerConnectorDb
|
||||
{
|
||||
public function createTables()
|
||||
{
|
||||
$sql = 'CREATE TABLE IF NOT EXISTS `'._DB_PREFIX_.'qcmc_channel_manager_booking` (
|
||||
`id_channel_manager_booking` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||
`id_order` INT(11) UNSIGNED NOT NULL,
|
||||
`date_add` DATETIME NOT NULL,
|
||||
PRIMARY KEY (`id_channel_manager_booking`)
|
||||
) ENGINE='._MYSQL_ENGINE_.' DEFAULT CHARSET=utf8';
|
||||
|
||||
if (!Db::getInstance()->execute(trim($sql))) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public function dropTables()
|
||||
{
|
||||
return Db::getInstance()->execute('DROP TABLE IF EXISTS '._DB_PREFIX_.'qcmc_channel_manager_booking');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
/**
|
||||
* 2010-2023 Webkul.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* All right is reserved,
|
||||
* Please go through this link for complete license : https://store.webkul.com/license.html
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade this module to newer
|
||||
* versions in the future. If you wish to customize this module for your
|
||||
* needs please refer to https://store.webkul.com/customisation-guidelines/ for more information.
|
||||
*
|
||||
* @author Webkul IN <support@webkul.com>
|
||||
* @copyright 2010-2023 Webkul IN
|
||||
* @license https://store.webkul.com/license.html
|
||||
*/
|
||||
|
||||
require_once _PS_MODULE_DIR_.'qlochannelmanagerconnector/classes/QcmcChannelManagerConnectorDb.php';
|
||||
require_once _PS_MODULE_DIR_.'qlochannelmanagerconnector/classes/QcmcChannelManagerBooking.php';
|
||||
29
modules/qlochannelmanagerconnector/classes/index.php
Normal file
29
modules/qlochannelmanagerconnector/classes/index.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
/**
|
||||
* 2010-2023 Webkul.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* All right is reserved,
|
||||
* Please go through LICENSE.txt file inside our module
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade this module to newer
|
||||
* versions in the future. If you wish to customize this module for your
|
||||
* needs please refer to CustomizationPolicy.txt file inside our module for more information.
|
||||
*
|
||||
* @author Webkul IN
|
||||
* @copyright 2010-2023 Webkul IN
|
||||
* @license LICENSE.txt
|
||||
*/
|
||||
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
|
||||
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
|
||||
header('Location: ../../../');
|
||||
exit;
|
||||
@@ -0,0 +1,155 @@
|
||||
<?php
|
||||
/**
|
||||
* 2010-2023 Webkul.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* All right is reserved,
|
||||
* Please go through this link for complete license : https://store.webkul.com/license.html
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade this module to newer
|
||||
* versions in the future. If you wish to customize this module for your
|
||||
* needs please refer to https://store.webkul.com/customisation-guidelines/ for more information.
|
||||
*
|
||||
* @author Webkul IN <support@webkul.com>
|
||||
* @copyright 2010-2023 Webkul IN
|
||||
* @license https://store.webkul.com/license.html
|
||||
*/
|
||||
|
||||
class AdminQloappsChannelManagerConnectorController extends ModuleAdminController
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
$this->table = 'qcmc_channel_manager_booking';
|
||||
$this->className = 'QcmcChannelManagerBooking';
|
||||
$this->bootstrap = true;
|
||||
$this->toolbar_title = $this->l('Channel Manager Bookings');
|
||||
$this->context = Context::getContext();
|
||||
$this->identifier = 'id_channel_manager_booking';
|
||||
|
||||
parent::__construct();
|
||||
|
||||
$this->_join .= ' INNER JOIN `'._DB_PREFIX_.'orders` ord ON (a.id_order = ord.`id_order`)';
|
||||
|
||||
$this->_select .= ' ord.`source`, ord.`total_paid`, ord.`total_paid_real`, IF(a.id_order, 1, 0) badge_success';
|
||||
|
||||
$this->_orderWay = 'DESC';
|
||||
|
||||
$this->fields_list = array(
|
||||
'id_order' => array(
|
||||
'title' => $this->l('Id order'),
|
||||
'align' => 'center',
|
||||
'havingFilter' => true,
|
||||
'callback' => 'getOrderLink',
|
||||
),
|
||||
'source' => array(
|
||||
'title' => $this->l('Channel'),
|
||||
'align' => 'center',
|
||||
),
|
||||
'total_paid' => array(
|
||||
'title' => $this->l('Order total'),
|
||||
'align' => 'center',
|
||||
'callback' => 'setPriceCurrency',
|
||||
'badge_success' => true,
|
||||
),
|
||||
'total_paid_real' => array(
|
||||
'title' => $this->l('Recieved amount'),
|
||||
'align' => 'center',
|
||||
'callback' => 'setPriceCurrencyWithBadge',
|
||||
),
|
||||
'date_add' => array(
|
||||
'title' => $this->l('Created on'),
|
||||
'align' => 'center',
|
||||
),
|
||||
);
|
||||
|
||||
$this->list_no_link = true;
|
||||
}
|
||||
|
||||
public function getOrderLink($id_order, $row)
|
||||
{
|
||||
$displayData = '';
|
||||
if ($id_order) {
|
||||
$displayData .= '#'.$id_order;
|
||||
// $displayData .= '<a target="_blank" href="'.$this->context->link->getAdminLink('AdminOrders').'&id_order='.$id_order.
|
||||
// '&vieworder">#'.$id_order.'</a>';
|
||||
}
|
||||
return $displayData;
|
||||
}
|
||||
|
||||
public function setPriceCurrency($value, $row)
|
||||
{
|
||||
if (Validate::isLoadedObject($objOrder = new Order($row['id_order']))) {
|
||||
return Tools::displayPrice($value, (int)$objOrder->id_currency);
|
||||
}
|
||||
}
|
||||
|
||||
public function setPriceCurrencyWithBadge($value, $row)
|
||||
{
|
||||
$displayData = '';
|
||||
if (Validate::isLoadedObject($objOrder = new Order($row['id_order']))) {
|
||||
$displayData .= '<span class="badge '.(($row['total_paid'] == $row['total_paid_real']) ? 'badge-success' : 'badge-danger').'">';
|
||||
$displayData .= Tools::displayPrice($value, (int)$objOrder->id_currency);
|
||||
$displayData .= '</span>';
|
||||
}
|
||||
|
||||
return $displayData;
|
||||
}
|
||||
|
||||
public function displayViewLink($token, $idRow, $name = null)
|
||||
{
|
||||
if (Validate::isLoadedObject($objChannelManagerBooking = new QcmcChannelManagerBooking($idRow))) {
|
||||
return '<a class="btn btn-default" href="'.$this->context->link->getAdminLink('AdminOrders').'&id_order='.$objChannelManagerBooking->id_order.
|
||||
'&vieworder" title="'.$this->l('view details').'"><i class="icon-search-plus"></i> '.$this->l('View Order Detail').'</a>';
|
||||
}
|
||||
}
|
||||
|
||||
public function renderList()
|
||||
{
|
||||
if ($channelManagerBookings = QcmcChannelManagerBooking::getChannelManagerBookings(0, 'DESC')) {
|
||||
$this->context->smarty->assign(
|
||||
array (
|
||||
'icon' => 'icon-list',
|
||||
'toolbar_title' => 'icon-list',
|
||||
// As we get the bookings in descending order according to the date_add. So in the 0 index last booking will be found
|
||||
'last_booking_datetime' => Tools::displayDate($channelManagerBookings[0]['date_add'], null, true),
|
||||
)
|
||||
);
|
||||
|
||||
// because in helper list tpl_vars is given priority and we need different List title than list title
|
||||
// In HelperList.php assigned: 'title' => array_key_exists('title', $this->tpl_vars) ? $this->tpl_vars['title'] : $this->title
|
||||
$this->tpl_list_vars['title'] = $this->l('Below is the list of all the bookings created by channel manager.');
|
||||
|
||||
unset($this->toolbar_btn['new']);
|
||||
|
||||
$this->addRowAction('view');
|
||||
|
||||
return parent::renderList();
|
||||
} else {
|
||||
$this->context->smarty->assign(
|
||||
array (
|
||||
'module_dir' => _MODULE_DIR_,
|
||||
'current_datetime' => Tools::displayDate(date('Y-m-d H:i:s'), null, true),
|
||||
)
|
||||
);
|
||||
$this->content .= $this->context->smarty->fetch(
|
||||
_PS_MODULE_DIR_.
|
||||
'qlochannelmanagerconnector/views/templates/admin/qloapps_channel_manager_connector/channel_manager_connect_info.tpl'
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
public function setMedia()
|
||||
{
|
||||
parent::setMedia();
|
||||
|
||||
if (QcmcChannelManagerBooking::getChannelManagerBookings()) {
|
||||
$this->addCSS(_MODULE_DIR_.'qlochannelmanagerconnector/views/css/admin/wk_cm_booking_list.css');
|
||||
$this->addJS(_MODULE_DIR_.'qlochannelmanagerconnector/views/js/admin/wk_cm_booking_list.js');
|
||||
} else {
|
||||
$this->addCSS(_MODULE_DIR_.'qlochannelmanagerconnector/views/css/admin/wk_cm_info.css');
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
/**
|
||||
* 2010-2023 Webkul.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* All right is reserved,
|
||||
* Please go through this link for complete license : https://store.webkul.com/license.html
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade this module to newer
|
||||
* versions in the future. If you wish to customize this module for your
|
||||
* needs please refer to https://store.webkul.com/customisation-guidelines/ for more information.
|
||||
*
|
||||
* @author Webkul IN <support@webkul.com>
|
||||
* @copyright 2010-2023 Webkul IN
|
||||
* @license https://store.webkul.com/license.html
|
||||
*/
|
||||
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
|
||||
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
|
||||
header('Location: ../../../');
|
||||
exit;
|
||||
29
modules/qlochannelmanagerconnector/controllers/index.php
Normal file
29
modules/qlochannelmanagerconnector/controllers/index.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
/**
|
||||
* 2010-2023 Webkul.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* All right is reserved,
|
||||
* Please go through LICENSE.txt file inside our module
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade this module to newer
|
||||
* versions in the future. If you wish to customize this module for your
|
||||
* needs please refer to CustomizationPolicy.txt file inside our module for more information.
|
||||
*
|
||||
* @author Webkul IN
|
||||
* @copyright 2010-2023 Webkul IN
|
||||
* @license LICENSE.txt
|
||||
*/
|
||||
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
|
||||
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
|
||||
header('Location: ../../../');
|
||||
exit;
|
||||
29
modules/qlochannelmanagerconnector/index.php
Normal file
29
modules/qlochannelmanagerconnector/index.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
/**
|
||||
* 2010-2023 Webkul.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* All right is reserved,
|
||||
* Please go through this link for complete license : https://store.webkul.com/license.html
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade this module to newer
|
||||
* versions in the future. If you wish to customize this module for your
|
||||
* needs please refer to https://store.webkul.com/customisation-guidelines/ for more information.
|
||||
*
|
||||
* @author Webkul IN <support@webkul.com>
|
||||
* @copyright 2010-2023 Webkul IN
|
||||
* @license https://store.webkul.com/license.html
|
||||
*/
|
||||
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
|
||||
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
|
||||
header('Location: ../../../');
|
||||
exit;
|
||||
BIN
modules/qlochannelmanagerconnector/logo.gif
Normal file
BIN
modules/qlochannelmanagerconnector/logo.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 568 B |
BIN
modules/qlochannelmanagerconnector/logo.png
Normal file
BIN
modules/qlochannelmanagerconnector/logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 8.4 KiB |
@@ -0,0 +1,181 @@
|
||||
<?php
|
||||
/**
|
||||
* 2010-2023 Webkul.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* All right is reserved,
|
||||
* Please go through LICENSE.txt file inside our module
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade this module to newer
|
||||
* versions in the future. If you wish to customize this module for your
|
||||
* needs please refer to CustomizationPolicy.txt file inside our module for more information.
|
||||
*
|
||||
* @author Webkul IN
|
||||
* @copyright 2010-2023 Webkul IN
|
||||
* @license LICENSE.txt
|
||||
*/
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
require_once dirname(__FILE__).'/classes/QcmcClassInclude.php';
|
||||
|
||||
class QloChannelManagerConnector extends Module
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
$this->name = 'qlochannelmanagerconnector';
|
||||
$this->tab = 'analytics_stats';
|
||||
$this->version = '1.0.0';
|
||||
$this->author = 'Webkul';
|
||||
$this->bootstrap = true;
|
||||
$this->secure_key = Tools::encrypt($this->name);
|
||||
$this->html = '';
|
||||
$this->ps_versions_compliancy = array('min' => '1.6', 'max' => '1.6');
|
||||
|
||||
parent::__construct();
|
||||
|
||||
$this->displayName = $this->l('Channel Manager Connector');
|
||||
$this->description = $this->l('This module checks connection with channel manager and create logs for the bookings sent from channel manager.');
|
||||
}
|
||||
|
||||
public function hookDisplayBackOfficeHeader()
|
||||
{
|
||||
$this->context->controller->addCSS($this->_path.'views/css/admin/admin_tab_logo.css');
|
||||
}
|
||||
|
||||
public function hookDisplayAdminListBefore()
|
||||
{
|
||||
// This tpl will only display when at least one booking has come from channel manager
|
||||
if ('AdminQloappsChannelManagerConnector' == $this->context->controller->controller_name
|
||||
&& QcmcChannelManagerBooking::getChannelManagerBookings()
|
||||
) {
|
||||
return $this->display(__FILE__, 'channel_manager_connection_info.tpl');
|
||||
}
|
||||
}
|
||||
|
||||
public function hookActionAdminControllerSetMedia()
|
||||
{
|
||||
// This CSS will only apply when at least one booking has come from channel manager
|
||||
if ('AdminQloappsChannelManagerConnector' == $this->context->controller->controller_name
|
||||
&& QcmcChannelManagerBooking::getChannelManagerBookings()
|
||||
) {
|
||||
$this->context->controller->addCSS(_MODULE_DIR_.$this->name.'/views/css/hook/wk_cm_connection_info.css');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public function hookActionValidateOrder($data)
|
||||
{
|
||||
// If the order request is coming from channel manager ip then only enter in database
|
||||
if (Tools::getRemoteAddr() != '54.216.64.42') {
|
||||
$order = $data['order'];
|
||||
if (!QcmcChannelManagerBooking::getChannelManagerBookings($order->id)) {
|
||||
$objChannelManagerBooking = new QcmcChannelManagerBooking();
|
||||
$objChannelManagerBooking->id_order = $order->id;
|
||||
$objChannelManagerBooking->save();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function callInstallTab()
|
||||
{
|
||||
$this->installTab('AdminQloappsChannelManagerConnector', 'Channel Manager');
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public function installTab($class_name, $tab_name, $tab_parent_name = false, $need_tab = true)
|
||||
{
|
||||
$tab = new Tab();
|
||||
$tab->active = 1;
|
||||
$tab->class_name = $class_name;
|
||||
$tab->name = array();
|
||||
|
||||
foreach (Language::getLanguages(true) as $lang) {
|
||||
$tab->name[$lang['id_lang']] = $tab_name;
|
||||
}
|
||||
|
||||
if ($tab_parent_name) {
|
||||
$tab->id_parent = (int) Tab::getIdFromClassName($tab_parent_name);
|
||||
} elseif (!$need_tab) {
|
||||
$tab->id_parent = -1;
|
||||
} else {
|
||||
$tab->id_parent = 0;
|
||||
}
|
||||
|
||||
$tab->module = $this->name;
|
||||
$res = $tab->add();
|
||||
|
||||
//Set position Tab
|
||||
$objTab = new Tab($tab->id);
|
||||
|
||||
// position of the tab will be after hotelreservationsystem module tab
|
||||
// without calling this function we are getting hotelreservationsystem module tab cache object with old position
|
||||
ObjectModel::disableCache();
|
||||
if (Validate::isLoadedObject(
|
||||
$objTabForPosition = Tab::getInstanceFromClassName('AdminHotelReservationSystemManagement')
|
||||
)) {
|
||||
$objTab->updatePosition(0, ($objTabForPosition->position + 1));
|
||||
} else {
|
||||
$objTab->updatePosition(0, 6);
|
||||
}
|
||||
// enable cache variable again
|
||||
ObjectModel::enableCache();
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
public function registerModuleHooks()
|
||||
{
|
||||
return $this->registerHook(
|
||||
array(
|
||||
'actionValidateOrder',
|
||||
'displayBackOfficeHeader',
|
||||
'displayAdminListBefore',
|
||||
'actionAdminControllerSetMedia'
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
public function install()
|
||||
{
|
||||
$objModuleDb = new QcmcChannelManagerConnectorDb();
|
||||
if (!parent::install()
|
||||
|| !$objModuleDb->createTables()
|
||||
|| !$this->registerModuleHooks()
|
||||
|| !$this->callInstallTab()
|
||||
) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public function uninstall()
|
||||
{
|
||||
$objModuleDb = new QcmcChannelManagerConnectorDb();
|
||||
if (!parent::uninstall()
|
||||
|| !$objModuleDb->dropTables()
|
||||
|| !$this->uninstallTab()
|
||||
) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public function uninstallTab()
|
||||
{
|
||||
$moduleTabs = Tab::getCollectionFromModule($this->name);
|
||||
if (!empty($moduleTabs)) {
|
||||
foreach ($moduleTabs as $moduleTab) {
|
||||
$moduleTab->delete();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
/**
|
||||
* 2010-2023 Webkul.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* All right is reserved,
|
||||
* Please go through this link for complete license : https://store.webkul.com/license.html
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade this module to newer
|
||||
* versions in the future. If you wish to customize this module for your
|
||||
* needs please refer to https://store.webkul.com/customisation-guidelines/ for more information.
|
||||
*
|
||||
* @author Webkul IN <support@webkul.com>
|
||||
* @copyright 2010-2023 Webkul IN
|
||||
* @license https://store.webkul.com/license.html
|
||||
*/
|
||||
|
||||
.icon-AdminQloappsChannelManagerConnector:before {
|
||||
content: "\F021";
|
||||
font-family: FontAwesome
|
||||
}
|
||||
29
modules/qlochannelmanagerconnector/views/css/admin/index.php
Normal file
29
modules/qlochannelmanagerconnector/views/css/admin/index.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
/**
|
||||
* 2010-2023 Webkul.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* All right is reserved,
|
||||
* Please go through this link for complete license : https://store.webkul.com/license.html
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade this module to newer
|
||||
* versions in the future. If you wish to customize this module for your
|
||||
* needs please refer to https://store.webkul.com/customisation-guidelines/ for more information.
|
||||
*
|
||||
* @author Webkul IN <support@webkul.com>
|
||||
* @copyright 2010-2023 Webkul IN
|
||||
* @license https://store.webkul.com/license.html
|
||||
*/
|
||||
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
|
||||
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
|
||||
header('Location: ../../../');
|
||||
exit;
|
||||
@@ -0,0 +1,49 @@
|
||||
/**
|
||||
* 2010-2023 Webkul.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* All right is reserved,
|
||||
* Please go through this link for complete license : https://store.webkul.com/license.html
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade this module to newer
|
||||
* versions in the future. If you wish to customize this module for your
|
||||
* needs please refer to https://store.webkul.com/customisation-guidelines/ for more information.
|
||||
*
|
||||
* @author Webkul IN <support@webkul.com>
|
||||
* @copyright 2010-2023 Webkul IN
|
||||
* @license https://store.webkul.com/license.html
|
||||
*/
|
||||
|
||||
#content.bootstrap .panel .panel-heading {
|
||||
text-transform: none;
|
||||
height: auto;
|
||||
margin: -20px -16px 25px -16px;
|
||||
padding: 15px;
|
||||
color: #555;
|
||||
font-size: 16px;
|
||||
border-bottom: 1px solid #d4d9dd;
|
||||
}
|
||||
#form-qcmc_channel_manager_booking .table {
|
||||
border: 1px solid #ddd;
|
||||
}
|
||||
#form-qcmc_channel_manager_booking .table thead>tr>th {
|
||||
font-weight: bold;
|
||||
font-size: 13px;
|
||||
vertical-align: middle;
|
||||
padding: 15px;
|
||||
background-color: #ecf6fb;
|
||||
border-bottom: 1px solid #ddd;
|
||||
}
|
||||
#form-qcmc_channel_manager_booking .table tbody>tr>td {
|
||||
font-size: 13px;
|
||||
color: #555;
|
||||
vertical-align: middle;
|
||||
padding: 15px;
|
||||
border-bottom: 1px solid #ddd;
|
||||
}
|
||||
#form-qcmc_channel_manager_booking .pagination {
|
||||
font-size: 14px;
|
||||
}
|
||||
@@ -0,0 +1,116 @@
|
||||
/**
|
||||
* 2010-2023 Webkul.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* All right is reserved,
|
||||
* Please go through this link for complete license : https://store.webkul.com/license.html
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade this module to newer
|
||||
* versions in the future. If you wish to customize this module for your
|
||||
* needs please refer to https://store.webkul.com/customisation-guidelines/ for more information.
|
||||
*
|
||||
* @author Webkul IN <support@webkul.com>
|
||||
* @copyright 2010-2023 Webkul IN
|
||||
* @license https://store.webkul.com/license.html
|
||||
*/
|
||||
|
||||
.qcm_content_wrapper {
|
||||
font-size: 14px;
|
||||
color: #333333;
|
||||
}
|
||||
.qcm_content_wrapper .channel_connection_info {
|
||||
font-size: 12px;
|
||||
text-align: right;
|
||||
}
|
||||
.qcm_content_wrapper .channel_info_type {
|
||||
font-weight: bold;
|
||||
}
|
||||
.qcm_content_wrapper .margin-bottom-10 {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.qcm_content_wrapper .padding-left-10 {
|
||||
padding-left: 10px;
|
||||
}
|
||||
.qcm_content_wrapper .padding-right-10 {
|
||||
padding-right: 10px;
|
||||
}
|
||||
.qcm_content_wrapper .qcm_content_wrapper p {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.qcm_content_wrapper .qcm_block_wrapper {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.qcm_content_wrapper .qcm_info_block {
|
||||
background: #ffffff;
|
||||
border-radius: 5px;
|
||||
padding: 30px;
|
||||
width: 100%;
|
||||
}
|
||||
.qcm_content_wrapper .qcm_info_block ul {
|
||||
padding-left: 30px;
|
||||
}
|
||||
.qcm_content_wrapper .qcm_info_block_head {
|
||||
font-weight: 700;
|
||||
font-size: 18px;
|
||||
line-height: 25px;
|
||||
color: #333333;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.qcm_content_wrapper .qcm_block_wrapper .qcm_info_wrapper {
|
||||
padding-left: 20px;
|
||||
}
|
||||
.qcm_content_wrapper .flex-display {
|
||||
display: flex;
|
||||
}
|
||||
.qcm_content_wrapper .qcm_info_img_container {
|
||||
display: grid;
|
||||
place-content: center;
|
||||
}
|
||||
.qcm_content_wrapper .qcm_info_block_content {
|
||||
line-height: 24px;
|
||||
color: #333333;
|
||||
}
|
||||
.qcm_content_wrapper .qcm_info_explore {
|
||||
margin-top: 20px;
|
||||
line-height: 24px;
|
||||
color: #333333;
|
||||
}
|
||||
.qcm_content_wrapper a.qcm-link {
|
||||
font-weight: 600;
|
||||
color: #00aff0;
|
||||
text-decoration: underline;
|
||||
}
|
||||
.qcm_content_wrapper .not_connect_txt {
|
||||
font-weight: 600;
|
||||
font-size: 16px;
|
||||
line-height: 22px;
|
||||
color: #ff404b;
|
||||
}
|
||||
.qcm_content_wrapper .connect_status_heading {
|
||||
font-weight: 600;
|
||||
font-size: 16px;
|
||||
line-height: 22px;
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
.qcm_content_wrapper .channel_connection_info {
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
@media (max-width: 991px) {
|
||||
.qcm_content_wrapper .qcm_info_img_container {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.qcm_content_wrapper .qcm_block_wrapper .qcm_info_wrapper {
|
||||
padding-left: 5px;
|
||||
}
|
||||
.qcm_content_wrapper .flex-display {
|
||||
display: inherit;
|
||||
}
|
||||
.qcm_content_wrapper .qcm_info_img_container {
|
||||
place-content: normal;
|
||||
}
|
||||
}
|
||||
29
modules/qlochannelmanagerconnector/views/css/hook/index.php
Normal file
29
modules/qlochannelmanagerconnector/views/css/hook/index.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
/**
|
||||
* 2010-2023 Webkul.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* All right is reserved,
|
||||
* Please go through this link for complete license : https://store.webkul.com/license.html
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade this module to newer
|
||||
* versions in the future. If you wish to customize this module for your
|
||||
* needs please refer to https://store.webkul.com/customisation-guidelines/ for more information.
|
||||
*
|
||||
* @author Webkul IN <support@webkul.com>
|
||||
* @copyright 2010-2023 Webkul IN
|
||||
* @license https://store.webkul.com/license.html
|
||||
*/
|
||||
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
|
||||
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
|
||||
header('Location: ../../../');
|
||||
exit;
|
||||
@@ -0,0 +1,49 @@
|
||||
/**
|
||||
* 2010-2023 Webkul.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* All right is reserved,
|
||||
* Please go through this link for complete license : https://store.webkul.com/license.html
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade this module to newer
|
||||
* versions in the future. If you wish to customize this module for your
|
||||
* needs please refer to https://store.webkul.com/customisation-guidelines/ for more information.
|
||||
*
|
||||
* @author Webkul IN <support@webkul.com>
|
||||
* @copyright 2010-2023 Webkul IN
|
||||
* @license https://store.webkul.com/license.html
|
||||
*/
|
||||
|
||||
.adminqloappschannelmanagerconnector .channel_connection_info {
|
||||
margin-bottom: 10px;
|
||||
font-size: 12px;
|
||||
color: #333;
|
||||
text-align: right;
|
||||
}
|
||||
.adminqloappschannelmanagerconnector .qcm_booking_title {
|
||||
font-size: 14px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.adminqloappschannelmanagerconnector .channel_info_type {
|
||||
margin-left: 10px;
|
||||
font-weight: bold;
|
||||
}
|
||||
.adminqloappschannelmanagerconnector .connection_criteria {
|
||||
font-weight: normal;
|
||||
}
|
||||
.adminqloappschannelmanagerconnector .channel_connection_status {
|
||||
color: #2FA368;
|
||||
font-weight: bold;
|
||||
}
|
||||
.adminqloappschannelmanagerconnector .channel_info_type .icon-info-circle {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
.adminqloappschannelmanagerconnector .channel_connection_info {
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
29
modules/qlochannelmanagerconnector/views/css/index.php
Normal file
29
modules/qlochannelmanagerconnector/views/css/index.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
/**
|
||||
* 2010-2023 Webkul.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* All right is reserved,
|
||||
* Please go through this link for complete license : https://store.webkul.com/license.html
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade this module to newer
|
||||
* versions in the future. If you wish to customize this module for your
|
||||
* needs please refer to https://store.webkul.com/customisation-guidelines/ for more information.
|
||||
*
|
||||
* @author Webkul IN <support@webkul.com>
|
||||
* @copyright 2010-2023 Webkul IN
|
||||
* @license https://store.webkul.com/license.html
|
||||
*/
|
||||
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
|
||||
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
|
||||
header('Location: ../../../');
|
||||
exit;
|
||||
BIN
modules/qlochannelmanagerconnector/views/img/channel_manager.png
Normal file
BIN
modules/qlochannelmanagerconnector/views/img/channel_manager.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 7.8 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 5.1 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 5.9 KiB |
29
modules/qlochannelmanagerconnector/views/img/index.php
Normal file
29
modules/qlochannelmanagerconnector/views/img/index.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
/**
|
||||
* 2010-2023 Webkul.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* All right is reserved,
|
||||
* Please go through this link for complete license : https://store.webkul.com/license.html
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade this module to newer
|
||||
* versions in the future. If you wish to customize this module for your
|
||||
* needs please refer to https://store.webkul.com/customisation-guidelines/ for more information.
|
||||
*
|
||||
* @author Webkul IN <support@webkul.com>
|
||||
* @copyright 2010-2023 Webkul IN
|
||||
* @license https://store.webkul.com/license.html
|
||||
*/
|
||||
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
|
||||
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
|
||||
header('Location: ../../../');
|
||||
exit;
|
||||
29
modules/qlochannelmanagerconnector/views/index.php
Normal file
29
modules/qlochannelmanagerconnector/views/index.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
/**
|
||||
* 2010-2023 Webkul.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* All right is reserved,
|
||||
* Please go through this link for complete license : https://store.webkul.com/license.html
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade this module to newer
|
||||
* versions in the future. If you wish to customize this module for your
|
||||
* needs please refer to https://store.webkul.com/customisation-guidelines/ for more information.
|
||||
*
|
||||
* @author Webkul IN <support@webkul.com>
|
||||
* @copyright 2010-2023 Webkul IN
|
||||
* @license https://store.webkul.com/license.html
|
||||
*/
|
||||
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
|
||||
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
|
||||
header('Location: ../../../');
|
||||
exit;
|
||||
29
modules/qlochannelmanagerconnector/views/js/admin/index.php
Normal file
29
modules/qlochannelmanagerconnector/views/js/admin/index.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
/**
|
||||
* 2010-2023 Webkul.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* All right is reserved,
|
||||
* Please go through this link for complete license : https://store.webkul.com/license.html
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade this module to newer
|
||||
* versions in the future. If you wish to customize this module for your
|
||||
* needs please refer to https://store.webkul.com/customisation-guidelines/ for more information.
|
||||
*
|
||||
* @author Webkul IN <support@webkul.com>
|
||||
* @copyright 2010-2023 Webkul IN
|
||||
* @license https://store.webkul.com/license.html
|
||||
*/
|
||||
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
|
||||
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
|
||||
header('Location: ../../../');
|
||||
exit;
|
||||
@@ -0,0 +1,26 @@
|
||||
/**
|
||||
* 2010-2023 Webkul.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* All right is reserved,
|
||||
* Please go through LICENSE.txt file inside our module
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade this module to newer
|
||||
* versions in the future. If you wish to customize this module for your
|
||||
* needs please refer to CustomizationPolicy.txt file inside our module for more information.
|
||||
*
|
||||
* @author Webkul IN
|
||||
* @copyright 2010-2023 Webkul IN
|
||||
* @license LICENSE.txt
|
||||
*/
|
||||
|
||||
$(document).ready(function(){
|
||||
$('#connection_details').popover({
|
||||
trigger:'hover',
|
||||
animation: false,
|
||||
placement: 'left'
|
||||
});
|
||||
});
|
||||
29
modules/qlochannelmanagerconnector/views/js/index.php
Normal file
29
modules/qlochannelmanagerconnector/views/js/index.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
/**
|
||||
* 2010-2023 Webkul.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* All right is reserved,
|
||||
* Please go through this link for complete license : https://store.webkul.com/license.html
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade this module to newer
|
||||
* versions in the future. If you wish to customize this module for your
|
||||
* needs please refer to https://store.webkul.com/customisation-guidelines/ for more information.
|
||||
*
|
||||
* @author Webkul IN <support@webkul.com>
|
||||
* @copyright 2010-2023 Webkul IN
|
||||
* @license https://store.webkul.com/license.html
|
||||
*/
|
||||
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
|
||||
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
|
||||
header('Location: ../../../');
|
||||
exit;
|
||||
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
/**
|
||||
* 2010-2023 Webkul.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* All right is reserved,
|
||||
* Please go through LICENSE.txt file inside our module
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade this module to newer
|
||||
* versions in the future. If you wish to customize this module for your
|
||||
* needs please refer to CustomizationPolicy.txt file inside our module for more information.
|
||||
*
|
||||
* @author Webkul IN
|
||||
* @copyright 2010-2023 Webkul IN
|
||||
* @license LICENSE.txt
|
||||
*/
|
||||
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
|
||||
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
|
||||
header('Location: ../../../');
|
||||
exit;
|
||||
@@ -0,0 +1,120 @@
|
||||
{*
|
||||
* 2010-2023 Webkul.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* All right is reserved,
|
||||
* Please go through LICENSE.txt file inside our module
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade this module to newer
|
||||
* versions in the future. If you wish to customize this module for your
|
||||
* needs please refer to CustomizationPolicy.txt file inside our module for more information.
|
||||
*
|
||||
* @author Webkul IN
|
||||
* @copyright 2010-2023 Webkul IN
|
||||
* @license LICENSE.txt
|
||||
*}
|
||||
|
||||
<div class="qcm_content_wrapper">
|
||||
<div class="row">
|
||||
<div class="col-md-12 qcm_block_wrapper">
|
||||
<div class="qcm_info_block">
|
||||
<div class="row">
|
||||
<div class="col-sm-6 margin-bottom-10">
|
||||
<span class="connect_status_heading">{l s='Connection status' mod='qlochannelmanagerconnector'} :</span> <span class="not_connect_txt">{l s='Not Connected' mod='qlochannelmanagerconnector'}</span>
|
||||
</div>
|
||||
<div class="col-sm-6 channel_connection_info margin-bottom-10">
|
||||
<span class="channel_info_type">{l s='Last updated' mod='qlochannelmanagerconnector'} :</span> <span>{$current_datetime|escape:'htmlall':'UTF-8'}</span>
|
||||
</div>
|
||||
|
||||
<div class="connect_info_txt col-sm-12 margin-bottom-10">
|
||||
**{l s='Connection status with channel manager is showing according to the bookings fetched from QloApps Channel Manager.' mod='qlochannelmanagerconnector'}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row flex-display">
|
||||
<div class="col-md-6 qcm_block_wrapper padding-left-10 flex-display">
|
||||
<div class="qcm_info_block">
|
||||
<div class="row flex-display">
|
||||
<div class="col-md-2 qcm_info_img_container">
|
||||
<img src="{$link->getMediaLink("`$module_dir`/qlochannelmanagerconnector/views/img/channel_manager_connect.png")|escape:'htmlall':'UTF-8'}" class="img-responsive">
|
||||
</div>
|
||||
<div class="col-md-10 qcm_info_wrapper">
|
||||
<div class="qcm_info_block_head">
|
||||
{l s='How to connect with channel manager?' mod='qlochannelmanagerconnector'}
|
||||
</div>
|
||||
<div class="qcm_info_block_content">
|
||||
{l s='You can connect with channel manager through few simple steps' mod='qlochannelmanagerconnector'} :
|
||||
<ul>
|
||||
<li>{l s='Enable QloApps webservice from Webservice tab.' mod='qlochannelmanagerconnector'} <a target="blank" href="{$link->getAdminLink('AdminWebservice')}"><i class="icon-external-link"></i></a></li>
|
||||
<li>{l s='Create your webservice key and enable all the APIs from Webservice tab.' mod='qlochannelmanagerconnector'} <a target="blank" href="{$link->getAdminLink('AdminWebservice')}"><i class="icon-external-link"></i></a></li>
|
||||
<li>{l s='Create account on Channel Manager' mod='qlochannelmanagerconnector'} <a target="blank" class="qcm-link" href="https://channels.qloapps.com/"><i class="icon-external-link"></i></a>. {l s=' Then enter QloApps webservice credentials under PMS settings of channel manager .' mod='qlochannelmanagerconnector'}</li>
|
||||
<li>{l s='Synchronize and map QloApps hotels and room types in channel manager.' mod='qlochannelmanagerconnector'}</li>
|
||||
</ul>
|
||||
|
||||
{l s='To read the connection process in detail, visit' mod='qlochannelmanagerconnector'} <a class="qcm-link" href="https://qloapps.com/qloapps-channel-manager/#section-24">{l s='Connection with PMS' mod='qlochannelmanagerconnector'}</a>
|
||||
</div>
|
||||
<div class="qcm_info_explore">
|
||||
{l s='If you are still not connected with channel manager' mod='qlochannelmanagerconnector'} <a class="qcm-link" href="https://channels.qloapps.com/">{l s='Connect It Now' mod='qlochannelmanagerconnector'}</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6 qcm_block_wrapper padding-right-10 flex-display">
|
||||
<div class="qcm_info_block">
|
||||
<div class="row flex-display">
|
||||
<div class="col-md-2 qcm_info_img_container">
|
||||
<img src="{$link->getMediaLink("`$module_dir`/qlochannelmanagerconnector/views/img/channel_manager.png")|escape:'htmlall':'UTF-8'}" class="img-responsive">
|
||||
</div>
|
||||
<div class="col-md-10 qcm_info_wrapper">
|
||||
<div class="qcm_info_block_head">
|
||||
{l s='What is channel manager?' mod='qlochannelmanagerconnector'}
|
||||
</div>
|
||||
<div class="qcm_info_block_content">
|
||||
{l s='A channel manager is a centralized software that synchronizes availabilities and details of the property across all platforms i.e. online travel agencies (OTA) and other online distribution channels.' mod='qlochannelmanagerconnector'}
|
||||
<br>
|
||||
{l s='QloApps channel manager synchronizes inventory, rates, restrictions with all connected OTA channels and automated bookings sync connected OTAs and QloApps PMS.' mod='qlochannelmanagerconnector'}
|
||||
</div>
|
||||
<div class="qcm_info_explore">
|
||||
{l s='For channel manager information in detail' mod='qlochannelmanagerconnector'} <a class="qcm-link" href="https://qloapps.com/channel-manager/">{l s='Explore Channel Manager' mod='qlochannelmanagerconnector'}</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12 qcm_block_wrapper">
|
||||
<div class="qcm_info_block">
|
||||
<div class="row flex-display">
|
||||
<div class="col-md-1 qcm_info_img_container">
|
||||
<img src="{$link->getMediaLink("`$module_dir`/qlochannelmanagerconnector/views/img/channel_manager_advantage.png")|escape:'htmlall':'UTF-8'}" class="img-responsive">
|
||||
</div>
|
||||
<div class="col-md-11 qcm_info_wrapper">
|
||||
<div class="qcm_info_block_head">
|
||||
{l s='Advantages of Channel Manager' mod='qlochannelmanagerconnector'}
|
||||
</div>
|
||||
<div class="qcm_info_block_content">
|
||||
<ul>
|
||||
<li>{l s='Hoteliers need not to worry about problems like over-bookings, inconsistent inventory management, and missed opportunities.' mod='qlochannelmanagerconnector'}</li>
|
||||
<li>{l s='Real-time sync with the world\'s most popular OTA channels like Booking, MakeMyTrip, Expedia, Airbnb, Agoda, Google Hotels, and many more.' mod='qlochannelmanagerconnector'}</li>
|
||||
<li>{l s='Provides an intuitive & analytical dashboard that brings useful data and stats.' mod='qlochannelmanagerconnector'}</li>
|
||||
<li>{l s='With the one-click rate and inventory updates, directly push availability and rates on the connected OTA channels.' mod='qlochannelmanagerconnector'}</li>
|
||||
<li>{l s='Already integrated with QloApps PMS that auto-synchronize inventories for the bookings created on QloApps PMS and connected OTA channels.' mod='qlochannelmanagerconnector'}</li>
|
||||
<li>{l s='Getting more property impressions by travellers on the world’s leading Online Travel Agencies as well as on the QloApps Hotel booking website will boost your online brand visibility and returns you more reservations.' mod='qlochannelmanagerconnector'}</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="qcm_info_explore">
|
||||
{l s='To know channel manager freatures and work-flow in details' mod='qlochannelmanagerconnector'} <a class="qcm-link" href="https://qloapps.com/qloapps-channel-manager/">{l s='Visit Documentation' mod='qlochannelmanagerconnector'}</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
/**
|
||||
* 2010-2023 Webkul.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* All right is reserved,
|
||||
* Please go through this link for complete license : https://store.webkul.com/license.html
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade this module to newer
|
||||
* versions in the future. If you wish to customize this module for your
|
||||
* needs please refer to https://store.webkul.com/customisation-guidelines/ for more information.
|
||||
*
|
||||
* @author Webkul IN <support@webkul.com>
|
||||
* @copyright 2010-2023 Webkul IN
|
||||
* @license https://store.webkul.com/license.html
|
||||
*/
|
||||
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
|
||||
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
|
||||
header('Location: ../../../');
|
||||
exit;
|
||||
@@ -0,0 +1,31 @@
|
||||
{*
|
||||
* 2010-2023 Webkul.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* All right is reserved,
|
||||
* Please go through LICENSE.txt file inside our module
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade this module to newer
|
||||
* versions in the future. If you wish to customize this module for your
|
||||
* needs please refer to CustomizationPolicy.txt file inside our module for more information.
|
||||
*
|
||||
* @author Webkul IN
|
||||
* @copyright 2010-2023 Webkul IN
|
||||
* @license LICENSE.txt
|
||||
*}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-5">
|
||||
<label class="qcm_booking_title">
|
||||
<i class="icon icon-users"></i> {l s='Channel Manager Bookings' mod='qlochannelmanagerconnector'}
|
||||
</label>
|
||||
</div>
|
||||
<div class="col-sm-7 channel_connection_info">
|
||||
<span class="channel_info_type">{l s='Connection status' mod='qlochannelmanagerconnector'} :</span> <span class="channel_connection_status">{l s='Connected' mod='qlochannelmanagerconnector'}</span>
|
||||
<span class="channel_info_type">{l s='Last updated' mod='qlochannelmanagerconnector'} :</span> <span>{$last_booking_datetime|escape:'htmlall':'UTF-8'}</span>
|
||||
<span class="channel_info_type connection_criteria"><i id="connection_details" class="icon-info-circle" data-toggle="popover" data-content="{l s='Connection status with channel manager is showing according to the bookings fetched from QloApps Channel Manager.' mod='qlochannelmanagerconnector'}"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
/**
|
||||
* 2010-2023 Webkul.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* All right is reserved,
|
||||
* Please go through LICENSE.txt file inside our module
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade this module to newer
|
||||
* versions in the future. If you wish to customize this module for your
|
||||
* needs please refer to CustomizationPolicy.txt file inside our module for more information.
|
||||
*
|
||||
* @author Webkul IN
|
||||
* @copyright 2010-2023 Webkul IN
|
||||
* @license LICENSE.txt
|
||||
*/
|
||||
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
|
||||
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
|
||||
header('Location: ../../../');
|
||||
exit;
|
||||
29
modules/qlochannelmanagerconnector/views/templates/index.php
Normal file
29
modules/qlochannelmanagerconnector/views/templates/index.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
/**
|
||||
* 2010-2023 Webkul.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* All right is reserved,
|
||||
* Please go through LICENSE.txt file inside our module
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade this module to newer
|
||||
* versions in the future. If you wish to customize this module for your
|
||||
* needs please refer to CustomizationPolicy.txt file inside our module for more information.
|
||||
*
|
||||
* @author Webkul IN
|
||||
* @copyright 2010-2023 Webkul IN
|
||||
* @license LICENSE.txt
|
||||
*/
|
||||
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
|
||||
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
|
||||
header('Location: ../../../');
|
||||
exit;
|
||||
Reference in New Issue
Block a user