Skip to content

Instantly share code, notes, and snippets.

View AleksIralda's full-sized avatar

Aleks Iralda AleksIralda

View GitHub Profile
@AleksIralda
AleksIralda / head.blade.php
Last active February 24, 2024 10:31
Temp Fix for Luxe Theme. notify.css classes aren't loaded in Laravel 10. Location modules/LuxeTemplate/Resources/views/templates/head.blade.php
<!-- head -->
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="{{ $restorant->description }}">
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>{{ $restorant->name }}</title>
@AleksIralda
AleksIralda / en.json
Created January 15, 2024 23:58
English Language File for Custom Themes and Luxe themes for Mobidonia Products located on modules/LuxeTemplate/Resources/lang/en.json
{
"Buy now": "Buy now",
"Apps": "Apps",
"Apps settings": "Apps settings",
"Sort order updated": "Sort order updated",
"There is not enough PHP memory_limit. Please refer to docs on how to increase to at least 512MB": "There is not enough PHP memory_limit. Please refer to docs on how to increase to at least 512MB",
"User is not a driver!": "User is not a driver!",
"Driver not found!": "Driver not found!",
"Driver now off line": "Driver now off line",
"Driver now online": "Driver now online",
@AleksIralda
AleksIralda / modals.blade.php
Created January 15, 2024 23:34
Fixing "price is not displayed in modal menu when Ordering is disabled" in Luxe Theme, located on modules/LuxeTemplate/Resources/views/templates/modals.blade.php
<div class="modal fade bd-example-modal-sm" id="productModal" z-index="9999" tabindex="-1" role="dialog" aria-labelledby="modal-form" aria-hidden="true">
<div class="modal-dialog modal-sm modal-dialog-centered " role="document" id="modalDialogItem">
<div class="modal-content">
<div class="modal-header">
<h6 class="mb-0">{{ __('Add to Cart') }}</h6>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body p-0">
@AleksIralda
AleksIralda / button.blade.php
Last active October 27, 2023 11:53
Adding classes for Luxe Checkout Add-on Compatibility for PayStack Payment Module located on modules/Paystack/Resources/views/button.blade.php
<div class="text-center payment_form_submiter" id="paystack-payment-form" style="display: {{ config('settings.default_payment')=="paystack"?"block":"none"}};" >
<button
v-if="totalPrice"
type="submit"
class="button full-button d-flex align-items-center justify-content-center uppercase paymentbutton"
onclick="this.disabled=true;this.form.submit();"
>{{ __('Place order') }}</button>
</div>
@AleksIralda
AleksIralda / dineiintakeaway.blade.php
Created November 13, 2022 13:21
Updating "No delivery" option on Luxe Checkout
<div class="card-body payment-select service-method">
<div class="custom-control custom-radio mb-3">
<input name="dineType" class="custom-control-input" id="deliveryTypeDinein" type="radio" value="dinein" checked>
<label class="custom-control-label d-flex justify-content-start align-items-center" for="deliveryTypeDinein"><svg width="17" viewBox="0 0 21 28" xmlns="http://www.w3.org/2000/svg"><g stroke-linecap="round" stroke-width="2" stroke="currentColor" fill="none" stroke-linejoin="round"><path d="M7 1v8 0c0 1.1-.9 2-2 2H3v0c-1.11 0-2-.9-2-2V1"/><path d="M4 1l0 26"/><path d="M16 1a4 5 0 1 0 0 10 4 5 0 1 0 0-10Z"/><path d="M16 27l0-16"/></g></svg>&nbsp;&nbsp;{{ __('Dine In') }}</label>
<span class="checkmark"></span>
</div>
<div class="custom-control custom-radio mb-3">
<input name="dineType" class="custom-control-input" id="deliveryTypeTakeAway" type="radio" value="takeaway">