Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

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=

Posted

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);
}

I'd rather be flying!

Posted

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

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. *

Posted

sorry about that... i should've guessed with the cute little kitty ;)

 

girl coders are awesome, by the way!

 

-brett

Posted

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=

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...