Jump to content


sgjoshi

Member Since 12 Mar 2015
Offline Last Active Mar 25 2015 01:50 PM
-----

Posts I've Made

In Topic: Search box in custom module

21 March 2015 - 03:22 PM

Yes Vekia, I want to display the product. If user enters another search term and clicks on a result, I would display that too, thereby adding products to my page. Thats what I need.

 

I tried what you suggested, but wasnt successful. I could get the autocomplete to work, but couldnt get the final result. Please help.

My customer has scrapped this requirement.. so now I have another requirement which is stumping me:

 

on a custom tpl I have a <input type="text" > which is used for entering product reference and another one for product name. For both input boxes, I want to add autocomplete functionality.  I tried adding "$this->context->controller->addJqueryPlugin('autocomplete');" in my controller's initContent function and then added following in the tpl:

<input type="text" id="ref" name="ref"/>
<script>
{literal}
$(function() {
      var refdata = ["AHS2571", "AHS327","AHP1234"];
      $("#ref").autocomplete(
              source: refdata,
          );
     });
{/literal}
</script>

I would be populating "refdata" array on page load. However, even with hardcoded values, autocomplete is not showing anything. There is no error in console. 

Can someone help me to resolve this?


In Topic: Search box in custom module

19 March 2015 - 04:52 PM

Yes Vekia, I want to display the product. If user enters another search term and clicks on a result, I would display that too, thereby adding products to my page. Thats what I need.

 

I tried what you suggested, but wasnt successful. I could get the autocomplete to work, but couldnt get the final result. Please help.


In Topic: How to change top horizontal menu - Prestashop 1.6.x

17 March 2015 - 03:17 PM

You can change the content through admin module, go to modules->modules and search for menu, then click configure for Top Horizontal menu