Jump to content

lexijade

Member
  • Posts

    41
  • Joined

  • Last visited

Posts posted by lexijade

  1. I like this one:

                            $rlike = ' AND ( ';
                            for ($i=0; $i<$noKeys; ++$i) {
                                $ucSearchTerm = strtoupper($searchArray[$i]);
                                if ( ($ucSearchTerm != 'AND') && ($ucSearchTerm != 'OR') && (strlen($ucSearchTerm) > 0) ) {
                                    $searchArray[$i] = str_replace(array('%','_'), array('%','_'), $searchArray[$i]);
                                    $regexp = '%'.$searchArray[$i].'%';
                                    $rlike .= "(I.name LIKE '".$regexp."' OR I.description LIKE '".$regexp."' OR I.product_code LIKE '".$regexp."')";
                                }
                                else {
                                  if(strlen($ucSearchTerm) > 0){ $rlike .= " ".$ucSearchTerm." "; }
                                  else { $rlike .= " AND "; }
                                  continue;
                                }
                            }
                            $rlike .= " )";

    Tried this again and it worked. Seems to do exactly what is required. Thanks bsmither.

    I must be doing something wrong because that doesn't work for me :/

    [Notice] /home/content/88/5118188/html/ltcube/classes/catalogue.class.php:1530 - Undefined variable: order
    [Notice] /home/content/88/5118188/html/ltcube/classes/catalogue.class.php:1598 - Undefined variable: noKeys

    I am getting these errors, not sure if that helps.

  2. Please look in the /images/cache/ folder. This is what CubeCart is deriving:

    _square.120.jpg

    There should be something in front of _square.

    Technically, the skin should have its own set of 'noimage_<size>.jpg' in the skin's /images/ folder. (And the e-shift skin does have these images.)

    If you haven't uploaded/assigned any product images, then something is going wrong with CubeCart - not the skin.

    Hm, weird. I have uploaded/assigned lots of pictures- almost all of them I have done through the product listing page.

  3. Thanks! I didn't realize that applied to all pages, and removed it because I didn't want it on the home page. Stupid me, totally obvious mistake. I am pretty new to all of this still, so this forum has been a huge help!

    Do you have an idea what the problem with the images is? Also the square image is just a blank square as a filler 'default' image, in case that's what you meant by not loading too.

  4. I cleared my cache and it's a bit slower, but not awful. I mean it definitely isn't instant, but I think it's normal.

    The only thing at the top of the debug when I am in a product listing is this:
    [Notice] /home/content/88/5118188/html/ltcube/classes/gui.class.php:1124 - Undefined variable: product

    Which isn't something I messed with, so not sure what the problem with that is.

×
×
  • Create New...