---
# System prepended metadata

title: '| TO-DO: 22/6/21 |'

---


# | TO-DO: 22/6/21 |
## BACKEND:
### Admin:
- [ ] /estore/admin/set-club-points > admin> club point system > set price validation min-max: Set Point for Product Within a Range
- [ ] Products > All Products > admin click “Duplicate” prompt error page (slide 16) <br> Creating default object from empty value:<br>@htdocs\estore\app\Http\Controllers\ProductController.php



## FRONTEND:

- [ ] Admin > Website Setup > Header > When add new column such as “Label” at backend will display at the front end landing page. The text cannot be seen but functional (slide)

- [ ] seller cannot refund, button no effect
- [ ] enhancement:required field create/edit: instant validation
- [ ] RECOMMENT - Setup & Configurations > Feature Activation > hide Payment -13/6/2021
    - resources\views\backend\inc\admin_sidenav.blade.php (comment 854-861)
    - resources\views\backend\setup_configurations\activation.blade.php (comment 184-420)
    - resources\views\backend\setup_configurations\payment_method.blade.php (comment 7-590)
## On-Going Edits
- eGHL testing -16/6/2021
    - web.php (116-118)
### plan
version 6.x
- load construct data -> throw to blade -> direct to eGHL when select -> send to eGHL ->redirect popup (make application loading) -> if success, loading stop
- do maintenance on sandbox link
- env set local/production
- hash validaiton -> posting (once get, need return response or risk double posting) -> redirect backdrop (laravel job queue, is concurrent)-> then refer epay update transaction file
<br>

# (ON HOLD)
- eghl payment: do laravel Queue (callback)for json return response
- Offline payment system -> offline customer package payments
    - deactivating offline method, no fix needed -11/6/2021
    - same as Seller method, fix current package number
- Offline Wallet Recharge:
    - deactivating offline method, no fix needed -11/6/2021
   - When Approve or unapprove will trigger the same flash massage (Ken slide 11) -9/6/2021
      - *temp solved flash status -10/6/2021
       - need to discuss with technical team on applying label method to approval status
