Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 22
  1. #11
    Join Date
    May 2007
    Posts
    181
    Plugin Contributions
    0

    Default Re: Default Specials Page

    Quote Originally Posted by jettrue View Post
    Did you see the correction to the code one step above?

    Yes I did....Please note that it is not giving me any syntax error or any error. It just doesn't show the products. But I know it is enabled since the specials do show in the sideboxes....

  2. #12
    Join Date
    Jan 2005
    Location
    USA, St. Louis
    Posts
    3,710
    Plugin Contributions
    9

    Default Re: Default Specials Page

    Quote Originally Posted by nrg77 View Post
    Yes I did....Please note that it is not giving me any syntax error or any error. It just doesn't show the products. But I know it is enabled since the specials do show in the sideboxes....
    Ok, I think I remember having this issue too!

    instead of Step 1. I listed, do the below.

    In the original file of includes/modules/pages/specials/main_template_vars.php, replace this:


    Code:
      $num_products_count = $specials->RecordCount();
      if ($num_products_count) {
        if ($num_products_count < SHOW_PRODUCT_INFO_COLUMNS_SPECIALS_PRODUCTS || SHOW_PRODUCT_INFO_COLUMNS_SPECIALS_PRODUCTS==0 ) {
          $col_width = floor(100/$num_products_count);
        } else {
          $col_width = floor(100/SHOW_PRODUCT_INFO_COLUMNS_SPECIALS_PRODUCTS);
        }

    with this:

    Code:
     $num_products_count = $specials->RecordCount();
     
      if ($num_products_count ==0) {
    	$col_width=0;
      } else {
        if ($num_products_count < SHOW_PRODUCT_INFO_COLUMNS_SPECIALS_PRODUCTS || SHOW_PRODUCT_INFO_COLUMNS_SPECIALS_PRODUCTS==0 ) {
          $col_width = floor(100/$num_products_count);
        } else {
          $col_width = floor(100/SHOW_PRODUCT_INFO_COLUMNS_SPECIALS_PRODUCTS);
        }
      }

  3. #13
    Join Date
    May 2007
    Posts
    181
    Plugin Contributions
    0

    Default Re: Default Specials Page

    Quote Originally Posted by jettrue View Post
    Ok, I think I remember having this issue too!

    instead of Step 1. I listed, do the below.

    In the original file of includes/modules/pages/specials/main_template_vars.php, replace this:


    Code:
      $num_products_count = $specials->RecordCount();
      if ($num_products_count) {
        if ($num_products_count < SHOW_PRODUCT_INFO_COLUMNS_SPECIALS_PRODUCTS || SHOW_PRODUCT_INFO_COLUMNS_SPECIALS_PRODUCTS==0 ) {
          $col_width = floor(100/$num_products_count);
        } else {
          $col_width = floor(100/SHOW_PRODUCT_INFO_COLUMNS_SPECIALS_PRODUCTS);
        }

    with this:

    Code:
     $num_products_count = $specials->RecordCount();
     
      if ($num_products_count ==0) {
        $col_width=0;
      } else {
        if ($num_products_count < SHOW_PRODUCT_INFO_COLUMNS_SPECIALS_PRODUCTS || SHOW_PRODUCT_INFO_COLUMNS_SPECIALS_PRODUCTS==0 ) {
          $col_width = floor(100/$num_products_count);
        } else {
          $col_width = floor(100/SHOW_PRODUCT_INFO_COLUMNS_SPECIALS_PRODUCTS);
        }
      }
    Now I get the opposite effect. The specials now show up but when I disable the specials, I don't get any text message anymore....

  4. #14
    Join Date
    Jan 2005
    Location
    USA, St. Louis
    Posts
    3,710
    Plugin Contributions
    9

    Default Re: Default Specials Page

    Quote Originally Posted by nrg77 View Post
    Now I get the opposite effect. The specials now show up but when I disable the specials, I don't get any text message anymore....
    Third times a charm (hopefully)... try this chunk instead:

    Code:
     $num_products_count = $specials->RecordCount();
     
      if ($num_products_count ==0) {
    	$col_width=0;
      } else {
        if ($num_products_count < SHOW_PRODUCT_INFO_COLUMNS_SPECIALS_PRODUCTS || SHOW_PRODUCT_INFO_COLUMNS_SPECIALS_PRODUCTS==0 ) {
          $col_width = floor(100/$num_products_count);
        } else {
          $col_width = floor(100/SHOW_PRODUCT_INFO_COLUMNS_SPECIALS_PRODUCTS);
        }
      }

  5. #15
    Join Date
    May 2007
    Posts
    181
    Plugin Contributions
    0

    Default Re: Default Specials Page

    Quote Originally Posted by jettrue View Post
    Third times a charm (hopefully)... try this chunk instead:

    Code:
     $num_products_count = $specials->RecordCount();
     
      if ($num_products_count ==0) {
        $col_width=0;
      } else {
        if ($num_products_count < SHOW_PRODUCT_INFO_COLUMNS_SPECIALS_PRODUCTS || SHOW_PRODUCT_INFO_COLUMNS_SPECIALS_PRODUCTS==0 ) {
          $col_width = floor(100/$num_products_count);
        } else {
          $col_width = floor(100/SHOW_PRODUCT_INFO_COLUMNS_SPECIALS_PRODUCTS);
        }
      }

    Still no text.....weird....

  6. #16
    Join Date
    Jan 2005
    Location
    USA, St. Louis
    Posts
    3,710
    Plugin Contributions
    9

    Default Re: Default Specials Page

    Quote Originally Posted by nrg77 View Post
    Still no text.....weird....
    That's working on my test sites... you made the other changes (step 2 and 3) from the first page of this thread right?

  7. #17
    Join Date
    May 2007
    Posts
    181
    Plugin Contributions
    0

    Default Re: Default Specials Page

    Quote Originally Posted by jettrue View Post
    That's working on my test sites... you made the other changes (step 2 and 3) from the first page of this thread right?

    Yes, I made all the changes.

  8. #18
    Join Date
    Jan 2005
    Location
    USA, St. Louis
    Posts
    3,710
    Plugin Contributions
    9

    Default Re: Default Specials Page

    Quote Originally Posted by nrg77 View Post
    Yes, I made all the changes.
    Then I'm not sure what else to advise, except to check and double check its all been uploaded, the changes are made in the right template folder, etc.

  9. #19
    Join Date
    May 2007
    Posts
    181
    Plugin Contributions
    0

    Default Re: Default Specials Page

    Quote Originally Posted by jettrue View Post
    Then I'm not sure what else to advise, except to check and double check its all been uploaded, the changes are made in the right template folder, etc.
    The one thing I did noticed though is that you have equal amount of opening and closing braces in your code snippet. When I go to paste your exact code into the file, it won't work as it "claims" to have one too many so I had to delete one from yours.

    That suggests to me that something is wrong or it already is missing one brace....However, why didn't it throw a syntax error....

    If that was the case, it effects many others, not just me....

  10. #20
    Join Date
    May 2007
    Posts
    181
    Plugin Contributions
    0

    Default Re: Default Specials Page

    To add to what I just said, I refer back to the post where that person also experienced what I experienced as well. So I started counting the braces and yours is correct 4 open 4 close. So he too deleted one from yours thinking you put one too many but that is not the case...

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. v139h Catalog / Specials Page, How to change the number of specials displayed
    By lynbor in forum Customization from the Admin
    Replies: 2
    Last Post: 12 Jun 2015, 07:19 PM
  2. specials page is not displaying items that were set to be specials
    By mayleine in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 2 Dec 2010, 12:49 PM
  3. Specials sidebox not showing at Specials page
    By JuanDBB in forum Basic Configuration
    Replies: 2
    Last Post: 15 Mar 2009, 04:59 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg