✏️ 正在编辑: ecpricetext.php
路径:
/home/bpioifn/www/pigmentse/modules/easycart/classes/ecpricetext.php
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php /** * Please do not edit or add any code in this file without the permission of PIBBLU * * @author Saravana Technology Solutions * @copyright Saravana Technology Solutions * @license http://www.pibblu.in * Prestashop version 1.7+ * easycart 1.0.0 * Dec 2017 */ class Ecpricetext extends ObjectModel { public $id_ecpricetext; public $id_product; public $product_name; public $id_shop = 1; public $pricetext; public static $definition = array( 'table' => 'ecpricetext', 'primary' => 'id_ecpricetext', 'multilang' => true, 'fields' => array( 'id_ecpricetext' => array('type' => self::TYPE_INT), 'id_product' => array('type' => self::TYPE_INT), 'product_name' => array('type' => self::TYPE_STRING), 'id_shop' => array('type' => self::TYPE_INT), 'pricetext' => array('type' => self::TYPE_STRING, 'lang' => true, ), ), ); public static function getItems($packGroupId) { $array_result = array(); $ecpricetext = new Ecpricetext($packGroupId); $array_result[] = $ecpricetext; return $array_result; } public static function getPriceText($id_product, $id_lang) { $query = 'SELECT b.`pricetext` FROM `'._DB_PREFIX_.'ecpricetext` a LEFT JOIN `'._DB_PREFIX_.'ecpricetext_lang` b on (a.`id_ecpricetext` = b.`id_ecpricetext` AND b.`id_lang` = '.(int)$id_lang.') WHERE a.`id_product`= '.(int)$id_product; $text = Db::getInstance()->getValue($query); return $text; } public function deleteAllRecords() { if (!Db::getInstance()->execute('DELETE FROM '._DB_PREFIX_.'ecpricetext')) { return false; } return true; } }
💾 保存文件
← 返回文件管理器