Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

ATeschner

Archived
  • Posts

    26
  • Joined

  • Last visited

Profile Information

ATeschner's Achievements

  1. Zigen and Jason, Regarding your setopt error - This indicates that cURL is either not installed, or it is but the curl_setopt() function is disabled by your host. I am working through the same issue, and have switched web hosts over this. I verified with my previous host that they did in fact have it disabled, and were not willing to enable it due to security risks. (I suspect they are actually resellers who do not have the ability to change this...) Inquire with your web host tech support about this, and don't be surprised if they say "Oh, yes cURL is installed" They may not understand about this option. I had to persist through 4 different tech reps before I went back to the sales person who told me that they have it disabled by default but would enable it for me if I told them what port to open. (Brian stated it is port 80) I hope this information is helpful to you.
  2. Change the first 16 to a '' (that's two single quotes). This will prompt SQL to assign the next available auto-increment value as the ID. Another mod you made to your store already used ID number 16. I know you said nevermind, but I hate to leave a question un-answered for future readers.
  3. I am assuming that the shop is showing normally but this code is being echoed at the top of the page - Find the section of this very code in your includes/functions/general.php page. Do you have a closing php tag right before it perhaps? PHP code will appear in your output if you have misplaced opening or closing tags, which will cause the engine to skip parsing the code and pass it to the browser as HTML.
  4. :lol: That is funnier and more relevant than you know... Well, after much interviewing, I have settled on a new host. They said "You will also be able to use curl_setopt() in your php pages... However you would have to let our technical department know the port which you would like opened and they will be delighted to assist you with it." Ahh... Delighted! How nice. Anyways, what should I tell them?
  5. I have verified that although curl_setopt exists, it is disabled by my web host. They will not allow me to utilize it. Those of you who are successfully using this module: Are you hosting your own site or do you use a hosting provider? Who do you use? I have been sending a battery of emails to the sales depts of a lot of hosting companies, and they are saying no to curl_setopt.
  6. I guess I should ask before I assume anything - does this module incorporate any IPN features? I mean, does it update the order status automatically for chargebacks etc? Also, is this double billing problem happening to everybody or is it isolated to people who have certain mods running along side it?
  7. I created a file called curltest.php: <?php if (function_exists('curl_exec')) { $curl_message = '<br>cURL has been <b>DETECTED</b> in your system'; } else { $curl_message = '<br>cURL has <b>NOT</b> been <b>DETECTED</b> in your system'; } echo $curl_message; ?> When I ran it, it detected cURL. This would indicate that all path and proxy settings are correct, right? Is there something else I could try?
  8. Here's some more wierdness... I figured I would plop the setopt() function into general.php to see how far I could get. Now it is telling me I am redefining the function. :huh: I thought it couldn't find it...
  9. Hello all. I have read all the posts about my problem, but can't seem to get it resolved. I am getting the call to undefined function setopt() error. I have the pear files installed from both packages. I am certain that they are in the correct directory, because if they weren't, I would be getting errors on the require_once lines. I even tried copying the function from Client.php and pasting it directly into paypal_wpp.php. Even with the function defined at the very top of the file, it is still throwing the undefined error at me. How can this be? :blink:
  10. does anybody have an answer for this? I am having the same error.
  11. Simone, I don't think you did anything wrong. I was just trying to figure this one out a couple of days ago. Qihun has pointed out that this worked properly in a previous version (1.2.2) and he has rolled back to that version to fix the problem. So something has happened to the code between 1.2.2 and current to cause this bug. I have put this one on the back burner until my store is a little closer to opening, but figuring it out is definately on my to-do list. :mellow: Good luck!
  12. Well, I have been poking around and what seems to be the problem is that we changed the if/else statement in /includes/classes/shopping_cart.php to an if/elseif/else, but these changes in calculation should also be reflected in the module that calculates the subtotal for the order. The subtotal for the shopping cart is not passed directly to the order, the order does it's own calculation. I am not quite sure how the code works with all the arrays and stuff (I am only a self-taught novice :blush: ) but my focus has been drawn to the process() functions in /includes/modules/order_total/ot_subtotal.php, specifically: function process() { global $order, $currencies; $this->output[] = array('title' => $this->title . ':', 'text' => $currencies->format($order->info['subtotal'], true, $order->info['currency'], $order->info['currency_value']), 'value' => $order->info['subtotal']); } and in /includes/classes/order_total.php function process() { $order_total_array = array(); if (is_array($this->modules)) { reset($this->modules); while (list(, $value) = each($this->modules)) { $class = substr($value, 0, strrpos($value, '.')); if ($GLOBALS[$class]->enabled) { $GLOBALS[$class]->process(); for ($i=0, $n=sizeof($GLOBALS[$class]->output); $i<$n; $i++) { if (tep_not_null($GLOBALS[$class]->output[$i]['title']) && tep_not_null($GLOBALS[$class]->output[$i]['text'])) { $order_total_array[] = array('code' => $GLOBALS[$class]->code, 'title' => $GLOBALS[$class]->output[$i]['title'], 'text' => $GLOBALS[$class]->output[$i]['text'], 'value' => $GLOBALS[$class]->output[$i]['value'], 'sort_order' => $GLOBALS[$class]->sort_order); } } } } } return $order_total_array; } I believe this part of checkout_confirmation.php <?php if (MODULE_ORDER_TOTAL_INSTALLED) { $order_total_modules->process(); echo $order_total_modules->output(); } ?> is where the $order_total_array is returned to show the first sign of miscalculation in this MOD. Then upon continuing to checkout_process.php, the process function is called again require(DIR_WS_CLASSES . 'order_total.php'); $order_total_modules = new order_total; $order_totals = $order_total_modules->process(); and later actually places the values in the database by this code: for ($i=0, $n=sizeof($order_totals); $i<$n; $i++) { $sql_data_array = array('orders_id' => $insert_id, 'title' => $order_totals[$i]['title'], 'text' => $order_totals[$i]['text'], 'value' => $order_totals[$i]['value'], 'class' => $order_totals[$i]['code'], 'sort_order' => $order_totals[$i]['sort_order']); tep_db_perform(TABLE_ORDERS_TOTAL, $sql_data_array); } ...So I can get as far as interpreting the code but am not sure how arrays work. But I thought maybe I could give someone else a lead on this. I feel that the problem mostly lies in the process() function in ot_subtotal.php or order_total.php I need this to work too but am spending too much time on it at the moment. If nobody else pops up with an idea I will pick it up when my store is further along. Sorry I couldn't be more help right now.
  13. Oooh. I see what you are saying. I don't have a live shop yet, I am just beginning to develop, and the total appeared to be correct in the shopping cart, but when I read your post, I tried to checkout and the wrong value is being passed to order_total. I will mess with it some more. Thanks - That might have evaded me for too long if you didn't point that out.
  14. I am going to do that for you now. I think it is not very clear how this MOD works though. If you have a prefix in your price_prefix field, the calculation will behave as a default store. If there is no prefix, it will pass the flat price from options_values_price to the shopping cart. So if you have zero for the attribute and no prefix, you will be selling the item for nothing. If you put a + in the prefix field and a zero for the amount, your customer will be adding the option to the base price for no additional charge... if that makes sense... Check out the contrib page - I have cleaned up the instructions a bit and included "drop-in" files for those who prefer compare utilities for their modding. Cheers! :thumbsup:
×
×
  • Create New...