Post by saffamansoor » Sat Apr 20, 2019 9:29 pm

how can i add a "load more" button in the featured module which shows less products initially on homepage

New member

Posts

Joined
Wed Feb 13, 2019 3:16 pm

Post by IP_CAM » Sat Apr 20, 2019 9:43 pm

Show more products
https://www.opencart.com/index.php?rout ... n_id=24585
---
DE Filter (ajax + show more) v3.0 [trial]
https://www.opencart.com/index.php?rout ... n_id=35413
---
DE Filter (ajax + show more) v3.0
https://www.opencart.com/index.php?rout ... n_id=33710
---
Ajax load (view , show) more button (work with megafilter)
https://www.opencart.com/index.php?rout ... n_id=30122
---

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by saffamansoor » Sat Apr 20, 2019 9:52 pm

IP_CAM wrote:
Sat Apr 20, 2019 9:43 pm
Show more products
https://www.opencart.com/index.php?rout ... n_id=24585
---
DE Filter (ajax + show more) v3.0 [trial]
https://www.opencart.com/index.php?rout ... n_id=35413
---
DE Filter (ajax + show more) v3.0
https://www.opencart.com/index.php?rout ... n_id=33710
---
Ajax load (view , show) more button (work with megafilter)
https://www.opencart.com/index.php?rout ... n_id=30122
---
how do you use the second one on featured module? and is it free?

New member

Posts

Joined
Wed Feb 13, 2019 3:16 pm

Post by IP_CAM » Sun Apr 21, 2019 12:29 pm

Well, how should I know ? I don't use your Version.
But it's quoted as a 3 day free Test version, and that
should be sufficient time, to test it out. And then,
you'll have to pay for, if you want to further use it.
But better ask the Mod-Creator, if you have any
questions on such extensions, no-one else would
know, or then, probably not tell you, since it's not
a free Extension.
Good Luck! ;)
Ernie

PS: Personally, I would not buy an Extension, possibly
containing backlinks or even 'coded' content, to unlock
certain functions, or even able to be 'traced' by a Mod Seller.
But I don't know, what that Extension has and uses, so, I
cannot judge on anything, just take it as 'global' warning.

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by DigitCart » Sun Apr 21, 2019 3:49 pm

Hi
I have a paid extension that can do that:
https://www.opencart.com/index.php?rout ... n_id=33488
You can choose Loading method in module settings: with scroll or with button.

My Extensions


User avatar
Active Member

Posts

Joined
Thu Jun 22, 2017 5:32 pm


Post by saffamansoor » Mon Apr 22, 2019 8:00 pm

IP_CAM wrote:
Sun Apr 21, 2019 12:29 pm
Well, how should I know ? I don't use your Version.
But it's quoted as a 3 day free Test version, and that
should be sufficient time, to test it out. And then,
you'll have to pay for, if you want to further use it.
But better ask the Mod-Creator, if you have any
questions on such extensions, no-one else would
know, or then, probably not tell you, since it's not
a free Extension.
Good Luck! ;)
Ernie

PS: Personally, I would not buy an Extension, possibly
containing backlinks or even 'coded' content, to unlock
certain functions, or even able to be 'traced' by a Mod Seller.
But I don't know, what that Extension has and uses, so, I
cannot judge on anything, just take it as 'global' warning.
well i was looking for help in writing code for it instead of some paid extensions.

New member

Posts

Joined
Wed Feb 13, 2019 3:16 pm

Post by IP_CAM » Mon Apr 22, 2019 8:39 pm

Well, you're playing around with a Moneymaker Software,
so, better don't expect this to be a free heaven of wisdom,
despite of the fact, that some knowledge comes for free.
Good Luck! :D
Ernie

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by paulfeakins » Tue Apr 23, 2019 7:21 pm

saffamansoor wrote:
Mon Apr 22, 2019 8:00 pm
well i was looking for help in writing code for it instead of some paid extensions.
You're asking for someone to do this work for you and then tell you how to do it for free.

You can ask in forums for help with small bits of code and small issues but this is a whole extension.

Why do you think someone will spend 1/2 day of their time for you for free?

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by saffamansoor » Tue Apr 23, 2019 9:32 pm

paulfeakins wrote:
Tue Apr 23, 2019 7:21 pm
saffamansoor wrote:
Mon Apr 22, 2019 8:00 pm
well i was looking for help in writing code for it instead of some paid extensions.
You're asking for someone to do this work for you and then tell you how to do it for free.

You can ask in forums for help with small bits of code and small issues but this is a whole extension.

Why do you think someone will spend 1/2 day of their time for you for free?
not the whole code but at least some help to kick-start. I mean i am new to this platform, Don't know how to add jquery scripts?

New member

Posts

Joined
Wed Feb 13, 2019 3:16 pm

Post by DigitCart » Tue Apr 23, 2019 9:40 pm

You
take a look at other default modules to see how they work.
example:
File:
catalog\controller\extension\module\slideshow.php

Code:
$this->document->addStyle('catalog/view/javascript/jquery/swiper/css/opencart.css');
$this->document->addScript('catalog/view/javascript/jquery/swiper/js/swiper.jquery.js');

You can see how the css and javascript files are loaded.

My Extensions


User avatar
Active Member

Posts

Joined
Thu Jun 22, 2017 5:32 pm


Post by saffamansoor » Fri Apr 26, 2019 3:09 am

so i want a load more button in the featured module
i have loaded my loadmore.jquery.js file in featured.php present in catalog\controller\extension\module
my loadmore.jquery.js file is:


Code: Select all

$(function () {
    $("#item").slice(0, 4).show();
    $("#loadmore").on('click', function (e) {
        e.preventDefault();
        $("#item:hidden").slice(0, 4).slideDown();
        if ($("#item:hidden").length == 0) {
            $("#loadmore").fadeOut('slow');
        }
       
    });
});
and inside featured.twig i have added following things

given id "item" to the product

Code: Select all

 <div id = "item" class="product-layout col-lg-3 col-md-3 col-sm-6 col-xs-12"> 
and added a loadmore link in the end
Code: Select all

Code: Select all

 <a href="#" id="loadmore">Load More</a>
this isn't working...what is wrong with this??

New member

Posts

Joined
Wed Feb 13, 2019 3:16 pm
Who is online

Users browsing this forum: AdsBot [Google], Semrush [Bot], Shiftcom, SohBH and 421 guests