Store the old price for a product

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

Store the old price for a product

Post by ahmed31916 » 26 May 2022, 06:52

Hello,

- What the difference between the value and cost fields in the price table?
- What the name of the "old price" field? is it exist column for "old price"?

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

Re: Store the old price for a product

Post by aimeos » 27 May 2022, 06:10

ahmed31916 wrote: 26 May 2022, 06:52 - What the difference between the value and cost fields in the price table?
The value is the actual price a customer has to pay while costs are additional shipping costs per item and is multiplied with the bought quantity.
ahmed31916 wrote: 26 May 2022, 06:52 - What the name of the "old price" field? is it exist column for "old price"?
There's no property for the previous price but you can add the difference to the previous price in the "rebate" field and calculate the previous price in the template with "value + rebate".
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply