How to add Store/coupon on home page


  • 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


    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"]



    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


    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



    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>


    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>



    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


    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



    Rajesh
    Newbie
     
    5 points

    Hi Josh,

    Im not using any child theme,


    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



    Rajesh
    Newbie
     
    5 points

    Hi,

    I have sent you mail, can you check



    Amit
    Newbie
     
    7 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.


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

You must be logged in to reply to this topic.