Skip to content

Instantly share code, notes, and snippets.

View enigmart's full-sized avatar
💭
Development....

Nikos Taxiltaridis enigmart

💭
Development....
View GitHub Profile
wp user list --field=ID --role=customer | xargs wp user delete --yes
<?php
/**
* A simple fix for a shell execution on preg_match('/[0-9]\.[0-9]+\.[0-9]+/', shell_exec('mysql -V'), $version);
* The only edit that was done is that shell_exec('mysql -V') was changed to mysql_get_server_info() because not all
* systems have shell access. XAMPP, WAMP, or any Windows system might not have this type of access. mysql_get_server_info()
* is easier to use because it pulls the MySQL version from phpinfo() and is compatible with all Operating Systems.
* @link http://www.magentocommerce.com/knowledge-base/entry/how-do-i-know-if-my-server-is-compatible-with-magento
* @author Magento Inc.
*/
@enigmart
enigmart / gist:e0b9ca387ef8ab218d7021e3756962d3
Created February 22, 2019 12:59
PRESTASHOP : Show 'inc VAT' next to prices?
So i tool a look at the products tpl as you said and changed
<!-- {if $tax_enabled && $display_tax_label == 1}
{if $priceDisplay == 1}{l s='tax excl.'}{else}{l s='tax incl.'}{/if} -->
To