Announcement

Collapse
No announcement yet.

Help! Merchant Product Feed; price and sale_price_effective_date

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

    Help! Merchant Product Feed; price and sale_price_effective_date

    Is there a sample of Miva Google Merchant Product Feed available? If so can some one please share it with me.

    Having problem is with the following fields:

    price: Displaying sales price versus regular price conditional not working.

    sale_price_effective_date: No values, would like to display


    Note: We use a conditional to conceal price for items no longer in stock.

    Code:
    price
    
    <mvt:if expr="l.settings:product:inv_level EQ 'low'">&mvt:record:price; USD<mvt:elseif expr="l.settings:product:inv_level EQ 'out'"> <mvt:else>&mvt:record:price; USD</mvt:if>
    
    
    sale_price_effective_date
    
    ​
    Last edited by William Davis; 11-21-23, 12:02 PM.
    Thank you, Bill Davis

    #2
    I thought this would have been a quick reply.
    Thank you, Bill Davis

    Comment


      #3
      William Davis It looks like your conditional is checking for l.settings:product:inv_level when the feed array is l.settings:record so it would be l.settings:record:inv_level

      As for the sale_price_effective_date you would need to use some template code to check the end date of the price group that is assigned to the product. This could be a bit tricky to solve seeing how a product can have multiple price groups as well as some that are only assigned to specific customers.
      Nicholas Adkins
      Technical Training Specialist / Miva, Inc.
      [email protected]
      https://www.miva.com/mivalearn

      Comment


        #4
        Hello Bill,

        That is because you're using &mvt:record:price; which will shows sale prices for products if they exist. Instead you want to use &mvt:record:original_price; to show prices without any discounts included.

        Thank you,
        Tim Hilsabeck
        Technical Support II
        800.608.MIVA (Support Mon.-Sat. 7am-10pm EST)
        https://www.miva.com

        Comment


          #5
          Thanks to you both. Tim helped me figure out the display of discounted price, now all I have to figure out the conditional to only display when in stock.

          As to :

          "As for the sale_price_effective_date you would need to use some template code to check the end date of the price group that is assigned to the product. This could be a bit tricky to solve seeing how a product can have multiple price groups as well as some that are only assigned to specific customers."

          I don't think we need anything that complicated.
          Last edited by William Davis; 11-21-23, 02:38 PM.
          Thank you, Bill Davis

          Comment


            #6
            William Davis For the sale_price_effective_date you could have a custom product field then pull in that data. You would just need to manually populate and remove the data in the custom field.
            Nicholas Adkins
            Technical Training Specialist / Miva, Inc.
            [email protected]
            https://www.miva.com/mivalearn

            Comment


              #7
              Originally posted by Nick View Post
              William Davis For the sale_price_effective_date you could have a custom product field then pull in that data. You would just need to manually populate and remove the data in the custom field.
              Yikes! That's a shame having that data already on the database to have to create additional fields, populate is each time we have sales. We currently have thousands of products on sales, each category has different discount, this is not practical. But at least is a work around for now. Thank you.

              Now I am trying to figure out why the use of "|[prefix] &mvt:record:name;|" would wrap quotations marks around the rendered value example:

              prefix "Xwy"

              What a mission.
              Last edited by William Davis; 11-21-23, 06:30 PM.
              Thank you, Bill Davis

              Comment


                #8
                William Davis Typically CSV files use double-quote marks to delimit field values that have spaces, so a value like Santa Claus gets saved as “Santa Claus” to preserve the space.
                Nicholas Adkins
                Technical Training Specialist / Miva, Inc.
                [email protected]
                https://www.miva.com/mivalearn

                Comment

                Working...
                X