Announcement

Collapse
No announcement yet.

Miva 10.04 Template Changes > BASK

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

    Miva 10.04 Template Changes > BASK

    We are using a Levels theme and I started to make the template changes on the Original side of this page

    https://www.miva.com/assets/template..._10.04.00.html

    but when I got to this line

    <mvt:if expr="l.settings:option:attmpat_id">

    I see I don't have that section. I wanted to verify if these changes need to be modified for Levels?

    Thanks.

    #2
    Originally posted by habreu View Post
    We are using a Levels theme and I started to make the template changes on the Original side of this page

    https://www.miva.com/assets/template..._10.04.00.html

    but when I got to this line

    <mvt:if expr="l.settings:option:attmpat_id">

    I see I don't have that section. I wanted to verify if these changes need to be modified for Levels?

    Thanks.
    Matt shared this with me https://gist.github.com/influxweb/75...d8c3ce7b6eec0a I used the template changes page as a guide to help find what needed to be changed. Not everything is the same. Let me know if you have any questions.

    Leslie
    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


      #3
      Hi Leslie,

      I was able to get through almost everything but one line I am not sure of. On the diff sheets it shows

      Old

      <a class="c-button c-button--hollow c-button--small u-bg-white u-color-gray-30 t-basket__product-remove" href="&mvte:urls:BASK:auto_sep;Action=RGRP&Basket_ Group=&mvta:group:group_id;&Restore_Name=&mvta:gro up:name;&Restore_Link=&mvta:group:restore:link;&qu ote_item=&mvta:global:quote_item;">

      To be replaced by:


      <a class="c-button c-button--hollow c-button--small u-bg-white u-color-gray-30 t-basket__product-remove" href="&mvte:urls:BASK:auto_sep;Action=RGRP&Basket_ Group=&mvta:group:group_id;&Restore_Name=&mvta:gro up:name;&Restore_Params=&mvta:group:restore:params ;&quote_item=&mvta:global:quote_item;">


      But in my current template the RGRP blocks are different:

      I changed this

      <mvt:do file="g.Module_Library_DB" name="l.deleteMowhawk" value="BasketCharge_Delete_All_Type(g.basket:baske t_id, 'MOWHAWK')" />
      <mvt:if expr="g.Action EQ 'RGRP'">
      <mvt:assign name="g.Quantity" value="miva_variable_value('Quantity' $ g.Restore_Counter)" />
      <mvt:assign name="g.Restore_Name" value="miva_variable_value('Restore_Name' $ g.Restore_Counter)" />
      <mvt:assign name="g.Restore_Params" value="miva_variable_value('Restore_Params' $ g.Restore_Counter)" />
      <div class="message message-info"> <strong>&mvte:global:Restore_Name;</strong> has been removed from your cart. <a href="&mvte:urls:BASK:auto_sep;&mvte:global:Restor e_Params;" onclick (equals) "clickAndDisable(this);">Undo?</a> </div>
      <mvt:assign name="g.Restore_Counter" value="g.Restore_Counter + 1" />
      </mvt:if>

      I assume that in the forms I have to just change the &mvte:group:restore:link; to &mvte:global:Restore_Params; but thought I'd better ask.

      Code:
      <form method="post" action="&mvte:urls:BASK:rr;">
      <input type="hidden" name="Action" value="RGRP" />
      <input type="hidden" name="Restore_Name" value="&mvt:group:name;">
      <input type="hidden" name="Restore_Link" value="&mvte:group:restore:link;">
      <input type="hidden" name="Basket_Group" value="&mvte:group:group_id;" />
      <button type="submit" class="button nb button-block bg-transparent remove-item"><strong class="hide medium-inline">&times;</strong> Remove</button>
      </form>
      
      <form method="post" action="&mvte:urls:BASK:rr;" class="" class="">
      <input type="hidden" name="Action" value="RGRP" />
      <input type="hidden" name="Restore_Name" value="&mvt:group:name;">
      <input type="hidden" name="Restore_Link" value="&mvte:group:restore:link;">
      <input type="hidden" name="Basket_Group" value="&mvte:group:group_id;" />
      <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;" />
      <span title="To update quantity hit [ENTER] or use +/-" style="font-size:9px; font-family: 'arial narrow';vertical-align:top;color: #ccc; padding: 0px 0px 0px 9px;text-align:center; text-decoration:underline; display: none">hover for help with quantity</span>
      <button type="submit" class="button nb button-block bg-transparent remove-item"><strong class="hide medium-inline">&times;</strong> Remove</button>
      </form>
      Thanks.

      Comment


        #4
        Originally posted by habreu View Post
        Hi Leslie,

        I was able to get through almost everything but one line I am not sure of. On the diff sheets it shows

        Old

        <a class="c-button c-button--hollow c-button--small u-bg-white u-color-gray-30 t-basket__product-remove" href="&mvte:urls:BASK:auto_sep;Action=RGRP&Basket_ Group=&mvta:group:group_id;&Restore_Name=&mvta:gro up:name;&Restore_Link=&mvta:group:restore:link;&qu ote_item=&mvta:global:quote_item;">

        To be replaced by:


        <a class="c-button c-button--hollow c-button--small u-bg-white u-color-gray-30 t-basket__product-remove" href="&mvte:urls:BASK:auto_sep;Action=RGRP&Basket_ Group=&mvta:group:group_id;&Restore_Name=&mvta:gro up:name;&Restore_Params=&mvta:group:restore:params ;&quote_item=&mvta:global:quote_item;">


        But in my current template the RGRP blocks are different:

        I changed this

        <mvt:do file="g.Module_Library_DB" name="l.deleteMowhawk" value="BasketCharge_Delete_All_Type(g.basket:baske t_id, 'MOWHAWK')" />
        <mvt:if expr="g.Action EQ 'RGRP'">
        <mvt:assign name="g.Quantity" value="miva_variable_value('Quantity' $ g.Restore_Counter)" />
        <mvt:assign name="g.Restore_Name" value="miva_variable_value('Restore_Name' $ g.Restore_Counter)" />
        <mvt:assign name="g.Restore_Params" value="miva_variable_value('Restore_Params' $ g.Restore_Counter)" />
        <div class="message message-info"> <strong>&mvte:global:Restore_Name;</strong> has been removed from your cart. <a href="&mvte:urls:BASK:auto_sep;&mvte:global:Restor e_Params;" onclick (equals) "clickAndDisable(this);">Undo?</a> </div>
        <mvt:assign name="g.Restore_Counter" value="g.Restore_Counter + 1" />
        </mvt:if>

        I assume that in the forms I have to just change the &mvte:group:restore:link; to &mvte:global:Restore_Params; but thought I'd better ask.

        Code:
        <form method="post" action="&mvte:urls:BASK:rr;">
        <input type="hidden" name="Action" value="RGRP" />
        <input type="hidden" name="Restore_Name" value="&mvt:group:name;">
        <input type="hidden" name="Restore_Link" value="&mvte:group:restore:link;">
        <input type="hidden" name="Basket_Group" value="&mvte:group:group_id;" />
        <button type="submit" class="button nb button-block bg-transparent remove-item"><strong class="hide medium-inline">&times;</strong> Remove</button>
        </form>
        
        <form method="post" action="&mvte:urls:BASK:rr;" class="" class="">
        <input type="hidden" name="Action" value="RGRP" />
        <input type="hidden" name="Restore_Name" value="&mvt:group:name;">
        <input type="hidden" name="Restore_Link" value="&mvte:group:restore:link;">
        <input type="hidden" name="Basket_Group" value="&mvte:group:group_id;" />
        <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;" />
        <span title="To update quantity hit [ENTER] or use +/-" style="font-size:9px; font-family: 'arial narrow';vertical-align:top;color: #ccc; padding: 0px 0px 0px 9px;text-align:center; text-decoration:underline; display: none">hover for help with quantity</span>
        <button type="submit" class="button nb button-block bg-transparent remove-item"><strong class="hide medium-inline">&times;</strong> Remove</button>
        </form>
        Thanks.
        I "think" you are correct but we need Matt to chime in. He's in the middle of moving but I was amazed that his has found the time to help us while he does.
        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
          habreu - You are correct. In the forms you would replace:
          Code:
          <input type="hidden" name="Restore_Link" value="&mvte:group:restore:link;">
          with
          Code:
          <input type="hidden" name="Restore_Params" value="&mvte:group:restore:params;">
          Matt Zimmermann

          Miva Web Developer
          Alchemy Web Development
          https://www.alchemywebdev.com
          Site Development - Maintenance - Consultation

          Miva Certified Developer
          Miva Professional Developer

          https://www.dev4web.net | Twitter

          Comment


            #6
            Thank you Matt and Leslie.

            Comment

            Working...
            X