Search found 77 matches

Search found 77 matches

Re: Can we simply empty oc_session table from phpmyadmin ?

yes,you can.
without session,you will have to sign in again.
simply empty oc_session table will force you to sign in again.

Jump to post
  • Thu Dec 20, 2018 2:08 am
  • Replies 3
  • Views 470
Re: Using my 2.3.0.2 database to build a new 3.0.2.0 store

you need to start over, old extensions (2.3+) cannot be used in opencart 3.0+

Jump to post
  • Tue Dec 18, 2018 5:27 am
  • Replies 5
  • Views 308
category page suggestion

it is better to show only latest 2000 products per category.
if having too many products in one category, then the category page will show down the whole site.
what do you think?

Jump to post
  • Thu Dec 13, 2018 11:09 pm
  • Replies 0
  • Views 526
Re: how to rename "&search=" in seo search url ?

paulfeakins wrote:
Thu Nov 29, 2018 6:16 pm
What version of OpenCart?

If 2 you can use this:
https://www.opencart.com/index.php?rout ... n_id=21827

If 3 it should be possible by default?
it does not work.

Jump to post
  • Thu Nov 29, 2018 11:55 pm
  • Replies 3
  • Views 212
how to rename "&search=" in seo search url ?

how to rename "&search=" in seo search url ?

Jump to post
  • Thu Nov 29, 2018 3:28 am
  • Replies 3
  • Views 212
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 127
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 127
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 127
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 122
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 122
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 330
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 330
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 330
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 330
Re: css 图片 如何去除cache

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

Jump to post
  • Wed May 16, 2018 1:40 am
  • Replies 2
  • Views 1287
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 706
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 3301
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 3301
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 3301

Search found 77 matches