Jump to content
thirty bees forum

SiliticX

Members
  • Posts

    10
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

SiliticX's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hey guys. So our site is finally online but we've been trying to enable the full page cache and still fiddle around with the site but we've come to a weird issue. Somehow nothing seems to invalidate our full page cache for a CMS page. The current settings are * Cache = on * File system is the system chosen * Full page 4 is On * CMS is selected in the list. What happens is, if we visit the page, the update we did in the tinymce in the back office is not reflected. I've tried with trying to access the page with a random query string and obviously, it works, it generated a cache for that specific query string. If we go back to the normal, every day cached page, obviously it's still the old content. So I tried clearing the cache in the settings page, it somehow didn't change a thing. I'm currently very confused as to how it's actually working. Can someone enlighten me on how it's supposed to work? Small update: Had the host install APC and now it works great. I checked and the permissions were not the issue. So if anyone has an idea on why this happened when using the file system, it might actually help someone else.
  2. When I try to link to my google account, it brings me to the modules page with the following 2 errors : Module cannot be upgraded: Error while extracting the latest version. Module not found Yet everything seems to be in order in the module's folder... What would you guys recommend?
  3. I have this module that I made. It works fine, I can create entries and all. But i can't seem to figure out the proper way to use the tools that AdminController is giving me. I tried adding this in my ObjectModel 'picture' => array('type' => self::TYPE_STRING, 'validate' => 'isString', 'required' => false), And the field in my inputs list: if ($id_recipe = (int)Tools::getValue('id_recipe')) { $item = $this->loadObject(); $file = '../modules/' . $this->name.'/views/img/'. $item->picture.$this->typeImage; } else { $file = ""; } $inputs[] = array( 'type' => 'file', 'label' => $this->l('Image en-tête'), 'name' => 'picture', 'thumb' => ($file!=""&&file_exists($file)) ? $file : '', 'delete_url' => self::$currentIndex.'&'.$this->identifier.'='.$this->tpl_view_vars['object']->id.'&token='.$this->token.'&deleteImage=1', ); Then I tried adding this in my construct: $this->fieldImageSettings = array( 'name' => 'picture', 'dir' => $this->module ); $this->typeImage = 'jpg'; At this very moment, the field does appear in the edit panel of the object... I've tried looking for tutorials, guides, scoured forums.... I'm lost. Why is it so hard? PS : Small random question, how do i know which mode i'm in when in renderForm() ?
  4. @wakabayashi Not sure why that was set to false. TY VM!
  5. @dprophitjr Yes but in this case, there's just 1 currency on the site. this should just be a currency option honestly.
  6. @dprophitjr Would it possible to still populate the microdata but just display the actual symbol if desired through some kind of setting?
  7. @dynambee it's a local store.... it's really not meant to be internationnal
  8. @dprophitjr I have not. Honestly i'm still learning and want to remove the CA part of CA$
  9. I have this code in a displayForm() for a new module. ``` $defaultlang = (int)Configuration::get('PSLANGDEFAULT'); $fieldsoptions = array( 'Paramêtres' => array( 'title' => $this->l('Paramétrage'), 'fields' => array( 'ACOLYTEVDFCKOI' => array( 'title' => $this->l('BLOC: Viandes de la ferme c\'est quoi?'), 'type' => 'textareaLang', 'identifier' => 'idckoi', 'cols' => 60, 'rows' => 5, ), ), 'submit' => array( 'title' => $this->l('Save'), 'class' => 'button' ), ), ); $this->helper = new HelperOptions($this); // Module, token and currentIndex $this->helper->id = $this->id; $this->helper->module = $this; $this->helper->name_controller = $this->name; $this->helper->token = Tools::getAdminTokenLite('AdminModules'); $this->helper->currentIndex = AdminController::$currentIndex.'&configure='.$this->name; // Language $this->helper->default_form_language = $default_lang; $this->helper->allow_employee_form_lang = $default_lang; // Title and toolbar $this->helper->title = $this->displayName; $this->helper->show_toolbar = true; $this->helper->toolbar_scroll = true; $this->helper->submit_action = 'submit'.$this->name; $this->helper->toolbar_btn = array( 'save' => array( 'desc' => $this->l('Save'), 'href' => AdminController::$currentIndex.'&configure='.$this->name.'&save'.$this->name. '&token='.Tools::getAdminTokenLite('AdminModules'), ), 'back' => array( 'href' => AdminController::$currentIndex.'&token='.Tools::getAdminTokenLite('AdminModules'), 'desc' => $this->l('Back to list') ) ); // Load current value $this->helper->fields_value['ACOLYTE_VDFCKOI'] = Configuration::get('ACOLYTE_VDFCKOI'); $this->helper->tpl_vars = array( 'languages' => $this->context->controller->getLanguages(), 'id_language' => $this->context->language->id, ); return $this->helper->generateOptions($fields_options); ``` But somehow the form in the configure page in the back office looks very odd: http://c2.acolyte.ws/Screenshot-at-09-09-53.png What am I doing wrong?
  10. Hello there. Our entire shop will be Canadian and we'd like to remove the text 'CA' from the 'CA$' in the price display. I believe I need to set the $this->setCurrencyDisplay() to CURRENCYDISPLAYCODE from the __construct in NumberFormatter.php Although I'm not quite sure we even can override vendor classes and I don't want to break the package update capability... is there a more proper way to do this that I'm not aware?
×
×
  • Create New...