Add description

More
9 years 1 month ago #3076 by vanaveno
Add description was created by vanaveno
Hello,
I set Add description on List1 city List2 discount and List3 orgin price. The output I got, for example Město: celá čr Sleva: - 78 440.00
test.multi-web.cz/slevove-servery/Hyperslevy

I want to modify the code of description. add to Sleva % Sleva -78% or Original price I want to cross out [strike]440.00[/strike]. In default_full.php I found echo $item; where I can to find <ul> list and change it. Thanks

<ul>
<li>Město: olomouc </li>
<li>Sleva: - 53 </li>
<li> 620.00 </li>
</ul>

Please Log in or Create an account to join the conversation.

More
9 years 1 month ago #3077 by bram
Replied by bram on topic Add description
Hi,

the whole list stuff is added to the descriptopn and coded in the generic_cb and there is no way to easily change that.

For the 3.x version the list en tekst fields are removed, here the idea is that you create the list on your own. The same method can be used on the 2.5 version.

Assign the 'old price' to one of the Select fields for example Select8

now in the layout use
Code:
echo '<span class="oldprice">Old price: '.$item['Select8'].'</span>';

or whatever you like


or use CSS with the current list
Code:
.datafeeds_description li:nth-child(3) { text-decoration: line-through; }
The following user(s) said Thank You: vanaveno

Please Log in or Create an account to join the conversation.

Time to create page: 0.159 seconds