Skip to content

Instantly share code, notes, and snippets.

View amine-y's full-sized avatar
📈
Being awesome as always

Amine Yaakoubi amine-y

📈
Being awesome as always
View GitHub Profile
{
"fichero": "29000120573_2173521_2173522.JSON",
// Nombre del fichero unico
"referencia_pedido": "29000120573_2173521_2173522",
// Referencia del pedido y/o fichero*
"emisor": "MENZZO",
// Nombre del Emisor del fichero*
"codigo_emisor": 0,
// Código de Cliente*
"receptor": "TAMDIS",
@amine-y
amine-y / bigbuy_all_products.json
Created January 26, 2024 13:22
Bigbuy all products
[
{
"manufacturer": 13557,
"id": 795576,
"sku": "S9147121",
"ean13": "6937748735755",
"weight": 0.865,
"height": 10.5,
"width": 19.8,
"depth": 7.2,
@amine-y
amine-y / bigbuy_tags.json
Created January 26, 2024 13:18
bigbuy tags
[
{
"id": 495,
"sku": "H1000103",
"tag": {
"id": 8,
"name": "sportif \/ en forme",
"linkRewrite": "sportif-en-forme",
"language": "fr"
}
{"Shipment":{"ShipmentReference":["D6VLZ9"],"Product":"PARCEL","Consignee":{"Address":{"Name1":"Marie-Ren\u00e9e Mesnard","Name2":"","CountryCode":"FR","ZIPCode":"33120","City":"ARCACHON","Street":"Villa Plaisance Residence","eMail":"pascal@mesnard.net","ContactPerson":"","MobilePhoneNumber":"0631345212","StreetNumber":"COGEDIM CLUB d'Arcachon 34, Rue Francois Legallais"}},"Shipper":{"ContactID":"250aaaQ8j6"},"ShipmentUnit":[{"ShipmentUnitReference":["D6VLZ9"],"Weight":"0.2","Note1":"3001260989","Note2":"Parts: 1311918"}],"Service":[{"Service":{"ServiceName":"service_flexdelivery"}}]},"PrintingOptions":{"ReturnLabels":{"TemplateSet":"NONE","LabelFormat":"PDF"}},"CustomContent":{"Barcode":"D6VLZ9","BarcodeType":"CODE_39"}}
[2023-12-11T06:35:53.498024+00:00] main.CRITICAL: Exception: Notice: A non well formed numeric value encountered in /home/cloudpanel/htdocs/www.menzzo.fr/releases/2023_12_08_2_01_56_tag_2.4.5.166/app/code/Axelites/Core/Helper/Data.php on line 1580 in /home/cloudpanel/htdocs/www.menzzo.fr/releases/2023_12_08_2_01_56_tag_2.4.5.166/vendor/magento/framework/App/ErrorHandler.php:62
Stack trace:
#0 /home/cloudpanel/htdocs/www.menzzo.fr/releases/2023_12_08_2_01_56_tag_2.4.5.166/app/code/Axelites/Core/Helper/Data.php(1580): Magento\Framework\App\ErrorHandler->handler()
#1 /home/cloudpanel/htdocs/www.menzzo.fr/releases/2023_12_08_2_01_56_tag_2.4.5.166/app/code/Axelites/Core/Block/Catalog/Product/View/Purchase.php(294): Axelites\Core\Helper\Data->priceScalapay3X()
#2 /home/cloudpanel/htdocs/www.menzzo.fr/releases/2023_12_08_2_01_56_tag_2.4.5.166/var/view_preprocessed/pub/static/app/code/Axelites/Core/view/frontend/templates/scalapay/scalapay_wrapper.phtml(1): Axelites\Core\Block\Catalog\Product\View\Purchase->priceScal
<?php
$categories = $this->container->get('mz.category')->getMenzzoMenu(3);
function generateCategoryPath($categories, $categoryId) {
$categoryPath = [];
// Find the category with the given ID
$category = findCategoryById($categories, $categoryId);
[{"source_id":3799,"sku":"2xgf225anoisnoir","media_id":937,"model_id":3799,"images":"Dima_2xgf225anoisnoir--uniq--f35e259357a892042cac55f278651c30.JPG|@vickyshome_ _ chaises scandinaves Dima Bois Noisette et Noir-ffb2d67bfbc25412cd9261de970858e0.jpg|@vickyshome_ _ chaises scandinaves Dima Bois Noisette et Noir-2-d605b8309355b1da091de975048a95ec.jpg"},{"source_id":5500,"sku":"8801greyvelvet","media_id":936,"model_id":5500,"images":"Klarys_8801greyvelvet--uniq--88785b20616672772ece44e4e33c54ab.jpg"},{"source_id":9026,"sku":"dc5601puttyvelvet","media_id":935,"model_id":9151,"images":"elsa_dc5601puttyvelvet--uniq--00c5df736cecc20c0a90ce86e7e6eb9b.jpg"},{"source_id":4428,"sku":"qh8901beige","media_id":934,"model_id":4428,"images":"Lylou_qh8901beige--uniq--d1cc4ce39b06bee233d86c13b1cad44a.jpg"},{"source_id":5868,"sku":"dc5106lot2lightgreyfabric","media_id":933,"model_id":5868,"images":"maury_dc5106lot6lightgreyfabric--uniq--8bae5fd340e5c6fc290d0cb3f79685ee.PNG"},{"source_id":4143,"sku":"qh8901yellow16806","medi
<template>
<div
class="d-flex flex-column flex-column-fluid bgi-position-y-bottom position-x-center bgi-no-repeat bgi-size-contain bgi-attachment-fixed"
:style="{ backgroundImage: 'url(' + getIllustrationsPath('14.png') + ')' }"
>
<!--begin::Content-->
<div class="d-flex flex-center flex-column flex-column-fluid p-10 pb-lg-20">
<!--begin::Logo-->
<a href="#" class="mb-12">
<img alt="Logo" src="media/logos/logo-1.svg" class="h-45px" />
<?php
$dir = '/home/amine/public/deletehtaccess';
$result = shell_exec( 'find ' . $dir . ' -type f -iname ".htaccess" -print' );
if( !empty( $result ) ) {
echo "\nFound the following files in [$dir]:\n" . $result;
$hidden_files = explode("\n", trim($result) );
} else {
echo "\nFound no hidden files in [$dir].\n";
function generateElasticSearchQueryFromTerm( $term, $lang = null ) {
$term = strtolower( $term );
$query = [
'sort'=> [
'meta.societe_pgs_vip.raw'=> [
'order'=> 'desc'
],
// '_score' => [
// 'order'=> 'desc'