Eliyas Posted January 29, 2016 Share Posted January 29, 2016 (edited) Hello How can I remove empty Tags which show up along other Tags. I tried to find these empty tags in BO, but there aren't any empty tags. http://postimg.org/image/4shcdsnkv/ Thanks Edited January 29, 2016 by Eliyas (see edit history) 1 Link to comment Share on other sites More sharing options...
nidzoliki Posted February 4, 2016 Share Posted February 4, 2016 Same problem here, http://igrackepametnice.com/12-drustvene-igre Link to comment Share on other sites More sharing options...
sandipchandela Posted February 7, 2016 Share Posted February 7, 2016 pls check your admin panel. Main Menu -> Catalog -> Tags. If there are any left blank then delete it. Link to comment Share on other sites More sharing options...
Eliyas Posted February 7, 2016 Author Share Posted February 7, 2016 pls check your admin panel. Main Menu -> Catalog -> Tags. If there are any left blank then delete it. As I already said that I tried to find the empty tags in BO (Catalog > Tags) and I could not find any empty tags Link to comment Share on other sites More sharing options...
sandipchandela Posted February 11, 2016 Share Posted February 11, 2016 Check the render file I.e. theme file Remove unnecessary I tag. Link to comment Share on other sites More sharing options...
darkthorn Posted April 23, 2016 Share Posted April 23, 2016 I am also having this problem and can't solve it. archSandy could you be more specific about the render file? Thank you Link to comment Share on other sites More sharing options...
sandipchandela Posted April 30, 2016 Share Posted April 30, 2016 I am also having this problem and can't solve it. archSandy could you be more specific about the render file? Thank you Check tpl file in this folder . File name should be blocktags.tpl default-prestashop is the theme name. So you can change as per your theme. prestashop\themes\default-bootstrap\modules\blocktags Open the file in one of the text editor. {foreach from=$tags item=tag name=myLoop} <a class="{$tag.class} {if $smarty.foreach.myLoop.last}last_item{elseif $smarty.foreach.myLoop.first}first_item{else}item{/if}" href="{$link->getPageLink('search', true, NULL, "tag={$tag.name|urlencode}")|escape:'html':'UTF-8'}" title="{l s='More about' mod='blocktags'} {$tag.name|escape:'html':'UTF-8'}" > {$tag.name|escape:'html':'UTF-8'} </a> {/foreach} Find upper code and Replace code with follows: {foreach from=$tags item=tag name=myLoop} {if isset( $tag.name ) && $tag.name != '' } <a class="{$tag.class} {if $smarty.foreach.myLoop.last}last_item{elseif $smarty.foreach.myLoop.first}first_item{else}item{/if}" href="{$link->getPageLink('search', true, NULL, "tag={$tag.name|urlencode}")|escape:'html':'UTF-8'}" title="{l s='More about' mod='blocktags'} {$tag.name|escape:'html':'UTF-8'}" > {$tag.name|escape:'html':'UTF-8'} </a> {/if} {/foreach} Clear cache folder and runs it. thanks 4 Link to comment Share on other sites More sharing options...
darkthorn Posted May 7, 2016 Share Posted May 7, 2016 Thank you very much , that solved the problem. Link to comment Share on other sites More sharing options...
mcgp32 Posted May 24, 2016 Share Posted May 24, 2016 Hello, I have a similar problem.I am installing a multistore and block labels appears only in a shop and the other not.Main store: http://vidadecampo.com/tienda_prestashop/es/Secondary store: http://comidaperrospiensos.com/tienda_prestashop/es/Actually in maintenance mode.I have add products from all the shops and add tags to the products. I can see the tags in catalogue >> tags for both shops. In secondary store shows me all tags most used, but in the main shop a 10 empty boxes are displayed and nothing else. Thank you for your help Link to comment Share on other sites More sharing options...
sandipchandela Posted May 25, 2016 Share Posted May 25, 2016 Check the files in your respective stores theme file. And do change as per mentioned Link to comment Share on other sites More sharing options...
mcgp32 Posted May 26, 2016 Share Posted May 26, 2016 Thank you for your answer.I think it´s a problem for multishop.Forum said that they could be tags that had been removed and look for them in B.O. tag_count. I removed them but I noticed something.If a add a product just for one shop, the tag is correct add, but if a add a product for all shops, the tag is add to the secondary shop only.I have try to insert the tag most used in the secondary shop also in the first shop (B.O. tag_count) and it displays an error:DUPLICATE INPUT for the PRIMARY key:id_group-id_tagIt means that it is not using id_shop.I don´t know if it has happened to more people because there is not a lot of documentation for multishop, especially in Spanish.Thank you for your help Link to comment Share on other sites More sharing options...
sandipchandela Posted May 26, 2016 Share Posted May 26, 2016 It seems like you have configured incorrectly stores. Is there any upgrade happened from Old version to new version? You can try indexing that may be solve the issue Link to comment Share on other sites More sharing options...
mcgp32 Posted May 27, 2016 Share Posted May 27, 2016 Hello, I have been cheking that and if I add a product in one shop context, the tag is correct add, but if I also activate the product for secondary shop, prestashop removes the tag from the primary shop and update it to the secondary shop. The correct would be to have tags for both shops. My prestashop version is 1.6.1.4. It's my first instalattion and no update. I do not understand what you mean with indexing. Indexing what?? How can we do this?Thank you for your help. Link to comment Share on other sites More sharing options...
darkthorn Posted June 6, 2016 Share Posted June 6, 2016 After changing the code tags stopped working, now there is no tags at all :/. I need help please. Thank you Link to comment Share on other sites More sharing options...
sandipchandela Posted June 7, 2016 Share Posted June 7, 2016 Do clear cache folders. Then check it new browser. Also verify that code should be properly put in the file. Smarty Syntax should be accurate. Link to comment Share on other sites More sharing options...
sandipchandela Posted June 7, 2016 Share Posted June 7, 2016 Hi mcgp32, Please install block tags module for both shops. Also check out the availability of tags in both shop. Link to comment Share on other sites More sharing options...
mcgp32 Posted June 9, 2016 Share Posted June 9, 2016 Yes, I have installed block tags module for both shops, but it doesn´t work correctly. My prestashop version is 1.6.1.4 Link to comment Share on other sites More sharing options...
denkbeter Posted July 15, 2016 Share Posted July 15, 2016 (edited) I have this same problem, i dont have multiple shops. I even removed all tags, cleared ps_product_tag but i still have empty tags. The code for hiding them works but it does not fix the problem. Really frustrating. Edited July 15, 2016 by denkbeter (see edit history) Link to comment Share on other sites More sharing options...
sandipchandela Posted July 16, 2016 Share Posted July 16, 2016 I have this same problem, i dont have multiple shops. I even removed all tags, cleared ps_product_tag but i still have empty tags. The code for hiding them works but it does not fix the problem. Really frustrating. Are u using any thirdparty themes ? Do clear cache folders. Then check it new PRIVATE browser. Also verify that code should be properly put in the file ( theme_you_are_using/modules/blocktags/blocktags.tpl). Changes something in file for verification Smarty SYNTAX should be accurate. Link to comment Share on other sites More sharing options...
denkbeter Posted July 16, 2016 Share Posted July 16, 2016 Yes i do, but the developer signed in to backoffice and ftp and said it has nothing to do with theme and he couldn't fix it. Link to comment Share on other sites More sharing options...
sandipchandela Posted July 16, 2016 Share Posted July 16, 2016 Just go through prestashop main directory, Go cache folder. Remove all the directory and files including class_index.php except index.php If still not works then ask ur developer to provide theme_you_are_using/modules/blocktags/blocktags.tpl Regards Link to comment Share on other sites More sharing options...
denkbeter Posted July 16, 2016 Share Posted July 16, 2016 (edited) Just go through prestashop main directory, Go cache folder. Remove all the directory and files including class_index.php except index.php If still not works then ask ur developer to provide theme_you_are_using/modules/blocktags/blocktags.tpl Regards This does not work, already tried. The developer does include warehouse/modules/blocktags/blocktags.tpl *tried again, still empty tags Edited July 16, 2016 by denkbeter (see edit history) Link to comment Share on other sites More sharing options...
sandipchandela Posted July 16, 2016 Share Posted July 16, 2016 This does not work, already tried. The developer does include warehouse/modules/blocktags/blocktags.tpl *tried again, still empty tags Give me your blocktags.tpl and webstore url Link to comment Share on other sites More sharing options...
ticing Posted January 4, 2018 Share Posted January 4, 2018 Hi, In my case, the problem was that there were records in the tag_count table for tag that do not exist. My solution for PS 1.6: DELETE FROM ps_tag_count WHERE id_tag NOT IN (SELECT id_tag FROM ps_tag); Regards Link to comment Share on other sites More sharing options...
limitcracker Posted April 18, 2018 Share Posted April 18, 2018 On 4/1/2018 at 6:58 PM, ticing said: Hi, In my case, the problem was that there were records in the tag_count table for tag that do not exist. My solution for PS 1.6: DELETE FROM ps_tag_count WHERE id_tag NOT IN (SELECT id_tag FROM ps_tag); Regards any advices for PS 1.7.x ? DB Tables have changed names as I can see. Link to comment Share on other sites More sharing options...
hakeryk2 Posted March 22, 2019 Share Posted March 22, 2019 On 1/4/2018 at 5:58 PM, ticing said: Hi, In my case, the problem was that there were records in the tag_count table for tag that do not exist. My solution for PS 1.6: DELETE FROM ps_tag_count WHERE id_tag NOT IN (SELECT id_tag FROM ps_tag); Regards Well, what about ps_product_tag? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now