- Seller > Seller Payouts / Seller Withdraw
    - waiting Gynard confirm
   - ?(change wordings admin paid by seller->to seller (*to be confirmed)(ecomm slide)

# SYSTEM ISSUE:
- customer pay by wallet, can't get refund after order cancelled. Admin set unpaid & cancelled, customer or seller can't request refund.
- manual payment method (eg. Bank):
    - entered amount wallet only accountable for item price, regardless user bank in amount lack or exceed
    - once admin set paid, customer get point. (delivered, cancel, reverse payment status does not affect)
    
# Discussion:
> 11/6/2021: sent file to Gynard<br>
> hide Offline Payment System

> 10/6/2021:<br>
>admin > all product (seller items): can unpublish/feature, should not duplicate/delete
><br> Ken- admin can publish/feature, should not delete/duplicate seller item.
><br> Need discuss w/ Gynard: If admin duplicate seller item, seller deduct remaining count? OR hide seller item duplicate btn
><br> Conclusion:
><br> -Hide admin duplicate on seller's item and remove delete button
><br> - (enquiring) about withdraw wallet clear due function
><br> - (contemplating) admin cancel customer order, wallet balance not refunded & customer unable to request refund
---
# FIXED:
## (BACKEND)
- added EGHL and Toyyibpay -1/7/2021
    - app\Http\Controllers\ToyyibpayController.php
    - app\Http\Controllers\eghlController.php
- added payment gaeway selection -1/7/2021
    - resources\views\frontend\payment_select.blade.php
- set csrf token exception -20/6/2021
    - app\Http\Middleware\VerifyCsrfToken.php
- admin > all product: publish product on invalid seller -14/6/2021
    -resources\views\backend\product\products\index.blade.php (217)
- Offline Payment System (deactivated thru add-ons & tested) -13/6/2021
- unpublish seller item > something went wrong (in db, seller is invalid) -12/6/2021
- Setup & Configurations > Feature Activation > hide Payment -2/6/2021
    - resources\views\backend\setup_configurations\activation.blade.php (comment 184-420)
    - resources\views\backend\setup_configurations\payment_method.blade.php (comment 7-590)
- admin > sidenav> addons -2/6/2021
    - resources\views\backend\inc\admin_sidenav.blade.php (comment 854-861)
- Removed all “activeit” keyword
- Website Setup -> Pages
    - Able to change default website title and link
    - Create & edit Add Content textarea field required fixed -8/6/2021
        resources\views\backend\website_settings\pages\create.blade.php (11, 39, 95-101)
        resources\views\backend\website_settings\pages\edit.blade.php

- Sellers -> Seller Packages
    - From error page -> able to show index  & create
    - Saved image as filename instead of default code
    - Interface layout fixed
    - Edit and Delete button fixed
    - Display stored image in index -8/6/2021
        - resources\views\seller_packages\index.blade.php (line 14)
    - delete button font colour black -> white -9/6/2021
        - resources\views\seller_packages\index.blade.php (line 32)
- Products > All Products
    - Remove delete button -10/6/2021
        - resources\views\backend\product\products\index.blade.php (line 160-162)
    - Only admin/staff can duplicate inhouse item(admin items) -10/6/2021
        - resources\views\backend\product\products\index.blade.php (line 155, 159)

- Sales 
    - All Orders: hide delete button -10/6/2021
        - resources\views\backend\sales\all_orders\index.blade.php (comment line 105-107)
    - Inhouse Orders: hide delete button   -10/6/2021
        - resources\views\backend\sales\inhouse_orders\index.blade.php (comment line 126-128)
    - Seller Orders: hide delete button  -10/6/2021
        - resources\views\backend\sales\seller_orders\index.blade.php (comment line 129-131)
    - Pick-up Point Order: hide delete button  -10/6/2021
        - resources\views\backend\sales\pickup_point_orders\index.blade.php (comment line 94-96)

- Offline Wallet Recharge
    - Add unapprove wallet recharge status -10/6/2021
        - app\Http\Controllers\WalletController.php (line 152-158)
        - resources\views\manual_payment_methods\wallet_request.blade.php (line 69-75)

- Support/ticket 
    - Textarea required validation -10/6/2021
        - resources\views\backend\support\support_tickets\show.blade.php (line 18, 23, 122-128)
---
## (FRONTEND)
### SELLER
- unpublish product can view by admin/owner 14/6/2021
    - controller allowed admin & product owner
        - app\Http\Controllers\HomeController.php (282)
        `elseif(Auth::user()->user_type == ('admin'))`
    - added unpublished label
        - resources\views\frontend\product_details.blade.php (105-108, 301,420)
- seller add asterisk on required field 14/6/2021
    - seller create
        - resources\views\frontend\user\seller\product_upload.blade.php
    - seller edit
        - resources\views\frontend\user\seller\product_edit.blade.php
- seller add required on required field 13/6/2021
    - seller create
        - resources\views\frontend\user\seller\product_upload.blade.php
    - seller edit
        - resources\views\frontend\user\seller\product_edit.blade.php
- Seller > support ticket: if description too long overflow, can't see button -13/6/2021
    - resources\views\frontend\layouts\user_panel.blade.php (line 8: `<div class="col-lg-10 mx-auto">`)
- Offline Payment System (deactivated thru add-ons & tested) -13/6/2021
- seller unpublish/publish > something went wrong (in db, seller is invalid) -12/6/2021
- Seller > Featured
    - If set by admin(home), display label beside product -11/6/2021
        - resources\views\frontend\user\seller\products.blade.php (line 95-99)
    - if by seller(shop) > display tooltip -11/6/2021
        - resources\views\frontend\user\seller\products.blade.php (line 83)

- /seller/products
    - hide delete button in seller -9/6/2021
        resources\views\frontend\user\seller\products.blade.php (comment line 136-138)

- /seller/product/upload
    - configure description required -9/6/2021
        resources\views\frontend\user\seller\product_upload.blade.php (13, 573-579)

- seller/product/{id}/edit
    - product description field required fixed -9/6/2021
        resources\views\frontend\user\seller\product_edit.blade.php (line 14, 681-686)

- /estore/seller-packages
    - get package > confirm button no colour -10/6/2021
        resources\views\seller_packages\frontend\seller_packages_list.blade.php (line 84)

- /estore/support_ticket/
    - onsubmit button error. No need define, removed onsubmit('pending') -10/6/2021
        resources\views\frontend\user\support_ticket\show.blade.php (line 37)
    - textarea field require validation -10/6/2021
        resources\views\frontend\user\support_ticket\show.blade.php (line 16, 120-127)

- Seller Package - 8/6/2021
    - When added new Seller Package, cannot access seller dashboard Product and Digital Product
    - Reason: new package name not added to Translation.
    - Solution: in resources\views\frontend\user\seller\digitalproducts\products.blade.php
    remove {{ $seller_package->getTranslation('name') }}


### CUSTOMER
- customer edit required field -13/6/2021
    - resources\views\frontend\user\customer\product_upload.blade.php
- Offline Payment System (deactivated thru add-ons & tested) -13/6/2021
- customer > recharge wallet -13/6/2021
    - resources\views\frontend\user\wallet\index.blade.php
- customer > support ticket validation -13/6/2021
- customer > product: add asterisk/required on required field 13/6/2021
    - customer create
        - resources\views\frontend\user\customer\product_upload.blade.php
    - customer edit
        - resources\views\frontend\user\customer\product_edit.blade.php
- customer > purchase history > Order ID > Make payment
    - enhancement: set min(0.01) and max(999,999,999.99) value = length -11/6/2021
        - resources\views\frontend\user\payment_modal.blade.php (line 39)
- Correct code wording "return" -11/6/2021
    - app\Http\Controllers\ManualPaymentMethodController.php (line 161)
- customer > make payment > redirect to purchase history -11/6/2021
    - app\Http\Controllers\ManualPaymentMethodController.php (line 219)
- use manual payment method add alert -11/6/2021
    - resources\views\frontend\order_confirmed.blade.php (line 103-105)
- Offline payment system -> offline customer package payments
    - hide delete button in customer -9/6/2021
        - resources\views\frontend\user\customer\products.blade.php (comment line 97-99)
        
- Add new product: textarea field required fixed -8/6/2021
    - resources\views\frontend\user\customer\product_upload.blade.php (line 11, 227-233)

---
## versions
> version 6 -changes until 12/7/2021 (+admin gateway payment status)<br>
> version 5 - estore_v5_eghl -changes until 18/6/2021<br>
> version 4 -changes until 15/6/2021<br>
> version 3 -changes until 14/6/2021<br>
> version 2 -changes until 13/6/2021<br>
> version 1 -changes until 10/6/2021<br>
---
## File
### Backup
- support_ticket show.blade- Copy >C:\xampp\htdocs\estore\resources\views\frontend\user\support_ticket
- ProductController >C:\xampp\htdocs\estore\app\Http\Controllers
- (admin > products > all products) index.blade >resources\views\backend\product\products\index.blade.php
- HomeController-backup > C:\xampp\htdocs\estore\app\Http\Controllers
- IyzicoController_backup > app\Http\Controllers\IyzicoController.php
- CheckoutController_backup >app\Http\Controllers\CheckoutController_backup.php
### Created
- eghlController -16/6/2021 >app\Http\Controllers\eghlController.php
- orderpayment_eghl blade -16/6/2021 >resources\views\frontend\eghl\orderpayment_eghl.blade.php