Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Increase Blog Preview On Page Rate Topic   - - - - -

 
  • DrHemp
  • Advanced Member
  • Trial users
  • Join Date: 25-Dec 15
  • 58 posts

Posted 17 May 2016 - 01:13 PM #1

Hi,

 

On a cs cart blog page it previews 10 blogs, how do I set this to 12?

 

Many Thanks



 
  • Vivek Gupta
  • Senior Member
  • Members
  • Join Date: 09-Jul 15
  • 247 posts

Posted 17 May 2016 - 01:44 PM #2

check this: http://prnt.sc/b53yyg

 

 

at code level follow this (only for blog)

 

app/addons/blog/controllers/frontend/pages.post.php

 

Replace this 

 list($subpages, $search) = fn_get_pages(array(
            'parent_id' => $page_data['page_id'],
            'page' => !empty($_REQUEST['page']) ? $_REQUEST['page'] : 0,
            'page_type' => PAGE_TYPE_BLOG,
            'get_image' => true,
            'status' => 'A',
            'sort_by' => 'timestamp',
            'sort_order' => 'desc'
        ), Registry::get('settings.Appearance.elements_per_page'));

 

with

 

list($subpages, $search) = fn_get_pages(array(

            'parent_id' => $page_data['page_id'],
            'page' => !empty($_REQUEST['page']) ? $_REQUEST['page'] : 0,
            'page_type' => PAGE_TYPE_BLOG,
            'get_image' => true,
            'status' => 'A',
            'sort_by' => 'timestamp',
            'sort_order' => 'desc'
        ), 12);

Vivek Gupta 
 


 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 20910 posts

Posted 17 May 2016 - 01:48 PM #3

Hi,

 

On a cs cart blog page it previews 10 blogs, how do I set this to 12?

 

Many Thanks

 

Please change the value of the following setting:

 

Settings -> Appearance -> Customer settings -> Elements per page


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 
  • DrHemp
  • Advanced Member
  • Trial users
  • Join Date: 25-Dec 15
  • 58 posts

Posted 17 May 2016 - 03:04 PM #4

#genius (s)  :grin:

 

Sorted 

 

Thanks



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 20910 posts

Posted 18 May 2016 - 07:05 AM #5

You are welcome :)


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)