brett Posted April 22, 2004 Posted April 22, 2004 I have just installed the products description Hack and I'm trying to create two DIFFERENT classes rather than the current single class in css for the PRODUCT_LIST_NAME and PRODUCT_LIST_DESCRIPTION ....here's the piece of code that groups both of them together: $lc_params .= 'class="productListing-desc"'; if ($column_list[$col] == 'PRODUCT_LIST_DESCRIPTION') { $list_box_contents[$cur_row][] = array('align' => $lc_align, 'params' => $lc_params, 'text' => $lc_text, 'desc_flag' => 'true'); } else { $list_box_contents[$cur_row][] = array('align' => $lc_align, 'params' => $lc_params, 'text' => $lc_text); } that "params" is called for both the title and description, thus forcing both of them to have the same style. does anyone have any idea how to make them different? obviously, I have defined in the stylesheet a new class called "product_name" I saw one person who did it, but he hasn't gotten back to me.... any help will be appreciated and/or rewarded. thanks in advance~ =brett= Quote
bluepony Posted April 22, 2004 Posted April 22, 2004 Couldn't you just move the $lc_params inside the IF statement? if ($column_list[$col] == 'PRODUCT_LIST_DESCRIPTION') { $lc_params .= 'class="productListing-desc"'; $list_box_contents[$cur_row][] = array('align' => $lc_align, 'params' => $lc_params, 'text' => $lc_text, 'desc_flag' => 'true'); } else { $lc_params .= 'class="product_name"'; $list_box_contents[$cur_row][] = array('align' => $lc_align, 'params' => $lc_params, 'text' => $lc_text); } Quote I'd rather be flying!
TerryK Posted April 22, 2004 Posted April 22, 2004 Brett, I answered your Email almost immediately after I received it. Check again for an Email from KIDiddles. (By the way, this 'he' is actually a 'she'... ) :) Terry Quote Terry Kluytmans Contribs Installed: Purchase Without Account (PWA); Big Images, Product Availability, Description in Product Listing, Graphical Infobox, Header Tags Controller, Login Box, Option Type Feature, plus many layout changes & other mods of my own, like: Add order total to checkout_shipment Add order total to checkout_payment Add radio buttons at checkout_shipping (for backorder options, etc.) Duplicate Table Rate Shipping Module Better Product Review Flow * If at first you don't succeed, find out if there's a prize for the loser. *
brett Posted April 22, 2004 Author Posted April 22, 2004 sorry about that... i should've guessed with the cute little kitty ;) girl coders are awesome, by the way! -brett Quote
brett Posted April 22, 2004 Author Posted April 22, 2004 and it's fixed.... thanks for the help Henry... and thanks especially to Terry for giving me the conceptual help. www.seattleteams.com/catalog ciao! =brett= Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.