Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Artificial Intelligence
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Property Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

How to setup pricelists on B2B ecommerce webshop

Subscribe

Get notified when there's activity on this post

This question has been flagged
ecommercepricelistB2Bv15
4 Replies
7409 Views
Avatar
Dries Cox, Dries Cox

Hello Community,

I am trying to set up a webshop where it is possible for b2b customers to order stuff. 

So when nobody is logged in, the prices should be B2C. This part works :-).

But when a user logs in the prices should change to the prices on the pricelist for this user. 

So if a B2B-user logs he should see b2b-prices. 

I thought this would be an easy thing to do, but for some reason it is not working like I thought. 

I have the pricelists set up, so I have a B2B and B2C pricelist, but the website does not responds the way I expected. It is showing B2B prices to every user also to B2C-users.  I have been playing around with this for a while, but I can't get it to work.

Thank you for the help setting this up. 

0
Avatar
Discard
Avatar
Ricardo Gross
Best Answer

Check the Website configuration from your pricelists

Check also the pricelist from the "Sales & Purchase" Tab of your contacts.

Check the pricelist from the archived contact "public user" (This is the pricelist shown for everyone not logged in)

If you work with taxes included for B2C and excluded for B2B you can also set the Fiscal Position in the Sales & Purchase Tab of each contact, more informations you will find in: https://www.odoo.com/documentation/15.0/nl/applications/finance/accounting/taxation/taxes/B2B_B2C.html?highlight=b2b

A nice forum post about pricelist: https://www.odoo.com/forum/help-1/the-almost-complete-guide-to-pricelist-behavior-185877

And watch this very nice video about B2B website: https://www.youtube.com/watch?v=m4PyXEw95Tw

I hope it helps

BR

Ricardo

0
Avatar
Discard
Dries Cox, Dries Cox
Author

Hi Ricardo, Thank you for your answer, but this is not what I'm looking for. In my case the B2B customers have a totally different (lower) price than the B2C. So it is not a question of showing prices incl or excl vat.
So I have a pricelist with all the b2b prices listed and I want the webshop to show these b2b prices to all b2b customers when they are logged in.
Now for some reason odoo shows the prices to everyone.
Do you have any clues on how to do that?
Thanks!

Avatar
FC Art, FC Art
Best Answer

Hi Dries,

I stumbled on your question by chance. We are currently set up with B2C pricing in public and B2B pricing when users are logged in. 

We set up a separate price list for retail pricings.

We used this guide to help us navigate pricing behavior:  The almost complete guide to pricelist behavior | Odoo

0
Avatar
Discard
Avatar
Premier Property Management Co., Ltd.
Best Answer

Can I follow up on this please?  Did you ever resolve this and how?  I also want to show B2C prices and B2B prices for different users.  Ideally, show B2C prices for non logged in, and B2B prices (usually lower as you mentioned) for select customers.  

0
Avatar
Discard
Avatar
Dries Cox, Dries Cox
Author Best Answer

For now I solved this by making two websites with shops. But I still hope someone comes up with an answer on how to do it properly. I still can't believe that it isn't posible to show the logged in users their own price on their pricelist on the webshop. This should be very easy in my opinion.

This is how I did it for now.
The products are showing on both the shops. The b2c shop uses the b2c pricelist and the b2b-shop the b2b pricelist.
I made a module that allows only logged in users on the B2B shop. So if a user switches to the b2b-site they automatically get redirected to the login page for every page of the webshop they try to access.

redirecting non-logged in users to the loginpage can be don by inheriting the controller of the webshop eg:

@http.route()
def shop(self, page=0, category=None, search='', min_price=0.0, max_price=0.0, ppg=False, **post):
"""
check if website requires login for users to see the shop.
If so, check if user is logged in.
If not, rederect to login page.
"""
if request.env['website'].get_current_website().need_login:
if request.env.user.id == request.env.ref('base.public_user').id:
return request.render('web.login', {})

return super(WebsiteSaleNeedLogin,self).shop(page, category, search, min_price, max_price, ppg, **post)

Where need_login is a setting I added on the website-settings page. There you can set this website specific.

If you have multiple databases running on one server you do need to adjust your dbfilter for this. You can find a way to do this in this message: https://www.odoo.com/nl_NL/forum/help-1/how-to-configure-dbfilter-for-multi-website-environnement-204368

0
Avatar
Discard
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Sign up
Related Posts Replies Views Activity
B2B Product Access Restricted by Company
ecommerce B2B
Avatar
Avatar
Avatar
Avatar
4
Dec 24
3477
Odoo 15 CE - Selling in Different Quantities (Individual, Case, Etc..)
packaging ecommerce website B2B v15
Avatar
Avatar
Avatar
3
Oct 23
3619
Shop isn't showing products the right way
ecommerce v15
Avatar
0
Jan 23
2917
Separate E-commerce website to employee's website
ecommerce v15
Avatar
0
Sep 22
512
Export product.pricelist.item ? Solved
pricelist v15
Avatar
Avatar
1
Jun 22
4713
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk Slovenščina Español (América Latina) Español Svenska ภาษาไทย Türkçe українська Tiếng Việt

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now