first commit

This commit is contained in:
2024-11-11 18:46:54 +01:00
commit a630d17338
25634 changed files with 4923715 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
<?php
/**
* Page Cache Ultimate, Page Cache standard and Speed pack are powered by Jpresta (jpresta . com)
*
* @author Jpresta
* @copyright Jpresta
* @license See the license of this module in file LICENSE.txt, thank you.
*/
if (!defined('_PS_VERSION_')) {
exit;
}
class ConfiguratorProductModuleFrontControllerOverride extends ConfiguratorProductModuleFrontController
{
/**
* @return string
*/
public static function getJprestaModelObjectClassName()
{
return 'Product';
}
/**
* @return int|null
*/
public function getJprestaModelObjectId()
{
$id_product = (int)Tools::getValue('id_product');
if ($id_product && ($postObj = new Product($id_product)) && Validate::isLoadedObject($postObj)) {
return $id_product;
}
return null;
}
}