Announcement

Collapse
No announcement yet.

Shipping Conditional

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

    Shipping Conditional

    Is there a way to set up a conditional based on a product's type of shipping?

    For example, if a product offers free shipping, I'd just like to include a message that specifies that on the PROD template.

    Any advice is greatly appreciated!

    #2
    The easiest way to do this is to have a custom product field be used to store if a product gets free shipping or not. Then on the prod template you can read in this value and if it offers free shipping display your custom messaging.

    Here are some docs on how to use custom product fields in the page templates:

    https://docs.miva.com/template-langu...-documentation

    https://docs.miva.com/template-langu...product-fields

    https://docs.miva.com/videos/new-custom-fields


    Brennan Heyde
    VP Product
    Miva, Inc.
    [email protected]
    https://www.miva.com

    Comment


      #3
      That makes sense, thanks Brennan.

      I may have been overthinking the issue.
      Last edited by Rick Wilson; 06-13-18, 09:57 AM.

      Comment


        #4
        We had this done for us without a product custom field based on product price equal or greater than x, and cart total equal or greater than x for category and product page.
        Thank you, Bill Davis

        Comment


          #5
          I ended up checking to see if products are assigned to particular price group because we have far too many SKUs to keep track of custom field settings.

          <mvt:do file="g.Module_Feature_PGR_DB" name="l.ok" value="PriceGroup_Load_Name( 'Your Price Group Name Here', l.price_group )" />
          <mvt:if expr="l.price_group:id GT 0">
          <mvt:comment>Price Group Exists</mvt:comment>
          <mvt:do file="g.Module_Feature_PGR_DB" name="l.b" value="PriceGroupXProduct_Load( l.price_group:id , l.settings:product:id, l.settings:pricegroupvar )" />
          <mvt:if expr="NOT ISNULL l.settings:pricegroupvar">
          <img src="/mm5/images/freeshipping.png" class="freeshipping-image" alt="Free ground shipping to the 48 contiguous United States" />
          <mvt:assign name="l.settings:pricegroupvar" value="''" />
          </mvt:if>
          </mvt:if>

          Comment

          Working...
          X