Store page

  • Alexey
    Alexey
    Newbie 7 points
    March 5, 2015 at 2:54 pm

    Hello, anybody know how i can show a few coupons at the top of store page?

  • Hemanta Chakladar
    Hemanta Chakladar
    Super Guru 1,710 points
    March 5, 2015 at 3:03 pm

    store page already show coupons from that store. Then what coupons you want to show ?

  • Alexey
    Alexey
    Newbie 7 points
    March 5, 2015 at 3:26 pm

    I wanna shop featured coupons at the top of store page.

  • Hemanta Chakladar
    Hemanta Chakladar
    Super Guru 1,710 points
    March 5, 2015 at 3:31 pm

    you can use hook_page_before()

  • Alexey
    Alexey
    Newbie 7 points
    March 5, 2015 at 3:32 pm

    Thank you for answer. Please, where i can read about hook_page_before() ?

  • Hemanta Chakladar
    Hemanta Chakladar
    Super Guru 1,710 points
    March 5, 2015 at 3:41 pm
  • Alex Morgan
    Alex Morgan
    Super Guru 1,111 points
    March 5, 2015 at 3:41 pm
  • Alexey
    Alexey
    Newbie 7 points
    March 5, 2015 at 3:51 pm

    Thanks and mmm.. where i must add this hook? 🙂

  • Hemanta Chakladar
    Hemanta Chakladar
    Super Guru 1,710 points
    March 5, 2015 at 4:00 pm

    themes functions.php

    @Alex, PPthems navigation bar has no links to the new docs of the theme. Please add links to the docs for access to public.

  • Alexey
    Alexey
    Newbie 7 points
    March 5, 2015 at 4:05 pm

    Hemanta, im add [code title=””] hook_page_before() [/code] in my functions.php file and have a blank screen on my site. So may be i do something wrong?

  • Alexey
    Alexey
    Newbie 7 points
    March 5, 2015 at 4:06 pm

    my functions.php
    [code title=””]hook_page_before()
    if(defined(‘TEMPLATEPATH’) && !defined(‘THEME_VERSION’) ){ include(“framework/_config.php”); } [/code]

  • Hemanta Chakladar
    Hemanta Chakladar
    Super Guru 1,710 points
    March 5, 2015 at 4:43 pm

    Please read the documentation before using any hook. Otherwise it may not works.

    Hooks is used add extra code in the core them.

    Now, what code or what are are intending to use/display before the pages ?

  • Alexey
    Alexey
    Newbie 7 points
    March 5, 2015 at 5:12 pm

    im just add
    [code title=””]function hook_page_before()[/code]

  • Hemanta Chakladar
    Hemanta Chakladar
    Super Guru 1,710 points
    March 5, 2015 at 6:03 pm

    Not that, what to want to show before page ? (top of the page ) ?

  • Alexey
    Alexey
    Newbie 7 points
    March 5, 2015 at 6:06 pm

    I wanna show featured coupons.
    So for example i have a good coupon for amazon store. Im make this coupon featured and i need to show this coupon always in top of store page.

Viewing 15 posts - 1 through 15 (of 15 total)

New Business Themes for WordPress 2020

Start your new website today!

View Business Themes