Jump to content

goring_gap

Members
  • Content count

    115
  • Joined

  • Last visited

1 Follower

Profile Information

  • Real Name
    Simon
  • Location
    UK
  • Website
  1. goring_gap

    PayPal Website Payments Pro Hosted Solution (Official)

    There are a few issues here.... in 2.2. The cart reset happens in after_process() in includes/modules/payment/paypay_hss.php line 360: $cart->reset(true); Remove this and the cart will never empty. So not recommended at the moment :) Stock is updated in before_process() so the qty field will be adjusted if they pay or not. This to me seems all wrong. Wouldn't it be better to update stock and empty the customers basket when the IPN comes back from paypal?
  2. goring_gap

    PayPal Website Payments Pro Hosted Solution (Official)

    We have also had: PayPal IPN Verified [Completed (Unverified; £6.99); PayPal transaction value (6.99) does not match order value (6.98); Any ideas why paypal would not use the order total value?
  3. goring_gap

    PayPal Website Payments Pro Hosted Solution (Official)

    Sorry I also PM you before finding this thread. In version 2.2: The only issue that I see is that the cart resets, once a customers visits the new checkout page and then either refreshes the page or uses the back button. The cart reset needs to be made via the IPN or at the checkout success page in my view. Any chance of an update for this?
  4. goring_gap

    ULTIMATE Seo Urls 5 - by FWR Media

    Sorry to bump but still head scratching on this one... Normally when a keyword containing a space is posted in a form the space is replaced by a plus symbol e.g blue car becomes blue+car in the url, just like for the normal site keyword search tool. I am using a modified version of the keyword search tool. If I send my code to index.php with the SEO urls turned on the space is removed and no plus is added e.g. bluecar If I send my form to any other random page i.e. contact_us.php I get the normal blue+car Can anyone suggest where I should look in the SEO urls code to stop the replacement of white space for index.php?
  5. goring_gap

    ULTIMATE Seo Urls 5 - by FWR Media

    Hello, I am trying to add a "keyword filter" to sub-categories BUT the ULTIMATE Seo Urls 5 is removing the "space" between keywords. It doesn't do it for advanced_search_results.php so must be something specific to index.php. Perhaps I could ask the Seo Urls module to ignore certain GET variables e.g. filter_keywords? Any ideas most welcome. Regards, Simon
  6. If you want to use multiple currencies try: replacing: $process_button_string .= tep_draw_hidden_field('M_sid', tep_session_id()) . tep_draw_hidden_field('M_cid', $customer_id) . tep_draw_hidden_field('M_lang', $language) . tep_draw_hidden_field('M_hash', md5(tep_session_id() . $customer_id . $order_id . $language . number_format($order->info['total'], 2) . MODULE_PAYMENT_WORLDPAY_JUNIOR_MD5_PASSWORD)); with: $process_button_string .= tep_draw_hidden_field('M_sid', tep_session_id()) . tep_draw_hidden_field('M_cid', $customer_id) . tep_draw_hidden_field('M_lang', $language) . tep_draw_hidden_field('M_hash', md5(tep_session_id() . $customer_id . $order_id . $language . number_format($this->format_raw($order->info['total']), 2) . MODULE_PAYMENT_WORLDPAY_JUNIOR_MD5_PASSWORD)); otherwise the callback will fail
  7. There seems to be a session issue when using this with version 2.2 Coupons are not showing first time. If you refresh checkout_confirmation.php then the discount shows. This is because the coupon code in classes->orders.php does not see the session the first time (I don't know why). My solution was to pre-register the session on the checkout_payment.php page. You only need this if you have the issue above! in checkout_payment.php find: <?php /* kgt - discount coupons */ if( MODULE_ORDER_TOTAL_DISCOUNT_COUPON_STATUS == 'true' ) { ?> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="main"><b><?php echo TABLE_HEADING_COUPON; ?></b></td> </tr> </table></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="main"><?php echo ENTRY_DISCOUNT_COUPON.' '.tep_draw_input_field('coupon', '', 'size="32"'); ?></td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php } /* end kgt - discount coupons */ ?> change to: <?php /* kgt - discount coupons */ if( MODULE_ORDER_TOTAL_DISCOUNT_COUPON_STATUS == 'true' ) { ?> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="main"><b><?php echo TABLE_HEADING_COUPON; ?></b></td> </tr> </table></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="main"><?php echo ENTRY_DISCOUNT_COUPON.' '.tep_draw_input_field('coupon', '', 'size="32"'); ?></td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php if (!tep_session_is_registered('coupon')) tep_session_register('coupon'); //fix - session not registering } /* end kgt - discount coupons */ ?> Regards, Simon
  8. goring_gap

    [contribution] Tracking Module

    This did not work for me so I used... // Grab delivery status information and POD data. $text = preg_match('/<div class="track-right-box">(.*)<div class="FlexiList( default| null)">/i', $grab_data, $content); //$content[1] = addslashes($content[1]); $content[1] = str_replace("'", "", $content[1]); //fix for "it's" on RM page - only shows at certain RM stages
  9. goring_gap

    Ultimate Seo Urls 5 Pro

    character accent issues The language files don't work for me. It brings in the array but there must be a charset issue because the actual characters in french.php are not displayed correctly if I print_r() the array in page_modules.php i.e. // Action character conversions if ( is_array( Usu_Main::i()->getVar( 'character_conversion' ) ) ) { $string = strtr( $string, Usu_Main::i()->getVar( 'character_conversion' ) ); print_r(Usu_Main::i()->getVar( 'character_conversion' )); } If I bring the array in to the linkTextParts() function it works fine. In page_modules.php find: protected function linkTextParts( $string ) { // Action character conversions if ( is_array( Usu_Main::i()->getVar( 'character_conversion' ) ) ) { $string = strtr( $string, Usu_Main::i()->getVar( 'character_conversion' ) ); } replace with: protected function linkTextParts( $string ) { $char_convert = array('à' => 'a', 'â' => 'a', 'æ' => 'ae', 'ç' => 'c', 'é' => 'e', 'è' => 'e', 'ê' => 'e', 'ë' => 'e', 'î' => 'i', 'ï' => 'i', 'œ' => 'oe', 'ô' => 'o', 'ö' => 'o', 'ù' => 'u', 'û' => 'u', 'À' => 'A', 'Â' => 'A', 'Æ' => 'AE', 'Ç' => 'C', 'È' => 'E', 'É' => 'E', 'Ê' => 'E', 'Ë' => 'E', 'Î' => 'I', 'Ï' => 'I', 'Œ' => 'OE', 'Ô' => 'O', 'Ù' => 'U', 'Û' => 'U', 'ü' => 'u', 'ÿ' =>'y', '€' => 'Euros','ä' => 'ae', 'å' => 'a', 'æ' => 'ae', 'ð' => 'd', 'ë' => 'e', 'ö' => 'oe', 'ø' => '', 'ß' => 'ss', 'þ' => 'p', 'ü' => 'ue', 'ÿ' => 'y', 'Ä' => 'AE', 'Å' => 'A', 'Æ' => 'AE', 'Ð' => 'D', 'Ë' => 'E', 'Ö' => 'OE', 'Ø' => '', 'Þ' => '', 'Ü' => 'UE'); // Action character conversions if ( is_array( Usu_Main::i()->getVar( 'character_conversion' ) ) ) { //$string = strtr( $string, Usu_Main::i()->getVar( 'character_conversion' ) ); $string = strtr( $string, $char_convert); }
  10. goring_gap

    Header Tags SEO

    My apologies there is only one instance for the above change. i.e. just do the first one. Simon
  11. goring_gap

    Header Tags SEO

    If using the fckeditor for category descriptions, and adding html elements i.e. images in the description, you may wish to do the following: replace: if (HEADER_TAGS_ENABLE_HTML_EDITOR == 'FCKEditor') { $headertags_editor_str = '<input type="hidden" id="categories_htc_description[' . $languages[$i]['id'] . ']" name="categories_htc_description[' . $languages[$i]['id'] .']" value="' . tep_get_category_htc_description($cInfo->categories_id, $languages[$i]['id']) . '" style="display:none" /><input type="hidden" id="categories_htc_description['.$languages[$i]['id'].']___Config" value="" style="display:none" /><iframe id="categories_htc_description['.$languages[$i]['id'].']___Frame" src="fckeditor/editor/fckeditor.html?InstanceName=categories_htc_description['.$languages[$i]['id'].']&Toolbar=Default" width="600" height="300" frameborder="0" scrolling="no"></iframe>'; with if (HEADER_TAGS_ENABLE_HTML_EDITOR == 'FCKEditor') { $headertags_editor_str = '<input type="hidden" id="categories_htc_description[' . $languages[$i]['id'] . ']" name="categories_htc_description[' . $languages[$i]['id'] .']" value="' . htmlspecialchars(tep_get_category_htc_description($cInfo->categories_id, $languages[$i]['id'])) . '" style="display:none" /><input type="hidden" id="categories_htc_description['.$languages[$i]['id'].']___Config" value="" style="display:none" /><iframe id="categories_htc_description['.$languages[$i]['id'].']___Frame" src="fckeditor/editor/fckeditor.html?InstanceName=categories_htc_description['.$languages[$i]['id'].']&Toolbar=Default" width="600" height="300" frameborder="0" scrolling="no"></iframe>'; and replace: if (HEADER_TAGS_ENABLE_HTML_EDITOR == 'FCKEditor') { $headertags_editor_str = '<input type="hidden" id="categories_htc_description[' . $languages[$i]['id'] . ']" name="categories_htc_description[' . $languages[$i]['id'] .']" value="' . tep_get_category_htc_description($cInfo->categories_id, $languages[$i]['id']) . '" style="display:none" /><input type="hidden" id="categories_htc_description['.$languages[$i]['id'].']___Config" value="" style="display:none" /><iframe id="categories_htc_description['.$languages[$i]['id'].']___Frame" src="fckeditor/editor/fckeditor.html?InstanceName=categories_htc_description['.$languages[$i]['id'].']&Toolbar=Default" width="600" height="300" frameborder="0" scrolling="no"></iframe>'; with: if (HEADER_TAGS_ENABLE_HTML_EDITOR == 'FCKEditor') { $headertags_editor_str = '<input type="hidden" id="categories_htc_description[' . $languages[$i]['id'] . ']" name="categories_htc_description[' . $languages[$i]['id'] .']" value="' . htmlspecialchars(tep_get_category_htc_description($cInfo->categories_id, $languages[$i]['id'])) . '" style="display:none" /><input type="hidden" id="categories_htc_description['.$languages[$i]['id'].']___Config" value="" style="display:none" /><iframe id="categories_htc_description['.$languages[$i]['id'].']___Frame" src="fckeditor/editor/fckeditor.html?InstanceName=categories_htc_description['.$languages[$i]['id'].']&Toolbar=Default" width="600" height="300" frameborder="0" scrolling="no"></iframe>'; Basically a htmlspecialchars() around the value passed to the fckeditor. Otherwise the reloaded fckeditor may not see the previously saved html heavy content.
  12. goring_gap

    [contribution] Total B2B

    A specials price error in classes/shopping_cart.php: //TotalB2B start $products_price = tep_xppp_getproductprice($prid); $customer_discount = tep_get_discount_b2b($prid); if ($customer_discount >= 0) { $products_price = $products_price + $products_price * abs($customer_discount) / 100; } else { $products_price = $products_price - $products_price * abs($customer_discount) / 100; } if ($special_price = tep_get_products_special_price($prid)) $products_price = $special_price; //TotalB2B end to: //TotalB2B start $products_price = tep_xppp_getproductprice($prid); $customer_discount = tep_get_discount_b2b($prid); if ($special_price = tep_get_products_special_price($prid)) $products_price = $special_price; if ($customer_discount >= 0) { $products_price = $products_price + $products_price * abs($customer_discount) / 100; } else { $products_price = $products_price - $products_price * abs($customer_discount) / 100; } //TotalB2B end The specials price should come before the dicount or discounts are not applied to specials prices when the products are added to cart.
  13. goring_gap

    paypal ipn and ccgv

    You could try: //fix for coupon deduction not showing at paypal $coupon = '0'; $gv = '0'; if($order_total['ot_coupon']) $coupon = $order_total['ot_coupon']; if($order_total['ot_gv']) $gv = $order_total['ot_gv']; $subtotal = $order_total['ot_subtotal'] - $coupon - $gv; // end - fix for coupon deduction not showing at paypal //$subtotal = $order_total['ot_subtotal']; instead of : $subtotal = $order_total['ot_subtotal']; in /includes/modules/payment/paypal_ipn.php
  14. goring_gap

    Official PayPal IPN Support Thread

    I have been having a similar issue but I found that if you refresh the checkout_confirmation page the paypal ipn would then get sent and everything would be fine. My problem was that on the first visit to the checkout confirmation page, after selecting paypal ipn, the invoice field was not being filled (view the page source to see this): For example on the first time I would get this: <input type="hidden" name="invoice"> On the second time I would get this: <input type="hidden" name="invoice" value="15"> Or some other invoice number. As this is effectively the order id which the IPN later updates it's no wonder that the orders were not updating (because no order id was being passed). I THINK (I am not yet totally sure) that is because of a session/global variable issue at this line in /includes/modules/payment/paypal_ipn.php: $parameters['invoice'] = substr($cart_PayPal_IPN_ID, strpos($cart_PayPal_IPN_ID, '-')+1); I have changed it to: $parameters['invoice'] = substr($_SESSION['cart_PayPal_IPN_ID'], strpos($_SESSION['cart_PayPal_IPN_ID'], '-')+1); and it does now seem to work for me. This took quite a while to find so I hope it saves someone else that all important day or two! Note: I have register_globals ON
  15. goring_gap

    FCK WYSIWYG HTML editor

    Sorry I meant html_output.php for the location of the function - typing too fast is always a mistake in my case! Simon
×