Jump to content

Wrong price shows in product listing in BO?


bloggus

Recommended Posts

Hi,

I'm just playing with PS 8.2.1 and I noticed that product listings in BO shows regular price and don't take into account the specific prices that are set for a product.

Regular price is 2295, but with the set specific price, it should be 1695?

(no caching module, no cache set, price showing right in the front)

Is that normal behaviour?

1.png.7bc74124ae3b7df8a062bd136d2cca77.png

 

2.thumb.png.45764e8869ec02a9ccefd6a873664556.png

Edited by bloggus
spelling (see edit history)
Link to comment
Share on other sites

No, I think the admin listing will not display those specific prices. A special price can have multiple entries depending on the customer group, store view, country, etc. In such cases, it becomes difficult to determine which one should be displayed.

 

Link to comment
Share on other sites

So bascailly it is different that it was in 1.6 and 1.7?

How exacly are admin suppose to check prices, having an overview over the products if the price in the back is not listed as current? Pretty much useless behaviour.

Link to comment
Share on other sites

I guess PS 8 and V2 of the catalog list is not using these files anymore:

src/Adapter/Product/AdminProductDataProvider.php  

src\PrestaShopBundle\Resources\views\Admin\Product\CatalogPage\Lists\list.html.twig

How is the Catalog List V2 created? Anyone knows the files?

 

Link to comment
Share on other sites

  • 2 weeks later...

Hello,

In the new listing pages, the grids do not have specific templates.

The files that you might want to look into are:

src/Core/Grid/Definition/Factory/ProductGridDefinitionFactory.php - which is used for building the grid columns and filters

src/Core/Grid/Query/ProductQueryBuilder.php - which is used for fetching the data from the database. This data is provided to the ProductGridDefinitionFactory.php above

Ideally, if you want to alter the columns, you should do so within a custom module and not by making the code changes directly in the files above. PrestaShop has a couple of hooks that can be helpful in this regard - specifically the one that start with action<DefinitionId>Grid (the DefinitionId in this case is Product)

Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...