A prestashop website at version 1.4.1.4 was working with manufacturer.php file for manufacturer pages. The update to 1.6.0.6 unfortunatley deleted that file because it has been considered as deprecated (URL structure changed after CMS update).
One consequence is the change in the URL structure.
from:
url/manufacturer.php?id_category=6
to :
url/index.php?id_manufacturer=6&controller=manufacturer&id_lang=2
So now, the first URL structure is giving 404.
The problem:
In the old website, when the id_manufacturer is set to 0, the url returns a page containing a list of all manufacturers. When it is set to the id of a specific manufacturer, the url returns products of that specific manufacturer. With the new version, the results are the same EXCEPT for the id=0 (404 page). In other words, I cannot find what is id_manufacturer to return the list of manufacturers.
If I am not wrong, Prestashop gives id=0 by default to the page of manufacturers list? What is going wrong in your point of you?
It looks like I need to override ManufacturerController like in 'Home' category page not working after update. But please, do these overrides are only workarounds that might be broken in the next updates when core Prestashop team correct these mistakes (if they are mistakes).
Any insights are highly appreciated.
EDIT:
I am sorry, yesterday I maybe didn't clarify the point very well.
In fact the url is working for id=0 (it displays all parts of the page). But for where the list of manufactrurers should appear, I have "Il n'y aucun fabricant." even I have 80 manufacuturers in my database. Thanks again
There is no need of any override, I just tested it and with no id specified, or id=0, it gives the manufacturer list page on 1.6.0.6.
See this bit from that controller
if (Validate::isLoadedObject($this->manufacturer) && $this->manufacturer->active && $this->manufacturer->isAssociatedToShop())
{
$this->productSort();
$this->assignOne();
$this->setTemplate(_PS_THEME_DIR_.'manufacturer.tpl');
}
else
{
$this->assignAll();
$this->setTemplate(_PS_THEME_DIR_.'manufacturer-list.tpl');
}
So either of these
index.php?controller=manufacturer&id_lang=1&id_manufacturer=0
index.php?controller=manufacturer&id_lang=1
Should be working fine!
Related
this is category admin section where I have set products position.
But not showing correct order on category page.
Mageplaza_LayeredNavigation was causing issues for my website too, so I have changed the text relevance to position in the below file path.
/var/www/html/thinopticsnewdesign/app/code/Mageplaza/LayeredNavigation/Model/Resource/Model/Fulltext/Collection.php
and everything seems fine now, position sorting gets started working.
There can be different problems in relation to this. Probably some module overwrites the category page, so the ordering is not as expected.
If you installed some custom modules for the category page, I suggest to disable it, clean the cache and see if the sorting is okay after.
If you are unsure, you can also see the documentation page and if there are some extra options on this page (maybe some other module added that option).
Other than that, there are many other things that could cause this problem. For example, your theme overrides the sorting.
In my case, extension "Mageplaza_LayeredNavigation" was making this issue.
I disabled it and products start rendering with the assigned positions.
Thanks,
I managed to get sub-categories showing on the category page with images, but now since updating 1.9.2.1 up to 1.9.2.4 it no longer works. I cant imagine what may have changed and haven't altered anything.
I followed this tutorial:
http://www.templatemonster.com/help/magento-listing-sub-categories-on-a-category-page.html#gref
Picture of it working in 1.9.2.1:
Picture of it not working in 1.9.2.4:
It's because you are loading a special block type in a cms block. You need to allow the block type catalog/navigation for it to display. It's a very easy fix though;
You can do this in admin, from;
system > permissions > blocks
Or directly in the database in table permission_block.
I'm trying to design a new site with Joomla 2.5.6 (french translation installed), Phoca download 3.2.1 and Gallery Tree 3.1.2
I've created so far one empty category for all 2012 categories, but each time I'm clicking on the 2012 item in the module, I'm getting the following error message :
Not Found
The requested URL /component/phocadownload/category/3-2012 was not found on this server.
The goal is to have only subcategories in this category (and one for each year). but I've tried to add images to that category without any success.
I've not planned to create a menu and manually create a link to these emply categories. If the category contains a sub-category, this subcategory is working like a charm (correctly displayed, etc...)
The link given by the module is /component/phocadownload/category/3-2012 instead of /index.php/component/phocadownload/category/3-2012. The index.html is missing.
Have-I done something wrong in my setup ?
First of all: 2.5.19 or 3.2.3: you simply cannot use an old version or your site will be hacked - quickly!
Try adding a letter at the beginning of the alias text: I am guessing phoca is getting confused by the number-only alias, so use something like y2012 as an alias, your url will look like /3-y2012 which should be acceptable.
We currently have Magento 1.7.0.2 installed since April and everything has been fine without issue, however an issue has arrived.
Certain users, when clicking "My Account" on the frontend will get shown a 404 error page.
Not every user sees it, and if they click "View Order" on an individual order from the recent orders section of My Account, that order will display fine.
After some digging, I've narrowed it down to the "sales_flat_order_item" table. If I go through each order and delete a certain item related to that order, or simply change the product_id - the page will then show fine. The product exists in Magento so it can't be that.
I've tried re-indexing, deleting cache - everything I can think of.
Does anyone have any suggestions as what would cause the 404? Going through 3000+ records, finding which item is causing the issue and deleting it is NOT an option for obvious reasons.
In case anyone else has this issue here's the solution.
The site had been working fine for months so don't know this stopped working BUT copied /sales/order/history.phtml out of the base theme and put it into our own (it didn't exist to start with) and edited line 63
from
if ($this->helper('sales/reorder')->canReorder($_order)) :
to
if(Mage::getStoreConfig('sales/reorder/allow')):
Which fixed my issues.
Not sure why that bit of code would break, nor why it would show a 404 page since the output would have already started and shouldn't redirect?
Using 1.4.1.1
I’ve recently changed some php code in header.phtml to align my navigation titles so the wording appears on top of each other.
After I did this I also changed the organization of the categories within the back end under Catalog > Category Management. none of the Cross-Sells, Up-Sells, Related products or New Products on the Home Page are showing up along with the sarch.
I’m not sure if changing the header.phtml is related to these options not working. I don’t see how changing the header.phtml could render those options useless.
The only other things i’ve done since i’ve changed that code was create a sitemap, and a new robot.txt file which should have no effect on the website and change the order of the navigation items up top....meaning, instead of “Navigation Category 4” being in the fourth spot, I put it in the 1 slot then moved it back to the four slot within the back end under Catalog > Manage Categories for a split second… I dragged and dropped them into a new location, but then moved them back to how those two categories were organized before. I also changed the name of an existing category.
yes… i’m sure that all products are instock, with quantity available. All these things (cross-sells, up-sells, new products, etc) were working yesterday so I know they are set up correctly. It seems like something I did changed the file that controls all of those options. I’ve also re-indexed and re-cached everything.
Does anyone have any advice on where to look or what may have changed? All the XML is still set up correctly under CMS > Pages > Home Page. It still shows XML there to call out the new products on the home page but there not displaying. I have a feeling once I fix the home page issue with not displaying new products, that the others will be fixed to.
Please remember that these options were working yesterday. Any advice is greatly appreciated.
Thank you.
P
P.S. I’ve also realized now that searching is not working on the website. I’ve re-indexed everything and it’s not working. The only thing not re-indexing is “Category Products” but that has always said “processing” and won’t re-index. So I dont know why that would now mess anything up. This is seriously killing me. Corrupt DB? I've tried to repair the db but cannot upload large .sql dumps via MYphpAdmin, and don't have shell access.
I will seriously send money to someone who can cure these issues. I'm a man of my word.
Thank you everyone.
Erase everything in /var/locks/ and re-index.