Announcement

Collapse
No announcement yet.

Problem with Volume Price Table

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

    Problem with Volume Price Table

    Hi,

    I customized my Emporium Plus Volume Price table to display items with a quantity of 1|1 at the bottom of the list (vs. the top where they would normally appear).
    I'm having a problem now removing 4 empty table rows that are being created at the bottom of the table automatically.

    Here is the code I'm using for this:


    <mvt:item name="cim_vol" param="tablearray" />
    <mvt:if expr="l.settings:volprice_rows GT 0">
    <table class="volprice-table1" cellpadding="2" cellspacing="0">
    <tr>
    <th colspan="2" bgcolor="#8CA5CA">
    <font size="+1">
    Volume Price
    </font>
    </th>
    </tr>
    <tr>
    <th align="left" bgcolor="#FFFFFF">
    <font color="#003366" size="-1">
    Quantity
    </font>
    </th>
    <th align="right" bgcolor="#FFFFFF">
    <font color="#003366" size="-1">
    Price Each
    </font>
    </th>
    </tr>
    <mvt:foreach iterator="volume" array="volprice">
    <mvt:if expr="l.settings:volume:current">
    <tr>
    <td align="left">
    <mvt:else>
    <tr>
    <td align="left" bgcolor="#FFFFFF">
    </mvt:if>
    <font size="-2">
    <mvt:if expr="pos1 GT 1">
    &mvt:volume:range;
    <mvt:else>
    </mvt:if>
    </font>
    </td>
    <mvt:if expr="l.settings:volume:current">
    <td align="right">
    <mvt:else>
    <td align="right" bgcolor="#FFFFFF">
    </mvt:if>
    <font size="-2">
    <mvt:if expr="pos1 GT 1">
    &mvt:volume:price;
    <mvt:else>
    </mvt:if>
    </font>
    </td>
    </tr>
    </mvt:foreach>
    <mvt:foreach iterator="volume" array="volprice">
    <tr>
    <mvt:if expr="l.settings:volume:current">
    <td align="left">
    <mvt:else>
    <td align="left" bgcolor="#FFFFFF">
    </mvt:if>
    <font size="-2">
    <mvt:if expr="pos1 EQ 1">
    &mvt:volume:range; Piece Sample
    <mvt:else>
    </mvt:if>
    </font>
    </td>
    <mvt:if expr="l.settings:volume:current">
    <td align="right">
    <mvt:else>
    <td align="right" bgcolor="#FFFFFF">
    </mvt:if>
    <font size="-2">
    <mvt:if expr="pos1 EQ 1">
    &mvt:volume:price;
    <mvt:else>
    </mvt:if>
    </font>
    </td>
    </tr>
    </mvt:foreach>
    </table>
    </mvt:if>


    Any help with this would be greatly appreciated.
    Last edited by rcm1234; 11-24-14, 11:33 AM.

    #2
    Re: Problem with Volume Price Table

    Originally posted by rcm1234 View Post
    Hi,

    I customized my Emporium Plus Volume Price table to display items with a quantity of 1|1 at the bottom of the list (vs. the top where they would normally appear).
    I'm having a problem now removing 4 empty table rows that are being created at the bottom of the table automatically.

    Here is the code I'm using for this:



    Any help with this would be greatly appreciated.
    Is it possible for you to send a screenshot of what your table is displaying. I grabbed the code you provided and added to my dev store and the attached image is my result.

    Screen Shot 2014-11-24 at 12.56.31 PM.png
    Happie Mendenhall
    Support Technician
    Miva, Inc.

    Comment


      #3
      Re: Problem with Volume Price Table

      Originally posted by hmendenhall View Post
      Is it possible for you to send a screenshot of what your table is displaying. I grabbed the code you provided and added to my dev store and the attached image is my result.

      [ATTACH=CONFIG]840[/ATTACH]
      Here is my screen shot... you'll notice the aprox. 10 pixels of whitespace at the bottom of the table.
      that is actually 4 table rows being created down there. I
      *I put a black border around the perimeter of the table so you can see that gap at the bottom better.

      volprice1.jpg
      Attached Files

      Comment


        #4
        Re: Problem with Volume Price Table

        What is your site URL ?
        Happie Mendenhall
        Support Technician
        Miva, Inc.

        Comment


          #5
          Re: Problem with Volume Price Table

          Your conditional, eg <mvt:if expr="pos1 GT 1"> has to be right after the foreach line. Otherwise you are outputting tr and td tags that will be empty.
          Bill Weiland - Emporium Plus http://www.emporiumplus.com/store.mvc
          Online Documentation http://www.emporiumplus.com/tk3/v3/doc.htm
          Question http://www.emporiumplus.com/mivamodu...vc?Screen=SPTS
          Facebook http://www.facebook.com/EmporiumPlus
          Twitter http://twitter.com/emporiumplus

          Comment

          Working...
          X