LukeH Posted September 10, 2010 Share Posted September 10, 2010 Hi,The formatting for Accessories associated with a particular product is wrong on my shop. For example (click the Accessories tab);Product with AccessoryI would like to change the view to be the same as the Brands view;Brands ViewI know that it is a case of changing the product page code so that it uses the css for the Brands view but I really don't have enough skill to tackle this without help. I can edit code and change things around but this is a little too advanced for me at the moment. I have attached a couple of images showing the two views.Luke. Link to comment Share on other sites More sharing options...
Djolhan Posted September 14, 2010 Share Posted September 14, 2010 Have you try to use Firebug to see the code working on your page ? It's the best way to interact with two tpl files ! Link to comment Share on other sites More sharing options...
LukeH Posted September 14, 2010 Author Share Posted September 14, 2010 Have you try to use Firebug to see the code working on your page ? It's the best way to interact with two tpl files ! Yes ironically doing that now. I can see the difference between the div classes that are called for each view but I just don't really know how to change the css code properly without messing it up. It would appear to require quite a few changes.Luke. Link to comment Share on other sites More sharing options...
Djolhan Posted September 14, 2010 Share Posted September 14, 2010 Don't change the css code, use it Take the div, ul etc. in the good tpl for using it in the tpl your need to change. Link to comment Share on other sites More sharing options...
LukeH Posted September 14, 2010 Author Share Posted September 14, 2010 Don't change the css code, use it Take the div, ul etc. in the good tpl for using it in the tpl your need to change. I understand the theory and I will give it a go but I'm not confident I know what I'm doing.Luke. Link to comment Share on other sites More sharing options...
LukeH Posted September 14, 2010 Author Share Posted September 14, 2010 I realise now that I need to take elements of the code in product-list.tpl and replace the code in product.tpl under the heading {if isset($accessories) AND $accessories} but it doesn't seem to be a straightforward case of just changing the div, ul etc...Luke. Link to comment Share on other sites More sharing options...
LukeH Posted September 16, 2010 Author Share Posted September 16, 2010 I have attached two txt files containing my current code and the code that I would like to add.File 1 "product.txt" is the current code in product.tpl that controls the way accessories appear within my shop.File 2 "product-list.txt" is the code in product-list.tpl that controls the way products appear in Brand view and this is how I would like accessories to appear.Could someone help me take the correct code from product-list.tpl and combine it with product.tpl so that I get the desired formatting?RegardsLuke. product.txt product_list.txt Link to comment Share on other sites More sharing options...
jaimeweb Posted September 16, 2010 Share Posted September 16, 2010 I would also like my view like this. not quite sure how though. Link to comment Share on other sites More sharing options...
LukeH Posted December 16, 2010 Author Share Posted December 16, 2010 I haven't looked at this for while but I still need to get this working - anyone ?ThanksLuke. 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