kiteman Posted August 27, 2011 Share Posted August 27, 2011 Hello, I encounter a strange issue with blocklayered in file product-list.tpl. I added this code to create a dynamic product_description_short. If I disable the blocklayered module, everything works and I get a complete description_short. But when the blocklayered module is enabled, the product-list appears quickly well with the complete description_short and when the blocklayered generate a new page (loading appears at the top of the page), then, the description_short appears without the category_default. this latter is blank I can't understand why ? Have got an idea, please ? {if $product.condition|upper|escape:'htmlall':'UTF-8' == "NEW"} {assign var='condition' value='NEUF'} {else} {assign var='condition' value='OCCASION'} {/if} {assign var='product_description_short' value=$condition|cat:" - "|cat:$product.manufacturer_name|cat:" - "|cat:$product.category_default} Thank you for your help PS : 1.4.4 Link to comment Share on other sites More sharing options...
OlivOliv Posted August 27, 2011 Share Posted August 27, 2011 Hi, I add the same issue than you. In fact, you must re-initialize the module (sorry, I am french, I don't know the exact translation). Olivier Link to comment Share on other sites More sharing options...
kiteman Posted August 27, 2011 Author Share Posted August 27, 2011 Thank you Newbie for your response. I tried it but the category_default is still blank. I tried to delete and create a new blocklayered template, but nothing works. Don't worry about your english. I'm also french and understood well. Thank you for your help. Did you have the same issue about a blank category_default after blocklayered generated the page ? Link to comment Share on other sites More sharing options...
kiteman Posted August 27, 2011 Author Share Posted August 27, 2011 Sorry OlivOliv for the mistake in your name. In fact, I encouter the same issue as in the product.tpl. When the blocklayered generate the page, the category_default is no more available in the product array. I compared the debug before and after. I can get the category, the id_category_default, but not the category-default. Yet, this one is available when the product-list.tpl is first displayed, just before it is regenerated 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