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

Newbie

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

I'm no longer quite active at the Forum, to reach me, better contact: jti@jacob.ch
My free Opencart LIGHT 1.5.6.5 Code is available on GitHub soon,
a Demoversion of it can be seen in Action here: http://www.bigmax.ch
930+ FREE OC Extension-Repositories - from OC v.1.5.x up, on the
world's largest OC-related Github Site: https://github.com/IP-CAM
Image


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?

Newbie

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.

I'm no longer quite active at the Forum, to reach me, better contact: jti@jacob.ch
My free Opencart LIGHT 1.5.6.5 Code is available on GitHub soon,
a Demoversion of it can be seen in Action here: http://www.bigmax.ch
930+ FREE OC Extension-Repositories - from OC v.1.5.x up, on the
world's largest OC-related Github Site: https://github.com/IP-CAM
Image


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 / DigitCart


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.

Newbie

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

I'm no longer quite active at the Forum, to reach me, better contact: jti@jacob.ch
My free Opencart LIGHT 1.5.6.5 Code is available on GitHub soon,
a Demoversion of it can be seen in Action here: http://www.bigmax.ch
930+ FREE OC Extension-Repositories - from OC v.1.5.x up, on the
world's largest OC-related Github Site: https://github.com/IP-CAM
Image


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?

For quick, professional OpenCart support please email info@antropy.co.uk


User avatar
Expert Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - Reigate, Surrey, 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?

Newbie

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 / DigitCart


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??

Newbie

Posts

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

Users browsing this forum: No registered users and 15 guests