richc Posted November 5, 2012 Share Posted November 5, 2012 I have 2 issues with v 1.5.2: 1) If the customer goes to create an account, they can enter their full address, but if they tick the checkbox marked "Please use another address for invoice," the invoice address does not include a country dropdown or a state dropdown. The first error I get is "This country requires a state selection," which must be associated with the invoice address, as I had selected a state for the delivery address. If I try to re-submit, I get the error, "The alias My address is already used, please choose another one," though there is no text field in which to enter an Alias address. 2) I'm using Paypal and the UPS shipping modules. When I add something to my cart, the message "Free Shipping!" shows up in the right hand column cart block, as well as on the Shopping Cart Summary page. This is obviously showing up because the customer has yet to log in or enter their address, but the message is deceptive and will undoubtedly anger customers, who upon entering their addresses, will find that the shipping isn't free after all. I was able to get rid of the Free Shipping message in the right column cart block by updating the ajax-cart.js in modules/blockcart. At @ line 605, after this.nb_total_products = jsonData.nbTotalProducts, I added: //BOF HACK TO REMOVE FREE SHIPPPING TEXT if (parseFloat(jsonData.shippingCostFloat) == 0 && parseInt(jsonData.nbTotalProducts) >= 0) $('.ajax_cart_shipping_cost').text(jsonData.shippingCost); else $('.ajax_cart_shipping_cost').text(jsonData.shippingCost); //EOF HACK TO REMOVE FREE SHIPPING TEXT Basically, this will show Shipping $0.00, which isn't ideal, as I'd rather have the cart not reference shipping charges at all until such time as the customer has entered a delivery address, but it's infinitely better than getting them all excited by the promise of Free Shipping! Just as an FYI, I did update several files from the SVN, disabled caching, and deleted the online cache files, just in case these problems had been addressed, including classes/Cart.php, Controllers/Address.php, Controllers/Addresses.php, Controllers/OrderOpcController.php, themes/default/address.tpl, themes/default/addresses.tpl, themes/default/order-opc-new-account.tpl, and I updated themes/default/authentication.tpl, adding var before idSelectecCountry, countries, countriesNeedIDNumber, and CountriesNeedZipCode. Link to comment Share on other sites More sharing options...
janeske Posted December 7, 2012 Share Posted December 7, 2012 I receive the "There is 1 error - This country requires a state selection" error!!!! BUT THERE IS NOT STATE SELECTION DROP DOWN!!!! My shop is for South Africa only and i have added the zone "SOUTH AFRICA" and then all our different provinces under the states. However, if I only choose South Africa for the shipping country and have no states and zones selected, it works perfectly. The only problem is that the courier has different charges for different provinces which is why i have to create all the different provinces. URGENT HELP NEEDED!!!! Link to comment Share on other sites More sharing options...
gazapko Posted December 13, 2012 Share Posted December 13, 2012 (edited) Go to themes/yourtheme/js/order-opc.js Modify this: params += 'id_country='+encodeURIComponent($('#id_country').val())+'&'; with this: params += 'id_country='+encodeURIComponent($('#id_country'+(type == 'invoice' ? '_invoice' : '')).val())+'&'; Go to themes/yourtheme/order-opc-new-account.tpl at line 331 on there are this: {elseif $field_name eq "country"} modify with: {elseif $field_name eq "country" || $field_name eq "Country:name"} Now, you can see Country select list, and State if the country have it! Sorry for my bad english Edited December 13, 2012 by gazapko (see edit history) Link to comment Share on other sites More sharing options...
c00lways Posted March 13, 2013 Share Posted March 13, 2013 gazapko: awesome, it works Link to comment Share on other sites More sharing options...
Recommended Posts