Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Template variable for the count of products #1650

Closed
wants to merge 1 commit into from

Conversation

trcwebdesign
Copy link

With this change you can get at the template the count of the products including filtered
<hl; ?>>headline; echo " (" , $this->countProducts ,")" ?></hl; ?>>

With this change you can get at the template the count of the products including filtered
<<?php echo $this->hl; ?>><?php echo $this->headline; echo " (" , $this->countProducts ,")"  ?></<?php echo $this->hl; ?>>
@aschempp
Copy link
Member

aschempp commented May 24, 2016

Thanks for the PR!

Wouldn't it be the same as <?= count($this->products) ?> in the list template?

@mrothtrc
Copy link

Nope ..
count($this->products) = 5 (Pagination value and current displayed products)
countProducts = 52 or 251 if no filter active
The variable countProducts is set before any pagination and merging

@aschempp aschempp added this to the 2.4.0 milestone Jul 4, 2016
@aschempp aschempp closed this Jul 4, 2016
@aschempp
Copy link
Member

aschempp commented Jul 4, 2016

I have added template variables for all pagination information in 0769f37

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants