Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To use the functions, first an instance of the class must be created, here a code example. Example:

Code Block
languagephp
linenumberstrue
<?php
require_once ('/path/to/modules/addons/hideproducts/autoload.php');

$pid = 1234;

try {
    $hideproducts = new dpl_hideproducts ();
    $getProductState = $hideproducts->getProductState ('product', $pid);
    
    var_dump ($getProductState);
} catch (Exception $e) {
    echo $e->getMessage();
}

...