Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2004
    Location
    Las Vegas
    Posts
    477
    Plugin Contributions
    0

    Default Made new pop, cant get it to display the text

    this was the problem....
    I wrote a new popup for paypal using the CVV popup as the guide obviously however i have a small problem.

    this is the original code from paypalwpp.php
    'module' => '<img src="' . MODULE_PAYMENT_PAYPALWPP_MARK_BUTTON_IMG . '" alt="' . MODULE_PAYMENT_PAYPALWPP_TEXT_BUTTON_ALTTEXT . '" /><span style="font-size:11px; font-family: Arial, Verdana;"> ' . MODULE_PAYMENT_PAYPALWPP_MARK_BUTTON_TXT . '</span>');
    this is what i wrote template_biaf/paypalwpp.php
    'module' => '<img src="' . MODULE_PAYMENT_PAYPALWPP_MARK_BUTTON_IMG . '" alt="' . MODULE_PAYMENT_PAYPALWPP_TEXT_BUTTON_ALTTEXT . '" /><span style="font-size:11px; font-family: Arial, Verdana;"> ' . MODULE_PAYMENT_PAYPALWPP_MARK_BUTTON_TXT . '</span><br><font size="2">Process your Credit Card without being a Paypal member or signing up.</font>' . MODULE_PAYMENT_TEXT_PAYPAL_CCPROCESS .);
    i want the payment option to be displayed out as usual but under the Paypal Express option I want it to read
    Process your Credit Card without being a Paypal member or signing up. (More Info)
    the more info will be this link which is:

    http://batteriesinaflash.com/index.p...ccprocess_help

    My problem is where did i do wrong with the code I wrote in the second section of php above? i get this error when i use it.

    Parse error: syntax error, unexpected ')' in /home/batte9/public_html/includes/modules/payment/paypalwpp.php on line 302
    please let me know what i did wrong
    this was the follow up...

    Originally Posted by Ajeh
    . MODULE_PAYMENT_TEXT_PAYPAL_CCPROCESS .);
    That period next to the ) might do it ...
    when i removed the period, I didnt get the error anymore but it displayed this:
    Process your Credit Card without being a Paypal member or signing up.MODULE_PAYMENT_TEXT_PAYPAL_CCPROCESS
    instead of it calling to the define of MODULE_PAYMENT_TEXT_PAYPAL_CCPROCESS it displayed it out.
    so ajeh asked if the MODULE_PAYMENT_TEXT_PAYPAL_CCPROCESS was defined and this was my reply
    And this constant is defined ...
    MODULE_PAYMENT_TEXT_PAYPAL_CCPROCESS
    I believe so, this is what i have for MODULE_PAYMENT_TEXT_PAYPAL_CCPROCESS
    define('MODULE_PAYMENT_TEXT_PAYPAL_CCPROCESS', '(<a href="javascript:popupWindow(\'' . zen_href_link(FILENAME_POPUP_CCPROCESS_HELP) . '\')">' . 'More Info' . '</a>)');
    Now that you up to speed....

    What is wrong with my code..
    User of zencart

  2. #2
    Join Date
    Jul 2004
    Location
    Las Vegas
    Posts
    477
    Plugin Contributions
    0

    Default Re: Made new pop, cant get it to display the text

    I really need to get this resolved, can someone take a look at this code and figure out what I did wrong,

    thank you
    User of zencart

 

 

Similar Threads

  1. Pop-up window on Cart page does not display text
    By giftmeister in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 4 Oct 2011, 04:30 AM
  2. cant get 2 columns to display
    By demz001 in forum General Questions
    Replies: 7
    Last Post: 19 Nov 2008, 09:04 AM
  3. I cant get it NavWrapper text color
    By ryanb4614 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 26 Aug 2008, 08:42 PM
  4. Cant get new products to show on Home Page
    By brimsjewelry in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 14 Dec 2007, 07:09 AM

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