How to add custom logic in odoo10 e-commerce module? Which model in odoo10 should I inherit to extend e-commerce cart logic? - odoo

I want to add some custom logic into odoo 10 e-commerce module. I know I have to create a new addon for that. But I am not getting from where I should start the module development.
As the developer mode not helping me in website module to show elements properties when I hover over it. So I am not getting the model's name, field name.. What are the starting steps towards this development?
I want to change the logic in web when we add product to the cart I want to serve that product on monthly basis so select 2 dates, and then the regular billing for the same.

You should read the source code of the modules related to website_sale, you could find it online at:
https://github.com/odoo/odoo/tree/11.0/addons

Related

Shopify custom forms using liquid

I would like customers to complete a custom survey so we can gauge which product is most right for them.
My idea is to use a form to collect the customers answers and run a function to determine the product they need.
Is this possible using a shopify theme?
I am very confused on integrating custom logic into a theme
If the logic for the survey is written in Javascript and the function that determines the product is written in Javascript it will be possible.
To be more precise if you don't use the Shopify forms logic, but custom code everything it will be possible but it will require a lot of configuration depending of the survey length.
But things like sending a custom email to the customers or something in those line will not be possible with Shopify (only if you use a third party App for custom forms logic).

Can we use product configurator In Custom Module Odoo

I create a custom module in my Odoo, one of my models is having a relation to product variant or Product.Product model, I want to use product configurator like in the sales_product_line tree. I already trying to use the widget on my field and import the product configurator module And try to make my view code the same as sales_product_line code, I even add the product_configurator javascript but still no luck. Is there any workaround to achieve this.
This is the view that I trying to achieve
As per My knowledge Product Configurator can not use in the custom model, This module is only the foundation for external configuration interfaces such as 'product_configurator_wizard' or 'website_product_configurator'.
This module does not configure custom products
but offers the basis for generating, validating, updating configurable products using configuration interfaces.
Thanks!
Karmdip Joshi

BigCommerce - Custom Checkout (Adding Field to Cart)

I am doing some work for a client who uses BigCommerce Stencil Theme and I am pretty new to BC. Until now most of my work with them has been basic theme formatting and styling.
They are asking if I can add checkboxes next to items in cart to indicate an alternative delivery system, and then add a field to address for a hotel room. It seems like built into BC checkout customization you can add fields to addresses so that doesn't seem like an issue, but I'm not so sure about the checkboxes. I would imagine I would need access to the underlying PHP to make this happen which doesn't seem possible. Is this accurate? If not, how might I go about doing this?
I see that I can add the checkboxes themselves to the template files, but as far as sending any data with the checkout I don't know how I'd go about doing this.
For the hotel room address field, you are correct that the simplest solution would be to use the built-in custom address field feature.
For the checkbox/alternate delivery system, we're close to releasing a new Checkout JS SDK that will give you the ability to create a completely custom checkout experience. The SDK is basically a Javascript wrapper for our Storefront Checkout API and it includes operations for checkout actions (like creating a new shipping consignment for an alternate delivery method).
The Checkout SDK doesn't give you access to the underlying PHP; instead, it allows you to create your own frontend using React or whatever framework you prefer. The logic for custom checkout steps would exist in your frontend, and you would send your data to the checkout via the BC Checkout API.
https://stencil.bigcommerce.com/docs/customizing-checkout

Retrieving related content between two sitefinity modules

Before I ask my question, i like to make clear what I am trying to achieve.
I have two modules i created in Sitefinity "Jobs" and "CareHomes". The CareHomes module contains fields such as "Address" , "Location" and several other information that identifies the CareHome while the Jobs module is meant to allow the client post jobs for CareHomes.
I also have a classification field/taxonomy which is also called carehomes this taxonomy is just a list of all the CareHomes operated by the client. This taxonomy field is available in both the CareHomes module and Jobs module
Now this is my problem: I want the to display information from the CareHomes module such as "Address" "Location" in the Jobs widget. That is I want a situation where when the client fills the Jobs module form and selects for example "Carehome1" in the carehomes taxonomy,I want to be able to retrieve the "address" information from the CareHomes that also has the same "Carehome1" taxonomy selected.
I know this is a forum with many professionals and my question may come across to some as silly, however I would appreciate if you are nice in answering my question or pointing me to a helpful resource because I am a newbie to Sitefinity and have only just started using it for about a few weeks.
You have a couple options, if you're stuck on 6.3 you might want to look at a dynamic items field control for the Jobs module that allows you to associate a Job to a CareHome. You can create the field using Sitefinity's Visual Studio plugin called Thunder and add it to your Jobs module. More info here. You would then have to use the api to find the associated CareHome information in your Jobs widget. There is boilerplate code to look this stuff up in module builder under Administration -> Module Builder -> {You Module} -> Code Reference, but it can be a pain.
The other option that I haven't used yet but saw in Sitefinity's last webinar is only available in Sitefintiy 7 and its the new Related Data field that is available to all custom content items and most built in content types. So you'd have to do an upgrade but the the api for getting related items appears to be much easier to work with, information on that is here and the webinar that shows the new features of Sitefinity 7 is here

RCP extensions from several plugin's

I have RCP, and 2 products, based on fetures. I have my.project.gui plugin, that have some gui-extensios, like views, perspectives, prefetencePages. etc..
First product have some gui (feature of this product includes my.project.gui). And I want to my second product to have some extended gui. I created plugin, named my.project.gui.extended and added it to my second project feature. Then added some gui-excensions to my.project.gui.extended. But this doest work! I lauch my second product and see only my.project.gui-extensions, and dont see my.project.gui.extended-extensions.
Tried to add my.project.gui.extended to all dependences, but this didnt solve problem.
Is there any things i need to do to make this work? Or I need to this job in some other way?
===================================
Added information:
1st product feature has:
my.product.main1 (plugin with 1st product, application class, etc... has gui in dependences),
my.product.gui,
my.product.shared,
my.product.others1
2nd product feature has:
my.product.main2 (plugin with 2nd product, application class, etc... has gui and gui.extended in dependences),
my.product.gui,
my.product.gui.extended,
my.product.shared,
my.product.others2
type of extention is org.eclipse.ui.preferencePages (2nd product has server preference page, but 1st doesn't)
i think this is not runtime problem.
Solved my problem by adding this extensions to my.product.main2, not to my.product.gui.extended. This is not exectly what i wanted, but it works