diff --git a/admin/vendor-card.php b/admin/vendor-card.php index f348835..d2c6e17 100644 --- a/admin/vendor-card.php +++ b/admin/vendor-card.php @@ -5,6 +5,7 @@ $_SESSION["url"] = $_SERVER['REQUEST_URI']; if ($_SESSION["userId"] <> "") { $_SESSION["isLoggedIn"] = true; //$customer_data = getCustomerbyLoginId($_SESSION["userId"]); + $customer_data = getCustomerbyLoginId($_SESSION["userId"]); } else { $_SESSION["isLoggedIn"] = false; header("location: login.php"); @@ -14,6 +15,8 @@ if ($_SESSION["user_type"] != "admin") { header("location: login.php?alert=Only admins allowed here!"); } $products = productList(); + +$vendorSearchResult = $_SESSION["vendorSearchResult"]; ?> @@ -64,7 +67,8 @@ $products = productList(); - + + @@ -128,7 +132,7 @@ $products = productList(); foreach ($vendorsCopy as $result) { $vendorName = strtolower($result['user_login']); if ( - strpos($vendorName,$_GET['search'])!==false + strpos($vendorName,strtolower($_GET['search']))!==false ) { $filteredProducts[] = $result; } else{ @@ -806,10 +810,17 @@ function validateEmail(vendorId) {
Prohibited to be sold online without proper authorization.
Penalties: Permanent ban, fines, imprisonment, and revocation of licenses for sellers found violating regulations set by the Food and Drug Administration (FDA).
@@ -137,7 +157,7 @@Strict regulations govern the sale of firearms and ammunition.
Prohibited to be sold online without proper permits and licenses.
Sale of tobacco products to minors is strictly prohibited.
Prohibited to be sold online to minors and without proper health warnings and taxation.
Sale of alcoholic beverages to minors is strictly prohibited.
Prohibited to be sold online without proper permits and age verification mechanisms.
Sale of counterfeit products, including branded goods, is illegal.
Prohibited to be sold online to prevent intellectual property infringement
Strict regulations govern the sale and transportation of explosives and hazardous materials.
Prohibited to be sold online without proper permits and safety protocols.
Sale of illegal drugs and narcotics is strictly prohibited.
Prohibited to be sold online under any circumstances.
Sale of products derived from endangered species and wildlife is illegal.
Prohibited to be sold online to prevent wildlife trafficking and protect biodiversity.
Sale and use of pyrotechnic devices are regulated, especially during festivities.
Prohibited to be sold online without proper permits and safety measures.
Sale of unauthorized gambling services and products is illegal.
Prohibited to be sold online without proper licenses and permits.
The Company grants you a limited, nonexclusive, revocable license for you to view, share, print, or download any Content, as defined below, from the Website for your own personal use. You are not granted the right to license, republish, distribute, copy, assign, sublicense, transfer, sell, prepare derivative works or other non-personal use of any Content on the Website. No @@ -155,7 +175,7 @@
The Company reserves the right to change or modify Content, materials, or information appearing on or in connection with the Website, including the Terms of Use, at any time without notice to you. The Company may at any time revise these Terms of Use by updating this posting. You are bound by such revisions and should therefore visit these pages to review the current Terms of @@ -164,7 +184,7 @@
The Website Content is protected by applicable intellectual property laws and all Content is owned by the Company or used by the Company under a license or with permission. All text, formatting (including without limitation the selection, coordination and arrangement of materials on the Website), images, graphics, animation, tools, widgets, applications, commercials, videos, music, @@ -185,7 +205,7 @@
In operating the Website the Company may act as a services provider and offer services as online provider of materials and links to third party web sites. As a result, third party materials that the Company does not own or control may be transmitted, stored, accessed or otherwise made available using the Website. The Company has in place procedures regarding allegations of copyright infringement occurring @@ -222,7 +242,7 @@
As a user of the Website you may submit your comments, which may consist of textual content and potentially photos, videos, images audio files, other types of content and links to such content if allowed by the Website (collectively referred to as “User Submissions”). You will be solely responsible for your own User @@ -275,7 +295,7 @@
Merchants may provide to the Company certain discounts, rebates, or other benefits (e.g. free shipping) on the purchases of goods and services (“Offers”) that may be available on the Website. Such Offers are subject to certain terms and conditions and may change at any time without notice to you. The Company will not be liable for any loss or damage incurred as a result of any interaction between you and a merchant with respect to such Offers. Except as set forth herein all matters, including but not limited to delivery of goods and services, @@ -285,14 +305,14 @@
From time to time, We make you aware of certain Company related sweepstakes or other promotions. All such sweepstakes and promotions are subject to the official rules for such sweepstakes and promotions and all related applicable laws, regulations, and statutes.
The Website may contain third-party content and links to other websites that are completely independent of this Website. Third-party content and links are included solely for the convenience of users and do not constitute any approval, endorsement, or warranty by the Company. Moreover, the Company is not responsible for the accuracy, completeness, or reliability of third-party information, or the products or services offered or sold through any linked website and you assume sole responsibility for the use of third-party information. Any agreements, transactions, @@ -303,14 +323,14 @@
The Company recognizes the importance of respecting the privacy of those who visit and choose to take advantage of the programs and information offered on the Website. The Company’s Privacy Policy (available here: Privacy & Policy) provides an overview of what you can expect when you enroll in one of our programs or simply browse the Website.
You agree to indemnify, defend and hold the Company and its business partners, staff, and affiliates harmless from any liability, loss, claim, and expense, including reasonable attorneys’ fees and expenses, related to either your violation of these Terms of Use or your use of the Website. You will indemnify and hold the Company harmless from and against any claim, suit, or proceeding brought against the Company arising from or in connection with violations of copyright or other intellectual property or other rights of third parties contained in your User Submissions and/or any other @@ -320,7 +340,7 @@
While the Company will use reasonable efforts to ensure that all material on the Website is correct; however, accuracy cannot be guaranteed and the Company does not assume any responsibility or liability for the accuracy, completeness, or authenticity of any information contained in the Website.
The Website and all content contained herein are provided to you “As is” and “As available” and all warranties, express or implied, are hereby disclaimed, including any warranty of merchantability, @@ -334,7 +354,7 @@
In no event will the Company or its affiliates be liable for any direct, indirect, special, punitive, exemplary, consequential, or other damages whatsoever, including but not limited to property damage, loss of use, loss of business, economic loss, loss of data or loss of profits, without regard to the form of action (including but not limited to contract, negligence, or other tortious actions) arising out of or in connection with your use or access of the Website or its content, even if the Company or its business partners, employees, representatives or affiliates have been advised of the possibility of such damage or @@ -345,7 +365,7 @@
These Terms of Use will be construed, interpreted, and performed exclusively according to the laws of the Philippines, without giving effect to any principles of conflicts of law. You expressly agree that any action at law or in equity arising out of or directly or indirectly relating to these Terms of Use or the Website will be filed only in Philippine courts. You hereby consent and submit to the personal jurisdiction of such courts for the purposes of any action related to the Website, your access or use thereof, or these Terms of Use, and to extra-territorial service of process.
@@ -361,7 +381,7 @@Company Name | diff --git a/vendor-payments.php b/vendor-payments.php index c749025..8301680 100644 --- a/vendor-payments.php +++ b/vendor-payments.php @@ -470,7 +470,9 @@ if (is_array($vendorDecode)) { ?> $.ajax({ - url: 'https://api.obanana.shop/api/v1/orders/' + orderId, + + // url: 'https://api.obanana.shop/api/v1/orders/' + orderId, + url: 'https:///api/v1/orders/' + orderId, type: 'GET', headers: { 'Authorization': 'Bearer ' + token diff --git a/vendor-payouts.php b/vendor-payouts.php index f6db480..2e751f9 100644 --- a/vendor-payouts.php +++ b/vendor-payouts.php @@ -618,7 +618,8 @@ $vendorPayoutData = json_decode($response, true); var token = ""; $('#payoutIdSpan').text(payoutId); $.ajax({ - url: 'https://api.obanana.shop/api/v1/payouts/' + payoutId, + // url: 'https://api.obanana.shop/api/v1/payouts/' + payoutId, + url: 'https:///api/v1/payouts/' + payoutId, type: 'GET', headers: { 'Authorization': 'Bearer ' + token diff --git a/wishlist.php b/wishlist.php index b1f3ba1..8b3db96 100644 --- a/wishlist.php +++ b/wishlist.php @@ -1,5 +1,3 @@ - - "") { // Make an AJAX request to update the favorites with the remaining products var xhr = new XMLHttpRequest(); - xhr.open('PATCH', 'https://api.obanana.shop/api/v1/customers/' + customerId, true); + // xhr.open('PATCH', 'https://api.obanana.shop/api/v1/customers/' + customerId, true); + xhr.open('PATCH', 'https:///api/v1/customers/' + customerId, true); xhr.setRequestHeader('Content-Type', 'application/json'); xhr.onreadystatechange = function() { if (xhr.readyState === XMLHttpRequest.DONE) { @@ -360,7 +359,8 @@ if ($_SESSION["userId"] <> "") { // Function to delete multiple products function deleteProducts(productIds) { var xhr = new XMLHttpRequest(); - xhr.open('PATCH', 'https://api.obanana.shop/api/v1/customers/' + customerId, true); + // xhr.open('PATCH', 'https://api.obanana.shop/api/v1/customers/' + customerId, true); + xhr.open('PATCH', 'https:///api/v1/customers/' + customerId, true); xhr.setRequestHeader('Content-Type', 'application/json'); xhr.onreadystatechange = function() { if (xhr.readyState === XMLHttpRequest.DONE) {