
Dema7
Members-
Posts
5 -
Joined
-
Last visited
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
Dema7's Achievements
-
Hi, thank you, I have no files in theme folder. The only file named "delivery-slip.payment-tab.tpl" is in root/pdf folder. The tpl contains this code (I have checked the last version of Prestashop and the code is the same): <table id="payment-tab" width="100%" cellpadding="4" cellspacing="0"> <tr> <td class="payment center small grey bold" width="44%">{l s='Payment Method' d='Shop.Pdf' pdf='true'}</td> <td class="payment left white" width="56%"> <table width="100%" border="0"> {foreach from=$order_invoice->getOrderPaymentCollection() item=payment} <tr> <td class="right small">{$payment->payment_method}</td> <td class="right small">{displayPrice currency=$payment->id_currency price=$payment->amount}</td> </tr> {foreachelse} <tr> <td>{l s='No payment' d='Shop.Pdf' pdf='true'}</td> </tr> {/foreach} </table> </td> </tr> </table> Thank you very much! Davide
-
Stock Management - Filter / Search not working properly
Dema7 replied to Dema7's topic in General topics
Thank you, I already tried but even using two tags there are no results... I have no idea how to fix it. -
Hi everyone, when in stock management the research stopped working as before. I used to filter product by name and attribute, but it is not working anymore. If I use a single tag the research works, if two or more tags are used no products are showed. Thank you very much, Davide
-
When downloading a Delivery Slip, the payment method is shown only if the Stripe module is used. If the payment is done with either PayPal, Cash on Delivery or via bank transfer, the payment method is empty: "No Payment". I tried to edit the file in pdf/delivery-slip.payment-tab.tpl with no success... As in this post: Thank you very much in advance! Davide
-
Hi, I'm trying to recreate in the latest version of Category Tree module this edit that was made from Ali Samie for Prestashop 1.7: I tried to use the same code and insert it in the new module but I keep getting errors as: 2Notice: Undefined index: numberOfProducts in .../var/cache/dev/smarty/compile/tbitr/89/21/00/8921007f54626fc7fe42cbff53f1d70828d3393d_2.module.pscategorytreeviewstempla.php on line 39" Anyone can help? I've attached the module I'm working on. Thank you very much in advance! Davide ps_categorytree.zip
-
Hi stifler97, I hope you are well! I tryed to port the edit to the new version of the module 2.0.3 on Prestashop version 8.0.3 but I can't get it right... Do you think you can take a look at it? You can find the new module with my attempt attached here 🙂 Thank you very much in advance!!! Have a nice day, Davide ps_categorytree.zip
- 19 replies
-
- number products
- category
-
(and 2 more)
Tagged with:
-
Hi stifler97, sorry for the late response, I liked the post and hope they will integrate the edit you did on the next release! Thank you again for your work! Have a nice day, Davide
- 19 replies
-
- 1
-
-
- number products
- category
-
(and 2 more)
Tagged with:
-
Thank you, now it is working fine!! And as you suggested I assigned all products to their parent categories... I hope your work will help someone else! Again, thank you and have a nice day! Davide
- 19 replies
-
- number products
- category
-
(and 2 more)
Tagged with:
-
Hi, you are right, I didn't realize all the root had 17 products... This is an example page https://thebeautyintherocks.com/en/576-amethyst-cameos This is the code I used in the override of ps_categorytree.tpl {function name="categories" nodes=[] depth=0} {strip} {if $nodes|count} <ul class="category-sub-menu"> {foreach from=$nodes item=node} <li data-depth="{$depth}" class="{if (isset($category) && is_array($category) && isset($category.id) && $category.id==$node.id) || (isset($id_category_current) && $id_category_current==$node.id)} current_cate {/if}"> {if $depth===0} <a href="{$node.link}">{$node.name} {if $categories.numberOfProducts}({$categories.numberOfProducts}){/if}</a> {if $node.children} <span class="collapse-icons{if $c_tree_path && !in_array($node.id, $c_tree_path)} collapsed{/if}" data-toggle="collapse" data-target="#exCollapsingNavbar{$node.id}" aria-expanded="{if $c_tree_path && in_array($node.id, $c_tree_path)}true{else}false{/if}"> <i class="fa fa-angle-down add" aria-hidden="true"></i> <i class="fa fa-angle-up remove" aria-hidden="true"></i> </span> <div class="collapse{if $c_tree_path && in_array($node.id, $c_tree_path)} show{/if}" id="exCollapsingNavbar{$node.id}"> {categories nodes=$node.children depth=$depth+1} </div> {/if} {else} <a class="category-sub-link" href="{$node.link}">{$node.name} {if $node.numberOfProducts}({$node.numberOfProducts}){/if}</a> {if $node.children} <span class="arrows{if $c_tree_path && !in_array($node.id, $c_tree_path)} collapsed{/if} collapse-icons" data-toggle="collapse" data-target="#exCollapsingNavbar{$node.id}" aria-expanded="{if $c_tree_path && in_array($node.id, $c_tree_path)}true{else}false{/if}"> <i class="fa fa-angle-down add" aria-hidden="true"></i> <i class="fa fa-angle-up remove" aria-hidden="true"></i> </span> <div class="collapse{if $c_tree_path && in_array($node.id, $c_tree_path)} show{/if}" id="exCollapsingNavbar{$node.id}"> {categories nodes=$node.children depth=$depth+1} </div> {/if} {/if} </li> {/foreach} </ul> {/if} {/strip} {/function} {if $categories.children|count} <div class="block block-toggle block-categories block-links js-block-toggle"> <h5 class="block-title"><span><a href="{$categories.link nofilter}">{$categories.name}</a></span> </h5> <div class="category-top-menu block-content"> {categories nodes=$categories.children} </div> </div> {/if} Thank you!! Davide
- 19 replies
-
- number products
- category
-
(and 2 more)
Tagged with:
-
Hi stifler97, thank you a lot, I installed the module and overrided the ps_categorytree.tpl in my theme without issues! I also applied this edit to made the categories to expand and highlight the current one https://www.sunnytoo.com/8222/how-to-set-the-category-tree-links-module-to-expand-the-brunch-containing-current-category-in-prestashop-1-7 You can see it working in the attached screenshot!! Can I ask you another thing? Do you think it is possible to have the root categories to show the sum of all products in subcategories? Or do I need to manual assign the product to all the categories, for example "Miscellaneous" + "Fossil" + "Ammonite"? Thank you again!!!
- 19 replies
-
- number products
- category
-
(and 2 more)
Tagged with:
-
Hi Tom, don't worry and thank you anyway!! stifler97 just solved the problem with the module he published here! Thank you again and have a nice day!
- 19 replies
-
- number products
- category
-
(and 2 more)
Tagged with:
-
Hi Tom, do you think there is a solution? Thank you very much and if you don't have time don't worry to reply, I don't want to bother you 🙂
- 19 replies
-
- number products
- category
-
(and 2 more)
Tagged with:
-
Hi Tom, thank you very much for you reply! At first didn't try the code for the top category number but only tried to see if changing that value from false to true had an impact on loading speed. The loading time is still very very slow, i would say the same, and there is now another problem: all the categories indicate a quantity of products equivalent to 1. • Category (1) - - Subcategory (1) - - Subcategory (1) - - Subcategory (1) - - Subcategory (1) If I put the value back to false the subcategories have the right number of products. Then I tried to implement directly the code for the top category number (and left the "false" value as you did), the top category still shows 0 products and still If I change the value to true all the categories shows 1 as result. Thank you again for your time! Davide
- 19 replies
-
- number products
- category
-
(and 2 more)
Tagged with: