Announcement

Collapse
No announcement yet.

HTML tags?

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

    HTML tags?



    Hi folks --

    I'm doing a custom module that outputs some product data in XML format. I
    want to find out how to get rid of the HTML and /HTML tags that Merchant
    normally generates. I took a look at the source of merchant.mv 4.13, and
    found that these two tags are hard-coded, in-line in the file. That's
    annoying enough, but the client is running compiled. Does anyone know if
    there's a way to suppress these tags in compiled Merchant?

    Thanks --

    Kent Multer | /| P.O.Box 701895, Dallas TX 75370
    Magic Metal Productions | / | (214) 824 8937 voice/fax
    | | [email protected]
    * Web designer/developer http://TheMagicM.com
    * Miva Script consultant
    * Author, The Official Miva Web Scripting Book -- available on-line:
    <A HREF ="http://www.amazon.com/exec/obidos/ISBN=0966103211/magicmetalproducA">http://www.amazon.com/exec/obidos/ISBN=0966103211/magicmetalproducA</A>



    #2
    Looking for openui modules



    Hi,

    I have made extensive modifications to our store
    through openui. I'm in the process of upgrading our
    store from V2 to V4.13 (uncompiled). This seems like
    a good opportunity to try to replace some of the
    modifications I made with off-the-shelf modules. If
    you have created something or know of a good fit,
    please let me know.

    thanks,
    jd

    Here's what I need:

    1) Quantity based discounts - Products must be marked
    discountable or net. If a user buys 12 or more items,
    the discountable items receive a 10% discount. The
    discount calculation must be pervasive: anywhere a
    basket or order is displayed, the discount must be
    displayed (basket, checkout, batch reports,
    confirmation emails, etc.).

    Nice to haves: I plan to evaluate order mgmt modules,
    so it would be nice if this integrated with those
    modules. It would also be nice to specify the discount
    for each product, rather than a global discount. I
    currently use ms-access to manipulate the product
    database but a UI, preferably in the admin, for
    marking discountable items and discounts is desirable.

    2) Extend product database - I'm currently using the
    desc field to store extra information. I'd like to be
    able to display the extra information anywhere a
    product is displayed (batch reports, baskets, search
    screens).

    nice to haves: I need to be able to search on the
    additional fields using "and" logic (eg. rating > 90
    and vintage =1997). I would like the extra fields to
    be exposed to the admin interface.

    3) searching - I currently have code which performs a
    double category search and then applies product
    attributes to complete the search. The result is an
    intersection. For example, find:
    cat1 - United States
    cat2 - Cabernet
    vintage (tokenized in desc field) - 2000




    __________________________________
    Do you Yahoo!?
    Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
    http://hotjobs.sweepstakes.yahoo.com/signingbonus


    Comment


      #3
      HTML tags?



      Kent,

      I've dealt with this issue numerous times and here are=20
      your options.

      1. Use a hex editor to remove the html tags from a copy=20
      of the merchant.mvc. You should naturally consult Miva=20
      first and make sure that it is acceptable for you to do=20
      that for the purpose you are going to be doing it. Blah=20
      blah I don't recommend it, blah blah CYA I never said to=20
      do it, blah blah I only mention it out of thoroughness=20
      and actually recommend you do something else like one of=20
      the other options below :)

      2. Create an new merchant.mvc stub file to replace the=20
      default stub file. In it comment out the opening html tag=20
      by outputting your doc type, opening xml tag, and=20
      whatever else you need, and then opening a comment and=20
      then do an MvDO to the real merchant.mvc. Then have the=20
      first thing the UIModule does be to close that comment.=20
      Then as the last thing the UIModule does you need to do=20
      an MvEXIT so that you abort out of the merchant.mvc=20
      completely so as to avoid the final html tag from being=20
      output.

      3. Create your own merchant.mvc stub file except in your=20
      script have the script call config.mvc, util.mvc, and=20
      merchant.mvc as library files and your script does the=20
      outer execution wrap instead of merchant.mvc

      I have TESTED all the above and each method works. Our=20
      QwkWrap software in its various incarnations has used=20
      both method 2 and 3 to achieve goals that require the=20
      elimination of the html opening tag.=20

      I would advise that method 2 will probably end up being=20
      the easiest for you to implement.

      - Jeff Huber
      President 4TheBest eCommerce Solutions
      http://4TheBest.com
      [email protected]
      760-742-1469



      -----Original Message-----
      From: [email protected] =
      [mailto:[email protected]]
      On Behalf Of Kent
      Sent: Monday, January 05, 2004 3:28 PM
      To: Miva Merchant coders list
      Subject: [mrc] HTML tags?


      Hi folks --

      I'm doing a custom module that outputs some product data in XML format. =
      I=20
      want to find out how to get rid of the HTML and /HTML tags that =
      Merchant=20
      normally generates. I took a look at the source of merchant.mv 4.13, =
      and=20
      found that these two tags are hard-coded, in-line in the file. That's=20
      annoying enough, but the client is running compiled. Does anyone know =
      if=20
      there's a way to suppress these tags in compiled Merchant?

      Thanks --

      Kent Multer | /| P.O.Box 701895, Dallas TX =
      75370
      Magic Metal Productions | / | (214) 824 8937 voice/fax
      | | [email protected]
      * Web designer/developer http://TheMagicM.com
      * Miva Script consultant
      * Author, The Official Miva Web Scripting Book -- available on-line:
      =
      <A HREF ="http://www.amazon.com/exec/obidos/ISBN=3D0966103211/magicmetalproducA">http://www.amazon.com/exec/obidos/ISBN=3D0966103211/magicmetalproducA</A>


      Comment


        #4
        HTML tags?



        Jeff --

        Thanks for your suggestions. I figured there'd be someone on this list who
        had dealt with this problem before :^) .

        I had pretty much decided to try something like your method 3. Write a
        separate script that initializes the Merchant environment, and then just
        use MvDO to call the function that outputs the XML.

        Since I have the full source of Merchant 4.13, I should be able to figure
        out everything I need to make this work.

        <soapbox> BTW, I do feel that Miva really shot themselves in the foot by
        limiting the access to the source; now there's no way for new developers to
        find out tricky stuff like this. </soapbox>

        Thanks --



        >Kent,
        >
        >I've dealt with this issue numerous times and here are
        >your options.
        >
        >1. Use a hex editor to remove the html tags from a copy
        >of the merchant.mvc. You should naturally consult Miva
        >first and make sure that it is acceptable for you to do
        >that for the purpose you are going to be doing it. Blah
        >blah I don't recommend it, blah blah CYA I never said to
        >do it, blah blah I only mention it out of thoroughness
        >and actually recommend you do something else like one of
        >the other options below :)
        >
        >2. Create an new merchant.mvc stub file to replace the
        >default stub file. In it comment out the opening html tag
        >by outputting your doc type, opening xml tag, and
        >whatever else you need, and then opening a comment and
        >then do an MvDO to the real merchant.mvc. Then have the
        >first thing the UIModule does be to close that comment.
        >Then as the last thing the UIModule does you need to do
        >an MvEXIT so that you abort out of the merchant.mvc
        >completely so as to avoid the final html tag from being
        >output.
        >
        >3. Create your own merchant.mvc stub file except in your
        >script have the script call config.mvc, util.mvc, and
        >merchant.mvc as library files and your script does the
        >outer execution wrap instead of merchant.mvc
        >
        >I have TESTED all the above and each method works. Our
        >QwkWrap software in its various incarnations has used
        >both method 2 and 3 to achieve goals that require the
        >elimination of the html opening tag.
        >
        >I would advise that method 2 will probably end up being
        >the easiest for you to implement.
        >
        >- Jeff Huber
        >President 4TheBest eCommerce Solutions
        >http://4TheBest.com
        >[email protected]
        >760-742-1469
        >
        >
        >
        >-----Original Message-----
        >From: [email protected] [mailto:[email protected]]
        >On Behalf Of Kent
        >Sent: Monday, January 05, 2004 3:28 PM
        >To: Miva Merchant coders list
        >Subject: [mrc] HTML tags?
        >
        >
        >Hi folks --
        >
        >I'm doing a custom module that outputs some product data in XML format. I
        >want to find out how to get rid of the HTML and /HTML tags that Merchant
        >normally generates. I took a look at the source of merchant.mv 4.13, and
        >found that these two tags are hard-coded, in-line in the file. That's
        >annoying enough, but the client is running compiled. Does anyone know if
        >there's a way to suppress these tags in compiled Merchant?

        Kent Multer | /| P.O.Box 701895, Dallas TX 75370
        Magic Metal Productions | / | (214) 824 8937 voice/fax
        | | [email protected]
        * Web designer/developer http://TheMagicM.com
        * Miva Script consultant
        * Author, The Official Miva Web Scripting Book -- available on-line:
        <A HREF ="http://www.amazon.com/exec/obidos/ISBN=0966103211/magicmetalproducA">http://www.amazon.com/exec/obidos/ISBN=0966103211/magicmetalproducA</A>


        Comment

        Working...
        X