Announcement

Collapse
No announcement yet.

How do I comment out a string of text in product description field?

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

    How do I comment out a string of text in product description field?

    How do I comment out a string of text in product description field? I tried the following example but it did not work.

    Example:

    Code:
    <mvt:comment>Sample Text</mvt:comment>
    Thank you, Bill Davis

    #2
    Originally posted by William Davis View Post
    How do I comment out a string of text in product description field? I tried the following example but it did not work.

    Example:

    Code:
    <mvt:comment>Sample Text</mvt:comment>
    Comments in HTML or PHP pages (outside of the PHP code) look like this:
    <!-- comment here about what is going on -->
    Comments in CSS files look like this:
    /* comment here about a style */
    Comments inside of PHP code look like this:
    <?php the_excerpt(); // Show excerpt and not full post content ?> Does this help?



    Kathleen Steimle-Hermes
    , owner
    Miss Kate's Creations
    [email protected]
    www.misskatescreations.com


    Handcrafted fabric covered photo albums, frames, brag books and MORE


    Comment


      #3
      Originally posted by William Davis View Post
      How do I comment out a string of text in product description field? I tried the following example but it did not work.

      Example:

      Code:
      <mvt:comment>Sample Text</mvt:comment>
      Hi Bill, you cannot use mivascript tags in the Product Description field. Use the HTML comments that Miss Kate has outlined for you.
      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


        #4
        Thanks Kathleene and Leslie, I actually I already knew about the tips Kathleen shared with me, we used it up till last November on our legacy store (MM4.24c) for years in our product description field.

        Example of commented out text string in MM4.24c -Don't recall if it was Miva Script or OpenUI function, but it still working to this day:
        Code:
        <!-- %COMMENT% Sample text string %COMMENTEND% -->
        We adopted this when we needed to add vendor notes to a particular product an at the time product custom fields was not available and/or later stable (we double wrapped it for obvious reasons).

        Now when we migrated our data from M4 to M9, the data is visible when viewing page source (e.g.: where, when and from whom we purchased certain items), Of course there is no question the best solution is M9 product custom fields, which we will implement, but in the meantime time I would prefer to display that info from page source.

        In a semi-related question, when creating product custom fields, can I group certain custom product fields, and in a certain order? If so, how?

        Finally any tips on creating a custom product field that would not conflict with possible future MIVA product fields say if they were to develop a vendor/dropship solution? Don't want my custom "Vendor Name" product field to possibly conflict with MIVA's "Vendor Name" field.
        Last edited by William Davis; 12-29-16, 08:25 AM.
        Thank you, Bill Davis

        Comment


          #5
          A custom product code would never conflict with a Miva database code as they are totally separate entities (and are stored in different data tables). Custom Field Groups sound exactly what you want for the other task. Check the documentation for their use.
          Bruce Golub
          Phosphor Media - "Your Success is our Business"

          Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
          phosphormedia.com

          Comment


            #6
            Originally posted by Bruce - PhosphorMedia View Post
            A custom product code would never conflict with a Miva database code as they are totally separate entities (and are stored in different data tables). Custom Field Groups sound exactly what you want for the other task. Check the documentation for their use.
            Agreed, I was looking for a temporary solution to hide data from page source and product data feeds, we have several thousand products, it will take a while to remove data from each product description field.

            Questions:
            1. Can product custom fields be grouped and in a particular order? If so how?
            2. Any tips in naming product customs fields as to avoid any possible future conflict with MIVA developing a similar product field (e.g.: Vendor Name, etc...)?
            3. What is the difference between; Product Edit > Custom Fields tab vs Tool Kit Custom Fields? They both display the same data but in different order?

            Thank you, Bill Davis

            Comment


              #7
              1. You can group custom fields by creating custom field groups under utilities then assigning the fields you want to that group. Currently you cannot sort them but we will adding that in the future.

              http://docs.miva.com/reference-guide...m-field-groups


              2. You'll never come across a naming conflict (at the database level), so you can name these fields however suits you best.

              3. Custom Fields Tab is Miva's built in view for custom fields. It will display all custom fields not part of a Custom Field Group. The "Toolkit Custom Fields" is toolkits view of custom fields. They are the same custom fields however it always shows all custom fields and ignores groups. It also does not support our custom fields types (select, radio buttons, etc) so all custom fields under this tab will either be a text box or a text area.
              Brennan Heyde
              VP Product
              Miva, Inc.
              [email protected]
              https://www.miva.com

              Comment

              Working...
              X