Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

newtech

Pioneers
  • Posts

    494
  • Joined

  • Last visited

Posts posted by newtech

  1. I have installed Article Manager 1.5.

    Seems to be working fine so far. But there is one thing I would like to change:

    When you view the articles page, the author and topic links are not in the correct order.

    Here is how it appears:

    Looking at Depression Differently by Dr. Gregg Topic: Depression

    Jantz

     

    It should appear like this:

     

    Looking at Depression Differently by Dr. Gregg Jantz

    Topic: Depression

     

    It appears the code that needs to be changed is in articles_listing.php.

     

     

    After posting another article, it appears that the position of the entire link for the author is determined by how long the article title is. Is there a way to just force the title and author link to be on one line and the topic to be on a second line?

     

    Anyone know what needs to be changed in this code?

  2. In the install instructions for xsell 2.3 the last step (14) has the text in French. Can someone give me the English translation.

     

    STEP 14:

    Add to /catalog/admin/includes/functions/general.php

     

    //Cache

    function rdel($path, $deldir = true) {

    // $path est le chemin relatif au fichier php

    // $deldir (paramètre optionel, par défaut à vrai) permet de dire si vous souhaitez supprimer le répertoire (vrai) ou le vider uniquement (faux)

     

    // on vérifie d'abord que le nom du repertoire contient "/" à la fin, sinon on le lui rajoute

    if ($path[strlen($path)-1] != "/")

    $path .= "/";

     

    if (is_dir($path)) {

    $d = opendir($path);

     

    while ($f = readdir($d)) {

    if ($f != "." && $f != "..") {

    $rf = $path . $f; // chemin relatif au fichier php

     

    if (is_dir($rf)) // si c'est un répertoire on appel récursivement la fonction

    rdel($rf);

    else // sinon on efface le fichier

    unlink($rf);

    }

    }

    closedir($d);

     

    if ($deldir) // si $deldir est vrai on efface le répertoire

    rmdir($path);

    }

    else {

    unlink($path);

    }

    }

     

    //Fin cache

  3. There is something weird going on with the meta tags contrib.

    It is inserting text in serveral places. For example:

    bytmc

     

    <title>The Molding of a Champion by: Children-Youth - A Place of Hope Store -</title>

     

    <META NAME="Description" Content="The Molding of a Champion (bytmc) by Children-Youth - The Molding of a Champion Helping Your Child Shape a Winning Destiny Winning Strategies for nurturing future life champions Practical parenting advice from a leading...">

     

    <META NAME="Keywords" Content="the molding of a champion, bytmc books, children-youth, books, videos, dvd, supplements for eating disorders, depression, abuse, store">

     

    I also find the term in a few places on the page:

     

    href="http://www.aplaceofhopestore.com/molding-champion-p-69.html" class="headerNavigation">bytmc</a></td>

    <td class="pageHeading" valign="top">The Molding of a Champion<br><span class="smallText">[bytmc]</span></td>

     

    This is happening to every product page, but with different phrases. Anotehr page is doing the same thing with the phrase bahsea.

     

    Where in the world are these terms coming from? They are not in my original product pages.

     

    Is this something from the SEO contrib?

    any answer on this?

  4. I have installed Article Manager 1.5.

    Seems to be working fine so far. But there is one thing I would like to change:

    When you view the articles page, the author and topic links are not in the correct order.

    Here is how it appears:

    Looking at Depression Differently by Dr. Gregg Topic: Depression

    Jantz

     

    It should appear like this:

     

    Looking at Depression Differently by Dr. Gregg Jantz

    Topic: Depression

     

    It appears the code that needs to be changed is in articles_listing.php.

     

     

    After posting another article, it appears that the position of the entire link for the author is determined by how long the article title is. Is there a way to just force the title and author link to be on one line and the topic to be on a second line?

     

    Anyone know what needs to be changed in this code

     

    After posting another article, it appears that the position of the entire link for the author is determined by how long the article title is. Is there a way to just force the title and author link to be on one line and the topic to be on a second line?

     

    Anyone know what needs to be changed in this code

  5. In the install instructions for xsell 2.3 the last step (14) has the text in French. Can someone give me the English translation.

     

    STEP 14:

    Add to /catalog/admin/includes/functions/general.php

     

    //Cache

    function rdel($path, $deldir = true) {

    // $path est le chemin relatif au fichier php

    // $deldir (paramètre optionel, par défaut à vrai) permet de dire si vous souhaitez supprimer le répertoire (vrai) ou le vider uniquement (faux)

     

    // on vérifie d'abord que le nom du repertoire contient "/" à la fin, sinon on le lui rajoute

    if ($path[strlen($path)-1] != "/")

    $path .= "/";

     

    if (is_dir($path)) {

    $d = opendir($path);

     

    while ($f = readdir($d)) {

    if ($f != "." && $f != "..") {

    $rf = $path . $f; // chemin relatif au fichier php

     

    if (is_dir($rf)) // si c'est un répertoire on appel récursivement la fonction

    rdel($rf);

    else // sinon on efface le fichier

    unlink($rf);

    }

    }

    closedir($d);

     

    if ($deldir) // si $deldir est vrai on efface le répertoire

    rmdir($path);

    }

    else {

    unlink($path);

    }

    }

     

    //Fin cache

  6. I have installed Article Manager 1.5.

    Seems to be working fine so far. But there is one thing I would like to change:

     

    When you view the articles page, the author and topic links are not in the correct order.

    Here is how it appears:

     

    Looking at Depression Differently by Dr. Gregg Topic: Depression

    Jantz

     

     

    It should appear like this:

     

    Looking at Depression Differently by Dr. Gregg Jantz

    Topic: Depression

     

     

    It appears the code that needs to be changed is in articles_listing.php.

    How can I change this to make the above?

     

    <?php // osc-help.net: added class=main to the link.

    echo '<a class="main" href="' . tep_href_link(FILENAME_ARTICLE_INFO, 'articles_id=' . $articles_listing['articles_id']) . '"><b>' . $articles_listing['articles_name'] . '</b></a> ';

    if (DISPLAY_AUTHOR_ARTICLE_LISTING == 'true' && tep_not_null($articles_listing['authors_name'])) {

    echo TEXT_BY . ' ' . '<a href="' . tep_href_link(FILENAME_ARTICLES, 'authors_id=' . $articles_listing['authors_id']) . '"> ' . $articles_listing['authors_name'] . '</a>';

    }

    ?>

    </td>

    <?php

    if (DISPLAY_TOPIC_ARTICLE_LISTING == 'true' && tep_not_null($articles_listing['topics_name'])) {

    ?>

    <td valign="top" class="main" width="25%" nowrap><?php echo TEXT_TOPIC . ' <a href="' . tep_href_link(FILENAME_ARTICLES, 'tPath=' . $articles_listing['topics_id']) . '">' . $articles_listing['topics_name'] . '</a>'; ?></td>

    <?php

    }

    ?>

    </tr>

  7. After posting another article, it appears that the position of the entire link for the author is determined by how long the article title is. Is there a way to just force the title and author link to be on one line and the topic to be on a second line?

     

    Anyone know what needs to be changed in this code

    Any answer to this?

  8. From what I can tell it pulls the info from

     

    tep_address_format

    What defines the data in tep_address_format?

    includes/function/general.php

     

    Here is what I have. What is there in this code that stops the state from showing on invoice and packing slip?

     

    function tep_address_format($address_format_id, $address, $html, $boln, $eoln) {

    $address_format_query = tep_db_query("select address_format as format from " . TABLE_ADDRESS_FORMAT . " where address_format_id = '" . (int)$address_format_id . "'");

    $address_format = tep_db_fetch_array($address_format_query);

  9. My invoices and packing slips do not show the state on them. My customer file has the state listed for the customer, but the invoice and packing slip do not show the state. What do I do to get the state to show up on invoice and packing slip?

    From what I can tell it pulls the info from

     

    tep_address_format

     

    <td class="main"><?php echo tep_address_format($order->customer['format_id'], $order->customer, 1, '', '<br>'); ?></td>

     

    <td class="main"><?php echo tep_address_format($order->delivery['format_id'], $order->delivery, 1, '', '<br>'); ?></td>

    What defines the data in tep_address_format?

  10. The tep_valid_email() will check if the email address has invalid characters, is with a correct structure, is with a domain name not an IP, has different domain from your store......, etc.

     

    This function is built-in with osCommerce 2.2 MS2 060817 release, not Anti Robotic Registration code.

    I have a contact page that does not have the antirobot script on it. It accepts the e-mail I have ([email protected]). When I use the contact page that has the listed anti-robot then the e-mail address error comes up. So this has to be something with anit-robot.

  11. It appears that if the newsletter content is under 300 bytes it goes out. But if it is over 300 bytes never receive it. It cannot be a spam filter issue because I am sending it to a variety of different e-mail addresses. And of course 300 bytes is nothing.

     

    Anybody else run into this problem and have a fix?

  12. I have installed Article Manager 1.5.

    Seems to be working fine so far. But there is one thing I would like to change:

    When you view the articles page, the author and topic links are not in the correct order.

    Here is how it appears:

    Looking at Depression Differently by Dr. Gregg Topic: Depression

    Jantz

     

    It should appear like this:

     

    Looking at Depression Differently by Dr. Gregg Jantz

    Topic: Depression

     

    It appears the code that needs to be changed is in articles_listing.php.

    After posting another article, it appears that the position of the entire link for the author is determined by how long the article title is. Is there a way to just force the title and author link to be on one line and the topic to be on a second line?

     

    Anyone know what needs to be changed in this code

    <?php // osc-help.net: added class=main to the link.

    echo '<a class="main" href="' . tep_href_link(FILENAME_ARTICLE_INFO, 'articles_id=' . $articles_listing['articles_id']) . '"><b>' . $articles_listing['articles_name'] . '</b></a> ';

    if (DISPLAY_AUTHOR_ARTICLE_LISTING == 'true' && tep_not_null($articles_listing['authors_name'])) {

    echo TEXT_BY . ' ' . '<a href="' . tep_href_link(FILENAME_ARTICLES, 'authors_id=' . $articles_listing['authors_id']) . '"> ' . $articles_listing['authors_name'] . '</a>';

    }

    ?>

    </td>

    <?php

    if (DISPLAY_TOPIC_ARTICLE_LISTING == 'true' && tep_not_null($articles_listing['topics_name'])) {

    ?>

    <td valign="top" class="main" width="25%" nowrap><?php echo TEXT_TOPIC . ' <a href="' . tep_href_link(FILENAME_ARTICLES, 'tPath=' . $articles_listing['topics_id']) . '">' . $articles_listing['topics_name'] . '</a>'; ?></td>

    <?php

    }

    ?>

    </tr>

  13. I was able to get the image to come up properly by making the recent suggested change. But encountered another problem. When using it with the contact_us.php page, it comes up with an error message stating that the e-mail address appears to not be valid-when the e-mail address is valid.

     

    I went back to a previous version of the contact_us.php page that does not have the anti-robot and works fine.

     

    I notice that the anti-robot script has a check e-mail address feature. How is it determining what is a vaild e-mail address?

    It would be nice to have this feature, if it works properly.

     

    Otherwise I can just delete this correct?

     

    // BOF Anti Robot Registration v2.5

    if (!tep_validate_email($email_address)) {

    $error = true;

    $messageStack->add('contact', ENTRY_EMAIL_ADDRESS_CHECK_ERROR);

    } elseif (!$entry_antirobotreg_error == true) {

    tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_SUBJECT, $enquiry, $name, $email_address);

    tep_redirect(tep_href_link(FILENAME_CONTACT_US, 'action=success'));

    }

     

    // EOF Anti Robotic Registration v2.5

  14. Replace:

    $validation_images = tep_image('validation_png.php?rsid=' . $new_guery_anti_robotreg['session_id']);

     

    with:

    $validation_images = '<img src="validation_png.php?rsid=' . $new_guery_anti_robotreg['session_id'] . '">';

     

     

    I tried this but I still did not get the image.

     

    So, I went and did a test by going to:

    http://www.yourdomain.com/catalog/validati...ng.php?rsid=the session id you just copied

     

    This pulls up the background but does not show any digits.

     

    What is strange is that this part was working before.

     

    Here are the last six sessions in my sessions database.

     

    lm7dre9ve6ktrkd0cijcbb2b87 1168274800 language|s:7:"english";languages_id|s:1:"1";select...

    rikepihnf8nbse7ihsqohul177 1168275063 cart|O:12:"shoppingCart":5:{s:8:"contents";a:0:{}s...

    m138ep8v1hphotj4cmdte791n7 1168271689 cart|O:12:"shoppingCart":5:{s:8:"contents";a:0:{}s...

    1lsvt1048d00s3t9q43ilnnnj3 1168278394 cart|O:12:"shoppingCart":5:{s:8:"contents";a:0:{}s...

    1mn2ba0amlqpuv2geh1dg1qu52 1168281194 cart|O:12:"shoppingCart":5:{s:8:"contents";a:0:{}s...

     

    When I go to anti-robot database, the session listed is:

    rikepihnf8nbse7ihsqohul177

     

    When I test this session using:

    http://www.yourdomain.com/catalog/validati...bse7ihsqohul177

    I do see the background image and numbers.

     

    I closed the browser and did another test.

     

    Now my dession database has

    lm7dre9ve6ktrkd0cijcbb2b87 1168274800 language|s:7:"english";languages_id|s:1:"1";select...

    rikepihnf8nbse7ihsqohul177 1168275063 cart|O:12:"shoppingCart":5:{s:8:"contents";a:0:{}s...

    m138ep8v1hphotj4cmdte791n7 1168271689 cart|O:12:"shoppingCart":5:{s:8:"contents";a:0:{}s...

    1lsvt1048d00s3t9q43ilnnnj3 1168278394 cart|O:12:"shoppingCart":5:{s:8:"contents";a:0:{}s...

    1mn2ba0amlqpuv2geh1dg1qu52 1168281567 cart|O:12:"shoppingCart":5:{s:8:"contents";a:0:{}s...

    0uuissjfoi267k4vsahsmiink1 1168281493 cart|O:12:"shoppingCart":4:{s:8:"contents";a:0:{}s...

    cltscjro8s641uou6kpqcilrc0

     

    antirobot now has

    1mn2ba0amlqpuv2geh1dg1qu52

     

    SO IT APPEARS TO ME

    that the antirobot is not using the last session, it is using 2-3 sessions behind. What would be causing this?

  15. Same here: no matter what I try with tep_image.

     

    Here's a work around I found; it's not the best but it works:

     

    Replace:

    $validation_images = tep_image('validation_png.php?rsid=' . $new_guery_anti_robotreg['session_id']);

     

    with:

    $validation_images = '<img src="validation_png.php?rsid=' . $new_guery_anti_robotreg['session_id'] . '">';

     

    It still beats me why tep_image does not work but it seems to generate nothing when called.

    I tried this but I still did not get the image.

     

    So, I went and did a test by going to:

    http://www.yourdomain.com/catalog/validati...ng.php?rsid=the session id you just copied

     

    This pulls up the background but does not show any digits.

     

    What is strange is that this part was working before.

  16. So here is a recap from what I can tell.

     

    1. Orders that have discounts are handled differently based upon if shipping fee is involved or not.

    If there is a shipping fee the report shows the discount fee.

    If no shipping is involved, the report shows sales tax.

     

    2. If there is no coupon code the credit card batch report shows the correct figures.

    After more testing here is what I have come up with.

     

    The stats_batch_report.php file does the totals properly including orders with discounts. The cc_card_report.php does not work properly.

     

    But here is a problem with it.

     

    The Start and End date feature is not working properly (or how I would think it should work).

    If you want the totals for today's date (the same day that the sales took place) , the Start date must be today and the End date must be tomorrow.

    i.e. Todays date is 1/4/07 so enter 1/4/07 start 1/5/07 end

     

    If you have the Start and End date the same, it will not show any totals.

    i.e. Todays date is 1/4/07 so enter 1/4/07 start 1/4/07 end no totals shown

     

    Not sure what happens if you run the report a few days later.

    i.e. if it is 1/5/07 and you want 1/4/07 totals. If you put 1/4/07 start and 1/5/07 end, will you get the sales of 1/5/07 also? I assume not.

  17. Forgot to add the code that I believe needs to be changed.

    After more testing here is what I have come up with.

     

    The stats_batch_report.php file does the totals properly including orders with discounts. The cc_card_report.php does not work properly.

     

    But here is a problem with it.

     

    The Start and End date feature is not working properly (or how I would think it should work).

    If you want the totals for today's date (the same day that the sales took place) , the Start date must be today and the End date must be tomorrow.

    i.e. Todays date is 1/4/07 so enter 1/4/07 start 1/5/07 end

     

    If you have the Start and End date the same, it will not show any totals.

    i.e. Todays date is 1/4/07 so enter 1/4/07 start 1/4/07 end no totals shown

     

    Not sure what happens if you run the report a few days later.

    i.e. if it is 1/5/07 and you want 1/4/07 totals. If you put 1/4/07 start and 1/5/07 end, will you get the sales of 1/5/07 also? I assume not.

  18. To help keep me from being confused (easy right now), please also let me know the file name of the ccbr you are using:

    cc_card_report.php

    or

    stats_batch_report.php

     

    BTW, does the report you are using have the credit card grand totals or subtotals of orders. I would like grand totals.

    After more testing here is what I have come up with.

     

    The stats_batch_report.php file does the totals properly including orders with discounts. YEAH!!!!!

     

    But here is the problem with it and why I thought it was not working at all for me. This is not related to the discount coupon code, but I will post here since it was discussed here.

     

    The Start and End date feature is not working properly (or how I would think it should work).

    If you want the totals for today's date (the same day that the sales took place) , the Start date must be today and the End date must be tomorrow.

    i.e. Todays date is 1/4/07 so enter 1/4/07 start 1/5/07 end

     

    If you have the Start and End date the same, it will not show any totals.

    i.e. Todays date is 1/4/07 so enter 1/4/07 start 1/4/07 end no totals shown

     

    Not sure what happens if you run the report a few days later.

    i.e. if it is 1/5/07 and you want 1/4/07 totals. If you put 1/4/07 start and 1/5/07 end, will you get the sales of 1/5/07 also? I assume not.

     

    Thanks again to kgt for great help in pointing me in right direction.

  19. I have customers who have more than one address. When I go into admin and look up their account, it only lists one address. However, if I go into the database it does show their additional address.

     

    How do I make it so that I can see all their addresses in admin? Isn't this a default or does there need to be a contrib for this?

  20. My error.

    I could never get the 1.5 version to work (stats_batch_report.php). It would not show any purchases at all.

     

    So I uninstalled it and installed the 1.01 (cc_card_report.php).

     

    So I am unable to get either contrib to work.

    They are as straightforward as can be but I have spent hours trying to get them to work. This is the final contrib (besides anti-robot) for me to get working before going live tonight. I have installed over 20 contribs on my store. Probably contribbed out and missing something easy.

     

    Since you have a credit card batch report to work on your site with the discount contrib, please give me the name of the zip file you downloaded for the ccbr contrib. It is somewhat confusing because there are two contribs with same name but different zip files and a 3rd zip.

     

    Credit_Card_Bacth_Report_v1.01.zip

    Credit_Card_Batch_Report_v1.01_1.zip

    Credit_Card_Batch_Report_v1.5.zip

     

    Sorry for bugging you on this.

    To help keep me from being confused (easy right now), please also let me know the file name of the ccbr you are using:

    cc_card_report.php

    or

    stats_batch_report.php

     

    BTW, does the report you are using have the credit card grand totals or subtotals of orders. I would like grand totals.

  21. I cannot see how the code you posted can possibly give these results. I have also downloaded the contribution and looked at the code, and I still cannot see what could be wrong. When I run the report against my orders with discounts, the results are perfectly correct. Did you ever modify this file? Try downloading the most recent version and replacing what you have with that file.

     

    My error.

    I could never get the 1.5 version to work (stats_batch_report.php). It would not show any purchases at all.

     

    So I uninstalled it and installed the 1.01 (cc_card_report.php).

     

    So I am unable to get either contrib to work.

    They are as straightforward as can be but I have spent hours trying to get them to work. This is the final contrib (besides anti-robot) for me to get working before going live tonight. I have installed over 20 contribs on my store. Probably contribbed out and missing something easy.

     

    Since you have a credit card batch report to work on your site with the discount contrib, please give me the name of the zip file you downloaded for the ccbr contrib. It is somewhat confusing because there are two contribs with same name but different zip files and a 3rd zip.

     

    Credit_Card_Bacth_Report_v1.01.zip

    Credit_Card_Batch_Report_v1.01_1.zip

    Credit_Card_Batch_Report_v1.5.zip

     

    Sorry for bugging you on this.

  22. This contrib summarizes the subtotals of cash and various credit card orders.

     

    When I have orders that have a discount, the totals this contrib generates are totally off. It grabs the discount amount (10% figure) for the subtotal of an order, instead of the actual subtotal. The problem should not be with the ot discount contrib because when I run my customers totals report everything is ok.

     

    Anyone know what I need to change in the code so it grabs actual subtotal (actually I want it to summarize the Grand Total instead of subtotals).

     

    Here is the code from the stats_bath_report.php that I believe that needs to be edited.

     

    Note this is Contribution: http://www.oscommerce.com/community/contri...rch,stats+batch

     

    Here is an example from my credit card batch report

    Order ID Purchase Date Order SubTotal Credit Card Used Action

    47 2007 -01-04 16:06:00 $-2.20 - - - -

    46 2007-01-04 15:30:04 $10.00 - - - -

    45 2007-01-04 1 3:24:15 $1.00 - - - -

    44 2007-01-04 13:20:38 $13.99 - - - -

     

    It is actually more messed up than I thought.

     

    Order #47 was $10.99 with a discount of $2.20, so its subtotal should have been $8.79. The report says it is $-2.20.

    It obviously is taking the discount figure as the subtotal.

    (Note this order had a shipping charge which comes after the subtotal)

     

    Order #46 is accurate for the subtotal-no coupon code used for this order.

    (It had shipping which comes after the subtotal)

     

    Order #45 was $13.99 and had a discount of $2.80, so it should have been $11.19. But what it is showing is the SALES TAX amount.

    (Note this order had free shipping)

     

    So here is a recap from what I can tell.

     

    1. Orders that have discounts are handled differently based upon if shipping fee is involved or not.

    If there is a shipping fee the report shows the discount fee.

    If no shipping is involved, the report shows sales tax.

     

    2. If there is no coupon code the credit card batch report shows the correct figures.

     

    So, home how there is a problem when coupon code is used.

  23. I don't understand. As I read that code, it appears to be displaying the grand total for the orders, not the subtotals.

     

    Note this is Contribution: http://www.oscommerce.com/community/contri...rch,stats+batch

     

    Here is an example from my credit card batch report

    Order ID Purchase Date Order SubTotal Credit Card Used Action

    47 2007 -01-04 16:06:00 $-2.20 - - - -

    46 2007-01-04 15:30:04 $10.00 - - - -

    45 2007-01-04 1 3:24:15 $1.00 - - - -

    44 2007-01-04 13:20:38 $13.99 - - - -

     

    It is actually more messed up than I thought.

     

    Order #47 was $10.99 with a discount of $2.20, so its subtotal should have been $8.79. The report says it is $-2.20.

    It obviously is taking the discount figure as the subtotal.

    (Note this order had a shipping charge which comes after the subtotal)

     

    Order #46 is accurate for the subtotal-no coupon code used for this order.

    (It had shipping which comes after the subtotal)

     

    Order #45 was $13.99 and had a discount of $2.80, so it should have been $11.19. But what it is showing is the SALES TAX amount.

    (Note this order had free shipping)

     

    So here is a recap from what I can tell.

     

    1. Orders that have discounts are handled differently based upon if shipping fee is involved or not.

    If there is a shipping fee the report shows the discount fee.

    If no shipping is involved, the report shows sales tax.

     

    2. If there is no coupon code the credit card batch report shows the correct figures.

     

    So, home how there is a problem when coupon code is used.

×
×
  • Create New...