Skip to content

Instantly share code, notes, and snippets.

View unlocomqx's full-sized avatar
🏠
Working from home

Tuni-Soft unlocomqx

🏠
Working from home
  • Module Dev - Tuni-Soft
  • [object Object]
View GitHub Profile
13:38:02 Starting mission:
13:38:02 Mission file: Infantry_KingOfTheHill_RHS_by_Sa-Matra_for_CODE4 (__CUR_MP)
13:38:02 Mission world: Altis
13:38:02 Mission directory: mpmissions\__CUR_MP.Altis\
13:38:03 DX11 error : CreateTexture failed : E_OUTOFMEMORY
13:38:03 DX11 error : CreateTexture failed : E_OUTOFMEMORY
13:38:03 DX11 error : CreateTexture failed : E_OUTOFMEMORY
13:38:03 DX11 error : CreateTexture failed : E_OUTOFMEMORY
13:38:03 DX11 error : CreateTexture failed : E_OUTOFMEMORY
13:38:03 DX11 error : CreateTexture failed : E_OUTOFMEMORY
.dp_image_field_container .dp_file_thumb {
width: 50px !important;
height: 50px !important;
}
.dp_image_field_container .dp_file_thumb {
width: 150px !important;
height: 150px !important;
}
.dp_thumb_container {
height: 150px;
vertical-align: top;
}
<?php
$result = $result - $product_price;
$context = Context::getContext();
$declarations = array(
'id_guest' => $context->cookie->id_guest,
'id_cart' => $context->cart->id,
'id_customer' => $context->customer->id,
);
body.designer .thumbnails {
display: none;
}
<?php
$sql = new DbQuery();
$sql->from('fmm_registration_userdata');
$sql->select('value');
$sql->where('id_customer = ' . (int)$customerId);
$sql->where('id_fmm_registration_fields = 3');
$price_gold = Db::getInstance()->getValue($sql);
@unlocomqx
unlocomqx / filezilla.sh
Created June 14, 2020 23:28
Filezilla auto upload script (detects "file changed" dialog and "presses" enter) (needs more work to restore focus to the last window)
#!/bin/bash
# this script starts filezilla
#filezilla </dev/null &>/dev/null &
# file changed dialog title to look for
title="File has changed"
last_window_id=0
<?php
// Lines 272 & 273 of the file /modules/paypal/classes/MethodEC.php
// add id_customization to include the customization cost
// in PrestaShop 1.7, customizations can have a cost & weight impact just like combinations
$priceIncl = $this->formatPrice($productObj->getPrice(true, $product['id_product_attribute'], 6, null, false, true, 1, $product['id_customization']));
$priceExcl = $this->formatPrice($productObj->getPrice(false, $product['id_product_attribute'], 6, null, false, true, 1, $product['id_customization']));
Index: modules/paypal/classes/MethodEC.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- modules/paypal/classes/MethodEC.php (date 1592596552365)
+++ modules/paypal/classes/MethodEC.php (date 1592596552365)
@@ -269,8 +269,8 @@
foreach ($products as $product) {
$itemDetails = new PaymentDetailsItemType();