Announcement

Collapse
No announcement yet.

Volume Discount Table Not Appearing

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

    Volume Discount Table Not Appearing

    I am currently working on transitioning from Weilend's volume discount module to Miva's native functionality. I am working on a test page and I believe I have everything set up correctly but the table is not appearing. Anyone have any ideas of things I can try to get this to work?

    CODE
    Code:
    <mvt:do name="l.return" file="g.Module_Library_DB" value="Runtime_Product_Load_ID( 6909, l.product )" />
    <mvt:assign name="g.productId" value="product:id" />
    Part Id (&mvte:global:productId;)<br />
    
    <mvt:do name="g.pcount" file="g.Module_Feature_PGR_DB" value="PriceGroupAndModuleList_Load_Customer(g.cus tomer:id, g.PriceGroups )" />
    <mvt:foreach iterator="customer_pgroup" array="global:PriceGroups">
        <mvt:assign name="G.priceGroupId" value="l.settings:customer_pgroup:Id" />
        Price Group Id (&mvte:global:priceGroupId;)<br />
    </mvt:foreach>
    
    <mvt:item name="discount_volume" param="product:id" />
    OUTPUT
    HTML Code:
    Part Id (6909)
    Price Group Id (6)
    Database records showing that the data is set up correctly
    mf_database.jpg

    Volume Discount Table Token
    mf_token-list.jpg


    #2
    After lots of testing I found out that this works on the PROD page. I assumed I could test it out on a different page template. Am I doing something wrong to use it on a test page?

    Comment


      #3
      yea, was going to say, just add the volume price group MVT item.

      btw:

      <mvt:do name="l.return" file="g.Module_Library_DB" value="Runtime_Product_Load_ID( 6909, l.product )" />

      won't work. in this case, I'd use:

      <mvt:assign name="l.settings:product:id" value="6909" />

      <mvt:do file="g.Module_Library_DB" name="l.success" value="Runtime_Product_Load_ID(l.settings:product: id, l.settings:product)" />

      <mvt:item name="discount_volume" param="l.settings:product:id" />
      Bruce Golub
      Phosphor Media - "Your Success is our Business"

      Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
      phosphormedia.com

      Comment

      Working...
      X