Jump to content

[Solved]Attributes help


Recommended Posts

HI

 

I need to display the amount of values an atrribute has in a numerical way on my product_list_tpl

 

For example:

 

I have an attribute named Colour and it has 6 colours, so I would like to diplay something like below

 

Available in (6) Colours

 

Any help would be welcome.

 

Chris

Edited by Groove (see edit history)
Link to comment
Share on other sites

Aim higher :) and let the customer see and select the colors right there...

 

Check out http://www.prestashop.com/forums/index.php?/topic/79758-module-product-list-attributes-allow-customers-to-select-product-attributes-on-the-category-manufacturer-supplier-and-search-pages/

 

If you just want to show the number of combinations, you would need to modify the category controller, and get the number of combinations for each product, assign it to a smarty variable, and then print it in product-list.tpl

Link to comment
Share on other sites

HI Thanks for your reply

 

However I'm not after one of your modules, I need to specifically show the amount of colour values that are in the colour attribute i have set up as for your other bit of text you may as well of been speaking greek.

 

It's ok I'll figure it out

Edited by Groove (see edit history)
Link to comment
Share on other sites

I gave the module as a suggestion, at the end of the day, it could help you convert more sales, but it is purely a suggestion.

 

I also provide instructions on what you would need to do for your specific request, as it is not a quick and simple change, you are trying to print information in a place where it is currently not available.

 

If you are looking for someone to post all the required changes, and basically code this customization for you for free, you may be waiting for a while.

 

However, if you are a developer, or actually interested in doing this yourself, feel free to post some specific changes you did, or actual questions / problems you ran into while trying to make the modification, I'm sure you would get help.

Link to comment
Share on other sites

Funny how it was a self promo suggestion though

 

That's a huge problem with this forum, people self promoting and not actualy helping, if you look at some of my posts, any solution I have found I have passed on...and for free, because beleive it of not that's what OS is about right.

Edited by Groove (see edit history)
Link to comment
Share on other sites

Funny how it was a self promo suggestion though That's a huge problem with this forum, people self promoting and not actualy helping, if you look at some of my posts, any solution I have found I have passed on...and for free, because beleive it of not that's what OS is about right.

 

Hi Groove, thank you for posting! tomer3g did provide a module as a suggestion, but that's not all he did. He actually pointed you in the right direction. You mentioned in your post that you want to edit the product_list.tpl to make these changes, but that's not actually all that needs to change.

 

You did say, "any help would be welcome" and

If you just want to show the number of combinations, you would need to modify the category controller, and get the number of combinations for each product, assign it to a smarty variable, and then print it in product-list.tpl

 

Is certainly helpful.

 

There is a guide by another Moderator Nemo1 which goes over how to Add the Unit Price to the product_list.tpl . It is relevant to what you are trying to do and it will probably lead you in the right direction if you want to manually code this. http://nemops.com/unit-price-in-prestashop-product-list/

 

I could not find a "how to" article or tutorial that will directly answer your question, but hopefully we all can work together to find a solution.

Link to comment
Share on other sites

×
×
  • Create New...