Jump to content

Joos

Members
  • Posts

    12
  • Joined

  • Last visited

Profile Information

  • Activity
    User/Merchant

Joos's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. En dan gewoon de link doorgeven? Maar waar download het systeem het dan?
  2. Ja dat klopt dit doe ik ook, maar ik moet een csv bestand downloaden om bepaalde tijdstippen. En dit wil ik dus via cron doen.
  3. Hoi, Ik probeer dit al meerdere malen, maar ik kan het niet echt vinden en het wilt niet echt lukken. Ik moet dus een cron job maken waarbij een externe file waar ik een directe URL van heb word gedownload naar de map modules van de webshop. Zodra je naar de URL gaat krijg je de optie om de file te downloaden. Ik weet niet hoe ik verder moet. Iemand een idee?
  4. Hoi daar, Ik heb een en ander geprobeerd, maar het lukt me niet. Ik wil graag van inactieve categorieën alsnog de producten weergeven onder het hoofd menu. Iemand die kan helpen?
  5. Then I have no idea what's going wrong. Because it's showing up on one categorie but not in the rest. And only 3 products form the 900. Im lost...
  6. public function init() { // Get category ID $id_category = (int)Tools::getValue('id_category'); if (!$id_category || !Validate::isUnsignedId($id_category)) $this->errors[] = Tools::displayError('Missing category ID'); // Instantiate category $this->category->active = 1; $this->category = new Category($id_category, $this->context->language->id); parent::init(); //check if the category is active and return 404 error if is disable. if (!$this->category->active) Am not using any overides as far as i know of. It's still not working. Showing 3 products while the inactive category has about 935. You can check it out on http://goo.gl/PYqMdA if needed
  7. I've also tried this, but didnt work either public function init() { // Get category ID $id_category = (int)Tools::getValue('id_category'); if (!$id_category || !Validate::isUnsignedId($id_category)) $this->errors[] = Tools::displayError('Missing category ID'); // Instantiate category $this->category = new Category($id_category, $this->context->language->id); parent::init(); //check if the category is active and return 404 error if is disable. if (!$this->category->active) $this->category->active = 1; { header('HTTP/1.1 404 Not Found'); header('Status: 404 Not Found');
  8. I've added it , but it doesnt work. Cleared cache of prestashop and my browser. See the code, did i add it wrong? public function init() { // Get category ID $id_category = (int)Tools::getValue('id_category'); if (!$id_category || !Validate::isUnsignedId($id_category)) $this->errors[] = Tools::displayError('Missing category ID'); // Instantiate category $this->category = new Category($id_category, $this->context->language->id);$this->category->active = 1; parent::init();
  9. Where exactly am i supposed to put what? I found the public function init() in the categorycontroller.php public function init() { // Get category ID $id_category = (int)Tools::getValue('id_category'); if (!$id_category || !Validate::isUnsignedId($id_category)) $this->errors[] = Tools::displayError('Missing category ID'); // Instantiate category $this->category = new Category($id_category, $this->context->language->id); parent::init(); //check if the category is active and return 404 error if is disable. if (!$this->category->active) { header('HTTP/1.1 404 Not Found'); header('Status: 404 Not Found'); } //check if category can be accessible by current customer and return 403 if not if (!$this->category->checkAccess($this->context->customer->id)) { header('HTTP/1.1 403 Forbidden'); header('Status: 403 Forbidden'); $this->errors[] = Tools::displayError('You do not have access to this category.'); $this->customer_access = false; } } and i found the product list $this->productSort(); // Product sort must be called before assignProductList() $this->assignScenes(); $this->assignSubcategories(); $this->assignProductList(); $this->context->smarty->assign(array( 'category' => $this->category, 'description_short' => Tools::truncateString($this->category->description, 350), 'products' => (isset($this->cat_products) && $this->cat_products) ? $this->cat_products : null, 'id_category' => (int)$this->category->id, 'id_category_parent' => (int)$this->category->id_parent, 'return_category_name' => Tools::safeOutput($this->category->name), 'path' => Tools::getPath($this->category->id), 'add_prod_display' => Configuration::get('PS_ATTRIBUTE_CATEGORY_DISPLAY'), 'categorySize' => Image::getSize(ImageType::getFormatedName('category')), 'mediumSize' => Image::getSize(ImageType::getFormatedName('medium')), 'thumbSceneSize' => Image::getSize(ImageType::getFormatedName('m_scene')), 'homeSize' => Image::getSize(ImageType::getFormatedName('home')), 'allow_oosp' => (int)Configuration::get('PS_ORDER_OUT_OF_STOCK'), 'comparator_max_item' => (int)Configuration::get('PS_COMPARATOR_MAX_ITEM'), 'suppliers' => Supplier::getSuppliers(), 'body_classes' => array($this->php_self.'-'.$this->category->id, $this->php_self.'-'.$this->category->link_rewrite) )); }
  10. Hoi! Mijn eerste probleem dat ik niet zelf kan oplossen. Nou, ik heb alles opgelost met opzoeken in google, maar dit kan ik niet vinden. Gister bezig met m'n website en ik wou net de 'watermerk' module gaan configureren totdat de volgende pagina internel server error doorgaf! Ik kom er niet meer op. Bij cpanel errorlog zie ik het volgende htaccess: AuthUserFile takes one argument, text file containing user IDs and password Ik snap het niet echt en het blijft dit zeggen. ------ Gefixed! Even htc acces backup voor de zekerheid...naam gewijzigd naar 1 en toen weer naar website gegaan en het doet het...heel apart
×
×
  • Create New...