Announcement

Collapse
No announcement yet.

Editable Shopping Basket does not work for MIVA9 CSSUI. Please Help

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

    Editable Shopping Basket does not work for MIVA9 CSSUI. Please Help

    Hi,
    I am trying to add the edit basket feature from Sebenza, however the module is no longer supported. I have it working on my MMUI store but it does not work on my CSSUI store. Can any help me correct the code so it will work on my CSSUI cart.


    Here are the instructions from Sebenza:

    Look for:
    <mvt:foreach iterator="option" array="item:options">


    Add replace with:
    <mvt:if expr="(g.Action NE 'EDITATTR') OR (g.Basket_Line NE l.settings:item:line_id)">
    <mvt:foreach iterator="option" array="item:options">




    Look for the next:
    </mvt:foreach>


    And replace with:
    </mvt:foreach>
    </mvt:if>
    <mvt:item name="editattr" param="template" />


    What should this code be for it to work on my CCSUI store?


    Thank you!
    KD

    #2
    Re: Editable Shopping Basket does not work for MIVA9 CSSUI. Please Help

    Mine is working but mine was implemented back on 5.5. I believe this is the right segment of code from the Basket Contents section:
    Code:
    <mvt:if expr="(g.Action NE 'EDITATTR') OR (g.Basket_Line NE l.settings:item:line_id)"><mvt:foreach iterator="option" array="item:options">
        <tr class="item-options">
            <td class="item-remove">&nbsp;</td>
            <td class="item-pic">&nbsp;</td>
            <td class="item-name" style="max-width:400px;">
                <mvt:if expr="l.settings:option:option_id">
                &mvt:option:attr_code;: &mvt:option:opt_code;
                <mvt:elseif expr="NOT ISNULL l.settings:option:data">
                &mvt:option:attr_code;: &mvt:option:data;
                <mvt:elseif expr="NOT ISNULL l.settings:option:data_long">
                &mvt:option:attr_code;: &mvt:option:data_long;
                <mvt:else>
                &mvt:option:attr_code;            </mvt:if>        </td>
            <td class="item-quantity">&nbsp;</td>
            <td class="item-price">     </td>
            <td class="item-total">     </td>
        </tr>
        </mvt:foreach>
    </mvt:if>
    And of course make sure the 'editattr' item is assigned to the page.
    Last edited by afiumano; 03-23-15, 05:46 AM.

    Comment


      #3
      Re: Editable Shopping Basket does not work for MIVA9 CSSUI. Please Help

      Thanks for your reply. Miva9 CSSUI codes are a bit different. I did get it to work on Miva9 MMUI however CSSUI uses group instead of item in the code. When I switched the item to group, it did work but not as individual products. It would edit all.

      array="item:options" to array="group:options"

      Comment


        #4
        Re: Editable Shopping Basket does not work for MIVA9 CSSUI. Please Help

        I believe that module only works with the basket:items array. The basket:groups array is not supported.

        We have a custom solution we can implement as well if you want to stop using that module all together. It is about a 3 to 5 hour project to implement but can be done using all template logic.
        Brennan Heyde
        VP Product
        Miva, Inc.
        [email protected]
        https://www.miva.com

        Comment

        Working...
        X