Jump to content
BonPresta

Advanced Ajax Live Search Product - PrestaShop 1.7

Recommended Posts

On 5/26/2019 at 2:21 PM, Maurice said:

Hello Bon Presta , i would like to ask you an help that maybe for you could be easy while for me is very hard.

Summarizing in the product.tpl i would merge production description and Features (product details) in one tab , as i understand the modify will be done through product.tpl

but i would like to ask you which line i should comment or remove , below the product.tpl:
Thanks in advance for your great support

Regards

Maurice

 

Hello Maurice,

This code remove
    <li class="nav-item">
                    <a
                      class="nav-link{if !$product.description} active{/if}"
                      data-toggle="tab"
                      href="#product-details"
                      role="tab"
                      aria-controls="product-details"
                      {if !$product.description} aria-selected="true"{/if}>{l s='Product Details' d='Shop.Theme.Catalog'}</a>
                  </li>

This code
 <div class="tab-content" id="tab-content">
                 <div class="tab-pane fade in{if $product.description} active{/if}" id="description" role="tabpanel">
                   {block name='product_description'}
                     <div class="product-description">{$product.description nofilter}</div>
                   {/block}
                 </div>

                 {block name='product_details'}
                   {include file='catalog/_partials/product-details.tpl'}
                 {/block}

Replaced by
 <div class="tab-content" id="tab-content">
                 <div class="tab-pane fade in{if $product.description} active{/if}" id="description" role="tabpanel">
                   {block name='product_description'}
                     <div class="product-description">{$product.description nofilter}</div>
                   {/block}
   {block name='product_details'}
                   {include file='catalog/_partials/product-details.tpl'}
                 {/block}
                 </div>

 

Please let me know if you have any questions. I am happy to answer.

Have a great day!

Best Regards,
Bonpresta

Share this post


Link to post
Share on other sites
1 ora fa, BonPresta dice:

 

Hello Maurice,

This code remove
    <li class="nav-item">
                    <a
                      class="nav-link{if !$product.description} active{/if}"
                      data-toggle="tab"
                      href="#product-details"
                      role="tab"
                      aria-controls="product-details"
                      {if !$product.description} aria-selected="true"{/if}>{l s='Product Details' d='Shop.Theme.Catalog'}</a>
                  </li>

This code
 <div class="tab-content" id="tab-content">
                 <div class="tab-pane fade in{if $product.description} active{/if}" id="description" role="tabpanel">
                   {block name='product_description'}
                     <div class="product-description">{$product.description nofilter}</div>
                   {/block}
                 </div>

                 {block name='product_details'}
                   {include file='catalog/_partials/product-details.tpl'}
                 {/block}

Replaced by
 <div class="tab-content" id="tab-content">
                 <div class="tab-pane fade in{if $product.description} active{/if}" id="description" role="tabpanel">
                   {block name='product_description'}
                     <div class="product-description">{$product.description nofilter}</div>
                   {/block}
   {block name='product_details'}
                   {include file='catalog/_partials/product-details.tpl'}
                 {/block}
                 </div>

 

Please let me know if you have any questions. I am happy to answer.

Have a great day!

Best Regards,
Bonpresta

Hi Bon Presta , before of all i would thank you for your GREAT support

Summarizing and if i'm not wrong i followed your instruction:

Removed this lines:

<li class="nav-item">
                    <a
                      class="nav-link{if !$product.description} active{/if}"
                      data-toggle="tab"
                      href="#product-details"
                      role="tab"
                      aria-controls="product-details"
                      {if !$product.description} aria-selected="true"{/if}>{l s='Product Details' d='Shop.Theme.Catalog'}</a>
                  </li>

and Replaced

This:

This code
 <div class="tab-content" id="tab-content">
                 <div class="tab-pane fade in{if $product.description} active{/if}" id="description" role="tabpanel">
                   {block name='product_description'}
                     <div class="product-description">{$product.description nofilter}</div>
                   {/block}
                 </div>

                 {block name='product_details'}
                   {include file='catalog/_partials/product-details.tpl'}
                 {/block}

With this

Replaced by
 <div class="tab-content" id="tab-content">
                 <div class="tab-pane fade in{if $product.description} active{/if}" id="description" role="tabpanel">
                   {block name='product_description'}
                     <div class="product-description">{$product.description nofilter}</div>
                   {/block}
   {block name='product_details'}
                   {include file='catalog/_partials/product-details.tpl'}
                 {/block}
                 </div>

The result is that finally i have one tab but it show only the product description and not the features

Kindly ask if i did something wrong

Thanks you Always in advance

Maurice

Share this post


Link to post
Share on other sites
Posted (edited)

I have installed the module but when i write  in the search box it does not show anything and i have configured the module right, enabling all the options, but it does not show anything

the url is www.joyeriapilar.com

Edited by pepote656 (see edit history)

Share this post


Link to post
Share on other sites

It is possible to add "Show all results" link after last displayed product on list?

This link would direct to classic search results.

If someone with knowledge could explain how to add such a link myself I would be grateful.

Share this post


Link to post
Share on other sites
On 7/19/2019 at 7:25 PM, pepote656 said:

I have installed the module but when i write  in the search box it does not show anything and i have configured the module right, enabling all the options, but it does not show anything

the url is www.joyeriapilar.com

Hello,

Thanks for contacting us.

Yes, I see an error with an ajax request on your site
https://joyeriapilar.com/

Need to fix through ftp for you

Please let me know if you have any questions. I am happy to answer.

Have a great day!

Best Regards,
Team Bonpresta
 

Share this post


Link to post
Share on other sites
On 8/9/2019 at 4:06 AM, altaiir123 said:

It is possible to add "Show all results" link after last displayed product on list?

This link would direct to classic search results.

If someone with knowledge could explain how to add such a link myself I would be grateful.

Hello,

Thanks for contacting us.

I think yes, we can add such a link in the new version of the module.

Please let me know if you have any questions. I am happy to answer.

Have a great day!

Best Regards,
Team Bonpresta

Share this post


Link to post
Share on other sites
22 minutes ago, BonPresta said:

Hello,

Thanks for contacting us.

Yes, I see an error with an ajax request on your site
https://joyeriapilar.com/

Need to fix through ftp for you

Please let me know if you have any questions. I am happy to answer.

Have a great day!

Best Regards,
Team Bonpresta
 

ok, How can I fix it??

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More