Search the Community
Showing results for tags 'default category'.
-
Hi, My shop is built under Prestashop 1.5.6.2 Many of my products belong to several categories. Currently, on each related product page, the breadcrumb displayed is related to the product default category. Let's take an example: product p1 belongs to its default category C1 And product p1 also belongs to category C2 Currently, when surfing, when one reaches the product, whatever the path was, the displayed breadcrumb on the product page is : Home > C1 I would like that the breadcrumb displayed is related to the way that the visitor followed to reach the product. That is to say, that when a visitor first visits the C2 page, before reaching the product p1, I would like to have the here below breadcrumb on the product page : Home > C2 Having this display, if the product is not suited for the visitor, he could easily goes up to the C2 category page where alternative to p1 items are offered. I guess that I should have to amend two pages : - /controllers/front/ProductController.php - and themes/montheme/breadcrumb.tpl But, I do not know what amendments have to be made. I thank you anyone in advance for any advice. Patrick
- 4 replies
-
- breadcrumb
- product page
-
(and 1 more)
Tagged with:
-
Hi, I have a problem with products default category in Back Office. I have imported the products, after this I decided to display them in another categories, so I changed the categories and updated them using csv import. After this update the products are displayed, in the new categories from the Front Office, but not Back Office, the category field is just -- Also I don't see the changed category in the breadcrumbs and the product link ( Front Office ) Example: Bad product http://presta.redlinemultimedia.ro/ac-xc-780-i5-7400-8gb-1tb-uma-dos-dtb8eex003.html vs Orginal http://presta.redlinemultimedia.ro/cd-r-blank-printabil-inkjet-lucios-glossy-/cd-r-full-printabil-glossy-lucios-rotech-professional-52x-700mb-rotechprglossy52x700.html If I navigate to BO, edit a product and go to associations tab, the category tree and associations are displayed correctly and if I save the problem dissapears, the product is properly associated with that category. The issue is that I have over 8000 products like this, in over 20,000 other good products. What I have tried: activate / deactivate friendly URL re-import the products with/without category ID reindex all the products Please give a suggestion.
-
- product page
- frontend
-
(and 4 more)
Tagged with:
-
My shop has a 3 level category structure Top Level - All Products (Cat ID 2) Second Level - Wodgets (Cat ID 3), Widgets (Cat ID 4) Third Level - Left Handed Wodgets (Cat ID 5), Right Handed Wodgets (Cat ID6), Left Handed Widgets (Cat ID 7) and Right Handed Widgets (Cat ID 8). Now I want my Right Handed Widgets to appear in the category list page for all three levels i.e. whether I click on the menu link for All Products, Widgets or Right Handed Widgets. So in the CSV file which uploads the data to my database I show the category numbers as (2, 4, 8). So far so good. BUT.... I have noticed that in some circumstances the breadcrumb for my individual Right Handed Widget doesn't show the complete bread crumb trail down through the hierarchy. I discovered that in the "Info" tab for each product in the BO you are supposed to chose the default category. But according to Rocky (in this thread http://www.prestashop.com/forums/topic/76789-solvedlink-problem-breadcrumb-and-dc/ ) it isn't possible to set the default category via the CSV file. So how can it be done? I don't want to click on every single product in the BO to change it. The only other alternative I can think of is to go into the "products table" in the database via phpMyAdmin and manually change the value of the default category there. Not something I enjoy doing either. Is there supposed to be a better way? Is this a flaw in PrestaShop CSV import functionality?
-
Hi all, I'm trying to display the default category name on product page in 1.6 version. But it seems I can only retrieve the current category name <a href="{$link->getCategoryLink($product->id_category_default,-$category->name)}">{$category->name}</a> category_default-> name doesn't work.. if someone can help... My week-end would be better.. thanks
-
I'm currently on 1.6.0.11 with latest githup https://github.com/P...tController.php as of Feb10,2015 My product category looks like this 11|12||23|24|25|54 I'm expecting (12) to be the default category since it's the last subcategory in the 1st group separeted by (||). This is how 1.5 used to work. Thinking that now 1.6 sets the very 1st category as default, I tried placing the subcategory that I want to be default (12) first E.g: 12||11|12||23|24|25|54 but nope it doesn't work it still records (11). Please advice.
- 2 replies
-
- 1.6.0.11
- default category
-
(and 2 more)
Tagged with:
-
Hi, When i change the default category of a product to a main new category, the product page goes to a 404 page. Example: http://divinechurchsuits.com/designer-church-suits/terramina-church-suit-7391.html changes to http://divinechurchsuits.com/designer-church-suits/terramina/terramina-church-suit-7391.html?product_rewrite=terramina-church-suit-7391 but open 404 Page. I'm not sure but i think it has something to do with .htaccess Does anyone how to fix that?
- 3 replies
-
- url rewrite
- default category
-
(and 1 more)
Tagged with:
-
I updated the id_category_default field in the ps_product table to the default category ID that I need. But I notice that this doesn't affect the value in Back Office when you go to update the item, go to Associations, the Default Category still shows the old Category. Then I hit save in BackOffice with the same value (old default category selected in the drop down), refresh the db table ps_product and I see the value for id_category_default goes back to the old one. So this does have an effect when updating in BackOffice, it just doesn't work when updating from the Database. What else should I be updating to change the Default Category for an Item in the database?
- 3 replies
-
- SQL
- default category
- (and 3 more)
-
I'm using a script to insert in database categories, products and these things. The problem I'm facing is that products are not shown inside their category. Let me explain: In ps_product I put the parent category id in id_category_default field. However, when the product appears on my frontpage, the url is /root/7-xxxxx instead of /mycategory/7-xxxxx If I open the product in the backend and save it (without changing anything), then the product's url is the correct one. I haven't found what registry prestashop updates in that process to know where to locate that product. In ps_product_category I insert all the ids from the lowest category to the top level one for that product. Any idea?
-
Hey, we re facing an iusse concerning the mass edit of default categories of products. We want to change the default categories of many products at once. We already tried one tool that apparently does not fit our needs. We re using prestashop 1.6 and are willing to pay for a module that fits our needs. Or are their other ways like using sql and some joins to change the default category of our products easily? Has anyone done this with sql before? Best regards, crowder
- 1 reply
-
- default
- default categories
-
(and 1 more)
Tagged with:
-
Hi, I have o module that displays the products from a category an I want display only the products that that have a specific default category. How can I do that? Here is my code: $categ1 = new Category((int)(Configuration::get('CATEG1'))); $myprods1 = $categ1->getProducts($this->context->language->id, 1, 10, 'id_product', 'DESC'); /* 10 products max. */ $catname1 = $categ1->getName($this->context->language->id); I've tried few hours to solve this problem, but is out of my capacities. Thank you!
-
Hello, I'm using prestashop for quite some time now and I'm really happy with it. Recently I came accross a limitation that frustrates me a bit. I'm having many categories that I made by myself. In these categories I have created like 80 products that are different with each other but will be exactly the same under each of those categories. That was the fastest solution since otherwise I would have to create each of those 80 products seperately for every category and it would take ages (the categories are about 100). Now the thing is that on each order of those products, I need to know which category they were bought from. I achieved that by adding the name of the actual category in the product name by editing the orderdetails.php. That part works fine. However now we come to the interesting part. I have modified the search.php so now I can also search for products using category names and that works fine too. The problem is that the results show the default category instead of the category the name of which i searched for. As you understand the problem is that if the customer orders the product, I wont know from which category he got it from and thats really important to me. I'm using prestashop 1.5.5 Any solution, suggestions or workarounds? Everything is welcome. Thanks in advance
- 5 replies
-
- default category
- change
-
(and 3 more)
Tagged with:
-
Hi, I'd like to use a different AdminController to manage Products. I copied AdminProductsController.php to AdminMyProductsController.php and substituted all occurrences of AdminProduct with "AdminMyProducts" but I still get some errors from PS 1.5.2. In particular, I cannot set Quantities for Products because some Ajax stuff probably goes wrong and it hangs saying "Saving data...". Nothing is saved, anyway. What do I need to check to correct this behavior? Could someone also please help me to automatically assign a Product to a Category if the Product is created through AdminMyProducts? Thanks in advance. Have a nice day! DAve
-
- product
- additional fields
-
(and 2 more)
Tagged with:
-
Hey, I'm trying to add the default product category NAME to each product in the product-list (not the current category, but the product main category). I'd really appreciate any help from you guys, thx