Ste Berrill Posted May 5, 2011 Share Posted May 5, 2011 Hi all,I am having problems with the productscategory module. I have enabled it but it is not displaying the left and right buttonsnot slidingand products are displaying vertical instead of horizontal Any help on this would be much apprieciated.CheersStevehttp://www.ledbrite.co.uk/5-gu10-downlight-led-white.html Link to comment Share on other sites More sharing options...
kristianmu Posted May 9, 2011 Share Posted May 9, 2011 I'm not sure, but i t'hink that you have to add in the .tpl file of your theme, in the line that displais the "" a tag style="float:left" or create a rule in you rcss only for this list....What version of prestashop are you using?You cant try to reinstall the module form a fresh install of prestashop. Link to comment Share on other sites More sharing options...
Ste Berrill Posted May 19, 2011 Author Share Posted May 19, 2011 Hi, Sorry for the delay, Ive been abit tied up. I tried adding the css float left in the root css of the module folder but no luck. I also tried to edit the .tpl in the module folder but Im not sure where to add the style?If you can, could you point it out for me please.of most soft drinks. {if count($categoryProducts) > 0}{$categoryProducts|@count} {l s='other products in the same category:' mod='productscategory'} {if count($categoryProducts) > 5}{l s='Previous' mod='productscategory'}{/if} 5}style="width: {math equation="width * nbImages" width=107 nbImages=$categoryProducts|@count}px"{/if}> {foreach from=$categoryProducts item='categoryProduct' name=categoryProduct} getProductLink($categoryProduct.id_product, $categoryProduct.link_rewrite, $categoryProduct.category, $categoryProduct.ean13)}" title="{$categoryProduct.name|htmlspecialchars}">getImageLink($categoryProduct.link_rewrite, $categoryProduct.id_image, 'medium')}" alt="{$categoryProduct.name|htmlspecialchars}" />getProductLink($categoryProduct.id_product, $categoryProduct.link_rewrite, $categoryProduct.category, $categoryProduct.ean13)}" title="{$categoryProduct.name|htmlspecialchars}"> {$categoryProduct.name|truncate:15:'...'|escape:'htmlall':'UTF-8'} {if $ProdDisplayPrice AND $categoryProduct.show_price == 1 AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE}{convertPrice price=$categoryProduct.displayed_price} {else} {/if}getProductLink($categoryProduct.id_product, $categoryProduct.link_rewrite, $categoryProduct.category, $categoryProduct.ean13)}" class="button_small">{l s='View' mod='productscategory'} {/foreach} {if count($categoryProducts) > 5}{l s='Next' mod='productscategory'}{/if} [removed] $('#productscategory_list').trigger('goto', [{$middlePosition}-3]); [removed]{/if}regardsSteve Link to comment Share on other sites More sharing options...
kristianmu Posted May 19, 2011 Share Posted May 19, 2011 In the zip I attached, you have the items of css I have modified, and the module productscategory. Be sure to do a backup before change!!!!Hope it helps! change.zip Link to comment Share on other sites More sharing options...
Ste Berrill Posted May 19, 2011 Author Share Posted May 19, 2011 Hi, I managed to fix it by copying the css to the global css file and now they are displayed as block and floating to the left. thanks for your help. :-) The only problem I have with it now is that the js is not working and the products dont slide and I cant see the arrows at each side. Any ideas? Link to comment Share on other sites More sharing options...
kristianmu Posted May 19, 2011 Share Posted May 19, 2011 I'm looking your website, and it seems that the img/thumbs_left.gif and img/thumbs_right.gif are not in the correct place.If you change productscategory_scroll_left, #productscategory_scroll_right { background: url("img/thumbs_left.gif") no-repeat scroll center center transparent;...by background: url("../img/thumbs_left.gif") no-repeat scroll center center transparent;and the same for the right! Link to comment Share on other sites More sharing options...
Ste Berrill Posted May 19, 2011 Author Share Posted May 19, 2011 that fixed it, thanks, maybe u have experienced this issue but the module is displaying products from different categories. any suggestions? Link to comment Share on other sites More sharing options...
kristianmu Posted May 19, 2011 Share Posted May 19, 2011 If you read the code of the module says:/* If the visitor has came to this product by a category, use this one *//* Else, use the default product category */Your product default category is correct?Is the only thing I can think of... Link to comment Share on other sites More sharing options...
Ste Berrill Posted May 19, 2011 Author Share Posted May 19, 2011 that will probably be the problem because i have not set a default product category for this module. How do i do this? Link to comment Share on other sites More sharing options...
kristianmu Posted May 19, 2011 Share Posted May 19, 2011 Not for the module, for the products. If you have a product LED lamp, that have the default category "fetaured" and you acces directly to the product, the module will display the default category of the product that is "featured". but if you acces from the category "LED LAMPS" the module will show the "LED LAMPS" product list. For me the module works correctly... sorry if I can't help you more... (and for my english xD) Link to comment Share on other sites More sharing options...
Ste Berrill Posted May 19, 2011 Author Share Posted May 19, 2011 I will have to play around with it, thanks for ur help it was most appreciated. oh just one thing, can you make the slider auto scroll? Link to comment Share on other sites More sharing options...
kristianmu Posted May 20, 2011 Share Posted May 20, 2011 Hi!You can modify the javaScript, but I can't help you... there are a property of the scrolling javascript's that is "auto: '3'" but I'm not sure if this will works in the products category module... Sorry I can't help you anymore... 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