Jump to content
thirty bees forum

yaniv14

Members
  • Posts

    580
  • Joined

  • Last visited

  • Days Won

    24

Posts posted by yaniv14

  1. if you decided to commet out the part of code you mentioned above than you can put the hidden input right above it

    <input type="hidden" name="gift_message">
    {* 
    <p id="gift_div">
      .....
    </p>
    *}

    but also just hidding it with css will to do job just fine

    <p id="gift_div" style="display: none !important;">
      ...
    </p>

     

  2. by commenting it out, you are removing the field from the form and thats why you are getting the error message from the server... because its missing 1 of its fields.

    you can just hide it from display to avoid this problem. like wrapping it with display: none.

    another option is to comment it out like you did, but add an hidden input field with the same name.

    like: <input type="hidden" name="gift_message">

  3. id_product_attribute is the default attribute id of the product, if the product has any attributes/combinations.

    if no attributes/combinations exists for the product it will return 0.

    when you do conditional check 0 counts as false.

    to be more accurate in the case will be better to check that the integer value of the id_product_attribute is greater than 0.

    the reason you cannot call same "object properties/array keys" like "combinations" is because those variables are in most cases injected to the templates as smarty variables by php code in specific parts.

    for exmaple: in product.tpl most of the variables that available in the template comes from ProductController (FrontController)

    • Like 1
  4. regarding image uploads you can check also php configuration "upload_max_filesize".

    in order for friendly urls to work you will need to have your webserver support it. in your case you are using Lightspeed so i believe it should be similar to apache and allow usage of htaccess file. but if I remember i was in discussion in a similar topic few years ago and it was not working because the shop was not on the root folder but instead was inside a folder, like in your case "/store/.

    regarding the core update not working, i can't help much. maybe @datakick can help... but I guess upgrading to latest stable version or even bleeding edge can help.

  5. It's depend on the webserver your hosting company is using.

    If its apache webserver than recreating your htaccess should do the trick, because apche setting can be overrided by htaccess file.

    if you are using nginx webserver than htaccess wont help because nginx dont allow external overrides and all rewrites rules should be in nginx conf file.

  6. 2 hours ago, lesley said:

    You can use chrome to emulate small screen sizes once you open the inspect window. 

    But where you want to start looking is the product list and understand how that version of bootstrap works. The line you are looking for is here, https://github.com/thirtybees/niara/blob/master/product-list.tpl#L5  if you change the col-xs-12 to col-xs6 it will display as two columns on small screen category pages and searches. 

    col-xs-6

    • Like 1
×
×
  • Create New...