Jump to content


  • Content count

  • Joined

  • Last visited

Posts posted by Nico01

  1. Bob, thanks for sharing your work.


    Only one short typo-info:


    In the install instruction the database we add "products_min_order_qty".

    In admin/categories.php we use "products_min_quantity".


    That caused at the beginning a sql error.


    After changing in admin/categories.php the "products_min_quantity" in "products_min_order_qty", everything is working perfect.


    For me the install description is absolutely clear. So, I think save your energy ... :)




  2. Jim, I checked it on Firefox, IE 9 and Chrome.


    Same thing.


    I am missing something, but I cannot find out what...


    It is possible, that in this section



    $categories_string .= ' <h3';

    $categories_string .= ' onclick="location.href=\'';

    $categories_string .= tep_href_link( FILENAME_DEFAULT, $cPath_new );

    $categories_string .= '\';"';

    $categories_string .= '>';


    $categories_string .= '<a href="#">';

    $categories_string .= $tree[$counter]['name'];

    $categories_string .= '</a>';


    $categories_string .= '</h3>' . PHP_EOL;

    $categories_string .= ' <div>' . PHP_EOL;


    I have to give a definition to <h3>?


    Because now the width shows 100%.


    I am only wondering, its happens only on my page... so I have to search it on my system.


    Thanks, Jim




  3. Yes, you are right. Its working great.


    The only thing what I missed in the install.txt is the insert in the database_tables, because if somebody, same me, is not so experienced would be get confused after error messages (maybe).

    So I added this:


    12. in admin/includes/database_tables.php insert:


    define('TABLE_POPUPS', 'popups');



    13. in catalog/includes/database_tables.php insert:


    define('TABLE_POPUPS', 'popups');



    The first idea, I got was: Is it possible to create a kind of "popup-manager", in which I can switch on or off different popups for different pages?

    For example:

    Frontpage a popup : Login or Newsletter

    Productinfo page: "checkout our new specials" etc.

    Checkout success: Make a comment and get 10% off


    I am not a programmer, so I will dream of it . o:)


    Thanks to everybody, who was working on this contribution.




  4. @@kymation


    PHP 5.3 same issue

    jquery / jquery ui : jquery-1.9.1 / jquery-ui-1.10.3..min same issue


    But the javacode is gone in the output.


    Everything is working fine, only the menu overlays the whole webpage start on top (margin 0)

    and involves some other boxes.


    This starts up version 1.2.

    Version 1.1 is running perfect.


    I will digging ...

    thanks for support, Jim.




  5. Jim, thanks for sharing your work.


    I have an output problem with the latest version, I installed.


    I am running now:

    PHP 5.4.7

    OsCommrece 2.3.3

    jquery : 1.8.3 / ui-1.9.2.min


    The menu overlays the whole page included the header.

    Its not fit in a column


    If I open an accordion, it shows me a part of a javacode:

    $(function() {

    $( "#categoriesMenu" ).accordion({

    autoHeight: false,

    collapsible: true,

    icons: {

    'header': 'ui-icon-plus',

    'headerSelected': 'ui-icon-minus'


    active: 2




    I forgot to do something or is there any experience yet ?




  6. Jim, I understand.


    Behind my question I thought this:


    We have in catalog/includes/modules/header_tags/ht_front_title_store_name.php this part:


    include_once( DIR_WS_CLASSES . 'language.php' );

    $languages = new language();


    $this->languages_array = array();

    foreach( $languages->catalog_languages as $catalog_language ) {

    $this->languages_array[$catalog_language['id']] = $catalog_language['name'];



    But also in osc_template:


    function buildBlocks() {

    global $language, $PHP_SELF;


    if ( defined('TEMPLATE_BLOCK_GROUPS') && tep_not_null(TEMPLATE_BLOCK_GROUPS) ) {

    $tbgroups_array = explode(';', TEMPLATE_BLOCK_GROUPS);


    foreach ($tbgroups_array as $group) {

    $module_key = 'MODULE_' . strtoupper($group) . '_INSTALLED';


    if ( defined($module_key) && tep_not_null(constant($module_key)) ) {

    $modules_array = explode(';', constant($module_key));


    foreach ( $modules_array as $module ) {

    $class = substr($module, 0, strrpos($module, '.'));


    if ( !class_exists($class) ) {

    include(DIR_WS_LANGUAGES . $language . '/modules/' . $group . '/' . $module);

    include(DIR_WS_MODULES . $group . '/' . $class . '.php');



    $mb = new $class();


    // bof Dynamic Template System

    if(!isset($mb->pages) && ($mb->isEnabled())){

    $this->pages = 'all';



    if(($mb->isEnabled()) && (($mb->pages === 'all') || (in_array($PHP_SELF , explode(';' , $mb->pages))))){




    // eof Dynamic Template System



    I thought, maybe the file got it in a double way.


    Forgive me, if I talking something completely wrong, but this my way to learn ...., thanks.




  7. Jim,


    I'm fairly certain that it has nothing to do with the language class. Unfortunately I can't duplicate the error, so I can only guess at fixes. Please let me know if you find what the error really is.





    If I take off in catalog/includes/modules/header_tags/ht_front_title_store_name.php this part:


    include_once( DIR_WS_CLASSES . 'language.php' );

    $languages = new language();


    $this->languages_array = array();

    foreach( $languages->catalog_languages as $catalog_language ) {

    $this->languages_array[$catalog_language['id']] = $catalog_language['name'];



    everything is working.


    The question is, is this section really necessary ?

    Because it could get in conflict with other addons also?


    How I can see, there are only two files in header_tags - folder with this language section.

    catalog/includes/modules/header_tags/ht_front_title_store_name.php and

    ht_other_pages_title_string.php, which causes the same error.


    I am not sure, but I remember this kind of error also from someone, who included the generic box.

    If time, I will have a look at this again.


    Thanks for your time



  8. Carine,


    I think, there is a typo on:


    var $code = 'flex_slider';


    because of my error: Fatal error: Class 'fp_flex_slider' not found in C:\xampp\htdocs\catalog\includes\classes\osc_template.php on line 90


    I changed it to: var $code = 'fp_flex_slider';


    Now it is working, thanks for sharing.




  9. There should be a similar line in catalog/includes/modules/header_tags/ht_front_title_store_name.php. Find that and make the same replacement.





    Jim, I tried already, because of your posts - same error.


    Its strange, because its only this file.

    I think, maybe it has nothing to to with language.

    I will search and let you know.




  10. Jim


    You're the only person who is reporting this, so I assumed it was the PHP version. Let's try an experiment: find this code in includes/application_top.php:


    include(DIR_WS_CLASSES . 'language.php');


    and change it to:


    include_once(DIR_WS_CLASSES . 'language.php');


    Please let me know if that helps.





    No, same error message:

    Fatal error: Cannot redeclare class language in C:\xampp\htdocs\catalog\includes\classes\language.php




  11. Jim, maybe its interesting:


    PHP 5.3 - same problem.


    The conflict is to find in catalog/includes/modules/header_tags/ht_front_title_store_name.php


    If I remove the Module "Store Name in Title" under Header Tags, everything is working.


    Very nice contribution, same ever, thanks for sharing.




  12. Jim, if there is time I would need help in this case.


    I am running osc 2.3.3 on PHP 5.4.7


    I installed your last Modular Front Page 1.4


    I got this error:


    Fatal error: Cannot redeclare class language in C:\xampp\htdocs\catalog\includes\classes\language.php on line 23


    I got more information for this error:


    = = = = = = = = Backtrace = = = = = = = =

    language.php is referenced in C:\xampp\htdocs\catalog\includes\modules\header_tags\ht_front_title_store_name.php on line 31 in a "include_once"

    C:\xampp\htdocs\catalog\includes\modules\header_tags\ht_front_title_store_name.php is referenced in C:\xampp\htdocs\catalog\includes\classes\osc_template.php on line 90 in a "ht_front_title_store_name"

    C:\xampp\htdocs\catalog\includes\classes\osc_template.php is referenced in C:\xampp\htdocs\catalog\includes\template_top.php on line 2 in a "buildBlocks"

    C:\xampp\htdocs\catalog\includes\template_top.php is referenced in C:\xampp\htdocs\catalog\index.php on line 24 in a "require"


    = = = = = = = = = = = = = = = = = = = = =


    = = = = = = = = Backtrace = = = = = = = =

    language.php is referenced in C:\xampp\htdocs\catalog\includes\modules\boxes\bm_languages.php on line 38 in a "include"

    C:\xampp\htdocs\catalog\includes\modules\boxes\bm_languages.php is referenced in C:\xampp\htdocs\catalog\includes\classes\osc_template.php on line 93 in a "execute"

    C:\xampp\htdocs\catalog\includes\classes\osc_template.php is referenced in C:\xampp\htdocs\catalog\includes\template_top.php on line 2 in a "buildBlocks"

    C:\xampp\htdocs\catalog\includes\template_top.php is referenced in C:\xampp\htdocs\catalog\index.php on line 24 in a "require"


    I try to fix it, but other errors are appearing.


    What I found out is, that all backups before I included the Modular SEO Header Tags 1.4.6 are working.


    Maybe there is some advice, thanks.




  13. Dr. Rolex,


    I had the same problem as PiLLaO, it doesn't work on my testarea / localhost.

    The last to posts fixed this problem. It works also in product listing.

    Thanks for your time and sharing.


    One question:

    It works in product info only with the first image, if somebody has more to show.

    Is this correct or a bug ?




  14. Jim, now everything is working.


    For the pop up window I had to change something to make it working:


    In template_top.php the function:













    So I removed \n"; - and now its pop up.


    Thanks for working this out.



  15. Jim, its working now, thanks.


    Only the pop up doesn't show up.


    Could be there a missing link from



    // Price in Cart notice overrides the price display

    if( $product_info['price_in_cart'] == 'True' ) {

    $products_price = tep_display_price_in_cart();



    in product_info.php





    // Display the Price in Cart notice

    if( !function_exists( 'tep_display_price_in_cart' ) ) {

    function tep_display_price_in_cart() {

    $price_string = '<span class="price_in_cart">' . PHP_EOL;

    $price_string .= TEXT_ADD_CART_FOR_PRICE . ' ' . PHP_EOL;

    $price_string .= ' <span class="smalltext">' . PHP_EOL;

    $price_string .= ' <script language="javascript"><!--' . PHP_EOL;

    $price_string .= 'document.write(\'' . '<a href="javascript:popupWindow(\\\'' . tep_href_link( FILENAME_POPUP_PRICE_IN_CART ) . '\\\')">' . TEXT_WHY_HIDE_PRICE . '</a>\');' . PHP_EOL;

    $price_string .= '//--></script>' . PHP_EOL;

    $price_string .= ' <noscript>' . PHP_EOL;

    $price_string .= ' <a href="' . tep_href_link (FILENAME_POPUP_PRICE_IN_CART, 'cond=' . $data['rating']) . '" target="_new">' . TEXT_WHY_HIDE_PRICE . '</a>' . PHP_EOL;

    $price_string .= ' </noscript>' . PHP_EOL;

    $price_string .= ' </span>' . PHP_EOL;

    $price_string .= '</span>' . PHP_EOL;


    return $price_string;



    // Price In Cart end


    in functions/general.php ?


    Excuse this kind of question, but I try to understand the code ....




  16. Hallo Jim,


    thanks for sharing your work.


    I run v2.3.3 on 5.5.27 - MySQL.


    I got this Error:


    1054 - Unknown column 'p.price_in_cart' in 'field list'


    select products_id, products_image, products_tax_class_id, products_price, p.price_in_cart from products where products_status = '1' order by products_date_added desc limit 10


    all files are original from your code, nothing modified on my testing area.


    Thanks for info


  17. Hi,


    thanks for this contribution.

    Is there a possibility to add the manufacturer name ?


    I add this


    // Phocea Optimize featured query

    $query = 'SELECT distinct p.products_id, p.products_image, p.products_tax_class_id, IF (s.status, s.specials_new_products_price, NULL) AS specials_new_products_price, p.products_price, pd.products_name, m.manufacturers_name

    FROM ' . TABLE_PRODUCTS . ' p left join ' . TABLE_MANUFACTURERS . ' m on p.manufacturers_id = m.manufacturers_id

    FROM ' . TABLE_PRODUCTS . ' p LEFT JOIN ' . TABLE_PRODUCTS_TO_CATEGORIES . ' p2c using(products_id)

    LEFT JOIN ' . TABLE_CATEGORIES . ' c USING (categories_id)

    LEFT JOIN ' . TABLE_FEATURED . ' f ON p.products_id = f.products_id

    LEFT JOIN ' . TABLE_SPECIALS . ' s ON p.products_id = s.products_id

    LEFT JOIN ' . TABLE_PRODUCTS_DESCRIPTION . " pd ON p.products_id = pd.products_id AND pd.language_id = '" . $languages_id . "'

    where c.categories_id IN(" . $catIdSql . ") AND p.products_status = '1' AND f.status = '1' ";





    $featured_prods_content .= '<td width="33%" align="center" valign="top"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $featured_products['products_image'], $featured_products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br /><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products['products_id']) . '">' . $featured_products['products_name'] . '</a><br />' . TEXT_MANUFACTURER . ' ' . $featured_products['manufacturers_name'] . '<br>' . $currencies->display_price($featured_products['products_price'], tep_get_tax_rate($featured_products['products_tax_class_id'])) . '</td>';


    But no name appears. What is wrong?


    Thanks for help


  18. Hallo,


    I have no problem with this contribution, but something in my mind, I cannot figure out.

    Is it possible to offer different shipping discounts on item quantity, without an input of the customer?

    I can do this for one code, but if there are more codes.


    For example:

    2 items 10% shipping discount code 1

    3 items 20% shipping discount code 2 etc.


    My idea was, would it be possible to get the quantity value of the shopping basket automaticly in the input field of the coupon.

    So I can make a hidden field and the customer get automaticly his discount, depending on his order quantity.


    I hope, my english is understandable.


    It would nice, if somebody could reply, thank you.