haochen Posted October 26, 2013 Share Posted October 26, 2013 (edited) somehow i add items from Featured products and when i move the mouse to the cart, this dont show products name, only ..., but if you refresh the web, the name appears, i restarted, deactived reactived, and unninstalled reinstalled the addon, but havent resolved this, anyone know something about this? or where could be the problem? i replaced the blockcart.tpl from /theme/..../modules/... with the original one but the problem persist... my web is www.duquesachina.com Edited October 30, 2013 by haochen (see edit history) 1 Link to comment Share on other sites More sharing options...
PascalVG Posted October 26, 2013 Share Posted October 26, 2013 Hmm, looks like it cannot find th correct translation directly. When changing the language to another (and back), the names are shown (partly, with ... at the end as the name is abbreviated because it doesn't fit fully) Maybe check if reinstalling the language block helps, or taking the language block from the default theme. Did you try to use the full default theme? did it work there as normal, or did the default theme also give these problems? Which PrestaShop version do you use? pascal Link to comment Share on other sites More sharing options...
haochen Posted October 26, 2013 Author Share Posted October 26, 2013 (edited) hello, im using 1.5.6 PS, but the products i added importing .csv why there is relation with translate? i just deleted the two translations from Spanish that has my web, but seems the problem persist. Do you mean replace /lang/ folder from my theme folder really? i planned making a subdomain and test with default theme again, but i nearly sure that this doesnt happens pd: i just tested replacing the original /lang/ from /theme/ and it seems dont taking effect.... i added left column cart hook, if you see, if i add an item this dont show anything but show the item cost that has been added, and after refreshing, it shows .... pd: just made www.duquesachina.com/prueba ,i added "add to cart" button and seems it runs well Edited October 26, 2013 by haochen (see edit history) Link to comment Share on other sites More sharing options...
PascalVG Posted October 26, 2013 Share Posted October 26, 2013 Hi Haochen, Not sure WHERE it goes wrong, only noticed that after changing the language in front office, the names appeared. Now we have to find out why and where it goes wrong ... N.B. in your last comment, do you mean it now goes well?? pascal Link to comment Share on other sites More sharing options...
haochen Posted October 26, 2013 Author Share Posted October 26, 2013 i meant that with the new default theme goes well, can you tell me how to look for the eroor? Link to comment Share on other sites More sharing options...
haochen Posted October 28, 2013 Author Share Posted October 28, 2013 someone know anything more? or should i start from 0 with default theme again >.< Link to comment Share on other sites More sharing options...
haochen Posted October 28, 2013 Author Share Posted October 28, 2013 after re-installing PS 1.5.6 4 times i discovered why products names appears as "..." on the cart, the product name only can be 12 letters "123456789012", if the name is "1234567890123" it shows as "..." on the cart if you dont refresh the page. there is any solution? Link to comment Share on other sites More sharing options...
haochen Posted October 29, 2013 Author Share Posted October 29, 2013 i just discovered that with 1.5.3.1 hasnt this problem, where can i find previous PS? like 1.5.5, to test if there is that problem and not so outupdated with 1.5.3.1 Link to comment Share on other sites More sharing options...
PascalVG Posted October 30, 2013 Share Posted October 30, 2013 haochen, you can download older versions here: http://www.prestashop.com/en/developers-versions to fix it quickly, edit /modules/blockcart/blockcart.js (As always, make backup before editing anything) around line 452 you find this code. Add/replace with red line if ($('#cart_block_product_'+ domIdProduct).length == 0) { var productId = parseInt(this.id); var productAttributeId = (this.hasAttributes ? parseInt(this.attributes) : 0); var content = '<dt class="hidden" id="cart_block_product_' + domIdProduct + '">'; content += '<span class="quantity-formated"><span class="quantity">' + this.quantity + '</span>x</span>'; // var min = this.name.indexOf(';', 10); var name = (this.name.length > 12 ? this.name.substring(0, 10) + '...' : this.name); content += '<a href="' + this.link + '" title="' + this.name + '" class="cart_block_product_name">' + name + '</a>'; That does the trick. pascal 1 Link to comment Share on other sites More sharing options...
haochen Posted October 30, 2013 Author Share Posted October 30, 2013 thanks Pascal, i thought that should be a problem with blockcart module, i mark this as solved, thanks again! Link to comment Share on other sites More sharing options...
PascalVG Posted October 30, 2013 Share Posted October 30, 2013 Glad it works! pascal Link to comment Share on other sites More sharing options...
zoomtronic Posted November 24, 2013 Share Posted November 24, 2013 Thanks PascalVG ! Link to comment Share on other sites More sharing options...
Recommended Posts