If the product have two prices

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
User avatar
ahmed31916
Advanced
Posts: 148
Joined: 14 Apr 2022, 12:15

If the product have two prices

Post by ahmed31916 » 12 Aug 2022, 05:41

Hello Aimeos,

When creating a new product in admin panel. If the product have two prices in the same currency. Is it possible for the product manager to save the first price in the "mshop_index_price" table (not the last price)?

User avatar
aimeos
Administrator
Posts: 7858
Joined: 01 Jan 1970, 00:00

Re: If the product have two prices

Post by aimeos » 12 Aug 2022, 06:49

No, both prices will be saved to the mshop_price and mshop_index_price tables.
You can use different price types to use them for search and displaying in the frontend.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
ahmed31916
Advanced
Posts: 148
Joined: 14 Apr 2022, 12:15

Re: If the product have two prices

Post by ahmed31916 » 12 Aug 2022, 08:04

aimeos wrote: 12 Aug 2022, 06:49 No, both prices will be saved to the mshop_price and mshop_index_price tables.
in my aimeos project, both prices will be saved to the mshop_price, and the last price in mshop_index_price. I don't why?
aimeos wrote: 12 Aug 2022, 06:49 You can use different price types to use them for search and displaying in the frontend.
how to make different price type?

User avatar
aimeos
Administrator
Posts: 7858
Joined: 01 Jan 1970, 00:00

Re: If the product have two prices

Post by aimeos » 12 Aug 2022, 08:05

In the admin backend, the left navigation bar contains "Types" and "Price" in the sub-menu.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
ahmed31916
Advanced
Posts: 148
Joined: 14 Apr 2022, 12:15

Re: If the product have two prices

Post by ahmed31916 » 12 Aug 2022, 08:10

thank you, I got it.
I made a new price type, but now the second price doesn't stored in mshop_index_price.
Attachments
Screenshot 2022-08-12 111352.png
Screenshot 2022-08-12 111352.png (48.09 KiB) Viewed 936 times

User avatar
aimeos
Administrator
Posts: 7858
Joined: 01 Jan 1970, 00:00

Re: If the product have two prices

Post by aimeos » 12 Aug 2022, 08:18

Only the "Default" price will be stored in the index table.
You can use the other one for displaying only (not for searching).
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply