Giter Club home page Giter Club logo

Comments (8)

kpodemski avatar kpodemski commented on May 28, 2024

I agree that it should be documented but if you know how it works under the hood it's ok to see ObjectModel.php and all methods within Associate keyword

from docs.

mcdado avatar mcdado commented on May 28, 2024

Well… the problem is that many third-party module developers don't know all the inner workings of the Core. For example, after years of looking at the Core code, I never noticed those methods or figured out what they do. That's why there is documentation. 😃

from docs.

kpodemski avatar kpodemski commented on May 28, 2024

Maybe. In my opinion ObjectModel, FrontController, Controller, ModuleFrontController, and AdminController are first classes which you should check and analyze. Everything is working on top of these.

from docs.

mcdado avatar mcdado commented on May 28, 2024

Sure… but the point of technical documentation is to guide the user/developer in the right way. And when I'm facing an issue (for example: why when I update the product table, the change doesn't appear in the store?? oh, it's because there is a product_shop! I didn't know that, plus I'm not using multi-store!) I don't want to go read through 3 or 4 classes and spend a day because of that issue, maybe pulled into other things. It's a rabbit hole. Instead I'd like to have some explanation of non-obvious behaviour. Yes, you could argue that reading the Core is beneficial anyway, but then there is no point of having documentation, IMHO. 😉

And that's why I came here, to point out where I feel that documentation can improve.

from docs.

kpodemski avatar kpodemski commented on May 28, 2024

I suggest to look into 1.6 documentation, there are informations about db schema, how multi-store tables works etc.
http://doc.prestashop.com/display/PS16/Developer+Guide

As from now documentation would be hosted on GitHub it will be much better, that's for sure.

from docs.

mcdado avatar mcdado commented on May 28, 2024

Yep. I opened this Issue to highlight an area that I find lacking. I was about to open another one about PrestaShopCollection but Safari TP totally collapsed on me, and I lost the unsaved draft… sometimes I forget what it is to run beta software! 😄

from docs.

mcdado avatar mcdado commented on May 28, 2024

You meant this page?

There is a very brief mention of the issue:

A few details to note about tables:
 - Tables which contain translations must end with the _lang suffix. For instance, ps_product_lang contains all the translations for the ps_product table.
 - Tables which contain the records linking to a specific shop must end with the _shop suffix. For instance, ps_category_shop contains the position of each category depending on the store.

I can assure you that I searched the documentation when I had issues with this particular case (product, product_attribute) but I didn't find this page, I guess because it only lists category_shop. I guess it was bad luck!

from docs.

lanokims avatar lanokims commented on May 28, 2024

Hello,
Maybe I'm late here.
I am a prestashop developer and I need an indication please.

I develop a module to synchronize part of the products (selected products) from one shop to another. I would like some indication on the concerned tables.

it would be nice if I could find help here.

Thank you.

from docs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.