Search found 84 matches

Search found 84 matches

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 379
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 379
Re: css 图片 如何去除cache

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

Jump to post
  • Wed May 16, 2018 1:40 am
  • Replies 2
  • Views 1376
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 742
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 3621
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 3621
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 3621
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 3621
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 3621
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 3621
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 3621
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 3621
Re: How do I limit amount of products in each category?

If you are on version 2.1.0.2 or lowere then Go to admin - system - settings - store - edit - Default Items Per Page (Catalog) Here you can set the number. If you are on version 2.2.0.0 or higher then Go to admin - extension - themes - store - edit - Default Items Per Page (Catalog) Here you can se...

Jump to post
  • Sat Jul 16, 2016 11:17 am
  • Replies 20
  • Views 3621
How do I limit amount of products in each category?

For example, I have 1000 products in category N, but I want to limit the amount of product that are shown to 100 and I want other products to be hidden. (I mean there is no way that someone would browse 1000 products therefore large amount of records only slowing things down) Where is the query loca...

Jump to post
  • Fri Jul 15, 2016 5:19 pm
  • Replies 20
  • Views 3621
Is there a way to enable SSL for product page and canonical?

Is there a way to enable SSL for product page and canonical? why ssl is only available for register page,account page,login page,checking out page? I am using opencart 2.2.0.0 (Latest version). if anyone knows,please give a reply,thanks in advance! note: enable ssl in the admin,edit config and chang...

Jump to post
  • Sun May 29, 2016 3:55 pm
  • Replies 1
  • Views 260
what is wrong with the extensions store now?

what is wrong with the extensions store now?
Page not found when i am trying to download an extension i purchased.
Please help.

Jump to post
  • Mon Jan 25, 2016 1:48 am
  • Replies 1
  • Views 249
Re: image will not cache on opencart 2.1.0.2

i mean Product images exist in image/catalog/ but will not cache in image/cache/catalog/ automatically when people visit the products in the storefront.

Jump to post
  • Sun Jan 17, 2016 4:52 pm
  • Replies 2
  • Views 201
image will not cache on opencart 2.1.0.2

Product images exist in image/catalog/ but will not cache in image/cache/catalog/
what is wrong with opencart now?
why act so unprofessionally when releasing the recent versions?
Please do test twice before the next release.

Jump to post
  • Sun Jan 17, 2016 4:50 pm
  • Replies 2
  • Views 201
how to upgrade from 2.0.3.1 to 2.1.0.1 ?

how to upgrade from 2.0.3.1 to 2.1.0.1 ?
it failed every time.
please do test before you release next version.

Jump to post
  • Tue Dec 29, 2015 6:05 pm
  • Replies 1
  • Views 405

Search found 84 matches