Skip to content

Website configuration (registration using barcode)

Enabling mandatory signup

Settings / Website

For the website “FreshFood24” in the section “Shop - Checkout Process” set “Sign in/up at checkout” option to “Mandatory (no guest checkout)”. This will make it impossible to buy anything on the website without registration.

Warehouse linkage

Install module “signup_warehouse_barcode’.

In the “Privacy” section, set “Customer Account” field to “Depends on VU”. This will setup warehouse connection.

Registering with barcode

On the shop navigate to the login page (https://ff24-test.maxcrc.de/web/login), and press the link “Noch Kein Benutzerkonto”. You should see the screen asking to scan the barcode.

At this point in reality you need to:

  • on the phone, open the picture of QR-code from the POS reel images
  • on the website, press camera image - you’ll activate camera, show it qr-code
  • enter registration data on the website.

But this is too long and tedious, to shorten this nonsense, you can form a URL of the following format:

Terminal window
https://ff24-test.maxcrc.de/web/signup?warehouse=CEN01

Where CEN01 is a warehouse (vending unit) indentifier. You can check it out here: “Inventory / Configuration / Warehouses / <Select a specific warehouse> / Short Name.

For example, for the warehouse “Centrotherm Systemtechnik,Brilon-Speisen” this will be CEN01.

after that you’ll see a registration page where you need to enter your password and press “Register” button.

Configuring PayPal to be available at the specific website

Even if your PayPal is activated, published and working in a test mode in here: Invoicing / Configuration / Payment Providers / PayPal, this doesn’t mean that you’ll see it at the website ff24-test.

So, you need to open it and select the “Company” field to “FreshFood24 GmbH”.

Multicompany journal issue

If you have multicompany, previous setup won’t be enough for this crap to work because the journal in the PayPal provider config belongs to another company (Kamberi).

Create a new “Bank 2” journal

To fix this, you need to create another duplicate journal (Bank 2). But YOU CAN’T JUST DUPLICATE IT! because it will set the same fucking company there, so you need to create it manually:

  • Journal name: Bank 2
  • Type: Bank
  • Bank account: 1201 Bank
  • Suspence account: 1202 Bank Suspense Account
  • Profit account: 9991 Cash Difference Gain
  • Loss account: 9991 Cash Difference Loss
  • Incoming payments tab: Add PayPal payment method
  • Check that the company is “FreshFood24 Gmbh”

Other settings (Outstanding recept accounts) on Incoming and Outgoing payment tabs - omitted for now, but in the future, there should be an account in the hidden field that is expanded on right button click. - check journal 13606 Bankubenweisung setup on Game House project.

Select new journal

Setting the new journal is fkd up too, here’s how to do it:

Invoicing / Configuration / Payment Providers / PayPal / Configuration tab / Payment journal
  • First, you need to disable PayPal provider (Set State: “Disabled”)
  • Then you need to remove PayPal payment method from the “Bank” journal, and then add it to the “Bank 2” journal.
  • Enable PayPal provider (Set State: “Test mode”)
  • Check that PayPal provider is published (top center button should say “Published”)

Finally, after that you should be able to see PayPal payment option when making an order on webshop.

Making a purchase on the website

Now after, you’ve successfully registered on the website, on the shop, select any product and buy it with PayPal test creds.

Checking that the warehouse is now specified in the order

After successful purchase on the website, go into the backend (Website / eCommerce / Orders), remove all filters in the view, find the order you’ve made and open it.

On the “Other info” tab, the “Warehouse” field should be set to our warehouse “Centrotherm Systemtechnik,Brilon-Speisen”.

Publishing products on the website

Login in odoo https://ff24-demo.maxcrc.de/ (don’t confuse with https://vendix-demo.maxcrc.de, it won’t work - no access since it’s another domain) open the product that you’d like to publish on the website.

On the product page press “Go to website” button at the top, then on the embedded website page switch “Unpublished” to “Published” - the product will appear on the website.

Do the same for all products that are being sold on VU

Adding DEBUG (Simulate scan) button

To simulate scan and not have to deal with QR codes scanning you can add a little debug button. Open file:

/var/lib/odoo/vendix-demo.maxcrc.de/app/src/addons/webshop/signup_warehouse_barcode/static/src/public_kiosk/public_kiosk_app_view.xml

and add a temporary debug button just under CardLayout:

<CardLayout>
<button name="simulate_scan" t-on-click="(ev) => this.onBarcodeScanned(ev)">Simulate Scan</button>
<t t-call="signup_warehouse_barcode.companyHeader">

After that, when you press this button, the simulation should start moving and warming up products if required.

Adding delivery button on the home page of a personal cabinet

Install a module:

website_sale_delivery

This module will add a big green box on the home page of your personal cabinet in webshop, where you can start takeout process and specify: “Cold”, “Warm”, or “Hot” form.