Jump to content

mareksmareks

Members
  • Posts

    55
  • Joined

  • Last visited

Profile Information

  • Location
    Riga
  • Activity
    User/Merchant

mareksmareks's Achievements

Newbie

Newbie (1/14)

6

Reputation

1

Community Answers

  1. Hello. I need to show in my shop (1.6.1.20) FO only product available quantity if it is less then 100 pieces. If more then 100 then just to hide text. For products WITHOUT combinations i modified code in product.tpl to this and it works: <p id="pQuantityAvailable"{if $product->quantity <= 0 || $product->quantity >= 100} style="display: none;"{/if}> <span id="quantityAvailable">{$product->quantity|intval}</span> BUT this wont work on products WITH combinations. There I must modify js/product.js and I need help here because im not so familiar with javascripts. I already found these lines: if (quantitiesDisplayAllowed) { $('#pQuantityAvailable:hidden').show('slow'); $('#quantityAvailable').text(quantityAvailable); if (quantityAvailable < 2) // we have 1 or less product in stock and need to show "item" instead of "items" { $('#quantityAvailableTxt').show(); $('#quantityAvailableTxtMultiple').hide(); } else { $('#quantityAvailableTxt').hide(); $('#quantityAvailableTxtMultiple').show(); } } I changed if (quantitiesDisplayAllowed && quantityAvailable < 100) and it kind of works but when i select combination with more than 100 pieces in quantity the text wont go away. It stays on from last combination what was used with less then 100 pieces. I tried this and that but as I mentioned I am not so familiar with javascript. Can PS gurus help me out here?
  2. So you changed to KVM only because bigger companies use it? As I said, im now on KVM and I don`t feel this server any different as my other openvz servers. But this KVM is my main server for business
  3. Thank you for copy-paste about technical stuff - I know all that. At least you could skip XEN part because it`s not relevant. Of course if you should answer what is better in general then KVM is always better. But there are considerations to keep in mind that i mentioned (and selectshop.at clearly did`nt read that). Im kind of annoyed by these kind of answers - i got an answer but it helped me nothing.
  4. Hello. For reasons not to be mentioned we will need to move our shop to new server at the end of year. Right now we have VPS with KVM virtualization. We have found new host but can`t decide to choose OpenVZ or KVM. Maybe we could get some good arguments here? Right now we have these stats. - daily visits: ~400-500 - ram: 1.18 GB used, 1.96 GB total - storage: 26.37 GB used, 43.28 GB total (and growing every day as we add new products. Right now we have 5000 roducts, but can max up to 15`000 easy) - processor: QEMU Virtual CPU version 1.5.3, 2 cores (probably not so important) - daily backups to Amazon servers So we have to choose between these two options: and Price is definatley better for OpenVZ. Right now on current server I don`t see much gain or effect from KVM. So i have my doubts for keeping KVM. On one hand new hosts KVM offers SSD, on the other hand OpenVZ gives more GB and faster port speed and bit better cpu. Bandwith would`nt be a problem at any of these options. So what do you guys think?
  5. Hi. We have 1.6 with custom theme - https://mebelestev.lv/lv/viesistaba/viesistaba-galdi-kresli/viesistabas-kresli/?p=3 We are using for many products combinations and we want to display some sort of text in prduct listing page if any sort of combinations are used. As example if we add color attribute that displays small color squares in product listing page under "add to cart" button. How to change this code to show our text if ANY of attributes is used: {if isset($product.color_list)} <div class="color-list-container">{$product.color_list}</div> {/if} I know what to do with 2nd line but what should I change in $product.color_list ? Thank you!
  6. ok, so problems continued but erouvier29 saved my day with this fix - https://www.prestashop.com/forums/topic/428399-search-not-showing-all-products-in-v16013/page-3?do=findComment&comment=2075064 Thanks!
  7. Thanks, mate!!! It looks really good now. Not sure if it worked for all products (cant renember all that didn`t work, but it looks really good. Thanks a lot!!!
  8. p.s. right now reverted to original search.php (at least it shows majority of products)
  9. Hi. I tried erouvier29's patch and it now finds missing products, but it doesn`t show products at all. It just tells - "Found xx products" Check attached picture Edit: forgot to mention, im on 1.6.011, have 3 languages (only 2 are used in front office (latvian and russian), 3rd is english that is kept because not everything is properly translated in our language for backoffice and sometimes I need to switch from latvian to english) that were set up at the creation of shop. Our prestashop version history is 1.4.8->1.4.9->1.6.011
  10. Ok, what I noticed so far: - Product that did show up in search results had added product code (reference) - Product that did NOT show up was without code. Now I added reference to product that was not showing up, reindexed and it now shows up. Then i removed reference code, reindexed and it was gone again. So right now I replaced classes/search.php from latest prestashop release and looks like it works for now. But I have to make some more obervations (it works ok now for this product).
  11. As you see word "Armario" is present in both products, but when i search with word "Armario" it only finds first result - http://mebelestev.lv...&submit_search= This doesnt solve it. I have 2 products with word "Armario" inculded in title. But only 1 can be found with search.
  12. Hello. After working on adding products (now ~2300 products) some glitches are starting to show on our 1.6 version. One of the most annoying is search field. It doesn`t find all products. Example: we have 2 similar products: 1. Armario 1 - http://mebelestev.lv/lv/prieksnama-komplekti/prieksnams-armario-1.html 2. Armario 3 - http://mebelestev.lv/lv/prieksnama-komplekti/prieksnama-iekarta-armario-iii.html As you see word "Armario" is present in both products, but when i search with word "Armario" it only finds first result - http://mebelestev.lv/lv/meklet?controller=search&orderby=position&orderway=desc&search_query=armario&submit_search= Search index is regularly built entirly from scratch. This is only one of examples, there are others prducts too that dont show up but most of them work good. I tried using this advise but it didn`t change anything - https://www.prestashop.com/forums/topic/322995-search-box-not-working-good/?do=findComment&comment=1634700 Does anyone can give me some advice?
×
×
  • Create New...