Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>MDTools - PrestaShop Snippets collectionNew to Visual Studio Code? Get it now.
MDTools - PrestaShop Snippets collection

MDTools - PrestaShop Snippets collection

Constantin Boulanger

|
3,982 installs
| (2) | Free
Created by MDWeb Team for the MDWeb Team ! These snippets are usefull for PrestaShop
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

MDTools

Snippets PHP

  • md:dump => dump($var);
  • md:getval => Tools::getValue('');
  • md:prefix => Db::getInstance->getPrefix()
  • md:psquery => Show an instance of DBQuery
  • md:sqlrow => Give a Db::getInstance()->getRow($sql);
  • md:sqlval => Give a Db::getInstance()->getValue($sql);
  • md:sqlDelete => Give a Db::getInstance()->delete($table, $where);
  • md:sqlGetMsgError => Give a Db::getInstance()->getMsgError();
  • md:class => Create a Prestashop object model sample !
  • md:module => Create a Prestashop Module sample !
  • md:assign => Give a $this->context->smarty->assign(array())
  • md:mail_send => Give a complete Mail::send() call
  • md:configuration::get => Give a Configuration::get() call
  • md:configuration::updateValue => Give a Configuration::updateValue() call
  • md:configuration::deleteByName => Give a Configuration::deleteByName() call

Snippets Smarty

  • md:l => {l s='' mod='' d=''}
  • md:l => {l s='' sprintf=[$var|intval] mod='' d=''}
  • md:dump => {$var|dump}
  • md:vdump => {$var|var_dump}
  • md:hook => {hook h='<hook_name>' mod='<hook_name>'}
  • md:widget => {widget name='<module_name>' hook='<hook_name>'}
  • md:link => {url entity='' params = ['' => '', '' => '']}
  • md:link-module => {url entity='module' name='<module_name>' controller='<module_controller>' params = ['' => '', '' => '']}

Snippets CSS,LESS,CSS

  • md:media_phone / md:media_tablet / md:media_desktop => Generate media queries for these devices
  • md:flex-center => Display Flex Center attributes

Extension Dependencies

Smarty Template Support & PHP Symbols & PHP DocBlocker ! 😃

Author : BOULANGER Constantin

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft