Jump to content

Amparfum

Members
  • Posts

    15
  • Joined

  • Last visited

Profile Information

  • First Name
    UAB
  • Last Name
    Averas

Amparfum's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. This did not work. However, I came up with my own solution, since the empty($feature.value) seemed to have no impact whatsoever. <div id="delivery"{if $feature.name == 'Delivery' && $feature.value == '1-2 days'} style="display: none;"{/if}> <h1><b><left><label>{l s='Delivery 4-15 days'}</label></b></left></h1> </div> This displays the 'Delivery 4-15 days' text all the same, except when the feature value is 1-2 days. You could add more feature values that you need to exclude, it would look like this: <div id="delivery"{if $feature.name == 'Delivery' && $feature.value == '1-2 days' OR $feature.value == '3-4 days' OR $feature.value == '5-6 days'} style="display: none;"{/if}> <h1><b><left><label>{l s='Delivery 4-15 days'}</label></b></left></h1> </div> Again, this excludes the mentioned values, which means if the value is 7-8 days, the text would be displayed, but if the value is 3-4 days, 5-6 days, 1-2 days, the text is not displayed. Hope that helps someone in the future. Thanks for you help, shokinro, have a good one. Someone mark this as solved pls.
  2. Tried it, does not work Once again, I want if feature value is empty or if it is '4-15 days' to display the text. If the value is '1-2 days' or a different value - not display. Sorry if I did not describe it properly, my english isn't that good
  3. shokinro, Thank you for you help. Yes, I have tried this. If I use this code you suggested, suddenly both '1-2 days' and '4-15 days' values react to it and display 'Delivery 4-15 days', whereas the empty value shows nothing.
  4. Hey, Vekia, Sor some reason I can't send you a private message. Mind taking a look? https://www.prestashop.com/forums/topic/523180-text-by-feature-value/
  5. Dear friends, I am trying to make this thing work in product.tpl - if my feature.name is 'Delivery' and value is '4-15 days' OR if value is empty, I need to display text 'Delivery 4-15 days'. In other cases, if value is '1-2 days' or so - no need to display the text. Here's what I have now: {if $feature.name == 'Delivery'} {if $feature.value == '4-15 days'} <h1><b><left><label>{l s='Delivery 4-15 days'}</label></b></left></h1> {/if} {/if} This works fine, but only if the '4-15 days' value is selected. I need it to work if that value is empty aswell. So far I've tried this: {if $feature.value == '4-15 days' OR !empty($feature->value)} {if $feature.name == 'Delivery' && !empty($feature->value)} Tried it in the same if, as well as in another if. Any help would be much appreciated.
  6. Hi, So I have a small problem. I would like to ADD one more category to certain products. I assume this works: UPDATE `am_category_product` SET `id_category` = 57, 78 WHERE `id_category` = 57 But I also need that from the category 57 products would be selected by name, containing specific word - like 'Giorgio Armani'. I tried adding to the query stuff like "AND pl.name = 'giorgio armani'", and so on, but it didn't work. Does anyone know how to achieve this? Thanks in advance.
  7. Hi, So I have this problem. For example, let's say I am trying to move products which have 'Giorgio Armani' in their title. I need a SQL query to work with the query below select only the products with this name and move them to additional category. I tried SELECT `pl.name` = 'Giorgio Armani' and so on, but it didn't work. Also, I need to add products to another category, but also keep them in the same one, would this code work? UPDATE `am_category_product` SET `id_category` = 57, 78 WHERE `id_category` = 57 Thank you very much for your help and time.
  8. Thank you guys, this works nicely. Could you please tell me how to decrease the price with this? Lets say I increased the price * 1.10 Now I want to decrease it to the amount before increase. Do I do it the same, just instead of * 1.10 I write / 1.10 ? I know, that I can decrease prices in BO, but there is percentage decrease - If a price was 10$, then after increase 11$, so if I make -10% it wouldn't be 10$ again.
  9. Hello there guys, Please help. I would like to add a shadow and a border to my theme like this: http://cl.ly/image/430V3T411n45 I am using prestashop 1.6.1.1 default theme. Site address - http://www.estilius.lt I found some answers here in the forum, but It didn't work me. Thanks and have a nice day.
  10. Good day everybody, So I would need some help. Googled as much as I could, but did not find anything. The problem is: Lets say I have a t-shirt in colour red and in colour yellow. But, in colour Red I only have the 'S' size t-shirt, whereas in colour yellow I only have the 'M' size t-shirt. If I select RED colour t-shirt, it still shows the 'M' as possible combination, but displays a message that this combination is not possible. Same goes if I select Yellow, it still shows the 'S' size (which I do not have in the yellow colour). I would like that, if I select RED, the combinations would adjust and only show the size I have - 'S' size. If I select Yellow it would adjust and only show the size I have - 'M' size. This is not a huge problem in my example situation, but I am planning on having like 6 colors, and 4 sizes, which would make 24 possible combinations. If I only have 10 of them in my warehouse, this will be trouble for the customer, which has to try out different combinations to know what I have at the moment in my warehouse. Thank you for your time.
  11. Yes, I suppose. Where can I find the XML import settings and/or options?
  12. Hello, Please, help me. I have automatic XML import and if I delete/disable item or items, it always appears again. I've tried to move them to different categories etc. still nothing. Also I have disabled the manufacturer I wouldn't want to see (it's still disabled) but I still see the products in the front office! Any advise is much appreciated. Have a great day.
  13. Hi there, I have a problem. In our shop in the back office, the combination page at every product does not load. Sometimes it shows loading and never loads, sometimes it's just blank. No error comes up though. What we have tried: Increasing memory limit; (both php.ini and config.inc.php) Creating errors.csv in our server, checked there, nothing came up similar with combinations; Downloading php.ini from internet and putting in the public_html and admin folder. Everything else works smoothly. I know that many of you had problems with products that have many combinations, but our products at maximum have 5-6 combinations. We are using prestashop 1.6. Thanks in advance and have a wonderful day.
×
×
  • Create New...