-
Posts
12 -
Joined
-
Last visited
Profile Information
-
Activity
User/Merchant
Joos's Achievements
Newbie (1/14)
0
Reputation
-
Cron Job
Joos replied to Joos's topic in PrestaShop Download: installatie, bijwerken en configureren
En dan gewoon de link doorgeven? Maar waar download het systeem het dan? -
Cron Job
Joos replied to Joos's topic in PrestaShop Download: installatie, bijwerken en configureren
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. -
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?
-
How to Display products in disabled categories?
Joos replied to skinbasis's topic in Core developers
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...- 16 replies
-
- access disable category
- show products
- (and 2 more)
-
How to Display products in disabled categories?
Joos replied to skinbasis's topic in Core developers
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- 16 replies
-
- access disable category
- show products
- (and 2 more)
-
How to Display products in disabled categories?
Joos replied to skinbasis's topic in Core developers
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');- 16 replies
-
- access disable category
- show products
- (and 2 more)
-
How to Display products in disabled categories?
Joos replied to skinbasis's topic in Core developers
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();- 16 replies
-
- access disable category
- show products
- (and 2 more)
-
How to Display products in disabled categories?
Joos replied to skinbasis's topic in Core developers
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) )); }- 16 replies
-
- access disable category
- show products
- (and 2 more)
-
How to Display products in disabled categories?
Joos replied to skinbasis's topic in Core developers
Ok,, and how to i override it? exactly?- 16 replies
-
- access disable category
- show products
- (and 2 more)
-
How to Display products in disabled categories?
Joos replied to skinbasis's topic in Core developers
Hey, Im want to achieve the same, but i dont understand what i'm supposed to change- 16 replies
-
- access disable category
- show products
- (and 2 more)
-
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