Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

pdcelec

Pioneers
  • Posts

    594
  • Joined

  • Last visited

  • Days Won

    3

Posts posted by pdcelec

  1. If contributions include application_top.php and use the tep_href_link() link wrapper function as all osCommerce files should then USU5 will of course work. If not it won't.

     

    The very fact that the cron is not using wget ( accessing the file via HTTP ) suggests that it is not written correctly as it will not be able to include files.

     

     

    Hi

     

    I tried wget and got this error /bin/sh: /usr/bin/wget: Permission denied

     

    I contacted my host and they set it up using cURL -F which did not work as they said I have a password in .htaccess. Is there any other way?

     

    EDIT: I realised that I am now in the wrong forum.

  2. Hi

     

    I am using google base 2.6 FWR Media 4 Jan 2010. I have setup up the Cron as follows:

     

    php -q /home/xxxxxxx/public_html/admin/googlefeeder.php

     

     

    When it runs, I get the following error:

     

    <br />

    <b>Fatal error</b>: Call to a member function retrieveDependencies() on a non-object in <b>/home/xxxxxxx/public_html/includes/modules/ultimate_seo_urls5/main/bootstrap.php</b> on line <b>223</b><br />

     

    Should I be doing something different as I am using USU5 PRO?

     

    Thanks

  3. Hello again,

     

    Just uploaded to 'includes/modules', although not currently ready to test payment system yet. Checking the KISS document, I note this;

     

     

    catalog/includes/application_top.php

     

    Find ...

    if ($request_type == 'NONSSL') {

     

    Add immediately ABOVE ...

    // Security Pro by FWR Media

    include_once DIR_WS_MODULES . 'fwr_media_security_pro.php';

    $security_pro = new Fwr_Media_Security_Pro;

    // If you need to exclude a file from cleansing then you can add it like below

    //$security_pro->addExclusion( 'some_file.php' );

    $security_pro->cleanse( $PHP_SELF );

    // End - Security Pro by FWR Media

     

    That's it .. all installed!

     

    Have found this line of code, but did not see any mention of FWR in the application_top.php file (should I)? Do I have to activate the Security Plus code using another method (thought it was automatic)? Thought I had followed the install advice corectly - have I? Sorry about the confusion here :'(

     

    This is how it will be after you have added it

    
     // Security Pro by FWR Media
     include_once DIR_WS_MODULES . 'fwr_media_security_pro.php';
     $security_pro = new Fwr_Media_Security_Pro;
     // If you need to exclude a file from cleansing then you can add it like below
     //$security_pro->addExclusion( 'some_file.php' );
     $security_pro->cleanse( $PHP_SELF );
     // End - Security Pro by FWR Media
     if ($request_type == 'NONSSL') {

  4. Now I get this: Parse error: syntax error, unexpected T_ELSE in /home/c352part/public_html/admin/categories.php on line 1519

     

    Here is my code: *****LINE 1519**** is marked like that.

     

    <tr>

    <td align="right" class="smallText"><?php echo tep_draw_button(IMAGE_BACK, 'triangle-1-w', tep_href_link($back_url, $back_url_params, 'NONSSL')); ?></td>

    </tr>

    </table>

    <?php

    *****LINE 1519**** } else {

    ?>

    <table border="0" width="100%" cellspacing="0" cellpadding="2">

    <tr>

    <td><table border="0" width="100%" cellspacing="0" cellpadding="0">

    <tr>

    <td class="pageHeading"><?php echo HEADING_TITLE; ?></td>

    somewhere above that code something is missing. Have you done a count of { and }?

  5. Thanks for the response, here is the actual code from the page. Secure my admin? What does that mean? Sorry if this is a bad question: I'm looking it up next too.

     

     

    Starting at line 775: <?php // begin Extra Product Fields

    if ($action == 'new_product') {

    foreach ($epf as $e) {

    if ($e['language_active']) {

    if ($e['multi_select']) {

    echo '<script type="text/javascript">' . "\n";

    echo "function process_" . $e['field'] . '_' . $e['language'] . "(id) {\n";

    echo " var thisbox = document.getElementById('ms' + id);\n";

    echo " if (thisbox.checked) {\n";

    echo " switch (id) {\n";

    foreach ($e['values'] as $val) {

    $el = get_exclude_list($val);

    if (!empty($el)) {

    echo " case " . $val . ":\n";

    foreach($el as $i) {

    echo " var cb = document.getElementById('ms" . $i . "');\n";

    echo " cb.checked = false;\n";

    }

    echo " break;\n";

    }

    }

    echo " default: ;\n";

    echo " }\n";

    echo " }\n";

    echo "}\n";

    echo "</script>\n";

    } elseif ($e['uses_list'] && $e['linked']) {

    echo '<script type="text/javascript">' . "\n";

    if ($e['checkbox']) {

    echo "function process_" . $e['field'] . '_' . $e['language'] . "(id) {\n";

    } else {

    echo "function process_" . $e['field'] . '_' . $e['language'] . "() {\n";

    echo " var id = document.getElementById('lv" . $e['id'] . '_' . $e['language'] . "').value;\n";

    }

    if (!empty($link_groups[$e['id']][$e['language']])) {

    foreach ($link_groups[$e['id']][$e['language']] as $val) {

    echo " var lf = document.getElementById('lf" . $e['id'] . '_' . $e['language'] . '_' . $val . "');\n";

    echo " lf.style.display = 'none'; lf.disabled = true;\n";

    foreach ($linked_fields[$e['id']][$e['language']][$val] as $id) {

    echo " document.getElementById('ms" . $id . "').disabled = true;\n";

    }

    }

    foreach ($link_groups[$e['id']][$e['language']] as $val) {

    echo " if (";

    $first = true;

    $enables = '';

    foreach(get_children($val) as $x) {

    if ($first) {

    $first = false;

    } else {

    echo ' || ';

    }

    echo '(id == ' . $x . ')';

    }

    echo ") {\n";

    echo " var lf = document.getElementById('lf" . $e['id'] . '_' . $e['language'] . '_' . $val . "');\n";

    echo " lf.style.display = ''; lf.disabled = false;\n";

    foreach ($linked_fields[$e['id']][$e['language']][$val] as $id) {

    $enables .= " document.getElementById('ms" . $id . "').disabled = false;\n";

    }

    echo $enables;

    echo " }\n";

    }

    foreach ($linked_fields[$e['id']][$e['language']] as $group) {

    foreach ($group as $id) {

    echo " var lv = document.getElementById('ms" . $id . "');\n";

    echo " if (lv.disabled == true) { lv.checked = false; }\n";

    }

    }

    }

    echo "}\n";

    echo "</script>\n";

    }

    }

    }

    } // end Extra Product Fields

    ?>

     

     

     

    require(DIR_WS_INCLUDES . 'template_top.php');

     

    if ($action == 'new_product') {

    $parameters = array('products_name' => '',

    Ending at line 858

     

    Try

     

    ?>
    <?php // begin Extra Product Fields
    if ($action == 'new_product') {
     foreach ($epf as $e) {
       if ($e['language_active']) {
         if ($e['multi_select']) {
           echo '<script type="text/javascript">' . "\n";
           echo "function process_" . $e['field'] . '_' . $e['language'] . "(id) {\n";
           echo "  var thisbox = document.getElementById('ms' + id);\n";
           echo "  if (thisbox.checked) {\n";
           echo "    switch (id) {\n";
           foreach ($e['values'] as $val) {
             $el = get_exclude_list($val);
             if (!empty($el)) {
               echo "      case " . $val . ":\n";
               foreach($el as $i) {
                 echo "        var cb = document.getElementById('ms" . $i . "');\n";
                 echo "        cb.checked = false;\n";
               }
               echo "        break;\n";
             }
           }
           echo "      default: ;\n";
           echo "    }\n";
           echo "  }\n";
           echo "}\n";
           echo "</script>\n";
         } elseif ($e['uses_list'] && $e['linked']) {
           echo '<script type="text/javascript">' . "\n";
           if ($e['checkbox']) {
             echo "function process_" . $e['field'] . '_' . $e['language'] . "(id) {\n";
           } else {
             echo "function process_" . $e['field'] . '_' . $e['language'] . "() {\n";
             echo "  var id = document.getElementById('lv" . $e['id'] . '_' . $e['language'] . "').value;\n";
           }
           if (!empty($link_groups[$e['id']][$e['language']])) {
             foreach ($link_groups[$e['id']][$e['language']] as $val) {
               echo "  var lf = document.getElementById('lf" . $e['id'] . '_' . $e['language'] . '_' . $val . "');\n";
               echo "  lf.style.display = 'none'; lf.disabled = true;\n";
               foreach ($linked_fields[$e['id']][$e['language']][$val] as $id) {
                 echo "  document.getElementById('ms" . $id . "').disabled = true;\n";
               }
             }
             foreach ($link_groups[$e['id']][$e['language']] as $val) {
               echo "  if (";
               $first = true;
               $enables = '';
               foreach(get_children($val) as $x) {
                 if ($first) {
                   $first = false;
                 } else {
                   echo ' || ';
                 }
                 echo '(id == ' . $x . ')';
               }
               echo ") {\n";
               echo "    var lf = document.getElementById('lf" . $e['id'] . '_' . $e['language'] . '_' . $val . "');\n";
               echo "    lf.style.display = ''; lf.disabled = false;\n";
               foreach ($linked_fields[$e['id']][$e['language']][$val] as $id) {
                 $enables .= "    document.getElementById('ms" . $id . "').disabled = false;\n";
               }
               echo $enables;
               echo "  }\n";
             }
             foreach ($linked_fields[$e['id']][$e['language']] as $group) {
               foreach ($group as $id) {
                 echo "  var lv = document.getElementById('ms" . $id . "');\n";
                 echo "  if (lv.disabled == true) { lv.checked = false; }\n";
               }
             }
           }
           echo "}\n";
           echo "</script>\n";
         }
       }
     }
    } // end Extra Product Fields
    ?>
    
    
    <?php
     require(DIR_WS_INCLUDES . 'template_top.php');
    
     if ($action == 'new_product') {
       $parameters = array('products_name' => '',
    

  6. Armando,

     

    I have never used the contribution, but logic would say that the MIN_ORDER amount is the minimum cost the customer can checkout with. As far as MAX_ORDER, I am not sure who would want to cap the checkout amount but that's what it is used for.

     

     

     

     

    Chris

     

    Some payment processors may limit what value is allowed in one transaction

  7. I need to add some new links to ULTIMATE SEO such:

     

    http://domain.name/purchase.php?index=1&manufacturers_id=17&categories_id=143

     

    http://domain.name/purchase.php?manufacturers_id=43&categories_id=249

     

    http://domain.name/purchase.php?categories_id=249&manufacturers_id=43&products_id=405#nam1

     

     

     

    The purchase.php is a new php program.

     

    Have you some ideas on how to code the links in the ULTIMATE SEO?

     

    Thank You.

     

    Roberto

     

    USU5 Pro has a dev module where you can set up things like this

  8. HI Everyone,

     

    I've noticed that there is an order editor for version 2.2 but i do not see anything for 2.3 yet.

     

    Anyone have something they are aware of that i've missed?

     

    Please let me know!

     

    :)

     

    which order editor?

     

    I may well have already converted it

  9. I've read all relevant topics, but couldn't find an answer on my specific question.

    In my current project, a category page should contain static information, describing type of products in this category, instead of navigation within. Is it possible without ugly php-hacks? It is said, that you can "link" some HTML page to a category, but there's no such field or option in category creating.

    I'm using osCommerce 2.3.1.

    Thank you for your help.

     

    Try

    http://addons.oscommerce.com/info/2343

  10. I have a photo enlargement website and would like to use OSCommerce instead of ZenCart. Have been looking for an add-on that will allow the customer to upload the images they want to have enlarged and printed. Anyone know of a current add-on that'll work?

    Thanks,

    Mike

    do you have a zen version?

  11. Installed this on 2.3.1 and I am getting this error

     

    1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'rib ' and date_purchased >= '2011-1-01 00:00:00' and date_purchased <= '2011-12-' at line 1
    
    select count(*) as count from orders where customers_state = 'Ma'rib ' and date_purchased >= '2011-1-01 00:00:00' and date_purchased <= '2011-12-31 11:59:59' 

  12. Hey, Complete new here and I am following the installation guide as instructed and I got to the Step 5a, it says

     

    5) In catalog/index.php
    
    5a) Around line 272 find the section of code that reads as follows:
    
               <td align="right"><?php echo tep_image(DIR_WS_IMAGES . $image, HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
             </tr>
           </table></td>
    
    Immediately BEFORE the </table> ADD the following lines of code:
    
             <!-- begin extra product fields -->
             <tr>
               <td class="main" align="right" colspan="2">
               <?php
                 $epf_list = array();
                 foreach ($epf as $e) {
                   if ($e['restrict']) $epf_list[] = $e['field'];
                 }
                 echo tep_draw_form('epf_restrict', FILENAME_DEFAULT, 'get');
                 if (is_array($HTTP_GET_VARS) && (sizeof($HTTP_GET_VARS) > 0)) {
                   reset($HTTP_GET_VARS);
                   while (list($key, $value) = each($HTTP_GET_VARS)) {
                     if ( (strlen($value) > 0) && ($key != tep_session_name()) && (!in_array($key, $epf_list)) ) {
                       echo tep_draw_hidden_field($key, $value);
                     }
                   }
                 }
                 foreach ($epf as $e) {
                   if ($e['restrict']) {
                     echo sprintf(TEXT_RESTRICT_TO, $e['label'], tep_draw_pull_down_menu($e['field'], tep_build_epf_pulldown($e['id'], $languages_id, array(array('id' => '', 'text' => TEXT_ANY_VALUE))),'', 'onchange="this.form.submit()"')) . '<br>';
                   }
                 }
                ?>
                </form>
               </td>
             </tr>
             <!-- end extra product fields -->
    

     

    The problem is, I dont see that line in my index.php

     

    Thank you in advance. I just need to add couple of product fields such as Author, ISBN, and Publisher

     

     

    You may find this easier

    http://addons.oscommerce.com/info/3164

×
×
  • Create New...