Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

greasemonkey

Members
  • Posts

    1,371
  • Joined

  • Last visited

  • Days Won

    25

Everything posted by greasemonkey

  1. Hi All, I'm using PayPal Express 3.0 on 2.3.4 and have had one small issue brought up by a customers. When a customer uses the Return to "my store" link from the PayPal payment screen you are returned back to the sites shopping_cart page on SSL (example; https://ssl.oscommerce.com/demo/2/shopping_cart.php). If the customer then try's to update the quantity of products using the update button - in some browsers (firefox for one) - a security warning is received. I presume this is because the update button refreshes NOSSL - which is fine because shopping_cart is not typically seen on SSL - except when returned by PayPal. Confirmed this behaviour with Firefox at http://demo.oscommerce.com/index.php I realize this is not a huge issue... but thought it could be easily fixed by editing to? <?php echo tep_draw_form('cart_quantity', tep_href_link(FILENAME_SHOPPING_CART, 'action=update_product', 'SSL')); ?> Although I'm no coder.... And I'm not clear what other impacts this would/could have?
  2. Try posting in the support thread - http://www.oscommerce.com/forums/topic/327785-contribution-iosc-mobile-version-of-osc-on-your-iphone/
  3. @@RS Designs what does it say when you hit checkout_payment.php? Also, just confirm (because you missed the first <?php that you didn't by mistake delete the closing ?> Does your code now look like this; <?php /* kgt - discount coupons */ if( MODULE_ORDER_TOTAL_DISCOUNT_COUPON_STATUS == 'true' ) { ?> <?php echo '<strong>' . TABLE_HEADING_COUPON . '</strong>'; ?> <div class="contentInfoText"> <?php echo ENTRY_DISCOUNT_COUPON.' '.tep_draw_input_field('coupon', '', 'size="32"', $coupon); ?> </div> <?php } /* end kgt - discount coupons */ ?>
  4. Ok, so I found an "ok" solution. Hopefully someone can tell me if there is a better way? I have use the jquery migrate plugin - https://github.com/jquery/jquery-migrate/ Just downloaded the file and put it into the dir with my others... and then put <script type="text/javascript" src="ext/js/jquery-migrate-1.2.1.js"></script> in my template_top.php. My nivo slider was not working with jquery 1.11.1 either. However, I found a newer version here http://addons.oscommerce.com/info/9096 and it worked out of the box. Even though my older version now works with the migrate plugin.
  5. Hi All, I was wondering if anyone could point me in the write direction. I cannot get my superfish menu working with anything above jquery 1.8.3. I have downloaded every version of superfish.js and hoverIntent.js I could find and nothing works. I've read a lot that superfish doesn't work past jquery 1.9.0... any ideas? This is my last step in upgrading to 2.3.4...
  6. Hi all, my struggles continue with PayPal Express 3.0. However, I'm determined to get this thing to work as advertised. Here is my current setup... then I have a few questions; 1) the paypal express module and ext files are all stock - with exception of the UFT changes mentioned in my last post. All other changes mentioned above only served to confuse me/things. 2) I have instant update ON and SSL enabled (of course I have a SSL cert from a name brand provider). 3) I have removed the "checkout with paypal" button from the shopping cart page - until I can figure out why the shipping rates are not being forwarded unless a customer is logged in Here are my questions; 1) Should auto return in my PP profile be on or off? I cannot find a concrete answer for PP express in the manner - currently it is on? However, it would seem it does not matter? 2) Should auto return be true/on what should the return URL be? Currently its set to /checkout_process.php? And probably more difficult to answer.... I was having an issue where shipping rates for one of my shipping modules where doubling when redirected back to our site and I thought PP Express wasn't suppose to redirect back to checkout_confimation.php..I found this post http://www.oscommerce.com/forums/topic/301688-upsxml-135-packing-variable-reference-lost/ relating to doubling shipping rates and applied similar fixes to my Canada Post shipping module and now customers are not redirect back to checkout_confimation... so I think I've fixed but... HOWEVER; 3) Under what circumstance will PayPal Express, with instant update ON have a customer redirect back to checkout_confirmation.php? -
  7. @@joli1811 (w00t) (w00t) (w00t) (w00t) BTW, PP standard 3.1 works fine with coupon codes. But, I also use PP Pro and Express is a pre-requisite for PP Pro.
  8. @@joli1811 Can you confirm - is this addon still working for you on PayPal Express 3.1? Or have you tested it? I cannot get it to work... When a discount code is entered and the customer is re-directed to PP the per-line item feature is shut down (as I believe it is supposed to in the newest version when an external order total module is used) and only the total is shown. However it does not calculate in the coupon code into the total. I have tried with instant update on and off… neither work. I will ONLY work with instant update off, if a customer - after being redirected by PP back to checkout_confimation then goes back to checkout_payment and re-enters the coupon code.
  9. Still struggling away with this instant update feature. I have an open support ticket with PayPal, however they don't seem very keen to reply. For now, I have un-done the change suggested by Harald to redirect back to checkout_shipping and then to checkout_confirmation - it was givind difficulty with customers discount codes when logged in. So, my current setup is normal... with instant update off. @@Harald Ponce de Leon my only question today is uft related. I'm in Canada and run English only - everything is UTF8. However, PayPal Express seems to be double encoding (I think that is the technical term?). Causing issues with French accents. I've changed, in includes/modules/payment/paypal_express.php all 4 instances of (and one instance in ext/modules/payment/paypal/express.php) $post_string .= $key . '=' . urlencode(utf8_encode(trim($value))) . '&'; To $post_string .= $key . '=' . urlencode(trim($value)) . '&'; Is this acceptable? Didn't help my bigger problem un-fortunately :( :( :(
  10. @@raiwa thank you for the advice... I will try and apply all changes to cm_login_form.php... I think I'm going to call it a day, grab a beer and watch Germany vs Ghana....
  11. @@raiwa hey Rainer, I was just uploading 7.5.1 and trying to fix some other issues and while testing I noticed... on mobile/checkout_payment.php there is no billing address box or edit button as there is on the classic site There is a box on mobile/checkout_shipping page and an edit button.
  12. @@Gergely thank you kindly for your reply... So is this a much bigger job than I see (re-integrating with login.php and cm_login_form.php)? I see I've missed a few things in my code above $check_customer needs to changed to $customer. But if I'm missing the bigger picture and this won't work without significant help then maybe I need to start a commercial enquiry?
  13. Hi All, I hope your weekend is going well... I'm in the home stretch upgrading from 2.3.3.4 to 2.3.4 - just trying to get SPPC to play nice with the new login content module. Just curious if anyone with SPPC has been able to update yet? I have 4 blocks of code to add somewhere between the new login.php and \includes\modules\content\login\cm_login_form.php Just to be clear - this is above my skill level - however I have been trying... without success. I'm not able to set a SPPC customer group. When I print_r the sessions data etc on product listing I see its not set; So far in cm_login_form.php I have changed this; // Check if email exists $customer_query = tep_db_query("select customers_id, customers_password from " . TABLE_CUSTOMERS . " where customers_email_address = '" . tep_db_input($email_address) . "' limit 1"); to this // Check if email exists // BOF Separate Pricing per Customer $customer_query = tep_db_query("select customers_id, customers_firstname, customers_group_id, customers_password, customers_email_address, customers_default_address_id, customers_specific_taxes_exempt from " . TABLE_CUSTOMERS . " where customers_email_address = '" . tep_db_input($email_address) . "'"); // EOF Separate Pricing Per Customer And then added this; / BOF Separate Pricing Per Customer: choice for logging in under any customer_group_id // note that tax rates depend on your registered address! if ($_POST['skip'] != 'true' && $_POST['email_address'] == SPPC_TOGGLE_LOGIN_PASSWORD ) { $existing_customers_query = tep_db_query("select customers_group_id, customers_group_name from " . TABLE_CUSTOMERS_GROUPS . " order by customers_group_id "); echo '<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">'; print ("\n<html "); echo HTML_PARAMS; print (">\n<head>\n<title>Choose a Customer Group</title>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset="); echo CHARSET; print ("\">\n<base href=\""); echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; print ("\">\n<link rel=\"stylesheet\" type=\"text/css\" href=\"stylesheet.css\">\n"); echo '<body bgcolor="#ffffff" style="margin:0">'; print ("\n<table border=\"0\" width=\"100%\" height=\"100%\">\n<tr>\n<td style=\"vertical-align: middle\" align=\"middle\">\n"); echo tep_draw_form('login', tep_href_link(FILENAME_LOGIN, 'action=process', 'SSL'), 'post', '', true); print ("\n<table border=\"0\" bgcolor=\"#f1f9fe\" cellspacing=\"10\" style=\"border: 1px solid #7b9ebd;\">\n<tr>\n<td class=\"main\">\n"); $index = 0; while ($existing_customers = tep_db_fetch_array($existing_customers_query)) { $existing_customers_array[] = array("id" => $existing_customers['customers_group_id'], "text" => " ".$existing_customers['customers_group_name']." "); ++$index; } print ("<h1>Choose a Customer Group</h1>\n</td>\n</tr>\n<tr>\n<td align=\"center\">\n"); echo tep_draw_pull_down_menu('new_customers_group_id', $existing_customers_array, $check_customer['customers_group_id']); print ("\n<tr>\n<td class=\"main\"> <br />\n "); print ("<input type=\"hidden\" name=\"email_address\" value=\"".$_POST['email_address']."\">"); print ("<input type=\"hidden\" name=\"skip\" value=\"true\">"); print ("<input type=\"hidden\" name=\"password\" value=\"".$_POST['password']."\">\n</td>\n</tr>\n<tr>\n<td align=\"right\">\n"); echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'triangle-1-e', null, 'primary'); print ("</td>\n</tr>\n</table>\n</form>\n</td>\n</tr>\n</table>\n</body>\n</html>\n"); exit; } // EOF Separate Pricing Per Customer: choice for logging in under any customer_group_id Just before; // migrate old hashed password to new phpass password Then in login.php I have add; // BOF Separate Pricing Per Customer $customers_specific_taxes_exempt = $check_customer['customers_specific_taxes_exempt']; if ($_POST['skip'] == 'true' && $_POST['email_address'] == SPPC_TOGGLE_LOGIN_PASSWORD && isset($_POST['new_customers_group_id'])) { $sppc_customer_group_id = $_POST['new_customers_group_id'] ; $check_customer_group_tax = tep_db_query("select customers_group_show_tax, customers_group_tax_exempt, group_specific_taxes_exempt from " . TABLE_CUSTOMERS_GROUPS . " where customers_group_id = '" .(int)$_POST['new_customers_group_id'] . "'"); } else { $sppc_customer_group_id = $check_customer['customers_group_id']; $check_customer_group_tax = tep_db_query("select customers_group_show_tax, customers_group_tax_exempt, group_specific_taxes_exempt from " . TABLE_CUSTOMERS_GROUPS . " where customers_group_id = '" .(int)$check_customer['customers_group_id'] . "'"); } $customer_group_tax = tep_db_fetch_array($check_customer_group_tax); $sppc_customer_group_show_tax = (int)$customer_group_tax['customers_group_show_tax']; $sppc_customer_group_tax_exempt = (int)$customer_group_tax['customers_group_tax_exempt']; $group_specific_taxes_exempt = $customer_group_tax['group_specific_taxes_exempt']; if (tep_not_null($customers_specific_taxes_exempt)) { $sppc_customer_specific_taxes_exempt = $customers_specific_taxes_exempt; } elseif (tep_not_null($group_specific_taxes_exempt)) { $sppc_customer_specific_taxes_exempt = $group_specific_taxes_exempt; } else { $sppc_customer_specific_taxes_exempt = ''; } // EOF Separate Pricing Per Customer // BOF Separate Pricing per Customer tep_session_register('sppc_customer_group_id'); tep_session_register('sppc_customer_group_show_tax'); tep_session_register('sppc_customer_group_tax_exempt'); if (tep_not_null($sppc_customer_specific_taxes_exempt)) { tep_session_register('sppc_customer_specific_taxes_exempt'); } // EOF Separate Pricing per Customer Just after; $customer_first_name = $customer_info['customers_firstname']; tep_session_register('customer_first_name');
  14. Ok, I'm marking this one solved... As usual... something I did had un-intended consequences. In includes/classes/orders.php I had installed this code to force USD on US customers when they hit checkout_ship. Removed this code and the currency is now being correctly passed to PP... We shall she what else removing this code fixes :blush: //CAD Currency if Canada if($customer_address['countries_id'] == 223) { $currency = 'USD'; } elseif($customer_address['countries_id'] == 172) { $currency = 'USD'; } elseif($customer_address['countries_id'] == 38) { $currency = 'CAD'; } else { $currency = (USE_DEFAULT_LANGUAGE_CURRENCY == 'true') ? LANGUAGE_CURRENCY : DEFAULT_CURRENCY; } //EOF CAD currency if Canada
  15. Hi All, I have another PayPal Express issue when using Guest Checkout. I have 2 currencies set up in both PayPal and OsC - CAD (primary in both) and USD. When checking out while logged in PP Express works perfectly in both currencies. However, when using Guest Checkout from the shopping cart page and a customer is redirected to PP, if they have selected USD, the currency is automatically changed from back to CAD and stays as CAD through the PP checkout process. Anyone have any ideas? I have tested both live and sandbox. With US customers and CA customers. From my local CA IP and using a proxy US IP. I have "my store" Switch To Default Language Currency set to false.
  16. I can't edit my above post... Funny, on sandbox the duplicate checkout_confimation page happens with instand update set to false. When I switch to live credentials it is reversed??? Weird....
  17. @@Harald Ponce de Leon just testing a little more... the duplicate checkout_confimation only happens with instant update set false. So, to your earlier point (this is not wide spread), I can probably live with this work around as is. Again, I can't thank you enough for the help. I'll let you know if something else comes up.
  18. Thank you for the reply Harald the flow is; Shopping Cart -> PayPal -> Checkout Shipping -> Checkout Confirmation -> checkout confirmation -> Checkout Success
  19. @@Harald Ponce de Leon testing is going very well. I just have one concern about the change made that redirects back to checkout_shipping. It would seem I have to hit "confirm order" twice on 2 separate checkout_confimation pages. Once looks "normal" the second checkout_confimation page has the PP message stack asking to confirm the order Is there a way to remove this duplicate step? Thanks again Harald.
  20. @@Harald Ponce de Leon Bingo.... that works testing once in sandbox and once live... I will test more and let you know if I run into any issues.
  21. Please accept my apologies if I came across insulting... Tried and tested with both external modules active, one 1 active and both in-active... no change...
  22. Ok @@Harald Ponce de Leon, if you have any more idea's I would be happy to test them. Please let me know.... I would love to get this working as designed. I have 1 last question; I have turned the instant update feature off for now, so the customer is now redirected to our checkout_confirmation page and the "correct" (cheapest) shipping option is chosen because (I presume) of the changes made in include/classes/shipping.php mentioned in my first post //if ($rates[$i]['cost'] < $cheapest['cost']) { //edit to remove $0.00 from cheapest shipping... sb// if ($rates[$i]['cost'] < $cheapest['cost'] && $rates[$i]['cost'] > 0) { As an alternative to instant update because it would seem this problem is wide spread - is there a way to have the customer return to (an alternate maybe) "checkout_shipping" page where they can then select an alternative shipping method then move to checkout_confirmation (skipping checkout_payment)? Or maybe an alternative checkout_confimation page where they can select (with a radio button or drop down) alternative shipping methods? Yes, as I type this I realize this probably wouldn't work...
  23. I see... I'm definitely no expert (far from it in fact) but I would guess PP is doing something else in the 6 seconds allowed... or is ignoring the 6 seconds completely? Or the callback timeout is not the issue at all. I retest many more times; With both external shipping mods de-activated, leaving only the flat rate (in store) and zone module and the time comes in between 0.4 and 1 seconds (one time was 2.2. seconds). With 1 external module activated time comes in between 1.4 and 1.7. With both active time comes between 1.7 and 2.4 seconds. The instant update works every time with the flat rate and zone module only. And does not ever work with either external module activated UNLESS the customer is logged in.
  24. @@Harald Ponce de Leon ok test is done and the result is just over 2 seconds on multiple attempts in IE 10. I tested with 1 external shipping module and 2. The results we approximately the same on each test. The highest I saw was with a FF for TOR at 5.5 seconds;
×
×
  • Create New...