Search found 71 matches

Search found 71 matches

Re: how to get the number of total products found on product search results?

i change from $data['pagination_end'] = $pagination->end; to $data['pagination_end'] = $pagination->total; and it works perfect, many thanks for your help @straightlight and there is no need to change php code in system/library/pagination.php in template, just add {{ pagination_end }} anywhere if yo...

Jump to post
  • Wed Sep 26, 2018 1:56 am
  • Replies 3
  • Views 95
Re: how to get the number of total products found on product search results?

thanks for your reply.
but it only shows the number of total pages.
i need to get the number of total products.
can you help again?

Jump to post
  • Wed Sep 26, 2018 1:45 am
  • Replies 3
  • Views 95
how to get the number of total products found on product search results?

how to get the number of total products found on product search results?
for example: Showing 1 to 15 of 22 (2 Pages)
get the number 22

Jump to post
  • Tue Sep 25, 2018 4:34 am
  • Replies 3
  • Views 95
Re: how to show each product's tag name links on product search results?

DigitCart wrote:
Tue Aug 21, 2018 4:41 am
Hi,
Please see this solution, it will help you:
https://stackoverflow.com/questions/516 ... 8#51626408
thank you very much for your help.
it works great now.

Jump to post
  • Wed Aug 22, 2018 1:53 am
  • Replies 3
  • Views 104
how to show each product's tag name links on product search results?

how to show each product's tag name links on product search results? (need to show it below product title and above product description.please see the attached photo)
just like it shows on product page.

Jump to post
  • Tue Aug 21, 2018 4:02 am
  • Replies 3
  • Views 104
Re: please help translate php code into twig

kestas wrote:
Mon Jul 09, 2018 6:50 pm
Hi,
I do not tried, but you can try this

Code: Select all

{{ random(""~apple~", "~orange~", "~citrus~"") }}
it does not work and your site is down.

Jump to post
  • Mon Jul 09, 2018 7:03 pm
  • Replies 8
  • Views 284
Re: please help translate php code into twig

TWIG is only use for the template (View) files. All programming related part can be done by PHP only. Also, you can not use PHP programming function into the twig file. It is template engine you can read about all the syntax of twig on below URL - https://twig.symfony.com/doc/2.x/ thanks for you he...

Jump to post
  • Mon Jul 09, 2018 6:15 pm
  • Replies 8
  • Views 284
Re: please help translate php code into twig

synapseindia wrote:
Mon Jul 09, 2018 1:31 pm
You can use below online tool to convert PHP to TWIG .

https://php2twig.com/index.php

Thanks
already tried,but it didn't work.

Jump to post
  • Mon Jul 09, 2018 3:01 pm
  • Replies 8
  • Views 284
please help translate php code into twig

<?php
$handle = fopen('https://www.opencart.com', 'r');
$content = '';
while(!feof($handle)){
$content .= fread($handle, 8080);
}
echo $content;
fclose($handle);
?>

Jump to post
  • Sun Jul 08, 2018 7:32 pm
  • Replies 8
  • Views 284
Re: css 图片 如何去除cache

需要把网站目录/image/cache/下的图片全部删除,然后清除浏览器缓存就可以了

Jump to post
  • Wed May 16, 2018 1:40 am
  • Replies 2
  • Views 1060
Re: site loading time too high

try the following:
ALTER TABLE `oc_product_to_category` ADD INDEX ( `category_id` );
ALTER TABLE `oc_seo_url` ADD INDEX ( `keyword` );

Jump to post
  • Mon Aug 07, 2017 8:51 pm
  • Replies 7
  • Views 641
Re: How do I limit amount of products in each category?

$pagination->total = $product_total = 1000; # is what i need,but the category page still loads slow. 1 quick query counts total records in table with given filter ( category, searchstring or tag ): $sql = "SELECT COUNT(DISTINCT p.product_id) AS total"; Returns 1 value i need a better solution. i ne...

Jump to post
  • Wed Jul 20, 2016 4:12 pm
  • Replies 20
  • Views 2946
Re: How do I limit amount of products in each category?

You can look for an extension on the site that would match your needs. If you are unable to find any results, you can always post a new topic in the commercial support forum to get this done as a custom job. please get out of here since you are not willing to help. if i can find an extension,i will...

Jump to post
  • Wed Jul 20, 2016 11:01 am
  • Replies 20
  • Views 2946
Re: How do I limit amount of products in each category?

Solution is already given twice! Perhaps you learn to read and check the queries in product-model. Products / page set limit in query. There are no more products loaded than the value set in limit ( limit is product / page ) $sql .= " LIMIT " . (int)$data['start'] . "," . (int)$data['limit']; pleas...

Jump to post
  • Wed Jul 20, 2016 3:13 am
  • Replies 20
  • Views 2946
Re: How do I limit amount of products in each category?

it is not about products per page. it is about not to select all the products from database per category. Just wondering why you would limit your sales this way? If you don't want to show more than 100 products per category, maybe you should rethink your categories creating more of them or perhaps ...

Jump to post
  • Wed Jul 20, 2016 2:18 am
  • Replies 20
  • Views 2946
Re: How do I limit amount of products in each category?

Solution is already given twice! Perhaps you learn to read and check the queries in product-model. Products / page set limit in query. There are no more products loaded than the value set in limit ( limit is product / page ) $sql .= " LIMIT " . (int)$data['start'] . "," . (int)$data['limit']; pleas...

Jump to post
  • Wed Jul 20, 2016 2:14 am
  • Replies 20
  • Views 2946
Re: How do I limit amount of products in each category?

it is not about products per page.
it is about not to select all the products from database per category.

Jump to post
  • Sun Jul 17, 2016 1:22 am
  • Replies 20
  • Views 2946
Re: How do I limit amount of products in each category?

If you show limited products per page, then page will load fast. You can follow instructions mentioned in first post. please don't answer to my question again,your English is too bad to understand my question. if it is as what you said,i will not post a question here. For example, I have 1000 produ...

Jump to post
  • Sun Jul 17, 2016 1:20 am
  • Replies 20
  • Views 2946
Re: How do I limit amount of products in each category?

I mean there is no way that someone would browse 1000 products therefore large amount of records only slowing things down As i understand, but i said above based on this line. See when query is made all products are not called from database, but only part of it are called. So slowing things down is...

Jump to post
  • Sat Jul 16, 2016 3:41 pm
  • Replies 20
  • Views 2946

Search found 71 matches