How to connect my prestashop with odoo 9 - prestashop

I have a prestashop website. I am new to Odoo 9. I dont know how to connect the prestashop with Odoo 9. Can anyone please tell me how to connect it. I need step by step procedure. I am awaiting for the reply.
Thanks

You need a module for that , otherwise you should develop it, the module should include order, customer, products, stock, categories synchronization.
To create it, you should read about prestashop action hooks (when a client pass an order, a client creates an account, ...) you can read this or forum post.
To have synchronization work from odoo to prestashop you should use cron jobs to import data(products, clients, orders, categories) daily
to prestashop.

Related

Unable to create a manual payment in Odoo 15 community edition

I am using Odoo 15 Community edition.
When I go to Accounting/[Customers|Vendors]/Payments and try to register a new payment, I get this python error:
ValueError: Invalid field 'effective_date' on model 'account.payment'
Only way to get out of that screen is to discard the payment. This only happens there. I create a purchase or sale order and pay it using the Purchase or Sales module all works fine.
I tried to go in to developer mode and search for the account.payment module and indeed it does not have that field.
How can I fix this issue?
Can I add the field in the model?
if yes, which properties will be good?

Odoo 15 Virtual real time limit OdooSh + Shopify Integration

I have Shopify integration with Odoo, however, when I was trying to update stock and price for > 500 products, I faced 'Exceeded 2 Calls per Second for API Client' from Shopify.
So, in order to counter that, I added time.sleep(0.5) which should work, then, I faced another problem which is from Odoo, 'Virtual real time limit (935/900s) reached'.
I did some research and found out that Odoo would kill a process if it runs for too long, some Google solutions mention '--limit-time-real' which I don't think I can config on Odoo.sh.
In addition, I need to run this update stock&price automatically everyday so I cannot split these products into multiple batch and process manually.
I really really appreciate any help.

How to limit access to a product to a group with time?

I'm new to Prestashop but perfectly able to modify the sources.
How could I limit access to a given product to only one given group 24 hours before the other groups ?
Thanks for answering this.
By default Prestashop does not offer this feature. You can enable or disable access for the whole group which apply for all products.
You will need to write a module your self or buy a module which does this for you.
Searching the WWW i have found this module which is free (http://store.nemops.com/free-modules/44-product-access.html) however not compatible with 1.7. With some basic PHP knowledge you can easily upgrade the module to 1.7.
You can also find multiple paid modules which does this for you (https://addons.prestashop.com/en/search?search_query=product%20access)

How to display products from external API in prestashop

I want to integrate products from live external api into prestashop 1.6, so user can add them to cart and make orders also.
I found a solution to override the function that call products from Database but the website countaine modules that call products directely from database (it is not solution to override the modules also, because if there is a new ones it hard to do the same work).
I'm waiting for you solutions.
Thank you
In your case I see two solutions:
- You import the products in question in your Prestashop shop
- You change the product classes, Categories, etc ... to no longer query on the database, but on your API
Regards,

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

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