Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Gordon Saxby 1444 posts 1855 karma points
    Nov 18, 2016 @ 11:56
    Gordon Saxby
    0

    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.

  • Anders Burla 2560 posts 8256 karma points
    Nov 18, 2016 @ 12:29
    Anders Burla
    0

    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

  • Gordon Saxby 1444 posts 1855 karma points
    Nov 18, 2016 @ 12:32
    Gordon Saxby
    0

    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 ;-)

  • Anders Burla 2560 posts 8256 karma points
    Nov 18, 2016 @ 13:08
    Anders Burla
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft