Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

erikwoods

Members
  • Content count

    128
  • Joined

  • Last visited

Posts posted by erikwoods


  1. Thanks, redrum and sctsang. I was looking for something that takes the user straight from the cart to the confirmation page but there's one tiny problem.

    If you're not logged in, and then you add an item to your cart, hit checkout and then sign in, it takes you to the shipping page like normal checkout does. Any way to remedy this?


  2. So let me just make sure I understand what you just said.

    It is okay to replace

     

    <td class="main"><?php echo tep_get_country_list('country', $entry['entry_country_id']) . ' ' . (tep_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COUNTRY_TEXT . '</span>': ''); ?></td>

     

    with

     

    <td class="main"><b><?php echo ($tmp_object = tep_get_country_active_list('country', $country, 'onChange="this.form.submit();"')) . tep_draw_hidden_field('country_old', $country) . ' ' . (is_array($tmp_object) ? '<span class="inputRequirement">' . ENTRY_COUNTRY_TEXT . '</span>': ''); ?></b></td>

    ?

     

    Sorry for all the newbie-ness. I just want to make sure that this cart works this time. I'm starting from scratch and I want to include all of the contributions I had in the previous one and see what changes made the taxes go away.


  3. I don't know why I didn't find this problem the first time I went through adding this contribution.

    Do you know if it's safe to just replace it with the same line of code that you said to use in your version?

     

    The rest of the files I had no problems with. Just this one. It was this one that I originally meant to post about- that's why I couldn't figure out why my version wasn't different when I looked back at it.

    Sorry about the confusion. I've had a late night.

     

    So yeah... what's the deal with includes/modules/address_book_details.php?


  4. For includes/modules/address_book_details.php it says find:

    <td class="main"><?php echo tep_get_country_list('country') . ' ' . (tep_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COUNTRY_TEXT . '</span>': ''); ?></td>

     

    but in the version I have (from default osCommerce 2.2 ms2), it says

    <td class="main"><?php echo tep_get_country_list('country', $entry['entry_country_id']) . ' ' . (tep_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COUNTRY_TEXT . '</span>': ''); ?></td>

     

    What should I put in its place?

     

    I didn't know this contribution was for version 1.28 of oscom.


  5. Because the version of admin/countries.php that I am getting from the latest download of osCommerce does not have the string "TABLE_HEADING_COUNTRY_CODES" in it anywhere at all. But it does have

    <td class="dataTableHeadingContent" align="center"><?php echo TABLE_HEADING_STATUS; ?> </td>

    in it already.


  6. In admin/countries.php... in the readme it says find

    <td class="dataTableHeadingContent" align="center" colspan="2"><?php echo TABLE_HEADING_COUNTRY_CODES; ?></td>

    and add

    <td class="dataTableHeadingContent" align="center"><?php echo TABLE_HEADING_STATUS; ?> </td>

    below it...

     

    but I think it's supposed to be the other way around. Am I right?


  7. bah. I'm an idiot. ignore my post. I deleted the post I originally uh... posted.

    just ignore this. lol.

     

    the contribution works great so far. many thanks to you.

    Do you mind if I upload a modified version of the readme? It's just more organized and easier to read... slightly (files are listed alphabetically and steps are highlighted).


  8. that particular error occurred on the main catalog page.

    I also got errors on the product_info.php (when you click on a product) and the my account page and the create account page... although I dont remember what they were.... I already recovered the files needed to make it back to normal.

     

    Maybe I just need to try it again.


  9. I'm getting this error:

    Fatal error: Call to undefined function: tep_not_null() in /homepages/23/d135699034/htdocs/catalog/includes/classes/language.php on line 74

     

    I imported the sql before I made the changes to the files but that shouldn't matter, right?


  10. I don't know anything about phpMyAdmin.

    Can you help a newbie with that? I'm sure it's not a hard thing to do and it will take me like 2 seconds but I've never used it before so I don't know what to do for the sql file.

     

    Also is there a program that can be used to search files for a specific string of characters? Like if I wanted to find all of the files in my local catalog directory that contained the word "post code" or something like that. I'm just trying to edit how things look a little bit.


  11. I simply want to know- is there a way to disable the stock feature in osCommerce?

    My client does not have to worry about stock because he is a dealer and does not carry any stock... but he is going to be selling products in bulk and therefore the stock could diminish rather quickly.

     

    Setting it to the highest number possible just won't cut it. Is there a way to completely disable it or to always update it to the highest number possible after every order or something?

×