Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Mar 2008
    Posts
    4
    Plugin Contributions
    0

    Default Remove the Discount Codes info on Invoice

    On the html invoice the discount code appears as a link to a popup window. Is there a way of removing this link?

    The reason is that when I use the PDFOC, the invoice prints the link to the popup window, and the whole invoice gets pretty messy. I figured that the easiest way to omit this would be to remove the link, as it is pretty unnecessary.

    There might be some other solution to fix this that I am not aware of?

    Zen-Cart 1.3.8a

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,532
    Plugin Contributions
    127

    Default Re: Remove the Discount Codes info on Invoice

    If you don't like this, edit the file includes/modules/order_total/ot_coupon.php, go to the function process() and delete the code which is appended to $this->title. A more sophisticated fix (which I am adding to the next version of Quantity Discounts) would involve checking the current page and printing the link if the current page is checkout_payment.
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  3. #3
    Join Date
    Mar 2008
    Posts
    4
    Plugin Contributions
    0

    Default Re: Remove the Discount Codes info on Invoice

    I did as you described and deleted the code appended to $this->title in the function process () part. But I couldn't observe any changes on the html invoices. Will the changes only appear on new invoices created after the change?

  4. #4
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,532
    Plugin Contributions
    127

    Default Re: Remove the Discount Codes info on Invoice

    Correct. To change existing invoices you would need to update your database.
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  5. #5
    Join Date
    Mar 2008
    Posts
    4
    Plugin Contributions
    0

    Default Re: Remove the Discount Codes info on Invoice

    Ok. Now I've tested with the changes. But it does not remove the link to the popup window, hence the same link to the popup is printed in the PDFOC invoice. Isn't there a way of disabling this popup window?

 

 

Similar Threads

  1. v139b How to remove the price from the Invoice?
    By tonybrown in forum Customization from the Admin
    Replies: 0
    Last Post: 15 Jan 2013, 03:09 PM
  2. Remove the category picture from the top of the product info page.
    By alterego55 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 1 Oct 2010, 06:56 PM
  3. how do i remove sales discount info?
    By what44 in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 24 Oct 2007, 09:58 PM
  4. show sale/special/ other discount info on invoice
    By sanguisdesign in forum Managing Customers and Orders
    Replies: 3
    Last Post: 19 Oct 2007, 03:30 AM
  5. how do i remove my address from the invoice header?
    By tarynhipp in forum General Questions
    Replies: 4
    Last Post: 28 Jan 2007, 04:05 PM

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