Announcement

Collapse
No announcement yet.

Marketing and Product Flags

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Marketing and Product Flags

    I love the ability to set price groups with that assigned start and end date. But I would also really like to assign the "Sale" image product flag to the qualifying product's for the duration of the sale but it appears product flags can only be assigned at the individual product level? Is there something I am missing? This seems tedious and then they have to be removed at the end of the sale.

    I imagine I could create a custom product page with the product flag assigned and then assign products? But that seems like potential for user error in maintaining sale status exists. I would really just love if it was part of the marketing setup and expired at a specified end date. Any plans to implement this as part of a future update?

    Any suggestions on how to assign product flags to price groups more easily are welcome.
    Katie Sorensen
    Design Quest Furniture

    http://www.designquest.biz

    #2
    Hi Katie,

    At this time, there is not connection between the price groups and in the product in that way. You could try something like this to create a special flag if a product is on sale based on checking the price and making sure there is no other flag assigned.
    Code:
    <mvt:if expr="l.settings:product:customfield_values:customfields:product_flag NE 'none'">
        <mvt:assign name="l.settings:product:flag" value="'flag--' $ tolower(l.settings:product:customfield_values:customfields:product_flag)" />
    <mvt:elseif expr="l.settings:product:customfield_values:customfields:product_flag EQ 'none' AND l.settings:product:base_price GT l.settings:product:price">
        <mvt:assign name="l.settings:product:flag" value="'flag--special'" />
    </mvt:if>
    Matt Zimmermann

    Miva Web Developer
    Alchemy Web Development
    https://www.alchemywebdev.com
    Site Development - Maintenance - Consultation

    Miva Certified Developer
    Miva Professional Developer

    https://www.dev4web.net | Twitter

    Comment


      #3
      I will try that. Thank you. At this time the only product flags I am using is the "Sale" one so that could work quite nicely. I will hunt down where the heck the pricing code is tomorrow. Thanks for the quick response.

      Will this work when pricing is driven by the attributes? Sorry, I am a bit of a clueless coder. I thought I was pretty cool when I got custom fields working...
      Katie Sorensen
      Design Quest Furniture

      http://www.designquest.biz

      Comment


        #4
        Hi Katie,

        Unfortunately, it will not work if the parent product does not reflect the sale price.
        Matt Zimmermann

        Miva Web Developer
        Alchemy Web Development
        https://www.alchemywebdev.com
        Site Development - Maintenance - Consultation

        Miva Certified Developer
        Miva Professional Developer

        https://www.dev4web.net | Twitter

        Comment


          #5
          I shall still keep that snippet of code applied for my simpler products that may go on sale and take some personal notes so I don't forget I just inserted it on the product page layout. Thanks again!
          Katie Sorensen
          Design Quest Furniture

          http://www.designquest.biz

          Comment

          Working...
          X