I know you can add custom properties for orders and order lines, but can they be added for Gift Cards?
There will be different types of gift cards and I need to record what type they are somewhere / some how!
I thought about adding the custom properties to the order line(s) but am worried that searching for the gift card could be time consuming, when the number of orders gets very large.
That is not possible out of the box. Can't you just add that info as a property for the order line and then make an index to quickly search in your DB?
Well, yes, that was my initial thought - but it would be nicer if the "Gift Card" was extendable. Maybe something you can add in an upcoming version ;-)
You could maybe make an object that inherit from TC GiftCard and then make a new Service and repository for TC which loads your data. Then you need to cast your object.
Custom properties for Gift Cards
I know you can add custom properties for orders and order lines, but can they be added for Gift Cards?
There will be different types of gift cards and I need to record what type they are somewhere / some how!
I thought about adding the custom properties to the order line(s) but am worried that searching for the gift card could be time consuming, when the number of orders gets very large.
Hi Gordon
That is not possible out of the box. Can't you just add that info as a property for the order line and then make an index to quickly search in your DB?
Kind regards
Anders
Well, yes, that was my initial thought - but it would be nicer if the "Gift Card" was extendable. Maybe something you can add in an upcoming version ;-)
Would be cool :)
You could maybe make an object that inherit from TC GiftCard and then make a new Service and repository for TC which loads your data. Then you need to cast your object.
Kind regards
Anders
is working on a reply...