Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

DialogBorder code change

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-07-2004, 05:48 AM
 
daveb1 daveb1 is offline
 

eXpert
  
Join Date: Sep 2003
Location: Brighton, UK
Posts: 222
 

Default DialogBorder code change

Hi all

Hopfully a quick one for you.

On the standard (3.5.3) cart, when you show a detailed product, it uses the DialogBorder class to show a line around the whole product listing, and also around the detailed image. How can I chenge the line colour around the image?

I've added a new class called DialogBorderDI to the skin1.css, but I can't find where to apply it. I'm sure it's easy, but I've not found the answer yet.

Cheers

Dave
__________________
Quiet please... I'm trying to unscramble my brian.

http://lizzybug.co.uk (live, minor mods, 4.0.15)
EZCheckout/EZUpsell (Must have mods!) Firetank's Featured Products Manager, and loads of little mods off the forum (thanks all!)

http://www.jellybeangifts.co.uk (live, 4.0.18 ) Fancy Cats + custom colour mod
Reply With Quote
  #2  
Old 03-07-2004, 11:19 PM
  enge919's Avatar 
enge919 enge919 is offline
 

Senior Member
  
Join Date: May 2003
Posts: 141
 

Default

Just change the following in your css file:

.DialogBorder {
BACKGROUND-COLOR: #000000;
}
__________________
Web site design - Custom Programming - Upgrades - Marketing
www.netvisionwebdesign.com

Follow on twitter: http://twitter.com/netvisionweb
Become a fan on Facebook: http://www.facebook.com/pages/NetVision-Web-Design/89463493419
Reply With Quote
  #3  
Old 03-07-2004, 11:34 PM
 
daveb1 daveb1 is offline
 

eXpert
  
Join Date: Sep 2003
Location: Brighton, UK
Posts: 222
 

Default

HI enge919

That changes both the border round the image, AND the whole product. I just want the border round the detailed image to change, but leave the border round the product as it is. That's why I assume you have to make a new class for the image border, but I can't find how to reference it.

Cheers

Dave
__________________
Quiet please... I'm trying to unscramble my brian.

http://lizzybug.co.uk (live, minor mods, 4.0.15)
EZCheckout/EZUpsell (Must have mods!) Firetank's Featured Products Manager, and loads of little mods off the forum (thanks all!)

http://www.jellybeangifts.co.uk (live, 4.0.18 ) Fancy Cats + custom colour mod
Reply With Quote
  #4  
Old 03-08-2004, 06:50 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

take a look at

xcart/skin1/modules/Detailed_Product_Images/product_images.tpl
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #5  
Old 03-08-2004, 08:18 AM
 
daveb1 daveb1 is offline
 

eXpert
  
Join Date: Sep 2003
Location: Brighton, UK
Posts: 222
 

Default

Hi Shan,

I see the template, but I don't see where it references the CSS file anywhere. I see where it is called in products.tpl. Wouldn't the modification be in there?

Dave
__________________
Quiet please... I'm trying to unscramble my brian.

http://lizzybug.co.uk (live, minor mods, 4.0.15)
EZCheckout/EZUpsell (Must have mods!) Firetank's Featured Products Manager, and loads of little mods off the forum (thanks all!)

http://www.jellybeangifts.co.uk (live, 4.0.18 ) Fancy Cats + custom colour mod
Reply With Quote
  #6  
Old 03-08-2004, 05:12 PM
 
concepts concepts is offline
 

Senior Member
  
Join Date: Nov 2003
Posts: 104
 

Default

find the code the the detail image, make another css for it and load it up with a class call
Reply With Quote
  #7  
Old 03-09-2004, 12:42 AM
 
daveb1 daveb1 is offline
 

eXpert
  
Join Date: Sep 2003
Location: Brighton, UK
Posts: 222
 

Default

Sorry guys, I don't think I've explained myself very well...

Here's a link to an example page http://jellybeangifts.co.uk/jshop/catalog/Funky-Blue-Blanket.html See the red border that connects to the heading "Funky Blue Blanket" that goes all the way round the details, image, cart stuff etc. Now look at the red border connected to the "Detailed Image" header... I want that border to be blue, with the other border staying red.

There must be a specific call to the DialogBox class in the css file that shows both these borders? If there isn't, can someone explain how they get there please as I obviously don't get it! I'm still learning this stuff so a little detail would be great.

Cheers

Dave
__________________
Quiet please... I'm trying to unscramble my brian.

http://lizzybug.co.uk (live, minor mods, 4.0.15)
EZCheckout/EZUpsell (Must have mods!) Firetank's Featured Products Manager, and loads of little mods off the forum (thanks all!)

http://www.jellybeangifts.co.uk (live, 4.0.18 ) Fancy Cats + custom colour mod
Reply With Quote
  #8  
Old 03-09-2004, 04:37 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

here is a new template code for

skin1/modules/detailed_product_images/product_images.tpl

Code:
{* $Id: product_images.tpl,v 1.10 2003/08/11 10:45:10 svowl Exp $ *} {if $images ne ""} {section name=image loop=$images} {if $images[image].avail eq "Y"} {if $images[image].tmbn_url} [img]{$images[image].tmbn_url}[/img] {else} [img]{$xcart_web_dir}/product_image.php?imageid={$images[image].imageid}[/img] {/if} {/if} {/section} {/if}

try that, the code was taken from a 3.5.4 install

all i have done is removed the dialog border that surrounds it.

BTW, i didnt test this so backup your original first
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #9  
Old 03-09-2004, 08:20 AM
 
daveb1 daveb1 is offline
 

eXpert
  
Join Date: Sep 2003
Location: Brighton, UK
Posts: 222
 

Default

Hi Shan,

That didn't make any difference, sorry.

Any other thoughts... anyone?

Cheers

Dave
__________________
Quiet please... I'm trying to unscramble my brian.

http://lizzybug.co.uk (live, minor mods, 4.0.15)
EZCheckout/EZUpsell (Must have mods!) Firetank's Featured Products Manager, and loads of little mods off the forum (thanks all!)

http://www.jellybeangifts.co.uk (live, 4.0.18 ) Fancy Cats + custom colour mod
Reply With Quote
  #10  
Old 03-09-2004, 10:37 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

try clear the templates cache
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 02:59 PM.

   

 
X-Cart forums © 2001-2020