Jump to content

pdcelec

Members
  • Content count

    594
  • Joined

  • Last visited

  • Days Won

    3

Reputation Activity

  1. Like
    pdcelec got a reaction from Guitarrisimo in Show product quantities on admin Categories / Products listing   
    I have today, added to the package. It now also shows the price.
  2. Like
    pdcelec got a reaction from BeckyLiu in function ereg index   
    Change that piece of code with
     

    if ( (!isset($_GET['sort'])) || (!preg_match('/^[1-8][ad]$/', $_GET['sort'])) || (substr($_GET['sort'], 0, 1) > sizeof($column_list)) ) { for ($i=0, $n=sizeof($column_list); $i<$n; $i++) { if ($column_list[$i] == 'PRODUCT_LIST_NAME') { $_GET['sort'] = $i+1 . 'a'; $listing_sql .= " order by pd.products_name"; break;
  3. Like
    pdcelec got a reaction from Pronux in Tab Menu Section (TMS) and Pronux TMS For Admin Support Thread   
    I have that exact setup. TMS (with custom tabs), KISSMT USU5 Pro
    http://www.electricalcity.co.uk/hrc-bussmann-aa0-aa010-10a-hrc-fuse-tia-p-32.html
  4. Like
    pdcelec reacted to FWR Media in KissMT Dynamic SEO Meta & Canonical Header Tags   
    The following is a quick stop gap solution to the issue being discussed. It was quickly written so please retain a backup of the original kiss_meta_tags directory in case you need to revert.
    1) Create a new php file ..
    catalog/includes/modules/kiss_meta_tags/includes/important_words.php
     
    Containing ..
     

    <?php /** * @example * $important_words = array( 'KissMT' ); */ $important_words = array();
     
    2) Open up
     
    catalog/includes/modules/kiss_meta_tags/abstracts/kiss_modules/kiss_modules.php
     
    Find ..
     

    protected $root_index = 'root'; // options - root = www.mysite.com/ - index = www.mysite.com/FILENAME_DEFAULT (index.php)
     
    Change to ..
     

    protected $root_index = 'root'; // options - root = www.mysite.com/ - index = www.mysite.com/FILENAME_DEFAULT (index.php) protected $important_words = array();
     
    Find complete function formatTitleWords() ( lines 200 to 220 ) .. replace with ..
     

    private function formatTitleWords( $text ) { include_once KissMT::init()->includes_path . 'important_words.php'; if ( isset( $important_words ) && is_array( $important_words ) ) { $this->important_words = $important_words; } if ( !empty( KissMT::init()->smallwords ) ) { $words_array = explode( ' ', $text ); $ucfirst_words = array(); $it = new ArrayIterator( $words_array ); while ( $it->valid() ) { if( ctype_alpha( substr( $it->current(), 0, 1 ) ) ) { if ( !in_array( $it->current(), KissMT::init()->smallwords ) ) { $lower = strtolower( $it->current() ); foreach ( $this->important_words as $index => $word ) { if ( false !== strpos( $lower, strtolower( $word ) ) ) { $ucfirst_words[] = str_replace( strtolower( $word ), $word, $lower ); $it->next(); continue 2; } } $ucfirst_words[] = ucfirst( $lower ); } else { $ucfirst_words[] = $it->current(); } } elseif( tep_not_null( $it->current() ) ) { $ucfirst_words[] = $it->current(); } $it->next(); } return $this->trimWordsToLength( implode( ' ', $ucfirst_words ), 'title' ); } return $this->trimWordsToLength( $text, 'title' ); }
     
    Now add any strings you do not wish to be formatted to the important_words array then reset the cache.
     
    Please let me know how you get on with it.
  5. Like
    pdcelec got a reaction from Pronux in Is OSCOM 3.0 ever going to be released   
    Would you like salt and pepper with that?
×