Pagination

  • Posts: 82
  • Thank you received: 0
13 years 10 months ago #4493

hi,
how can i change the location of the Pagination from up to under hika category, enclose a pic how it is today?

Attachments:
Last edit: 13 years 10 months ago by amitm.

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13375
  • MODERATOR
13 years 10 months ago #4494

Please Log in or Create an account to join the conversation.

  • Posts: 82
  • Thank you received: 0
13 years 10 months ago #4508

i try to modify the file via the view panel, but it is strange, i can find the listing_div file but the path to it is not right, so when i try to save i am getting an error
"Could not make the file /home/admin/domains/pickme.co.il/public_html/templates/jm-sport/html/com_hikashop/category/listing_div.php writable"
when i am going to the file, there is no file in that path, the file is under
public_html/components/com_hikashop/views/product/tmpl

when i try via ftp to change the file i am getting error, when you say near the top do you mean those lines:
<?php if($this->params->get('show_limit') && $this->pageInfo->elements->total){ ?>
<form action="<?php echo hikashop::completeLink(JRequest::getWord('ctrl').'&task='.JRequest::getWord('task').$this->itemid.'&cid='.reset($this->pageInfo->filter->cid)); ?>" method="post" name="adminForm_<?php echo $this->params->get('main_div_name').$this->category_selected;?>">
<div class="hikashop_products_pagination">
<?php echo $this->pagination->getListFooter(); ?>
<span class="hikashop_results_counter"><?php echo $this->pagination->getResultsCounter(); ?></span>
</div>
<input type="hidden" name="filter_order_<?php echo $this->params->get('main_div_name').$this->category_selected;?>" value="<?php echo $this->pageInfo->filter->order->value; ?>" />
<input type="hidden" name="filter_order_Dir_<?php echo $this->params->get('main_div_name').$this->category_selected;?>" value="<?php echo $this->pageInfo->filter->order->dir; ?>" />

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13375
  • MODERATOR
13 years 10 months ago #4509

That's because you have access write issues. Please allow access writes in the folder /home/admin/domains/pickme.co.il/public_html/templates/jm-sport/html/com_hikashop/category/ (and if it doesn't exists, please reate it first).

Yes I mean those lines + the next 3 lines.

Please Log in or Create an account to join the conversation.

  • Posts: 82
  • Thank you received: 0
13 years 10 months ago #4510

one more thing about the pagination, its not counting products, its counting how many time the products showing on the shop, i will explain: if i have one product but i connect it to 5 categories, it will count 5 products - its a little confusing and it lead to mistake, lets say that i have 2 products connect to 6 categories, it will count 12 products and when a user will see the product page he will see just 2 product but the counting will show him 2 from 12, and when he will try to go to next page he will get nothing.

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13375
  • MODERATOR
13 years 10 months ago #4511

Mmm. That's possibly a bug.

Could you try to edit the file components/com_hikashop/views/product/view.html.php and change the line:
$database->setQuery('SELECT DISTINCT count(*)'.$query);
by:
$database->setQuery('SELECT DISTINCT count(b.*)'.$query);
and try again ?

Please Log in or Create an account to join the conversation.

  • Posts: 82
  • Thank you received: 0
13 years 10 months ago #4513

when i am adding that line as you say the Pagination disappear.

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13375
  • MODERATOR
13 years 10 months ago #4514

That's normal, there is no pagination displayed if there is less than the "number of items" on the page.

Please Log in or Create an account to join the conversation.

  • Posts: 82
  • Thank you received: 0
13 years 10 months ago #4515

can it be controlled? lets say 10,20,30 or 5,10,15

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13375
  • MODERATOR
13 years 10 months ago #4516

Of course, in the options of your module/menu which lists the products, you can change the "number of items" option to what you want.

Please Log in or Create an account to join the conversation.

  • Posts: 82
  • Thank you received: 0
13 years 10 months ago #4524

hi,

i think that it is not working for me, even if i changing the list to 1 product the Pagination is not showing.

BR

Amit

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13375
  • MODERATOR
13 years 10 months ago #4525

Could you post a screenshot of the options of your products listing module as well as a link to the page where yu have it ?

Please Log in or Create an account to join the conversation.

  • Posts: 82
  • Thank you received: 0
13 years 10 months ago #4526

yes,

the link is my home page
www.pickme.co.il

Attachments:
Last edit: 13 years 10 months ago by amitm.

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13375
  • MODERATOR
13 years 10 months ago #4531

That's because of the change I told you to make. Pleas try to change the line
$database->setQuery('SELECT DISTINCT count(*)'.$query);
by:
$database->setQuery('SELECT DISTINCT count(b.product_id)'.$query);
in the file components/com_hikashop/views/product/view.html.php

That should be better.

Please Log in or Create an account to join the conversation.

  • Posts: 82
  • Thank you received: 0
13 years 10 months ago #4535

its now showing but the counting is not good, its counting not the products, it counts the number of connection of the products to the category. sorry for the troble that i am making.

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13375
  • MODERATOR
13 years 10 months ago #4536

Mmmm. Could you try this one then:
$database->setQuery('SELECT count( DISTINCT b.product_id)'.$query);

Please Log in or Create an account to join the conversation.

  • Posts: 82
  • Thank you received: 0
13 years 10 months ago #4538

yes, you are the man.
thanks a lot

Last edit: 13 years 10 months ago by amitm. Reason: SOLVED

Please Log in or Create an account to join the conversation.

  • Posts: 272
  • Thank you received: 3
  • Hikashop Business
13 years 9 months ago #8049

Resolved problem with pagination.

Last edit: 13 years 9 months ago by jameswadsworth.

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13375
  • MODERATOR
13 years 9 months ago #8051

This bug was fixed in previous versions so it's probably not the same bug even though the result is looking like it's the same.

Could you activate the debug mode of joomla and copy/paste the queries related to the jos_hikashop_product table ?

Please Log in or Create an account to join the conversation.

  • Posts: 272
  • Thank you received: 3
  • Hikashop Business
13 years 9 months ago #8056

Sorry Nicolas, our over sight. We still had random switched on!

Please Log in or Create an account to join the conversation.

Time to create page: 0.103 seconds
Powered by Kunena Forum