Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Extract the current category name as text


Guest

Recommended Posts

Is there a simple way to extract the current category name in includes/modules/product_listing.php.? Having a helluva time finding this today.

 

What I would like to do is

 

images/ <?PHP echo "$categories_name_or_whatever_will_work_here"; ?> then add the extension .gif to pull an image from the images folder.

 

Example Novelties.gif    =    <?PHP echo"$categories_name"; ?>.gif

 

I would like it to work for a unique background: shopxbk1.gif as shown in the html below.

 

<TD valign="top" width="100%" background="images/shopxbk1.gif">

 

Sorry if I bumped, but 3 hours later I still have no solution.

 

Thanks for the assist.

 

TJ

Link to comment
Share on other sites

That is because no one understands the words that are coming out your fingers

 

Been a long day, sorry :)

 

God I tried that 3 hours ago - didn't work for me hehe. Finally got it to work.

 

Check it out .

 

<TD valign="top" width="100%" background=images/<?php echo $breadcrumb->last(); ?>.gif>

 

Be sure to click on the dhtml "apparel" button to see the resulting background image.

 

The background image is pulled by category name + .gif - seems simple enough, but it isn't to me.

 

http://pacifichostingsolutions.com/Clients...ex.php?cPath=23

 

Thanks dburchm1

 

TJ

Link to comment
Share on other sites

Hey man, nice looking osC shopping cart!

 

But the shopping cart links in your flash are no good.

L8r,

PopTheTop

 

Published osC Contributions:

- eCheck Payment Module v3.1

- Reviews in Product Display v2.0

- Fancier Invoice & Packingslip v6.1

- Admin Notes / Customer Notes v2.2

- Customer Zip & State Validation v2.2

- Search Box with Dropdown Category Menu v1.0

 

Pop your camper's top today!

It's a popup thing...

You wouldn't understand

Link to comment
Share on other sites

Hey man, nice looking osC shopping cart!

 

But the shopping cart links in your flash are no good.

 

 

.

 

The site is in beta for about another two weeks. Testing server is all. Just gluing it together.. :)

 

Helluva project,

 

Thanks...

 

TJ

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...