Latest News: (loading..)

hiorti

Members
  • Content count

    14
  • Joined

  • Last visited

1 Follower

About hiorti

Profile Information

  • Real Name
    Ed
  • Gender
    Male
  1. @@Dr. Rolex Hello Jonas, No actually I haven't yet. I added the alert(products_id); and I do see that the products_id is being properly recognized and transferred. However, the product is not being deleted from the cart. It looks like the problem is in cartRemoveAction function - frankly I don't see the line where the mySQL delete command is being executed. Thanks!
  2. I have found the following issues that I fixed. First, when the ajax_checkout.php is loaded for the first time the CONDITION_AGREEMENT_ERROR_CREATE_ACCOUNT and CONDITIONS_CREATE_ACCOUNT constants are not defined. To duplicate click on "Checkout without account" without checking the check-box "I have read and agree to the terms of use. Conditions and terms of use." I noticed that both constants are defined in includes/languages/english/create_account.php. However, the include/require command for create_account.php is apparently missing. So to make it easy for me I added the 2 in include/languages/english.php file. Secondly, again when the ajax_checkout.php is loaded for the first time and I try to create new account. I complete the new account creation form and I "accidentally" use an email address that is already in the database. So what happens is the form loads with the error message stating that the email address is found in the database. Meanwhile, the form now is completed with the information that I filled in - except the US State name (I'm in the US) and the state field, which now is a drop-down list is empty. So if I accidentally entered an email address that is not mine (but say my brother's) and I want to change the email address and create a new account for myself, I can't select the state because the list is blank. Since I may have used the state abbreviation or the state name (i.e. CA or California) I made the below changes - in case someone can benefit from this: In function showCreateAccount on lines 1871 and 1872 change: $state = ''; $country = ''; to: //$state = ''; //$country = ''; //(or you can delete them) in around line 2009 change: while ($zones_values = tep_db_fetch_array($zones_query)) { $zones_array[] = array('id' => $zones_values['zone_name'], 'text' => $zones_values['zone_name']); } to: while ($zones_values = tep_db_fetch_array($zones_query)) { $zones_array[] = array('id' => $zones_values['zone_name'], 'text' => $zones_values['zone_name']); if (($state == $zones_values['zone_code']) || ($state == $zones_values['zone_name'])) $state = $zones_values['zone_name']; } and right below (line 2022) change: echo tep_draw_pull_down_menu('state', $zones_array, '', 'id="state"'); to: echo tep_draw_pull_down_menu('state', $zones_array, $state, 'id="state"'); This should be OK.
  3. One more issue that I noticed. On ajax_checkout.php page when the item quantity is changed by simply entering a new number (instead of using plus or minus icons) then the cart quantity is not being updated in #headercart unless the page is refreshed. So what I did as a temporary solution for me is I changed the input field into readonly, which is not the ultimate solution as the visitor may want to change the item quantity from 1 to say 10 by entering the number vs clicking on the plus icon 9 times. I believe the .blur() function could be a solution for this , however I can't figure out how to record the difference of the old and new quantity numbers for the 'action' variable.
  4. I am having a problem deleting items. The delete icon on ajax_checkout.php does not delete the item from the cart. I have been applying some changes and I may have damaged something but I am not sure if that's the case.The code looks good but I don't see where is the delete function executed. Here are the codes in ajaxManager.js: $('body').on('click', '.cart-delete', function(){ products_id = $(this).attr('rel') ; return($(this).cartRemoveAction(products_id)); return false; }); ..... and ..... $.fn.cartRemoveAction = function(productID) { $('input[value=' + productID + '][name=\"cart_delete[]\"]').attr('checked', true) ; // If this is the last product in cart then refresh the entire page // var productsInCart = parseInt( $("#content-body input[name=products_in_cart]").val() ) ; var action = parseInt($('input[id=pl' + productID + ']').val()); action = -1 * action; $.ajax({ type: 'POST', url: encodeURI($('form[name=cart_quantity]').attr('action')) + '&show_total=1', data: $('form[name=cart_quantity]').serialize(), async: false, success: function(data) { ajaxRefreshProducts(); ajaxPerformShippingRefresh(); }, complete: function() { if ( productsInCart + action <= 0 ) { $('form[name=cart_quantity]').submit(); } return($(this).update_cart(action)); } }); return(false); } I would much appreciate any help. Thanks!
  5. Thanks Dr. Rolex. I now came back to this Add-On. All escapes are now applied and and everything is fine with the forms. Great Add-On. I am working on another small improvement and I will share once done.
  6. I know it's almost 3 years past (slightly late) but I just faced this same issue and while I this was the only post that I could find with no answer, I looked for the solution and found the place to correct it - hope someone else can benefit from this. Basically, I added a custom discount code implementation into my product_info.php and the spaces in error_message where being removed and this "The promotion code you have entered is not valid. The code may have already been expired." was being changed to this "Thepromotioncodeyouhaveenteredisnotvalid.Thecodemayhavealreadybeenexpired.". To make it short find the function: (possibly in store/includes/modules/ultimate_seo_urls5/includes/usu_general_functions.php) function usu_cleanse( $value ) { return preg_replace( '@[^a-z0-9_]@i', '', $value ); } change it to: function usu_cleanse( $value ) { // replace the spaces with + signs $value = preg_replace( ' ', '+', $value ); return preg_replace( '@[^a-z0-9_]@i', '', $value ); }
  7. Need help PLEASE! I've been working on Fast Checkout for days now and I can't pass through couple of issues and I'm not sure where it's coming from. This is a fresh install on v.2.3.3.4. On ajax_checkout.php page after logging in or after creating a new account, I try to add a new Shipping or Billing address. And when I use a hash sign (#) in the address field (i.e. 123 Main St #101) then ajax doesn't add the address to TABLE_ADDRESS_BOOK and the products and totals ($ajaxManager->showProducts(''); and $ajaxManager->showTotals('') ) are being added into 'shipping_area' (<div id="shipping_area">) creating duplicate products and totals. I am going crazy and would much appreciate any help. Thanks!
  8. I noticed that on ajax_checkout.php when I try to add a new address, which has the "#" hash sign in any field, the address is not recorded and the form crashes the page layout. However when, I do the add address via checkout_shipping.php it works as usual - without any problem. I can't find where is the issue. It would be better either allow the hash sign or at least to return an error message which would indicate that we don't "like" the hash sign. I would much appreciate any help. Thanks!
  9. Hello everyone. Does anybody know where can I download the Full version of this Add-on for version 2.3.x ? I have downloaded the v.2.2 and add the ajaxManagerTest.class.php. However I am having several issues. I spent a lot of time on trying to fix these - without any luck. Thanks in advance.
  10. Hello All, I installed the module yesterday and it looks great. Thanks Dr. Rolex. I haven't tested it completely yet but I am having some issues that I'm not sure if these are bugs or if it's from my installation. I went through the first couple of pages of the forum and scanned the remaining pages but I couldn't find anything similar to my issues and I would much appreciate any help. First, when I try to change the ordered product quantity (plus/minus), it takes 3 to 4 seconds to update the number inside the input box. Secondly, after adding products into my cart I choose Fast Checkout and on ajax_checkout.php page as soon as I click on a plus/minus icon of any of items it deletes one or more items from the cart. And if I have only one item in the cart then same thing happens - it removes the item from the cart. The Remove "X" icon doesn't remove the item from the cart. I see the tep_draw_checkbox_field('cart_delete[]', $order->products[$i]['id'], false, 'style="display:none;"') inside the code, however the checkbox doesn't appear on the page since it has display:none and frankly I'm not sure what does trigger the checkbox to display. I have been trying to resolve these issues since yesterday without any success and any help would be much appreciated. I was wondering if there is a newer upgraded Rev that I can download. I initially downloaded the Rev.3 and Updated with Rev.4. Thanks in advance.
  11. Thanks for the module. However, it looks incomplete. Configuration menu as well as installation of searched_keywords table are missing. I manually created the searched_keywords table as much columns that I could find used in scripts however, no search is being recorded into the table. Something is not right.