Good afternoon, dear community!
Tell me, please, which controller receives data from the database when the user clicks the "Add to cart" button for a product in CMS Shop-Script, Webasyst?
(unfortunately, the documentation is rather scant at the moment!)
Such a question arose when performing the following task: it was necessary to adjust $ product ['price'] (price of goods) depending on the parameter passed (user status: 1 - regular, 2-wholesale. For users with different status, the prices of the corresponding articles should be displayed instead main price). For the product card, everything was decided by adding conditions to wa-apps \ shop \ lib \ classes \ shopProduct.class, for the collection of goods in the shop category, the condition was added to shopProductsCollection.class. At the same time, if you add a product to the cart, it is added with the standard price stored in the price column in the shop_product table. And it is necessary that the system should look for an article with a user status flag and take the price from the corresponding entry from the shop_product_skus table.