Announcement

Collapse
No announcement yet.

9.005 template changes for Suivant?

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

    9.005 template changes for Suivant?

    Hi folks,

    I'm currently working on updating a client's page templates for v9.005, as per the changes listed in http://www.miva.com/mm9.5_template_changes.html. These instructions appear to be for an out-of-the-box CSSUI store, but the client is running the Suivant theme, and a couple of the templates are changed so much by Suivant that I can't figure out how to do the updates. Are there any instructions for this? If not, maybe someone here has already dealt with this and can post some code snippets? My main problems so far are on the ACLN and PROD pages.

    Thanks --
    Kent Multer
    Magic Metal Productions
    http://TheMagicM.com
    * Web developer/designer
    * E-commerce and Miva
    * Author, The Official Miva Web Scripting Book -- available on-line:
    http://www.amazon.com/exec/obidos/IS...icmetalproducA

    #2
    This is a frustration of mine too. I have taken the latest version of the ReadyTheme, uploaded it to a dev site and tried to do the copy & paste from there. It really doesn't address the need to have just the changes for the template pages because you could accident wipe out any customizations that have been done. of course, this is the same reason Miva hasn't offered a method to update the ReadyTheme from the admin. The Github depository just seems to have the packages https://github.com/mivaecommerce

    Can you say Child ReadyTheme?
    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
      Kent and Leslie,

      We list the version changes under the release notes section for each ready theme at apps.miva.com.

      1) Go to http://apps.miva.com/suivant-readytheme.html
      2) Click on Release Notes

      Version 1.4.0
      https://github.com/mivaecommerce/readytheme-suivant/wiki/v1.4.0-Updates

      Version 1.3.0
      https://github.com/mivaecommerce/rea...v1.3.0-Updates

      Wayne Smith

      Comment


        #4
        Hi Wayne, thanks for the quick reply.

        The release notes will be helpful, but not a complete solution, I think. A lot of the changes have descriptions that say, "Unless you have customized this section, it is recommended to replace it in its entirety." But for those of us who do have to deal with customized pages, this may be difficult. I hope that, in the future, you folks can apply the practice I've seen in your other documents, where you post the old and new files side-by-side, with deletions and insertions highlighted in red and green. That makes it much easier to figure out what's going on.

        For now, maybe you can answer a couple of specific questions.

        1. For the PROD page, the instructions say to change the Add to Basket button by replacing this:
        Code:
        <mvt:item name="buttons" param="AddToBasket" />
        with this:
        Code:
        <span onclick="document.forms.add.action = '&mvtj:urls:BASK:auto;'; document.forms.add.elements.Action.value = 'ADPR';">
           <mvt:item name="buttons" param="AddToBasket" />
        </span>
        But in a Suivant page, the existing button code looks like this:
        Code:
        <input type="submit" value="Add to Cart" id="js-add-to-cart" class="button button-block button-square uppercase add-to-cart bg-yellow bold" />
        So I wrapped the above code with the span and /span tags from the instructions. It seems to be working, but I'm concerned that wrapping some JS around an element that already contains JS might cause a problem. Can you clarify the right way to handle this?

        2. Is there a way for me to get unmodified, out-of-the-box copies of the Suivant templates and CSS files for the previous version of Suivant? I can compare those to the store;s existing templates, in order to figure out what's already been customized. Is a .pkg file equivalent to some archive type such as .gz or .jar, so that I can open it with an extractor program if I just change the filename extension?

        Thanks --
        Kent Multer
        Magic Metal Productions
        http://TheMagicM.com
        * Web developer/designer
        * E-commerce and Miva
        * Author, The Official Miva Web Scripting Book -- available on-line:
        http://www.amazon.com/exec/obidos/IS...icmetalproducA

        Comment


          #5
          Sorry, one more question. The "Documentation" link at http://apps.miva.com/suivant-readytheme.html takes me a page a readme.com, which wants me to log in or create an account. Is there a way I can read your docs without having to create an account at another Web site?

          Thanks --
          Kent Multer
          Magic Metal Productions
          http://TheMagicM.com
          * Web developer/designer
          * E-commerce and Miva
          * Author, The Official Miva Web Scripting Book -- available on-line:
          http://www.amazon.com/exec/obidos/IS...icmetalproducA

          Comment


            #6
            Hi Kent -

            We fixed the documentation link: https://readythemes.readme.io/docs/i...ant-readytheme

            For your questions above, wrapping the add to cart in the span tag is a acceptable solution. That code resets the form action to be ADPR. It is there in case someone clicks add to wishlist (which changes the action) then clicks back and tries to click add to cart. Resetting the action will always force the add to cart to perform the correct action.

            For number 2, you can create a dev store and apply the latest suivant framework. That will give you the latest unmodified template.

            Brennan Heyde
            VP Product
            Miva, Inc.
            [email protected]
            https://www.miva.com

            Comment


              #7
              Great, thanks Brennan!
              Kent Multer
              Magic Metal Productions
              http://TheMagicM.com
              * Web developer/designer
              * E-commerce and Miva
              * Author, The Official Miva Web Scripting Book -- available on-line:
              http://www.amazon.com/exec/obidos/IS...icmetalproducA

              Comment

              Working...
              X