Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

fridgebox

Banned
  • Posts

    146
  • Joined

  • Last visited

Posts posted by fridgebox

  1. 3 minutes ago, YePix said:

    et it be good. Here is the forum and the corresponding posting to the addon. Everyone interested in this post has read and decides for yourself whether it will be used or not. here is oscommerce and not github. end of this discussion.

    NOPE not so EASY my friend , here you have the option to show your commitment, it's not that easy to paste a fix here in the forum if you are so RIGHT about it......... put it here 🙂 i told you i teach you.......... now do it the right way....... show your commitment........... your words............. not github............. oscommerce.............. here it is)
    image.thumb.png.f553110e1ecb37bcd427c8a9bc14024f.png

  2. 19 minutes ago, YePix said:

    what is so difficult to understand? did you install the addon "store times"?

    not matter if i install it or not.

    The module creator ( even that he does it wrong on github), took the effort to commit his code , with the option for YOU and ME and OTHERS to correct HIS code on GITHUB.
    You ( as i assume you take yourself serious), should learn to use the correct channels for that.
    you could have created an issue for it on there, when you made the issue, a link to the issue would be sufficient to know and understand and find out what the issue is, now it is just a fix in the dark. it only is here on the forum, yet your fix MUST be in the original code, for that GITHUB is a good place. ( do not be offended, i just try to learn you):
    screenshot-github.com-2019_09.11-01_46_22.thumb.png.2aff5f674076d564a3b0ae1efeccb414.png

  3. 11 minutes ago, YePix said:

    that's how you do it

    No, not really.
    you could report an issue on the github repository, even could offer the bug fix.
    Regardless if the repository owner accept your fix or not.... a link to your issue would have done the job.

    ( i encourage you to experiment , i know you have the potential............ i checked your work on the german CLUB, i speak and read ( mwa.... not really) fluent german..... i am 50% german).

    Good Luck!!!!!!
    PS:  i made the concept for the takeaway (pizzapizza) concept in laravel......... for multi-stores.
    ( if you are serious and have a range of potential cliënts......... we might can set up something in that area).

  4. 1 hour ago, YePix said:

    small bugfix for "stort times" replace the following code in header tags to disable forwarding when the module is deactivated

    catalog/includes/modules/header_tags/ht_store_times.php

    osCommerce 2.3.4-1 EDGE

    find:

    
          if (defined('MOD_CON_HDR_STORE_TIMES_DIVERT_PAGES') && MOD_CON_HDR_STORE_TIMES_DIVERT_PAGES == 'True') {
            if (tep_not_null(MOD_CON_HDR_STORE_TIMES_CLOSE_PAGES)) {
              $pages_array = array();
    
              foreach (explode(';', MOD_CON_HDR_STORE_TIMES_CLOSE_PAGES) as $page) {
                $page = trim($page);
    
                if (!empty($page)) {
                  $pages_array[] = $page;
                }
              }
            
              if (in_array(basename($PHP_SELF), $pages_array)) {
    		        $store_status = sew_is_store_open();
                if ($store_status <> 'open' && $store_status <> 'open-override') tep_redirect('store_times.php');
              }
            }
          }
    		}

    replace with:

    
    if (MODULE_CONTENT_HEADER_STORE_TIMES_STATUS == 'True') {
          if (defined('MOD_CON_HDR_STORE_TIMES_DIVERT_PAGES') && MOD_CON_HDR_STORE_TIMES_DIVERT_PAGES == 'True') {
            if (tep_not_null(MOD_CON_HDR_STORE_TIMES_CLOSE_PAGES)) {
              $pages_array = array();
    
              foreach (explode(';', MOD_CON_HDR_STORE_TIMES_CLOSE_PAGES) as $page) {
                $page = trim($page);
    
                if (!empty($page)) {
                  $pages_array[] = $page;
                }
              }
            
              if (in_array(basename($PHP_SELF), $pages_array)) {
    		        $store_status = sew_is_store_open();
                if ($store_status <> 'open' && $store_status <> 'open-override') tep_redirect('store_times.php');
              }
            }
          }
    		}
    }

    Thus, the header_tag module does not need to be turned off

    you could have just say what is wrong.
    I cannot see with a "look for" and "replace" with........... what is the actual bug?
    I prefer to see compare A with B and highlight the difference.
    I not learn anything from "replace with"

  5. You should use

    \t

    separation for csv's

    <?php
      $order_dump = DIR_FS_TMP.'order_dump.csv';
    
    
      $order_dump = fopen($order_dump ,"a") or die(" error opening - $order_dump \n");  
    
    
      fwrite($file_handle,"$key\t$value[0]\t$value[1]\n");
    
    
      fclose($file_handle) or die(" error closing $order_dump"); 
    ?>



     

  6. The JS code is not closed.
    i assume not even your footer show, besides the CC entry.
    ( conclusion: bad code................... or more likely............. a template you use/bought............. not compatible with add-on)
    Excuse coming in 1,2,3
    GO:

  7. I program a csv importer that fetch csv's via (S)FTP or direct upload.
    The idea is to assign the csv's headings to a specific table's column.
    When the csv does not have any headings, you can assign a custom name to each column you wish to import.
    The reason is that there are many vendors that provide different csv's and to get them correctly imported to your store require to edit these csv's.
    This is not efficient when also handle stock updates or price changes.

    When call the csv importer either direct or via a cronjob, it checks if the current entry is enabled or disabled.


    Is there any interest to share this project in this community?
     

     

×
×
  • Create New...