Announcement

Collapse
No announcement yet.

PROD code...

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

    PROD code...

    Does anyone have the original PROD screen code, specifically how it displays the price? I've long changed and lost that section and I need to figure out how it originally displayed price group pricing.

    Thanks!

    ~Daryl
    www.jcroffroad.com

    #2
    Re: PROD code...

    Can't go back in your history, I guess, huh? It is in your Product Display Layout tab of PROD Page

    CSSUI:

    Code:
    <h1>&mvt:product:name;</h1>
    <div class="product-details-1"><div class="product-image"><img id="main_image" src="graphics/en-US/cssui/blank.gif" alt="&mvte:product:name;" /></div>
        
        <ul id="thumbnails" class="thumbnails"></ul>
        <div id="closeup_div" class="closeup"><img id="closeup_image" src="graphics/en-US/cssui/blank.gif" alt="" /><div><a id="closeup_close">close</a></div></div>
        <mvt:item name="product_display_imagemachine" param="body:product:id" />
        <div class="clear product-image-margin"></div>
        <div class="product-code">Code: <span class="bold">&mvt:product:code;</span></div>
        <div class="product-price">Price: <span id="price-value" class="bold">&mvt:product:formatted_price;</span></div>
        <mvt:if expr="l.settings:product:weight NE 0">
        <div class="product-weight">Shipping Weight: <span class="bold">&mvt:product:weight;</span> &mvt:store:wtunits;</div>
        </mvt:if>
        <div id="inventory-message">
            <mvt:if expr="l.settings:product:inv_active">
            &mvt:product:inv_long;
            </mvt:if>
        </div>
        <div class="product-quantity">Quantity in Basket:
            <mvt:if expr="l.settings:product:quantity EQ 0">
            <span class="italic">None</span>
            <mvt:else>
            <span class="bold">&mvt:product:quantity;</span>
            </mvt:if>
        </div>
    </div>
    <div class="product-details-2">
        <form method="post" action="&mvt:global:sessionurl;Screen=BASK">
        <div class="product-description">&mvt:product:descrip;</div>
        <div id="swatches" class="swatches"></div>
        <div class="clear"></div>
        <input type="hidden" name="Old_Screen" value="&mvte:global:Screen;" />
        <input type="hidden" name="Old_Search" value="&mvte:global:Search;" />
        <input type="hidden" name="Action" value="ADPR" />
        <input type="hidden" name="Store_Code" value="&mvte:store:code;" />
        <input type="hidden" name="Product_Code" value="&mvte:product:code;" />
        <input type="hidden" name="Category_Code" value="&mvte:global:category_code;" />
        <input type="hidden" name="Offset" value="&mvte:global:Offset;" />
        <input type="hidden" name="AllOffset" value="&mvte:global:AllOffset;" />
        <input type="hidden" name="CatListingOffset" value="&mvte:global:CatListingOffset;" />
        <input type="hidden" name="RelatedOffset" value="&mvte:global:RelatedOffset;" />
        <input type="hidden" name="SearchOffset" value="&mvte:global:SearchOffset;" />
        <div class="product-attributes"><mvt:item name="product_attributes" param="product:id" /></div>
        <div class="purchase-buttons">Quantity: <input type="text" name="Quantity" value="1" class="product-quantity-input textfield" /> <mvt:item name="buttons" param="AddToBasket" /></div>
        </form>
    </div>
    <div class="clear"></div>
    Hope this helps,

    Jamie
    Jamie Donaldson
    JSDVS Web Design / Development
    Web Design | Web Development | E-commerce Design & Integration

    Comment


      #3
      Re: PROD code...

      And, MMUI:

      Code:
      <table border="0" cellpadding="5" cellspacing="0">
      <tr><td align="left" valign="middle" colspan="2">
      <mvt:item name="fonts" param="hdr_font">
      <b>&mvt:product:name;</b>
      </mvt:item>
      </td></tr>
      <tr><td align="left" valign="middle" colspan="2">&nbsp;</td></tr>
      <tr>
      <td align="center" valign="top" rowspan="5">
      <mvt:if expr="NOT ISNULL l.settings:product:image">
      <img src="&mvt:product:image;" alt="&mvt:product:name;">
      <mvt:else>
      &nbsp;
      </mvt:if>
      </td>
      <td align="left" valign="top">
      <mvt:item name="fonts" param="body_font">
      Quantity in Basket:
      <mvt:if expr="l.settings:product:quantity EQ 0">
      <i>None</i>
      <mvt:else>
      <b>&mvt:product:quantity;</b>
      </mvt:if>
      <br>
      Code: <b>&mvt:product:code;</b><br>
      Price: <b><span id="price-value">&mvt:product:formatted_price;</span></b><br>
      <mvt:if expr="l.settings:product:weight NE 0">
      Shipping Weight: <b>&mvt:product:weight;</b> &mvt:store:wtunits;<br>
      </mvt:if>
      <span id="inventory-message">
      <mvt:if expr="l.settings:product:inv_active">
      &mvt:product:inv_long;
      </mvt:if>
      </span>
      </mvt:item>
      </td></tr>
      <form method="post" action="&mvt:global:sessionurl;">
      <input type="hidden" name="Action" value="ADPR">
      <input type="hidden" name="Screen" value="PROD">
      <input type="hidden" name="Store_Code" value="&mvte:store:code;">
      <input type="hidden" name="Product_Code" value="&mvte:product:code;">
      <input type="hidden" name="Category_Code" value="&mvte:global:category_code;">
      <tr><td>&nbsp;</td></tr>
      <tr><td align="left" valign="top">
      <mvt:item name="product_attributes" param="product:id" />
      </td></tr>
      <tr><td>&nbsp;</td></tr>
      <tr><td align="left" valign="middle">
      <mvt:item name="fonts" param="body_font">
      Quantity:
      <input type="text" name="Quantity" value=1 size=4>
      <mvt:item name="buttons" param="AddToBasket" />
      </mvt:item>
      </td></tr>
      </form>
      <tr><td align="left" valign="middle" colspan="2">&nbsp;</td></tr>
      <tr><td align="left" valign="middle" colspan="2">
      <mvt:item name="fonts" param="body_font">
      &mvt:product:descrip;
      </mvt:item>
      </td></tr>
      </table>
      Or...hope this helps,

      Jamie
      Jamie Donaldson
      JSDVS Web Design / Development
      Web Design | Web Development | E-commerce Design & Integration

      Comment


        #4
        Re: PROD code...

        Ummm - since this is a MM4 forum, I don't think either of those will work.
        Leslie Kirk
        Miva Certified Developer
        Miva Merchant Specialist since 1997
        Previously of Webs Your Way
        (aka Leslie Nord leslienord)

        Email me: [email protected]
        www.lesliekirk.com

        Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

        Comment


          #5
          Re: PROD code...

          Untouched by human hands:

          Code:
          %OUI%
          %DOFUNC(g.OUIX_ok|g.Module_Library_DB|Customer_Product_Find_Code(BasketList.d.cust_id,g.Product_Code))%
          %IF(g.OUIX_ok)%
            %IF(g.catFound)%
              %OBJ(CATEGORY_OUILOOKUP)%
              %ASSIGN(g.OUIX_Meta_Desc|g.OUIX_C2_metadesc)%
              %ASSIGN(g.OUIX_Meta_Keys|g.OUIX_C2_metakeys)%
            %IFEND%
            %OBJ(PRODUCT_OUILOOKUP)%
            %IF(len(g.OUIX_P2_metadesc) GT 0)%
              %ASSIGN(g.OUIX_Meta_Desc|g.OUIX_P2_metadesc)%
            %IFEND%
            %IF(len(g.OUIX_P2_metakeys) GT 0)%
              %ASSIGN(g.OUIX_Meta_Keys|g.OUIX_P2_metakeys)%
            %IFEND%
            %IF(len(g.OUIX_P2_htmltitle) EQ 0)%
              %ASSIGN(g.OUIX_prodname|StripHTML(Products.d.name))%
            %ELSE%
              %ASSIGN(g.OUIX_prodname|g.OUIX_P2_htmltitle)%
            %IFEND%
          
            %IF(g.StoreXtra:navbar:swapprod)%
              %SET(g.OUIX_title|%VAR(g.OUIX_prodname)%: %VAR(Stores.d.name)%)%
            %ELSE%
              %SET(g.OUIX_title|%VAR(Stores.d.name)%: %VAR(g.OUIX_prodname)%)%
            %IFEND%
          
            %DOFUNC(g.OUIX_stock_level|g.Module_Feature_INV_RT|INV_StockLevelCode(Products.d.id))%
            %IF(len(g.OUIX_stock_level))%
              %DOFUNC(g.OUIX_stock_level_msg|g.Module_Feature_INV_RT|INV_StockLevelLong(Products.d.id))%
              %DOFUNC(g.OUIX_stock_qty|g.Module_Feature_INV_RT|INV_Quantity_Available(Products.d.id))%
            %IFEND%
          
            %SET(g.OUIX_greymenu|1)%
            %SET(g.OUIX_catid|0)%
            %OUIOBJOUT(BEGINSCREEN|g.OUIX_ok|OPENUI|OUI_Begin_Screen(g.OUIX_title,g.OUIX_greymenu,g.OUIX_catid))%
          %IFEND%
          %IF(g.OUIX_ok)%
            %OBJ(PRODUCT_OUILOOKUP)%
            %IF(OUI_Products.d.EOF)%
              %SET(g.OUIX_header|)%
              %SET(g.OUIX_footer|)%
            %ELSE%
              %ASSIGN(g.OUIX_header|OUI_Token_Replace(OUI_Products.d.header))%
              %ASSIGN(g.OUIX_footer|OUI_Token_Replace(OUI_Products.d.footer))%
            %IFEND%
            %ASSIGN(g.OUIX_SG_header|OUI_Token_Replace(g.StoreXtra:navbar:productheader))%
            %ASSIGN(g.OUIX_SG_footer|OUI_Token_Replace(g.StoreXtra:navbar:productfooter))%
          
            <BLOCKQUOTE>
            <FONT FACE="%VAR(OUI_Store.d.body_font|EE)%" SIZE="%VAR(OUI_Store.d.body_fsize|EE)%">
            %VAR(g.OUIX_SG_header)%%VAR(g.OUIX_header)%
            </FONT>
          
            %SET(g.OUIX_file|OPENUI)%
            %DOFUNC(g.OUIX_found|g.OUIX_file|OUI_ProductLayout_Find_Screen('PROD'))%
            %IF(NOT g.OUIX_found)%
              %DOFUNC(g.OUIX_found|g.OUIX_file|OUI_ProductLayout_SetDefault_ScreenLine('PROD'))%
            %IFEND%
            <TABLE BORDER=0 CELLPADDING=5 CELLSPACING=0>
            %IF(OUI_ProductLayout.d.prodname)%
              <TR><TD ALIGN="left" VALIGN="middle" COLSPAN=2>
                <H2>
                  <FONT FACE="%VAR(OUI_Store.d.hdr_font|EE)%" SIZE="%VAR(OUI_Store.d.hdr_fsize|EE)%" COLOR="%VAR(OUI_Store.d.hdr_fg|EE)%">
                  <B>%VAR(Products.d.name)%</B>
                  </FONT>
                </H2>
              </TD></TR>
          
              <TR><TD ALIGN="left" VALIGN="middle" COLSPAN=2>
                &nbsp;
              </TD></TR>
            %IFEND%
          
            <TR>
            %IF(OUI_ProductLayout.d.image NE 'N')%
              %IF(OUI_ProductLayout.d.image EQ 'S')%
                %IF(Products.d.thumbnail)%
                  <TD ALIGN="center" VALIGN="top" ROWSPAN=5>
                  %IF(len(g.OUIX_P2_linktitle) GT 0)%
                    %SET(g.OUIX_alttext| ALT="%VAR(g.OUIX_P2_linktitle|NOHTML)%")%
                  %ELSE%
                    %SET(g.OUIX_alttext| ALT="%VAR(g.OUIX_P_name|NOHTML)%")%
                  %IFEND%
                  %IF(g.OUIX_P2_thn_h GT 0)%
                    %SET(g.OUIX_thumbnail_h| HEIGHT="%VAR(g.OUIX_P2_thn_h|EE)%")%
                  %ELSE%
                    %SET(g.OUIX_thumbnail_h|)%
                  %IFEND%
                  %IF(g.OUIX_P2_thn_w GT 0)%
                    %SET(g.OUIX_thumbnail_w| WIDTH="%VAR(g.OUIX_P2_thn_w|EE)%")%
                  %ELSE%
                    %SET(g.OUIX_thumbnail_w|)%
                  %IFEND%
                  %SET(g.OUIX_text|<IMG SRC="%VAR(Products.d.thumbnail|EE)%"%VAR(g.OUIX_alttext)%%VAR(g.OUIX_thumbnail_h)%%VAR(g.OUIX_thumbnail_w)%>)%
                  %VAR(g.OUIX_text)%</TD>
                %IFEND%
              %ELSE%
                %IF(g.OUIX_P1_image)%
                  <TD ALIGN="center" VALIGN="top" ROWSPAN=5>
                  %IF(len(g.OUIX_P2_linktitle) GT 0)%
                    %SET(g.OUIX_alttext| ALT="%VAR(g.OUIX_P2_linktitle|NOHTML)%")%
                  %ELSE%
                    %SET(g.OUIX_alttext| ALT="%VAR(Products.d.name|NOHTML)%")%
                  %IFEND%
                  <IMG SRC="%VAR(Products.d.image|EE)%"%VAR(g.OUIX_alttext)%%VAR(g.OUIX_image_h)%%VAR(g.OUIX_image_w)%>
                  </TD>
                %IFEND%
            %IFEND%
          
            <TD ALIGN="left" VALIGN="top">
              <FONT FACE="%VAR(OUI_Store.d.body_font|EE)%" SIZE="%VAR(OUI_Store.d.body_fsize|EE)%">
              Quantity in Basket:
              %DOFUNC(g.OUIX_quantity|g.Module_Library_DB|Basket_Quantity(g.Session_ID,Products.d.id))%
              %IF(g.OUIX_quantity EQ 0)%
                <I>none</I>
              %ELSE%
                <B>%VAR(g.OUIX_quantity)%</B>
              %IFEND%
              <BR>
              %IF(OUI_ProductLayout.d.prodcode)%
                Code: <B>%VAR(Products.d.code)%</B><BR>
              %IFEND%
          
              %IF(OUI_ProductLayout.d.prodprice)%
                %ASSIGN(g.OUIX_product_id|Products.d.id)%
                %ASSIGN(g.OUIX_pgrpcount|Products.d.pgrpcount)%
                %ASSIGN(g.OUIX_price|Products.d.price)%
                %ASSIGN(g.OUIX_cost|Products.d.cost)%
                Price: <B>%OUIOBJOUT(DISPLAYPRICE|g.OUIX_text|OPENUI|OUI_Display_Price(g.OUIX_product_id,g.OUIX_pgrpcount,g.OUIX_price,g.OUIX_cost))%</B><BR>
                <BR>
              %IFEND%
          
              %IF(OUI_ProductLayout.d.prodweight)%
                Shipping Weight: <B>%VAR(Products.d.weight)%</B> %VAR(Stores.d.wtunits)%<BR>
              %IFEND%
              %IF((OUI_ProductLayout.d.invlevel EQ 'short') OR (OUI_ProductLayout.d.invlevel EQ 'long'))%
                %DOFUNC(g.OUIX_stock_level|g.Module_Feature_INV_RT|INV_StockLevelCode(Products.d.id))%
                %IF(len(g.OUIX_stock_level))%
                  %DOFUNC(g.OUIX_stock_level_msg|g.Module_Feature_INV_RT|INV_StockLevelLong(Products.d.id))%
                  %VAR(g.OUIX_stock_level_msg)%<BR>
                %IFEND%
              %IFEND%
              %SET(g.OUIX_file|OPENUI)%
              %DOFUNC(g.OK|g.OUIX_file|OUI_CustomFields_LoadFields(0))%
              %IF(g.OK)%
                %SET(g.OUIX_pos|1)%
                %WHILE(g.OUI_Cust_DspProd_Count GE g.OUIX_pos)%
                  %ASSIGN(g.OUIX_file|g.Module_Library_DB)%
                  %DOFUNC(g.OUIX_module_found|g.OUIX_file|StoreModule_Find_ID(g.OUI_Cust_DspProd_Module[g.OUIX_pos]))%
                  %IF(g.OUIX_module_found)%
                    %ASSIGN(g.OUIX_file|g.Module_Root $ Modules.d.module)%
                    %DOFUNC(g.OUIX_name|g.OUIX_file|Module_Product_Field_Name(g.OUI_Cust_DspProd_Code[g.OUIX_pos]))%
                    %IF(Modules.d.code EQ 'OPENUI')%
                      %ASSIGN(g.OUIX_file|OPENUI)%
                      %DOFUNC(g.OUIX_found|g.OUIX_file|OUI_CustomProductLayout_FindField('PRDS', g.OUI_Cust_DspProd_Code[g.OUIX_pos], 0))%
                      %IF(g.OUIX_found)%
                        %SET(g.OUIX_name|g.OUIX_name)%
                      %IFEND%
                    %IFEND%
                    %ASSIGN(g.OUIX_file|g.Module_Root $ Modules.d.module)%
                    %DOFUNC(g.OUIX_value|g.OUIX_file|Module_Product_Field_Value(g.OUI_Cust_DspProd_Code[g.OUIX_pos]))%
                    %IF(len(g.OUIX_name) AND len(g.OUIX_value))%
                      %SET(g.OUIX_text|<BR>%VAR(g.OUIX_name)%: <B>%VAR(g.OUIX_value)%</B>)%
                      %VAR(g.OUIX_text)%
                    %IFEND%
                  %IFEND%
                  %ASSIGN(g.OUIX_pos|g.OUIX_pos + 1)%
                %WHILEEND%
              %IFEND%
              </FONT>
            </TD></TR>
          
            <FORM NAME="FORM" METHOD="post" ACTION="%VAR(g.sessionurl)%">
            <INPUT TYPE="hidden" NAME="Action" VALUE="ADPR">
            <INPUT TYPE="hidden" NAME="Screen" VALUE="PROD">
            <INPUT TYPE="hidden" NAME="Store_Code" VALUE="%VAR(Stores.d.code|EE)%">
            <INPUT TYPE="hidden" NAME="Product_Code" VALUE="%VAR(Products.d.code|EE)%">
          
            <TR><TD>
              &nbsp;
            </TD></TR>
          
            <TR><TD ALIGN="left" VALIGN="top">
              %OUIOBJOUT(ATTRIBUTES|g.OUIX_ok|OPENUI|OUI_Product_Attributes())%
            </TD></TR>
          
            <TR><TD>
              &nbsp;
            </TD></TR>
          
            %IF(NOT (g.OUIX_stock_level EQ 'out'))%
              <TR><TD ALIGN="left" VALIGN="middle">
                <FONT FACE="%VAR(OUI_Store.d.body_font|EE)%" SIZE="%VAR(OUI_Store.d.body_fsize|EE)%">
                Quantity:  <INPUT TYPE="text" NAME="Quantity" VALUE=1 SIZE=4>
                %SET(g.OUIX_button_code|AddToBasket)%
                %SET(g.OUIX_button_function|)%
                %OUIOBJOUT(BUTTONDRAW|g.OUIX_ok|OPENUI|OUI_ButtonDraw(g.OUIX_button_code,g.OUIX_button_function))%
                </FONT>
              </TD></TR>
            %IFEND%
          
            </FORM>
            <TR><TD ALIGN="left" VALIGN="middle" COLSPAN=2>
              &nbsp;
            </TD></TR>
          
            %IF(OUI_ProductLayout.d.proddesc)%
              <TR><TD ALIGN="left" VALIGN="middle" COLSPAN=2>
                <FONT FACE="%VAR(OUI_Store.d.body_font|EE)%" SIZE="%VAR(OUI_Store.d.body_fsize|EE)%">
                %EXPR(OUI_Token_Replace(Products.d.desc))%
                </FONT>
              </TD></TR>
            %IFEND%
            </TABLE>
          
            %OBJ(RELATEDPRODS)%
          
            %VAR(g.OUIX_footer)%%VAR(g.OUIX_SG_footer)%
            </BLOCKQUOTE>
            %OUIOBJOUT(ENDSCREEN|g.OUIX_ok|OPENUI|OUI_End_Screen())%
          %IFEND%
          Hope this helps. And to think my wife calls me a pack rat ....
          Last edited by nottheusual1; 01-05-12, 10:50 AM.

          Comment


            #6
            Re: PROD code...

            You are absolutely right Daryl. Sorry. I thought I had it someplace else, but still looking for it....

            Jamie
            Jamie Donaldson
            JSDVS Web Design / Development
            Web Design | Web Development | E-commerce Design & Integration

            Comment


              #7
              Re: PROD code...

              To redeem myself: Have you tried: http://extranet.mivamerchant.com/for...p/t-21179.html
              Jamie Donaldson
              JSDVS Web Design / Development
              Web Design | Web Development | E-commerce Design & Integration

              Comment

              Working...
              X