Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Hiding products in shop

By
John Doe
on 6/29/16, 5:15 AM 217 views

Hello,
I would like to ask if there is any good solution to filter/hide some of the products seen in shop. Right now I use something like this: I added some boolean fields to the product.template model, next I edited the code when Im in the shop via html editor (for example when there is foreach loop I added one condition: if product.delivery4(created boolean field) then show the product. My problem is that it doesnt show all products when I refresh the shop after editing code. I can find them via search, but I cant find them looking through /shop. Any ideas?
Thanks in advance.

0

Axel Mendoza

--Axel Mendoza--
10238
| 7 7 8
Camaguey, Cuba
--Axel Mendoza--

DevOps - Full stack - Software Architect - Developer - Technology Integrator

I could help you to develop anything and solve complex problems based on technologies, integrations and tricky stuffs mostly in Python with OpenERP/Odoo, Zato, Django and many others frameworks programming languages and technologies.

I offers consulting services to anyone with an unanswered questions or needs for customizations. Think about it, maybe it's better to have an expert to solve your issues and projects than having a full time employee trying to understand what to do an how

Reach me at aekroft@gmail.com

Axel Mendoza
On 6/29/16, 5:58 PM

The products in the /shop are only displayed when they has been published to the website. Find those products that you want to hide and in the tab Sales of the product form put it to non published

But is there a way to hide some items on a condition? My main goal was to hide products for users that have zip code which is unsupported.

John Doe
on 6/30/16, 4:27 AM

Yes but you need to tweak the product template of the website_sale by inheritance or just create a new template for displaying the products in another page or where you like.

Axel Mendoza
on 7/4/16, 12:20 PM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

Asked: 6/29/16, 5:15 AM
Seen: 217 times
Last updated: 7/4/16, 12:21 PM