Skip to content

Instantly share code, notes, and snippets.

View ssx's full-sized avatar

Scott Robinson ssx

View GitHub Profile
@ssx
ssx / ACSD-65540_B2B_1.5.2.patch
Created April 22, 2025 07:09
ACSD-65540_B2B_1.5.2.patch
diff --git a/vendor/magento/module-company/Setup/Patch/Data/SetCompanyForStructure.php b/vendor/magento/module-company/Setup/Patch/Data/SetCompanyForStructure.php
index 4dcb3dbcb5b3..7ba339a8703e 100644
--- a/vendor/magento/module-company/Setup/Patch/Data/SetCompanyForStructure.php
+++ b/vendor/magento/module-company/Setup/Patch/Data/SetCompanyForStructure.php
@@ -71,7 +71,7 @@ public function apply()
$this->moduleDataSetup->getConnection()->update(
$this->moduleDataSetup->getTable('company_structure'),
['company_id' => $company['entity_id']],
- ['REGEXP_LIKE(path, ?)' =>
+ ['path REGEXP ?' =>
diff --git a/vendor/magento/module-payment-services-paypal/Block/SmartButtons.php b/vendor/magento/module-payment-services-paypal/Block/SmartButtons.php
index 60beabb8..d74fa01d 100644
--- a/vendor/magento/module-payment-services-paypal/Block/SmartButtons.php
+++ b/vendor/magento/module-payment-services-paypal/Block/SmartButtons.php
@@ -14,6 +14,7 @@ use Magento\Framework\View\Element\Template\Context;
use Magento\PaymentServicesPaypal\Model\Config;
use Magento\Catalog\Block\ShortcutInterface;
use Magento\Framework\View\Element\Template;
+use Magento\Checkout\Model\Session as CheckoutSession;
diff --git a/lib/web/jquery/bootstrap/collapse.js b/lib/web/jquery/bootstrap/collapse.js
index 95e28cec248..5a978bcfafb 100644
--- a/lib/web/jquery/bootstrap/collapse.js
+++ b/lib/web/jquery/bootstrap/collapse.js
@@ -32,7 +32,7 @@ define([
const VERSION = '5.1.3'
const NAME = 'collapse'
const DATA_KEY = 'bs.collapse'
- const EVENT_KEY = `.${DATA_KEY}`
+ const EVENT_KEY = `.${DATA_KEY}`;
@ssx
ssx / pre-commit
Last active August 13, 2019 19:02
Pre-commit hook for git with phpcs and phpcbf (auto-correct obvious violations)
#!/bin/sh
PHPCS=`which phpcs`
PHPCBF=`which phpcbf`
if [ -z $PHPCS ] || [ -z $PHPCBF ]
then
printf "\n\e[38;5;255,255,255m"
printf "💥 Error: The required tools 'phpcs' and/or 'phpcbf' could not be found in your path.\n\n"
printf "You can install both tools globally by running:\n\n"
Quickbooks User
|
|------------ Company 1
| |----------- Customer 1
| |----------- Customer 2
| |----------- Customer 1
|------------ Company 2
| |----------- Customer 4
| |----------- Customer 5
|------------ Acme Ltd
@ssx
ssx / CsCartValetDriver.php
Created May 22, 2019 14:56
CS Cart Valet Driver
<?php
class CsCartValetDriver extends ValetDriver
{
const INSTALL_PATHS = ['/install/', '/install', '/install/index.php'];
const INSTALL_CONTROLLER = '/install/index.php';
protected $admin;
protected $customer;
cat /dev/null > ~/.bash_history && history -c && exit
<?php
Route::get('/', function()
{
// Return our basic form view
return View::make("form");
});
Route::post('/', function()
{
// Build the input for our validation
<!doctype html>
<html lang="en">
<head>
<title>File Upload</title>
</head>
<body>
@if (Session::has("message"))
{{ Session::get("message") }}
@endif
<hr />