Skip to content

Instantly share code, notes, and snippets.

View zepgram's full-sized avatar
🚀

Benjamin Calef zepgram

🚀
View GitHub Profile
@zepgram
zepgram / privacy-policy-username.md
Last active December 12, 2023 20:34
privacy-policy-username

Privacy Policy for USERNAME - Zepgram

Introduction

This Privacy Policy outlines the practices of USERNAME, commercially known as Zepgram ("we," "us," "our"), located at 9 rue des colonnes, 75002 Paris, regarding the handling of personal data through our digital asset module for Magento2. Our commitment is to respect and protect the privacy of our users.

Data Collection and Usage

  • No Data Collection: We do not collect any personal data from our users. Our services and products, provided under the name Zepgram, are designed to function without the need for personal data.
  • No Data Usage: As we do not collect any data, there is no usage of personal data in any form.

Data Sharing and Disclosure

@zepgram
zepgram / AbstractPdf.php
Created June 17, 2022 13:43
PDF size reduction for Magento 2
<?php
declare(strict_types=1);
namespace MyNamespace\Sales\Model\Order\Pdf;
use Magento\Sales\Model\Order\Pdf\AbstractPdf as MagentoAbstractPdf;
/**
* Drastically reduce size of PDF by changing fonts
@zepgram
zepgram / MDVA-43395_EE.md
Last active February 14, 2022 16:53
5 steps to resolve the critical issue [MDVA-43395]

1. Install cweagans patch

composer require cweagans/composer-patches

2. add file patch/magento/framework/<your_magento_release_version>-MDVA-43395_EE_v1.patch

--- a/vendor/magento/framework/Filter/DirectiveProcessor/VarDirective.php
+++ b/vendor/magento/framework/Filter/DirectiveProcessor/VarDirective.php
@@ -55,6 +55,11 @@ public function process(array $construction, Template $filter, array $templateVa
@zepgram
zepgram / how_to_upgrade_magento2.md
Last active February 9, 2022 11:53
Technical guideline to upgrade successfully Magento 2 software

How to upgrade Magento 2

This page is dedicated to reference best-practice by steps to conduct a successful major upgrade of Magento 2 software, especially on an old fashion website not maintained during a long time.

The upgrade must be plannified between developer and business team, in order to make it in the best conditions.

I. Introduction to external tools

Magento created a very helpful tool who was been recently released: https://business.adobe.com/blog/the-latest/introducing-upgrade-compatibility-tool