Jump to content
Latest News: (loading..)


  • Content count

  • Joined

  • Last visited

  • Days Won


ecartz last won the day on December 3 2012

ecartz had the most liked content!


Profile Information

Recent Profile Visitors

37,727 profile views
  1. ecartz

    Forum Software Update (31st July 2018)

    It looks like the report post link is in a color that is close to the background color. But if you hover over it, it shows up. It also might show up if you used it recently and it shows the visited color. I didn't try that. I tend to browse with Javascript off, so that might change things too.
  2. ecartz

    Excel Populate for Oscommerce

    This is the wrong forum for add-on questions, but two quick comments: return ord($data[$pos]) | (ord($data[$pos+1]) << 8) | // line 27 (ord($data[$pos+2]) << 16) | (ord($data[$pos+3]) << 24); This probably doesn't parse properly. Consider return ord($data[$pos]) | (ord($data[$pos+1]) << 8) | (ord($data[$pos+2]) << 16) | (ord($data[$pos+3]) << 24); For the other line, try a smaller file. It seems to be complaining that things are too big.
  3. ecartz

    Products iamges path

    The default code does not support absolute paths, as it assumes that the images directory will be expressed relative to the catalog directory. It's possible to make your web server proxy images from one location to another. If you're using Apache, that capability is in mod_rewrite and would be edited in either htaccess or httpd.conf. It would also be possible to modify the code for this. There doesn't seem to be an existing App, but this App seems to modify the same code. It might guide someone in making changes. There may be other places where absolute paths would break images that are not mentioned there. Pay particular attention to the tep_images function and $image_pathe variable.
  4. ecartz

    Amazon Vendor

    I haven't done this, but you might start by checking the Apps Marketplace at https://apps.oscommerce.com/q=Amazon It seems like https://apps.oscommerce.com/WxN49&osc2amazon is closest to what you describe. I do not know if it is up to date.
  5. ecartz

    Scrolling when using I-Phone

    This is not standard behavior for osCommerce. I do not know if it is standard for an iPhone, but searching doesn't suggest that it is. I don't know if your issue is caused by the same reason, but https://stackoverflow.com/q/23155509/6660678 has a similar problem that was caused by a form with an autofocus field. If you post your site URL, someone with an iPhone might be able to try to reproduce/diagnose this.
  6. The fourth group in admin should be images. Here's the SQL. Note the value 4. INSERT INTO configuration_group VALUES ('4', 'Images', 'Image parameters', '4', '1');
  7. ecartz

    cPath structure - "bind" the correct pathing?

    Have you tried any of the SEO URL contributions? They tend to standardize the URLs as part of their functionality. Also consider providing a search engine page. This would be a simple list of categories and products. Then you can put nofollow on your category links on other pages. That should limit the spider to the real URLs.
  8. ecartz

    pages split to new_products.php

    You might find it easier to start with this outdated Add-on: https://apps.oscommerce.com/6qcnv&customise-new-products-and-products-disp The problem with product_listing.php is that it is not designed to work with the grids. And it is designed for category navigation. It would also be easier to help if you included the code you added and the errors that you get.
  9. ecartz

    Visa Checkout

    It looks like there are two Moneris modules: https://apps.oscommerce.com/q=Moneris I don't know whether they work with this functionality, but as no one else was answering, I figured this would at least offer you a chance to look up the answer.
  10. ecartz

    Paypal options

    Sandbox is for testing. You can run fake orders through the store and get email confirmations but no money will move. It requires a sandbox account, which you probably don't have. You probably don't want this. Disabled means that the module won't work. You probably don't want this. Live means that PayPal will try to process any orders you put through the store. This is almost certainly what you want, unless you are testing or turning off the module. Instant update means that it will try to post orders back to a URL on your store. If you don't have this set up properly, it could cause problems. However, if you don't use this, some orders might be created in PayPal without being created in your store. The old method did not use this, so turning it off will make things work as they did previously. Express checkout is another way to process orders. It also requires additional setup. Again, not part of the original functionality. Added later. You can say no safely until you know what it is. Authorize means that you are only authorizing the transaction and will capture it later to actually transfer the money. Sale means that it will initiate the money transfer to your account immediately. Sale was what the module used to do. Order status is the order status that you want PayPal orders to be when the payment transaction is completed. The old method was to match all other payment methods. The idea is that you could put it in a special status, e.g. check PayPal. Then you would know that you need to verify that the payment exists in PayPal before continuing. After verification you could move it to a different status, like Processing. The store won't care about this value. It exists purely as a note for you and potentially your customers.
  11. ecartz

    Order notification email not working

    Are any emails sending? Order? Customer registration? Forgot password? Have you tried Harald's test script: https://apps.oscommerce.com/FZ5wN&e-mail-testing-script That just uses the base PHP functions, so it tells you if the problem is store (usually configuration) or PHP. You may want to check the log files for the site. Sometimes they will tell you something useful. The $order->STORE_OWNER['email_address'] looks to be wrong. The line should probably be tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);
  12. ecartz

    Exclude Words or Phrases from Advanced Search

    There is no native provision for this. You might change advanced_search_result.php to add it. Look for case '(': case ')': case 'and': case 'or': $where_str .= " " . $search_keywords[$i] . " "; break; and change it to case '(': case ')': case 'and': case 'or': case 'not': $where_str .= " " . $search_keywords[$i] . " "; break; Add one line with not in it. Then you could use not as you expect. I haven't tested this for functionality or efficiency. Use at your own risk.
  13. ecartz

    Forget password not working

    If you can receive the email via Gmail and can't receive it through some other kind of account that you check through Outlook, I'd try asking your email provider for help. Another thing that you can do is check your headers in the Gmail message. Here are the instructions to check headers in Gmail: https://support.google.com/mail/answer/29436?hl=en That may tell you something interesting about the sender (your osCommerce store). If the email is intermittently working, then there's a good chance that it's not the PHP code. It might be a problem with your host or your domain. Your email provider should be able to help you diagnose why it isn't working. If not, you might try giving us more detail. The problem is that the next level of detail is relatively private, things like your store URL and email address that appear in the email/headers.
  14. ecartz

    How to use tep_get_uprid in some pages?

    You say both tep_get_prid and tep_get_uprid. The tep_get_prid function should work anywhere if you have an uprid and want just the prid. So I'm assuming that you mean tep_get_uprid, that you have a valid prid (product_id), and that you are having trouble working out the parameters. If you look in includes/classes/order.php, you will see something like $this->products[$index]['attributes'][$subindex] = array('option' => $Qattributes->value('products_options'), 'value' => $Qattributes->value('products_options_values'), 'prefix' => $Qattributes->value('price_prefix'), 'price' => $Qattributes->valueDecimal('options_values_price')); But if you look in includes/functions/general.php, you will see something like foreach ($params as $option => $value) { So you need to iterate over the attributes for that product and do something like $params = []; foreach ($order->products[$index]['attributes'] as $attribute) { $params[$attribute['option']] = $attribute['value']; } $prid = tep_get_uprid($order->products[$index]['id'], $params); I haven't tested this, but hopefully this should guide you towards what you need. If you really meant tep_get_prid and not tep_get_uprid, then you shouldn't need it in those places. Just use $order->products[$index]['id'] directly. If this doesn't help, please post the code that you are trying, what you expect it to do, and what it actually does, including any error messages.
  15. ecartz

    Membership form issue

    Depending on the field, you may be able to make it compulsory in the Admin area. If not there, you make it compulsory in the page that processes the form. Here's the code that makes the email compulsory in create_account.php (from but likely the same in all 2.3.x): if (strlen($email_address) < ENTRY_EMAIL_ADDRESS_MIN_LENGTH) { $error = true; $messageStack->add('create_account', ENTRY_EMAIL_ADDRESS_ERROR); } elseif (tep_validate_email($email_address) == false) { $error = true; $messageStack->add('create_account', ENTRY_EMAIL_ADDRESS_CHECK_ERROR); } else { $check_email_query = tep_db_query("select count(*) as total from " . TABLE_CUSTOMERS . " where customers_email_address = '" . tep_db_input($email_address) . "'"); $check_email = tep_db_fetch_array($check_email_query); if ($check_email['total'] > 0) { $error = true; $messageStack->add('create_account', ENTRY_EMAIL_ADDRESS_ERROR_EXISTS); } } Note that the ENTRY_EMAIL_ADDRESS_MIN_LENGTH is something that is set in the Admin. To make something that is currently compulsory so that it is optional, you'd have to make code like this not run. Note that it would be a very bad idea to make the email address not compulsory. It's also marked as required by translated text: . (tep_not_null(ENTRY_EMAIL_ADDRESS_TEXT) ? '<span class="inputRequirement">' . ENTRY_EMAIL_ADDRESS_TEXT . '</span>': ''); And from the language file, english.php : define('ENTRY_EMAIL_ADDRESS_TEXT', '*'); If you delete the * from that, it will no longer display the requirement span.