Strict Standards: Redefining already defined constructor for class bbdb in /home/themes/public_html/forums/bb-includes/db-mysql.php on line 12

Strict Standards: Declaration of BB_Walker_Blank::start_lvl() should be compatible with BB_Walker::start_lvl($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_lvl() should be compatible with BB_Walker::end_lvl($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::start_el() should be compatible with BB_Walker::start_el($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_el() should be compatible with BB_Walker::end_el($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127
Adding PHP function to Menu « ThemeShaper Forums

ThemeShaper Forums » Thematic

[closed]

Adding PHP function to Menu

(3 posts)
  • Started 5 years ago by initialsbr
  • Latest reply from kga
  • This topic is resolved
  1. initialsbr
    Member

    Alright. I'm still not quite getting the hang of this functions/hooks thing. But I'm determined.

    I'm using the WP E-Commerce plugin and I want to put a very minimal shopping cart in the menu. Right now I have the pages listed in the menu. To the right of the pages, I want something like "# items in shopping cart" to show up. Apparently this is the PHP code I use to place the shopping cart places...

    <?php echo nzshpcrt_shopping_basket(); ?>

    So how do I do this? I tried a couple of things but they just ended up breaking the site.

    Also, I'm assuming the # of items would change automatically if I get the shopping cart right. But maybe I have to write some PHP code to make that happen?

    Posted 5 years ago #

  2. Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 440

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 510

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 512


    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 440

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 510

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 512
    flick

    Member

    @initialsbr: Cozmoslabs has a tutorial on adding a search box to the menu; I'm sure it will be helpful for you.

    It involves removing the default menu (remove action) and putting the menu back in again with modifications - in your case the shopping cart - by adding the action.

    Posted 5 years ago #
  3. kga
    Member

    thought I'd chime in to verify that this did work - I'm trying to do the same thing, but I really want the cart at the TOP of the #header, not necessarily IN the #access div. (which I started a thread regarding).

    Posted 5 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.


Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method GA_Filter::spool_analytics() should not be called statically in /home/themes/public_html/forums/bb-includes/wp-functions.php on line 586

Strict Standards: Non-static method GA_Filter::spool_this() should not be called statically in /home/themes/public_html/forums/my-plugins/googleanalytics.php on line 183