Adding contact address in Odoo - odoo

I am working with Odoo External API version 12. For nor I am using res.partner to add customers.
But there are few points:
There are 2 kind of customers. B2B and B2C
When customer is B2B it has to take the company name as a main name, and customer name as a contact address.
In this case I have 2 questions:
Adding it as individual or company is better approach? Because when I am adding as a company and customer as a contact address it is creating totally new company. However I just need to create that company under my main company.
How I can create individual + contact address in the same request.
Thanks in advance

Its better to add as separate company and contact

Related

Send order confirmation mail to contact instead of account owner in Shopware B2B Suite

We have an ERP integration which has data sovereignty. All changes are made through the ERP.
The problem now is that orders go to the mail of the main account and not to that of the contact who placed the order.
The ERP only has a logic of customer accounts with contacts, but no email address for the main contact. So we had to create fake email addresses. Also, the ERP has no authorization logic. Meaning there is no admin or anything like that. So we can't just take the first user for example, because this could also be deactivated.
So I do know, that this how B2B Suite is designed, but it doesn't fit our needs.
What's the best way now to send the email to the account of the ordering contact, or at least a copy?
The B2B-Suite currently always assigns the order to the customer account. However, the information about which contact placed the order is stored in the b2b tables.
I would suggest that to follow this guide Add data to mails.
With the order-data, you could load the B2B-order-context and the Contact-Information and replace the recipients with the correct email.
Useful services would be:
Shopware\B2B\Order\FrameworkOrderContextRepository::fetchOneOrderContextByReferencedOrderId()
Shopware\B2B\StoreFrontAuthentication\Framework\StoreFrontAuthenticationRepository::fetchAuthenticationById()
Shopware\B2B\StoreFrontAuthentication\Framework\IdentityChainIdentityLoader::fetchIdentityByAuthentication()

Create multiple addresses for one crypto wallet

I have an online gambling platform and we want to add payments in cryptocurrencies on that platform. We know that there are platforms that can do that for us (coinspaid, nowpayments, etc.) But we want do to this on our side. Our idea is to save unique wallet addresses for every coin, for every user. In that way, we can know who sent money and we can add balance to that player. But the question is how can we create these unique wallet addresses for different users? I will be thankful if someone can send me some links or explain to me what we should search for to do this. :)
You create 1 wallet per cryto and use a different memo for each customer. That way the memo relates to the customer but all the customers pay to the same wallet address

Restrict customers being able to view a category/plp

What is the suggested approach to restrict a customer viewing a PLP, based on the user group assigned to the CategoryModel?
For example, let's say a category with code "c012345" is assigned to the user group "promoPreviewCustomers". I have two registered customers who are a part of the customergroup but only one customer is in the promoPreviewCustomers group.
Only the customer who is in a promoPreviewCustomers group, should be able to see the PLP of the category page c012345.
Our initial thought was to drive this through a personalisation rule within Commerce.
What are other people's thoughts on how this should be implemented within Spartacus, given that the product search API does not take into account the logged in customer?
Any restriction done only in Spartacus will be only for the UX as true restriction can only be done in the backend. Therefore, the best approach would be to drive this behavior with personalization within Commerce

How to add own modules in Shopify?

I Want to create my own customized modules in Shopify when customers is logged in.
Example: I would to show near by doctors through the map.
Is it possible to do in Shopify.
Yes it is. You would install a custom App that would contain a list of doctors and locations. You would create a Proxy in the App so you could make a secure callback to the endpoint. As data, you'd send the customer ID. Using the customer ID, the App would get the customer's location. The data you return would be the matching doctors.
Very common to do this with Shopify.

converting customer input from Anonymous Customer to Contact in NetSuite

Our contact page includes a NetSuite Case form which allows us to direct workflows to the proper department within our company (i.e. warranty, sales, etc.). However, NetSuite does not create contacts with this information, opting instead to keep them all in "Anonymous Customer". However this makes things difficult if we need to bring the person into the system as a new customer or potential lead.
Is there any way to convert info submitted by a user online via a case form into a contact?
NetSuite creates a new anonymous customer if the company submitted in the case form doesn't exist or if the company is not submitted. If you have the Company Name field added to your form and the form is submitted with an existing Company name, a new contact is created for that company. You can also pass the company name by parameter in the url using &companyname=mycompany and a new contact will be created in that company with the information submitted in the case form.