Results 1 to 8 of 8
  1. #1
    Join Date
    Aug 2006
    Location
    North Carolina
    Posts
    279
    Plugin Contributions
    0

    Default PDF Order Center display problem

    I haven't used the PDF order center in quite awhile, but I found a use today and it involve payments to a partner with coupons.
    When I used the pdf printout section, I gained some extra displayed code that I cannot seem to find and hide.

    Can anyone tell me where I can locate this and remove it?
    It's showing 2 extras sections here, one for Quantity Discount and the other for the standard coupon code. I just need to hide the javascript areas from the pdf printout.



    Sub-Total: $64.00
    mp3 download after checkout: $0.00
    <a href="javascript:alert('Your Current Quantity Discount\n\n 8 items @ $64.00 * 30% =
    $19.20\n\n\nTotal Discount: $19.20');">Quantity Discount</a>:
    -$19.20
    Discount Coupon: <a
    href="javascript:couponpopupWindow('http://store1.musicalcreations.com/index.php?main_pag
    e=popup_coupon_help&cID=11&zenid=84e76383bb088528376c4af50d864313')">tom</a
    > :
    -$6.40
    Total: $38.40




    It should look like this:


    Sub-Total: $64.00
    mp3 download after checkout: $0.00
    Quantity Discount: -$19.20
    Discount Coupon: tom -$6.40
    Total: $38.40




    thanks,
    Jeff Michaels,
    pres of Musical Creations Ltd.

  2. #2
    Join Date
    May 2005
    Posts
    110
    Plugin Contributions
    0

    Default Re: PDF Order Center display problem

    i have the same problem, anyone managed to fix it?

  3. #3
    Join Date
    Apr 2007
    Posts
    8
    Plugin Contributions
    0

    Default Re: PDF Order Center display problem

    Hi,

    If you have this problem, just remove this line : <a href="javascript:couponpopupWindow(\'' . zen_href_link(FILENAME_POPUP_COUPON_HELP, 'cID=' . $_SESSION['cc_id']) . '\')">

    And

    </a>
    just after $this->coupon_code in the file ot_coupon.php line 48 (includes/modules/order_total/ot_coupon.php)
    Save and reload the file of your server.

    Enjoy
    Last edited by evolussem; 16 Feb 2009 at 09:10 PM.

  4. #4
    Join Date
    Feb 2009
    Posts
    7
    Plugin Contributions
    0

    Default Re: PDF Order Center display problem

    Hello,
    Having problem with PDF display, it does not include comments on the PDF. I select the check box which allows the module to add comments but we just can not get comments to show. Any help would be great.

  5. #5
    Join Date
    May 2009
    Posts
    2
    Plugin Contributions
    0

    Default Re: PDF Order Center display problem

    Quote Originally Posted by evolussem View Post
    Hi,

    If you have this problem, just remove this line : <a href="javascript:couponpopupWindow(\'' . zen_href_link(FILENAME_POPUP_COUPON_HELP, 'cID=' . $_SESSION['cc_id']) . '\')">

    And

    </a>
    just after $this->coupon_code in the file ot_coupon.php line 48 (includes/modules/order_total/ot_coupon.php)
    Save and reload the file of your server.

    Enjoy
    Are you sure this is the correct file to modify? I tried your suggestion and it does nothing.

  6. #6
    Join Date
    Dec 2008
    Posts
    28
    Plugin Contributions
    1

    Default Re: PDF Order Center display problem

    The same problem here, doesn't work. I'm trying this for 2 days now, and it drives me nuts.

    Has anyone managed to find a solution? If so, please let me know.
    And of course, if I find the solution I will explain it here.

  7. #7
    Join Date
    Dec 2008
    Posts
    28
    Plugin Contributions
    1

    Default Re: PDF Order Center display problem

    I've found the solution

    You have to apply the fix as described above. That way you remove the link for the ''discount coupon name''.

    But the link in the word ''discount coupon'', is generated in another file. That file is order.php in admin/includes/classes/order.php

    On line 53 you replace

    PHP Code:
    $zc_coupon_link '<a href="javascript:couponpopupWindow(\'' zen_catalog_href_link(FILENAME_POPUP_COUPON_HELP'cID=' $coupon_link->fields['coupon_id']) . '\')">'
    with:

    PHP Code:
    $zc_coupon_link ''
    (this is not a double quote, but 2 single quotes)

    Almost at the end of line 55 you remove:

    PHP Code:
    </a
    That way it should work. Just a few comments:

    - This will only work for orders placed after you apply this fix.
    - This will cause that all links to the coupon info are removed in I think all pages. But if you want you can easily recover them with just restoring the files as they were before.

    The only thing that gets not restored, is the link on the coupon code. I think that one is stored in the database, and will not be created with new orders as long as the fix is applied. But I think that should not be a big issue.

    Hope this helps.
    (maybe not the most beautiful solution, but the only one that I could find)

  8. #8
    Join Date
    Dec 2008
    Posts
    28
    Plugin Contributions
    1

    Default Re: PDF Order Center display problem

    OOPS... This solution is not completely correct.

    The complete text should be:

    I've found the solution

    The link gets generated in admin/includes/classes/order.php
    (The link to the info popup causes the html)

    On line 53 you replace

    PHP Code:
    $zc_coupon_link '<a href="javascript:couponpopupWindow(\'' zen_catalog_href_link(FILENAME_POPUP_COUPON_HELP'cID=' $coupon_link->fields['coupon_id']) . '\')">'
    with:

    PHP Code:
    $zc_coupon_link ''
    (this is not a double quote, but 2 single quotes)

    Almost at the end of line 55 you remove:

    PHP Code:
    </a
    That way it should work. Just a few comments:

    - This will cause that the link to the coupon info is removed. You can easily recover the link by restoring the files as they were before.
    - Probably this fix will only work for 1.3.8(a), cause 1.3.7. is a bit different when it comes to this link.

    Hope this helps.

 

 

Similar Threads

  1. PDF Order Center
    By scubes13 in forum Addon Admin Tools
    Replies: 52
    Last Post: 9 Jan 2019, 03:06 PM
  2. PDF Order Center
    By cshellca in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 22 Aug 2010, 06:45 PM
  3. pdf order center
    By tavikki in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 23 Nov 2008, 07:36 PM
  4. PDF Order Center
    By londoner1988 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 6 Mar 2008, 09:38 AM

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