Jump to content
mateuszc515

Cena dla koloru Pomoc

Recommended Posts

Posted (edited)

Witam, muszę dodać do pliku product.tpl prawdopodobnie jedną linijkę kodu. Musi zawierać przy kolorze cene. Przesyłam gdzie ma być cena wyświetlona. Proszę o pomoc

 

mój kod:

  <ul id = "color_to_pick_list" class = "clearfix">  
                                            {assign var = "default_colorpicker" value = ""}  
                                            {foreach from = $ group.attributes key = id_attribute item = atrybut_grupy}  
                                            {assign var = 'img_color_exists' value = file_exists ($ col_img_dir | cat: $ id_attribute | cat: '. jpg')}
                                            <li {if $ group.default == $ id_attribute} class = "selected" {/ if}> <a href="{$link-> getProductLink ($ produkt) | escape: 'html': 'UTF-8' } "id =" color _ {$ id_attribute | intval} "meta =" $ colors. $ id_attribute.price | escape: 'html': 'UTF-8' "name =" {$ colors. $ id_attribute.name | escape : 'html': 'UTF-8'} "class =" color_pick {if ($ group.default == $ id_attribute)} wybrany {/ if} "{if! $ img_color_exists && isset ($ colors. $ id_attribute.value) && $ colors. $ id_attribute.value} style = "background: {$ colors. $ id_attribute.value | escape: 'html': 'UTF-8'};”  {/ if} title = "{$ colors. $ id_attribute.name | ucieczka:


                                                {if $ img_color_exists}  
                                                <img src = "{$ img_col_dir} {$ id_attribute | intval} .jpg" alt = "{$ colors. $ id_attribute.name | escape: 'html': 'UTF-8'}" title = "{$ colors. $ id_attribute.name | escape: 'html': 'UTF-8'}" width = "20" height = "20" />  
                                                {$ group_attribute | escape: 'html': 'UTF-8'}  
 
                                                {/ if}

                                                </a>  
                                            </li>  
                                            {if ($ group.default == $ id_attribute)}  
                                            {$ default_colorpicker = $ id_attribute}  
                                            {/ if}  
                                            {/ foreach}  
                                        </ul>

cena.PNG

Edited by mateuszc515 (see edit history)

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More