How to add Store/coupon on home page

WordPress Business Themes Forums Responsive Themes Coupon Theme How to add Store/coupon on home page

How to add Store/coupon on home page

October 15, 2017
 Rajesh

  • Rajesh
    Newbie 5 points

    Dear support team,

    I would like to add different categories of coupon/store in home page

    1) Popular coupon/store
    2) Latest coupon/store
    3) Coupon for the day
    4) Ending soon

    October 15, 2017 at 6:37 pm
  • Josh
    Josh
    Super Guru 13,887 points

    Hello Rajesh,
    You can use the Page Builder to create own Homepage and add items you want.Use queries to display listings you want
    Alternatively edit the file Appearance >Editor >home-layout-coupon1.php.For example to display popular listings use <?php echo do_shortcode('[LISTINGS dataonly=1 show=8 custom="popular"]'); ?>

    More Examples:
    [LISTINGS dataonly=1 show=8 custom="new"]
    [LISTINGS dataonly=1 show=8 custom="random"]
    [LISTINGS dataonly=1 show=8 custom="featured"]

    October 16, 2017 at 1:37 pm

  • Rajesh
    Newbie 5 points

    Hi Josh,

    When i tried page builder i got the error, Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in

    October 16, 2017 at 5:19 pm
  • Josh
    Josh
    Super Guru 13,887 points

    Please send in a ticket so we can take a closer look at the issue >>http://s.premiumpress.com/index.php?/Tickets/Submit

    October 16, 2017 at 5:30 pm

  • Rajesh
    Newbie 5 points

    Hi Josh,

    I raised a ticket on Page builder error & got resolved,

    Regarding the query on Listing like featured, New arrival, i couldn’t make it,

    <div id=”car1″ class=”owl-carousel wlt_search_results grid_style style1″>
    <?php echo do_shortcode(‘[LISTINGS dataonly=1 show=8 custom=”endsooncoupon” ]’); ?>
    </div>

    October 18, 2017 at 8:00 pm
  • Josh
    Josh
    Super Guru 13,887 points

    Hello Rajesh,
    Simply make a copy of the above code.For example:

    <div id="car1" class="owl-carousel wlt_search_results grid_style style1">
    <?php echo do_shortcode('[LISTINGS dataonly=1 show=8 custom="endsooncoupon"]'); ?>
    </div>

    <div id="car1" class="owl-carousel wlt_search_results grid_style style1">
    <?php echo do_shortcode('[LISTINGS dataonly=1 show=8 custom="new"]'); ?>
    </div>

    <div id="car1" class="owl-carousel wlt_search_results grid_style style1">
    <?php echo do_shortcode('[LISTINGS dataonly=1 show=8 custom="featured"]'); ?>
    </div>

    October 19, 2017 at 1:32 pm

  • Rajesh
    Newbie 5 points

    Hi Josh,

    I have added the above code in home-layout-coupon1.php but couldn’t find any change in my website

    November 5, 2017 at 4:02 pm
  • Josh
    Josh
    Super Guru 13,887 points

    Hello Rajesh,
    Are you using a child theme?If so then file to edit is home.php in your child theme

    November 6, 2017 at 12:17 pm

  • Rajesh
    Newbie 5 points

    Hi Josh,

    Im not using any child theme,

    November 9, 2017 at 10:42 am
  • Josh
    Josh
    Super Guru 13,887 points

    Hello Rajesh,
    Please clear browser cache and if using a cache plugin disable it.Also just try the code <?php echo do_shortcode('[LISTINGS dataonly=1 show=8 custom="endsooncoupon"]'); ?> without the html codes.If still not working send me an email >>joshnjengak@gmail.com

    November 10, 2017 at 1:42 pm

  • Rajesh
    Newbie 5 points

    Hi,

    I have sent you mail, can you check

    November 12, 2017 at 4:48 pm

  • Amit
    Newbie 8 points

    Considering this Examples:
    [LISTINGS dataonly=1 show=8 custom=”new”]
    [LISTINGS dataonly=1 show=8 custom=”random”]
    [LISTINGS dataonly=1 show=8 custom=”featured”]

    What query should I write to get listings from a particular category. Suppose I want to display all new coupons in electronics category.

    April 12, 2018 at 7:56 am
Viewing 12 posts - 1 through 12 (of 12 total)

Didn't find what you were after?

Chat with us now

or contact our support team