Announcement

Collapse
No announcement yet.

OUI/MMUI Store Framework Exporter Beta

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

    Re: OUI/MMUI Store Framework Exporter Beta

    If you inspect the provisioning code you processed to add the headers and footers, you'll see the module code it used was a MMUI module called cmp-mmui-pchdft.

    To resolve this, unassign the newly created item that the provisioning code created and delete it. Then go to Global Settings > Modules and deactivate the cmp-mmui-pchdft module. That will get you back to only one Headers & Footers tab. In order to correctly run provisioning code intended for a MMUI store in a CSSUI store, you'll need to modify the module codes in the XML.

    Regards,
    Preston Brynie
    Software Developer
    Miva Merchant
    http://www.mivamerchant.com/

    Comment


      Re: OUI/MMUI Store Framework Exporter Beta

      Thank You, Preston!!!

      To resolve this, unassign the newly created item that the provisioning code created and delete it.
      Is there an easy way to tell which is the newly created item (as opposed to the original item)?
      In order to correctly run provisioning code intended for a MMUI store in a CSSUI store, you'll need to modify the module codes in the XML.
      How do I correctly modify the module codes in the XML file? I can open it up and do a global search and replace, but don't what I should change ti from and what I should change it to.

      Thanks in advance.
      Mark Romero
      ~~~~~~~~

      Comment


        Re: OUI/MMUI Store Framework Exporter Beta

        To view the module code from which any item was created from, click the edit button next to that item.

        As far as the edits to the XML provisioning code, you'll need to replace all of the MMUI module codes with their CSSUI counterparts. In this case, you'd replace all occurrences of cmp-mmui-pchdft with cmp-cssui-pchdft. Keep in mind, this is assuming you're attempting to add these headers and footers to a CSSUI store.

        Regards,
        Preston Brynie
        Software Developer
        Miva Merchant
        http://www.mivamerchant.com/

        Comment


          Re: OUI/MMUI Store Framework Exporter Beta

          Hi again, Preston:

          Yes, This IS a CSSUI store that I am trying to fix.

          I noticed if I go to Pages -> Items there are TWO MMUI items listed. Do I need to remove these, too?

          They Are:

          colors MMUI Miscellaneous Colors
          fonts MMUI Fonts

          And if I click the Add Items Popup Button, I see a LOT more, such as:

          cmp-mmui-afae MMUI Affiliate Add/Edit
          cmp-mmui-afflink MMUI Affiliate Sign-in Link
          cmp-mmui-attributes MMUI Product Attributes
          cmp-mmui-basket MMUI Basket Contents

          (there are a total of 23 listed with -mmui- in them).

          Do I need to remove all of these as well?

          and then in the Global Settings -> Modules there are lots of modules with MMUi in the names / codes. Are they supposed to be there?

          Here are some of them:

          mmui_stsl MMUI Store Selection Edit
          cmp-mmui-afae MMUI Affiliate Add/Edit Edit
          cmp-mmui-afflink MMUI Affiliate Sign-in Link Edit
          cmp-mmui-attributes MMUI Product Attributes Edit
          cmp-mmui-basket MMUI Basket Contents Edit

          etc., etc., etc...

          will I need to remove all these modules as well?

          Thanks in advance.
          Mark Romero
          ~~~~~~~~

          Comment


            Re: OUI/MMUI Store Framework Exporter Beta

            One more thing:

            After I changed all occurrences of cmp-mmui-pchdft with cmp-cssui-pchdft in the prod_ctgy_hdft.htm and tried to re-import it, I got this error:

            Runtime error in /mm5/5.00/features/tui/tui_db.mvc @ [0000003c:0000004c]: Line 1572: MvQUERY: mysql_execute: Duplicate entry 'c158-header.mvc' for key 2 0
            Runtime error in /mm5/5.00/features/tui/tui_db.mvc @ [0000003c:0000004c]: Line 1572: MvQUERY: mysql_execute: Duplicate entry 'c159-header.mvc' for key 2 0
            Runtime error in /mm5/5.00/features/tui/tui_db.mvc @ [0000003c:0000004c]: Line 1572: MvQUERY: mysql_execute: Duplicate entry 'c160-header.mvc' for key 2 0
            Runtime error in /mm5/5.00/features/tui/tui_db.mvc @ [0000003c:0000004c]: Line 1572: MvQUERY: mysql_execute: Duplicate entry 'c161-header.mvc' for key 2 0

            etc., etc., etc...
            Since this is a development store, I kind of get the feeling I am going to have to start from scratch... But I would much prefer not to.
            Last edited by Siamese-Dream.Com; 01-06-11, 11:09 PM.
            Mark Romero
            ~~~~~~~~

            Comment


              Re: OUI/MMUI Store Framework Exporter Beta

              Those cmp-cssui-pchdft take the 4x text and insert it into the database for that category and then compile a template for that header or footer. If the template already exists, you would get the error above. There is a different API function for updating an existing template but that is not used with the XML import since it is assuming everything is new.
              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


                Re: OUI/MMUI Store Framework Exporter Beta

                Hi there, Bill:

                thanks for the insights.

                If the template already exists, you would get the error above.
                is there an easy SQL command to drop all those category header / footer templates so I can then re-run the XML file?

                There is a different API function for updating an existing template but that is not used with the XML import since it is assuming everything is new.
                Is there a way to access that API function easily? for instance, could I modify the XML file so that instead of attempting to create NEW headers / footers, it would instead try to update them?

                Thanks in advance.
                Mark Romero
                ~~~~~~~~

                Comment


                  Re: OUI/MMUI Store Framework Exporter Beta

                  You could delete all the categories and start over. So category ID 158 would no longer exist. When re-imported it might be ID 500, or whatever.
                  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


                    Re: OUI/MMUI Store Framework Exporter Beta

                    You could delete all the categories and start over.
                    Hmmm.... so just go into the Miva Admin, display all the categories, click the Check All box, and hit update. Then just re-import the categories and then run the XML file for the headers / footers, right?

                    Thanks in advance.
                    Mark Romero
                    ~~~~~~~~

                    Comment


                      Re: OUI/MMUI Store Framework Exporter Beta

                      I would think that would do it. However, you will have to reassign all your product to categories because their old category would be gone. There was also a bug in a category mass deletion in the early days of 5x related to the product:catcount. I don't know if it was corrected. Doesn't Sebenza have a category header/footer import module? I would think that module checks if it is already there or not.
                      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


                        Re: OUI/MMUI Store Framework Exporter Beta

                        Hmmm...

                        OK, I guess I could do this:

                        1) Delete all products and categories
                        2) Re-run just the category add and product add from the category.xml file
                        3) Re run the prod_ctgy_hdft.htm

                        The information on the sebenza site for the category header / footer import module is, sadly, lacking.
                        Mark Romero
                        ~~~~~~~~

                        Comment


                          Re: OUI/MMUI Store Framework Exporter Beta

                          I would contact Scott before I'd wipe out the product and categories and start over. How many didn't get imported? If it was a handful, just copy and paste them.
                          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


                            Re: OUI/MMUI Store Framework Exporter Beta

                            I would contact Scott before I'd wipe out the product and categories and start over.
                            Is there any particular reason NOT to wipe out the products and categories if I haven't made any modifications to them? They haven't been touched since I imported them with the catalog.xml file.

                            How many didn't get imported? If it was a handful, just copy and paste them.
                            None of them (headers and footers) got imported, so it would be about 200.

                            Thanks in advance.
                            Mark Romero
                            ~~~~~~~~

                            Comment


                              Re: OUI/MMUI Store Framework Exporter Beta

                              How did those duplicates happen? I must have missed something. You should not have had duplicates unless you tried to import the XML in an existing store where you had manually added headers and footers before the import. If that is not the case, there may be a bug in the import file where it is running the same headers twice.
                              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


                                Re: OUI/MMUI Store Framework Exporter Beta

                                Hi there, Bill:

                                How did those duplicates happen? I must have missed something. You should not have had duplicates unless you tried to import the XML in an existing store where you had manually added headers and footers before the import. If that is not the case, there may be a bug in the import file where it is running the same headers twice.
                                Yes, there was a bug in the import file.

                                the first line of the prod_ctgy_hdft.htm included this in the modulecode:

                                cmp-mmui-pchdft

                                (which woruld work if it were an MMUI store)

                                when what it was supposed to include was this:

                                cmp-cssui-pchdft

                                (which is correct for a CSSUI store).

                                This gave me TWO Header & Footer tabs in the Category Templates.

                                Preston told by to deactivate the cmp-mmui-pchdft module 9since that is for an MMUI store and mine is a CSSUI store)

                                I did that. and then I tried importing the prod_ctgy_hdft.htm again.

                                Which gave me the duplicate Header entry errors you saw above.

                                So, that is where I am at now...
                                Mark Romero
                                ~~~~~~~~

                                Comment

                                Working...
                                X