Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13
  1. #11
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: PHP code in new created sidebox

    Quote Originally Posted by DivaVocals View Post
    I really hate to resurrect such an old post, but I cannot find a support thread for the Blank Sidebox module.. After reading through every possible "Blank Sidebox" post this is the ONLY one that comes CLOSE to what I am trying to do..

    Trying to add the sign-up form for my client's mailing list to his store.. This code works on a defined page:

    Code:
    <?php
    echo do_shortcode('[wysija_form id="1"]');
    ?>
    This code does NOT work using the Editable Sidebox module (Editable Sidebox parses the PHP code effectively disabling it). So I'm now trying to figure out how to work this using the Blank Sidebox module.. Can any kind hearted person help me sort out how to add this to the Blank Sidebox??

    I've tried:
    Code:
    $content .= echo do_shortcode('[wysija_form id="1"]');
    AND
    Code:
    $content .= do_shortcode('[wysija_form id="1"]');
    Neither worked

    Answering my own question..

    Code:
      $content .= do_shortcode('[wysija_form id="1"]');
    Worked.. turns out made a copy and paste error when I first copied the code.. (left off a good chunk of the punctuation in the code I initially tried..

    Going to bed.. Tired.. and should have gotten my glasses out HOURS ago..

    Carry on..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  2. #12
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,681
    Plugin Contributions
    123

    Default Re: PHP code in new created sidebox

    You're right - blank sidebox did not have a support thread; I just created one.
    I'm not sure what do_shortcode is. What error are you getting?
    That Software Guy. My Store: Zen Cart Modifications
    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. #13
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: PHP code in new created sidebox

    Quote Originally Posted by swguy View Post
    You're right - blank sidebox did not have a support thread; I just created one.
    I'm not sure what do_shortcode is. What error are you getting?
    Hey Scott.. Thanks for creating the support thread..

    Not getting any errors now.. do_shortcode is a WordPress function.. Client has a WordPress blog, and he has a WordPress newsletter plugin he uses (MailPoet).. We wanted to drop the MailPoet signup form onto his Zen Cart store so that it's now present everywhere on his site.. Just a plain old link that took someone to his blog wouldn't work since the signup form is in a sidebar widget and not on a WordPress page. He prefers the sidebar widget as it makes his newsletter signup available everywhere..

    Once I put on my glasses and figured out my mistake, the form shows in the Zen Cart sidebox and works like a dream!!
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Can I place code in sidebox/banner_box.php
    By Bulletproofbody in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 23 May 2012, 06:57 AM
  2. PHP code in a blank sidebox
    By Lazar in forum Addon Sideboxes
    Replies: 0
    Last Post: 10 Aug 2011, 11:27 AM
  3. new sidebox created. how to add links??
    By maxy007 in forum Templates, Stylesheets, Page Layout
    Replies: 15
    Last Post: 15 Jul 2011, 12:00 PM
  4. Text-Link-Ads php code in Blank Sidebox
    By never2cute in forum Basic Configuration
    Replies: 1
    Last Post: 26 Dec 2008, 11:51 AM
  5. Want to put php code in sidebox
    By bgroup99 in forum Basic Configuration
    Replies: 0
    Last Post: 30 Nov 2007, 08:05 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