Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2006
    Location
    UK
    Posts
    306
    Plugin Contributions
    1

    Default Spurious HTML code in admin

    Using version 1.3.02 ZC
    Hi everyone, I am trying to determine where these odd bits of code are being generated from. I have highlighted with red rectangle.


    I have installed previously the mods 'sales reports' 'google froogle' and 'easy populate' - I have compared the 'orders.php' file, and found an anomoly, not sure if it is relevant but I am sure someone here can tell me.

    This code is in my current orders.php
    Code:
    $html_msg['EMAIL_TEXT_STATUS_COMMENTS'] = $notify_comments;
    which differs from this code from an untouched 1.3.02 orders.php
    Code:
     $html_msg['EMAIL_TEXT_STATUS_COMMENTS'] = nl2br($notify_comments);
    what does the difference between those pieces of code do?

    If the above has nothing to do with my rogue HTML, could you help point me in the right direction to other files that may be relevant?

    Many thanks for your time and help.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Spurious HTML code in admin

    It would seem to me that this comes from rogue content in your worldpay payment module's language file. Perhaps there is some sort of table content therein which is getting stored in the order as part of the name of the payment module, rather than merely using the name of the module for display.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Feb 2006
    Location
    UK
    Posts
    306
    Plugin Contributions
    1

    Default Re: Spurious HTML code in admin

    That is exactly what is happening DrByte, I had a worldpay image that was clickable in the checkout part of the process. It looks like this is where the HTML may be coming from, however I am trying to keep the method of the image, but not sure I can.

  4. #4
    Join Date
    Feb 2006
    Location
    UK
    Posts
    306
    Plugin Contributions
    1

    Default Re: Spurious HTML code in admin

    I have now reverted back to the default worldpay.php settings, which is a shame as it was good to be able to use a proper world pay image at the selection stage. ( I am able to do this with the PayPal module without adverse affect, I will show the codes that I tried.

    Here is the WorldPay module with image
    Code:
      define('MODULE_PAYMENT_WORLDPAY_TEXT_CATALOG_TITLE', '<img src="includes/templates/template_default/buttons/english/worldp.gif" align="middle" alt="Select to pay via WorldPay">');
      define('MODULE_PAYMENT_WORLDPAY_TEXT_ADMIN_TITLE', 'WorldPay Payment Gateway');
      define('MODULE_PAYMENT_WORLDPAY_TEXT_DESCRIPTION', 'Worldpay Payment Module');
      define('MODULE_PAYMENT_WORLDPAY_TEXT_ERROR_MESSAGE', 'Your transaction has been cancelled or declined.  Please try again');
      define('MODULE_PAYMENT_WORLDPAY_TEXT_TITLE', 'Credit Card via WorldPay');
    
    ?>
    that works fine but causes all kinds of grief in the admin part of the shop, not only to the default menu, but also to the contributions, in particular 'Sales Report' and 'Super Orders'.

    Here is the code for PayPal doing the same thing, only without affecting the admin aspect of ZC

    Code:
      define('MODULE_PAYMENT_PAYPAL_TEXT_ADMIN_TITLE', 'Paypal IPN');
      define('MODULE_PAYMENT_PAYPAL_TEXT_CATALOG_TITLE', '<img src="includes/templates/template_default/buttons/english/buywithpaypal.gif" align="middle" alt="Make selection to pay via PayPal">');
    There must be a difference the way the two php pages relay the info back to the zc as I have only modded the same define in each case. Anyway if it can't be done it can't be done, was worth a try :)

    PS if anyone is wondering why I am posting this at 5.00am in the morning, it's because my eldest just crawled in and woke us all up, now I can't get back to sleep so did this and had a cup of coffee ... getting tired again now, so job done
    Last edited by Pauls; 8 Jul 2006 at 04:50 AM.

 

 

Similar Threads

  1. v154 specials.html and reviews.html in admin point to site not admin
    By eyeb in forum General Questions
    Replies: 6
    Last Post: 2 Sep 2015, 04:46 AM
  2. v151 admin, I put html code at product description, but it shows text format at front page
    By peter888 in forum Templates, Stylesheets, Page Layout
    Replies: 23
    Last Post: 16 Dec 2013, 02:15 PM
  3. Replies: 2
    Last Post: 14 Dec 2013, 05:49 PM
  4. Admin automatically re-writes the description html code
    By NadiaUSA in forum General Questions
    Replies: 10
    Last Post: 14 Jul 2011, 01:22 PM
  5. HTML Editor preview changes to Plain Text with HTML code
    By Morph99 in forum Basic Configuration
    Replies: 5
    Last Post: 3 Jan 2011, 10:12 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR