Results 1 to 10 of 34

Hybrid View

  1. #1
    Join Date
    Oct 2007
    Posts
    26
    Plugin Contributions
    0

    Default Re: custom sidebox, i.e. perhaps for SSL or trust seal

    Hi,
    I am trying to use rowanwa's code to put a PayPal logo in one of my side panels. Here is the code:

    <?php
    // -----------------------------------
    // PAYPAL ACCEPTED SIDE PANEL ITEM
    // -----------------------------------

    // test if box should be displayed
    $show_MYK_PAYPAL = true;

    if ($show_MYK_PAYPAL == true) {
    ?>

    <div align="center" style="padding:5px;">
    <!-- PayPal Logo --><table border="0" cellpadding="10" cellspacing="0" align="center"><tr><td align="center"></td></tr>
    <tr><td align="center"><a href="#" onclick="javascript:window.open('https://www.paypal.com/uk/cgi-bin/webscr?cmd=xpt/cps/popup/OLCWhatIsPayPal-outside','olcwhatispaypal','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=400, height=350');"><img src="https://www.paypal.com/en_GB/i/bnr/vertical_solution_PP.gif" border="0" alt="Solution Graphics"></a></td></tr></table><!-- PayPal Logo -->

    </div>

    <?php }
    ?>

    The bit I have highlighted red is straight from the PayPal web site. I am getting the following error message when I turn the sidebox on:
    Parse error: syntax error, unexpected T_STRING in /pathtomystore/store/includes/modules/sideboxes/MYK_PAYPAL.php on line 7
    Line 7 is the one that says: $show_MYK_PAYPAL = true;

    I am no expert in PHP, in fact I have never programmed in PHP... if anyone can say what the problem might be I would be very grateful.

    Thanks,
    RtX

  2. #2
    Join Date
    Aug 2007
    Posts
    12
    Plugin Contributions
    2

    Default Re: custom sidebox, i.e. perhaps for SSL or trust seal

    Hi RtX,

    I tested your code and it worked for me on Zen Cart 1.3.6. Have you tried re-uploading the file and testing it again? From what I can see, there's no syntax error in the code you have provided.

    I will be updating my module contributions for version 1.3.8 over the next week or so. At the same time, I will check to make sure the custom sidebox code still works for 1.3.8.

  3. #3
    Join Date
    Oct 2007
    Posts
    26
    Plugin Contributions
    0

    Default Re: custom sidebox, i.e. perhaps for SSL or trust seal

    Hi, rowanwa,
    I have uploaded various versions of the same text and get the same or similar error messages regardless. Someone has advised me that:

    PHP Code:
    if ($show_MYK_PAYPAL == true) { 
    should be


    PHP Code:
    if ($show_MYK_PAYPAL == "true") { 
    Frankly, I do not know if this is right, but I may give it a try.

    Maybe I'll also try re-typing the whole file rather than copying and pasting and editing. If I have any luck, I'll post again.

    Thanks,
    RtX

  4. #4
    Join Date
    Oct 2007
    Posts
    26
    Plugin Contributions
    0

    Default Re: custom sidebox, i.e. perhaps for SSL or trust seal

    I completely re-entered (by re-typing) the code and it worked. It looks the same but clearly is not. I think there must be a funny character or one that looks ok but is not what php expects somewhere in there. Thanks for responding.
    RtX

 

 

Similar Threads

  1. Replies: 1
    Last Post: 30 Jan 2014, 02:50 AM
  2. How to add Godaddy SSL seal to sidebox?
    By sewingzfun in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 7 Apr 2011, 03:40 AM
  3. GoDaddy SSL Site Seal sidebox blank
    By capete in forum Basic Configuration
    Replies: 0
    Last Post: 2 Jun 2009, 05:55 PM
  4. Godaddy SSL Seal sidebox
    By Linux in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 19 Jun 2007, 12:29 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