Agaiwo Posted February 24, 2016 Share Posted February 24, 2016 (edited) Próbowałem przenieść to: {if isset($product.color_list)} <div class="color-list-container">{$product.color_list}</div> {/if} pod cenę produktu na w product_list.tpl, jednak kiedy to zrobiłem to teraz wyświetla się ona i pod krótkim opisem jak wcześniej i pod ceną na raz. Jak to zmienić by było tylko pod ceną? Oto jak to wygląda: Edited February 24, 2016 by Agaiwo (see edit history) Link to comment Share on other sites More sharing options...
0 endriu107 Posted February 25, 2016 Share Posted February 25, 2016 Zasada taka sama jak w product-list wystarczy przenieść kod w odpowiednie miejsce czyli ten fragment: var colorList = $(element).find('.color-list-container').html(); if (colorList != null) { html += '<div class="color-list-container">'+ colorList +'</div>'; } Link to comment Share on other sites More sharing options...
0 endriu107 Posted February 24, 2016 Share Posted February 24, 2016 Podaj link do sklepu. Link to comment Share on other sites More sharing options...
0 Agaiwo Posted February 25, 2016 Author Share Posted February 25, 2016 (edited) Daje link do mojego product-list.tpl - http://pastebin.com/dDZLS4k3 Edited February 25, 2016 by Agaiwo (see edit history) Link to comment Share on other sites More sharing options...
0 endriu107 Posted February 25, 2016 Share Posted February 25, 2016 Dzieje się tak ponieważ jest to definiowane nie w jednym a w dwóch plikach zobacz sobie do pliku global.js Link to comment Share on other sites More sharing options...
0 Agaiwo Posted February 25, 2016 Author Share Posted February 25, 2016 Co gdzie usunąć w takim razie żeby tego tam nie było? Link to comment Share on other sites More sharing options...
0 endriu107 Posted February 25, 2016 Share Posted February 25, 2016 Zmiany dokonujesz w pliku global.js to masz w tej sekcji zaczynającej się od: function display(view) { if (view == 'list') .... else Link to comment Share on other sites More sharing options...
0 Agaiwo Posted February 25, 2016 Author Share Posted February 25, 2016 Nie bardzo wiem co zmienić w tym: html += '<p class="product-desc">'+ $(element).find('.product-desc').html() + '</p>'; var colorList = $(element).find('.color-list-container').html(); if (colorList != null) { html += '<div class="color-list-container">'+ colorList +'</div>'; } var availability = $(element).find('.availability').html(); // check : catalog mode is enabled if (availability != null) { html += '<span class="availability">'+ availability +'</span>'; żeby nie wyświetlało się to pod opisem. Pomoże ktoś? Link to comment Share on other sites More sharing options...
0 Agaiwo Posted February 25, 2016 Author Share Posted February 25, 2016 Okay dzięki, teraz rozumiem, załatwione Link to comment Share on other sites More sharing options...
Question
Agaiwo
Próbowałem przenieść to:
pod cenę produktu na w product_list.tpl, jednak kiedy to zrobiłem to teraz wyświetla się ona i pod krótkim opisem jak wcześniej i pod ceną na raz. Jak to zmienić by było tylko pod ceną?
Oto jak to wygląda:
Link to comment
Share on other sites
8 answers to this question
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