Jump to content

mohdoh

Members
  • Posts

    7
  • Joined

  • Last visited

Profile Information

  • Location
    kuwait
  • Activity
    Developer

Recent Profile Visitors

379 profile views

mohdoh's Achievements

Newbie

Newbie (1/14)

5

Reputation

  1. My shop web development is finished, but my production is taking some time. I would like to keep the shop in maintenance mode, but allow Search Bots to bypass maintenance mode and access website to improve ranking. Any advise?
  2. My shop web development is finished, but my production is taking some time. I would like to keep the shop in maintenance mode, but allow Search Bots to bypass maintenance mode and access website to improve ranking. Any advise?
  3. I had the same problem. The Solution: go to Preferences > Store Contacts > Contact details, make sure the shop email address match the domain name.
  4. I would want this in case I change the sass file. basically when a new or changed file is detected, it compiles. I am currently editing and compiling the sass locally, then uploading the css, which is time inefficient. Wondering if there is a method used by Prestashop, before I start playing around installing compass or writing scripts.
  5. Thanks for the reply, but how to automate the compilation of sass on the server?
  6. Does Prestashop compile the sass files? if yes, then how to enable? If not, then how can I automate sass compiling on the server? I am using Siteground as the host.
  7. I am creating a new module that create, read, update and delete a table in the database. Thus, I am creating a new ObjectModel for this module. Below is what I did, appreciate if someone can point out what I am doing wrong that the Controller not reading the classl: I created a classes folder in the module directory, and place the following 'Measurement.php' file in it: <?php class MeasurmentCore extends ObjectModel { public $id_customer = null; public $alias; public $weight; public $height; public $date_add; public $date_upd; public $deleted = 0; public static $definition = array( 'table' => 'measure', 'primary' => 'id_measure', 'fields' => array( 'id_customer' => array('type' => self::TYPE_INT, 'validate' => 'isNullOrUnsignedId', 'copy_post' => false), 'alias' => array('type' => self::TYPE_STRING, 'validate' => 'isGenericName', 'required' => true, 'size' => 32), 'weight' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedInt', 'required' => true), 'height' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedInt', 'required' => true), 'deleted' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool', 'copy_post' => false), 'date_add' => array('type' => self::TYPE_DATE, 'validate' => 'isDateFormat', 'copy_post' => false), 'date_upd' => array('type' => self::TYPE_DATE, 'validate' => 'isDateFormat', 'copy_post' => false), ), ); } Then in the ModuleFrontController 'measurements.php' located in the 'measure/controllers/front/' <?php Class MeasureMeasurementsModuleFrontController extends ModuleFrontController { protected $_measure; public function init() { parent::init(); include_once(_PS_MODULE_DIR_.'measure/classes/measurement.php'); $this->_measure = new Measurement($id_measure); } public function initContent() { parent::initContent(); $this->setTemplate('measure.tpl'); } } When I load the '/index.php?fc=module&module=measure&controller=measurements' page, I get this error: Fatal error: Class 'Measurement' not found in C:\wampn\.*.*\modules\measure\Controllers\front\Measurements.php on line 11 Thanks in advance,
×
×
  • Create New...