Jump to content

giorgos_p92

Members
  • Posts

    7
  • Joined

  • Last visited

Profile Information

  • Location
    Greece
  • Activity
    Developer

giorgos_p92's Achievements

Newbie

Newbie (1/14)

6

Reputation

  1. Good morning everyone, I have a problem with blockwishlist module and i can't find a solution to it. I read in numerous threads that you have to add blockwishlist to the rightcolumn modules so it can load the ajax-wishlist.js. I have done this and ajax-wishlist.js is successfully loaded. But i have another issue. When i click Add to wishlist i get a javascript error displayed in my console saying: Uncaught ReferenceError: isLogged is not defined First i went to my /themes/template/modules/blockwishlist and i renamed the folder so it only loads from /modules/blockwishlist folder. But the error didn't seem to go away. Also i checked if there is a ajax-wishlist.js at /themes/template/js/...*... but there is none. In the ajax-wishlist.js file there is this code: $.ajax({ type: 'GET', url: baseDir + 'modules/blockwishlist/cart.php?rand=' + new Date().getTime(), headers: { "cache-control": "no-cache" }, async: true, cache: false, data: 'action=' + action + '&id_product=' + id_product + '&quantity=' + quantity + '&token=' + static_token + '&id_product_attribute=' + id_product_attribute + '&id_wishlist=' + id_wishlist, success: function(data) { if (action == 'add') { if (isLogged == true) { wishlistProductsIdsAdd(id_product); wishlistRefreshStatus(); if (!!$.prototype.fancybox) $.fancybox.open([ { type: 'inline', autoScale: true, minHeight: 30, content: '<p class="fancybox-error">' + added_to_wishlist + '</p>' } ], { padding: 0 }); else alert(added_to_wishlist); } else { if (!!$.prototype.fancybox) $.fancybox.open([ { type: 'inline', autoScale: true, minHeight: 30, content: '<p class="fancybox-error">' + loggin_required + '</p>' } ], { padding: 0 }); else alert(loggin_required); } } if (action == 'delete') { wishlistProductsIdsRemove(id_product); wishlistRefreshStatus(); } if($('#' + id).length != 0) { $('#' + id).slideUp('normal'); document.getElementById(id).innerHTML = data; $('#' + id).slideDown('normal'); } } }); So i went before the if (isLogged == true) and added var isLogged = true; Then everything worked fine. So my question is how can i fix this? How can i declare this variable correctly, so that the JS knows if a user is logged in or no? PS I have updated blockwishlist module to latest version Information: http://exxesfashion.com/en/earings/1325-earings-code-9921.html Prestashop Version: 1.6.0.6
  2. Πριν μερικούς μήνες ο chrome και o Firefox κανανε ενα update που αμα η σελίδα είναι δηλωμένη οτι είναι στα ελληνικά τότε αφαιρούν αυτόματα τους τόνους απο τα κεφαλαία. Το μόνο που έπρεπε σίγουρα να κάνεις είναι να έχεις το <html lang="el"> για να ξέρει ο browser οτι η σελίδα έχει ελληνικά μέσα. Πειραματίσου ελέυθερα. Το έχω κάνει σε 1.4 και 1.5 presta και δούλεψε μια χαρά. Έχε απλά υπόψιν οτι στον Internet Explorer δεν θα φαίνεται ωραία. Δεν τους αφαιρεί.
  3. Hello, I have a lot of products with similar combinations. There are too many combinations to edit them manually. The problem: Each product has 6 groups of attributes so the generated combinations can go up 750. There is a group of attributes with 2 values. Yes or No The no value has no price impact. The Yes value has +300 impact on price My client decided that he wants the impact to change to 200. Solutions so far: I tried changing the combinations price for the attribute 62("Yes" value) directly from the database. The price was changed correctly but the changes are not showing up neither on admin panel nor on front office. I Can't regenerate the combinations through back office(product page - combinations) because i will lose the associations of photos and combinations. Any help? Giorgos
  4. Hello everyone after two days of searching and finally contacting paypal Merchant Technical Support i found the answer. My client's eshop was running in greek language. The problem: Paypal says "Character length and limitations: 127 single-byte alphanumeric characters." That means that the shortdescription must be truncated by the paypal module so it will not contain more than 127 characters. And that's what is already doing. The paypal module truncates the short description on 100 characters. By default greek characters are double-byte characters and NOT single-byte on the utf-8 encoding. So the result is that the paypal module sends a 200 character description on paypal. The solution: First, we check obvious settings like latest version of module .etc. Then we go to our paypal module files on "our_root_folder/modules/paypal/express_checkout/" We open the file process.php and find the lines "$fields['L_PAYMENTREQUEST_0_DESC'.$index] = Tools::substr(strip_tags($product['description_short']), 0, 100).'...';" and "$fields['L_PAYMENTREQUEST_0_DESC'.$index] = Tools::substr(strip_tags($discount['description']), 0, 100).'...';" And we change those lines to "$fields['L_PAYMENTREQUEST_0_DESC'.$index] = Tools::substr(strip_tags($product['description_short']), 0, 50).'...';" and "$fields['L_PAYMENTREQUEST_0_DESC'.$index] = Tools::substr(strip_tags($discount['description']), 0, 50).'...';" ------------------------------------------------------- As you can see i changed the truncated length from 100 characters to 50. So it worked for me that way. Good luck to everyone Giorgos
  5. Ok i found solution to my problem. After executing dump.sql on table ps_configuration in MYSQL the PS_COUNTRY_DEFAULT value was "21". I changed that value to 9 which my countries code. Everything now works fine.
  6. Dear Stefano, I've done this and still is not working. When i am on the new product page i choose my tax rule, enter a pre-tax value but it displays the pre tax value. http://prntscr.com/2bjfuk http://prntscr.com/2bjfqp http://prntscr.com/2bjg0d
  7. I have the same problem. In 3 Prestashop shops (v1.4.7.0-v1.4.4.0-v1.4.8.3) I have edited-created new taxes and tax-rules but nothing happens.
×
×
  • Create New...