chrometweaks.org

How do I insert a html/css layout into a iPage web host that supports php?

Click Here To View All Answers...


Question I have... How do I insert a html/css layout into a iPage web host that supports php? Hoping for any answer. My other question... I must be missing something... I see posts referring to the fact that OSC by default lists products alphanumerically..

Not on my site. It seems to be listing then according to when I added them to the site?.

What am I missing?..

Comments (118)

I would like to know the answer too. Anyone here know what is the right answer. I'll do some poking around and get back to you if I discover an decent answer. You should email the people at iPage as they probably can help you..

Comment #1

I checked that too. That does not seem to hold true either...

Comment #2

On what page is this occurring and have you installed any contributions?..

Comment #3

As soon as I click on a category:.

Http://store.poolroom.com/.

I have added a contribution, which I don't remember the name of right now, that puts a short product description in the product listing. That could have something to do with my problems because it also puts "TABLE_HEADING_INFO" in the page instead of "Brief Description" which is suppose to put. That seems to work if I am using a "Quick Find" and it goes to advanced_search_result.php...

Comment #4

Around line 199 of your index.php file you should have something like:.

   if ( (!isset($HTTP_GET_VARS['sort'])) || (!ereg('[1-8][ad]', $HTTP_GET_VARS['sort'])) || (substr($HTTP_GET_VARS['sort'], 0, 1) > sizeof($column_list)) ) {.

     for ($i=0, $n=sizeof($column_list); $i<$n; $i++) {.

       if ($column_list[$i] == 'PRODUCT_LIST_NAME') {.

         $HTTP_GET_VARS['sort'] = $i+1'a';.

         $listing_sql .= " order by p.products_model, pd.products_name";.

         break;.

       }.

Yes / No?..

Comment #5

With the exception of this one line:.

$listing_sql .= " order by pd.products_name";..

Comment #6

Would you happen to have kept a backup of your original catalog/includes/product_listing.php file prior to adding the description contribution?.

If so, backup your current version and return the original...

Comment #7

I hope you are referring to catalog/includes/modules/product_listing.php.

That is the only place I find product_listing.php...

Comment #8

I want products listing sort by model number only, so I modified the index.php.

  if ( (!isset($HTTP_GET_VARS['sort'])) || (!ereg('[1-8][ad]', $HTTP_GET_VARS['sort'])) || (substr($HTTP_GET_VARS['sort'], 0, 1) > sizeof($column_list)) ) {.

    for ($i=0, $n=sizeof($column_list); $i<$n; $i++) {.

      if ($column_list[$i] == 'PRODUCT_LIST_NAME') {.

        $HTTP_GET_VARS['sort'] = $i+1'a';.

        $listing_sql .= " order by p.products_model, pd.products_name";.

        break;.

      }.

To.

  if ( (!isset($HTTP_GET_VARS['sort'])) || (!ereg('[1-8][ad]', $HTTP_GET_VARS['sort'])) || (substr($HTTP_GET_VARS['sort'], 0, 1) > sizeof($column_list)) ) {.

    for ($i=0, $n=sizeof($column_list); $i<$n; $i++) {.

      if ($column_list[$i] == 'PRODUCT_LIST_NAME') {.

        $HTTP_GET_VARS['sort'] = $i+1'a';.

        $listing_sql .= " order by p.products_model";.

        break;.

      }.

The problem is only works on the first page, no changes for next page. Please help...

Comment #9

I found one mistake I made, and I change the code to.

 if ( (!isset($HTTP_GET_VARS['sort'])) || (!ereg('[1-8][ad]', $HTTP_GET_VARS['sort'])) || (substr($HTTP_GET_VARS['sort'], 0, 1) > sizeof($column_list)) ) {.

   for ($i=0, $n=sizeof($column_list); $i<$n; $i++) {.

     if ($column_list[$i] == 'PRODUCT_LIST_MODEL') {.

       $HTTP_GET_VARS['sort'] = $i+1'a';.

       $listing_sql .= " order by p.products_model";.

       break;.

     }.

Doesn't work this time, even failed on the 1st page!..

Comment #10

Or.

   if ( (!isset($HTTP_GET_VARS['sort'])) || (!ereg('[1-8][ad]', $HTTP_GET_VARS['sort'])) || (substr($HTTP_GET_VARS['sort'], 0, 1) > sizeof($column_list)) ) {.

     for ($i=0, $n=sizeof($column_list); $i<$n; $i++) {.

       if ($column_list[$i] == 'PRODUCT_LIST_MODEL') {.

         $HTTP_GET_VARS['sort'] = $i+1'a';.

         $listing_sql .= " order by p.products_model, pd.products_name";.

         break;.

      }.

Still no go.....

Comment #11

I must be missing something... I see posts referring to the fact that OSC by default lists products alphanumerically..

Not on my site. It seems to be listing then according to when I added them to the site?.

What am I missing?..

Comment #12

The product listing does default sort by model number and then name..

Perhaps the model number of your products is throwing the sort off?..

Comment #13


This question was taken from a support group/message board and re-posted here so others can learn from it.