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

Welcome Category Image

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-03-2005, 04:00 PM
 
khotos khotos is offline
 

Member
  
Join Date: Mar 2005
Location: Hollywood, FL
Posts: 29
 

Default Welcome Category Image

Hi,

I want to add an image in each category main page.
I tried placing html code into the category description but I had a large blank space between the header and my table with the images.

How can I fix this separation? or if there any better way to do this.

Thanks

Mike
__________________
Miguel Karroum
http://toosexyjeans.com
X-Cart 4.3.1
Reply With Quote
  #2  
Old 11-03-2005, 04:18 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

X-Cart replaces returns with
tags by default in the category description. In order to get html to work properly, open up subcategories.tpl and replace this:

Code:
{$current_category.description|regex_replace:"/[\n]/":" "}

with this:

Code:
{$current_category.description}

That should do the trick
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 11-03-2005, 04:33 PM
 
khotos khotos is offline
 

Member
  
Join Date: Mar 2005
Location: Hollywood, FL
Posts: 29
 

Default

Quote:
Originally Posted by balinor
X-Cart replaces returns with
tags by default in the category description. In order to get html to work properly, open up subcategories.tpl and replace this:

Code:
{$current_category.description|regex_replace:"/[\n]/":" "}

with this:

Code:
{$current_category.description}

That should do the trick


Works great, thank you very much for your help.
http://paint-store.net/store/home.php?cat=1

Do you know how to delete the navigation text above the table?
Please see the link.

Thanks
__________________
Miguel Karroum
http://toosexyjeans.com
X-Cart 4.3.1
Reply With Quote
  #4  
Old 11-03-2005, 04:35 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

That is in home.tpl, it is location.tpl. Just remove the include or comment it out.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 11-03-2005, 04:43 PM
 
khotos khotos is offline
 

Member
  
Join Date: Mar 2005
Location: Hollywood, FL
Posts: 29
 

Default

Quote:
Originally Posted by balinor
That is in home.tpl, it is location.tpl. Just remove the include or comment it out.

WOW your are the man.

The last one.
How can I delete the welcome text on home xcart ?

Thanks
Mike
__________________
Miguel Karroum
http://toosexyjeans.com
X-Cart 4.3.1
Reply With Quote
  #6  
Old 11-03-2005, 04:47 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Ok, but I start charging after this one

Easiest way is to just open up Languages in your admin menu and search for txt_welcome and put in your own content or clear it completely. You can also have a look at what is in the welcome template at customer/main/welcome.tpl.[/code]
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 11-07-2005, 12:55 PM
  eaglemobiles's Avatar 
eaglemobiles eaglemobiles is offline
 

Senior Member
  
Join Date: Jan 2005
Posts: 167
 

Default HI

I have tried the codes but it didnt work, could you please help me as i wan the same to put html and jave scripts in categories and sbucategories text box.

Thanks
__________________
X-Cart Gold 4.3.2
X-Cart Gold 4.4.1
Unix

High Quality CCTV DVRs & Cameras
http://www.eaglemobiles.co.uk/CCTV
Reply With Quote
  #8  
Old 11-07-2005, 01:04 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

If you are using javascript, you need to surround it with {literal} tags:

{literal}code{/literal}
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #9  
Old 11-07-2005, 01:09 PM
  eaglemobiles's Avatar 
eaglemobiles eaglemobiles is offline
 

Senior Member
  
Join Date: Jan 2005
Posts: 167
 

Default Hi,

Thanks for reply Balinor, below is my code when I put this code and clcik on save I get a blank box nothing saving in category text area.

{literal}
<script Langauge="JavaScript1.2">
<!--//

function openService(){
var screenWidth = 0;
var screenHeight= 0;
if (document.all || document.layers) {
screenWidth = screen.Width;
screenHeight = screen.Height;
}
var popupWinWidth = 600;
var popupWinHeight = 600;
var popupTopPosition = (screenHeight-popupWinHeight)/2;
var popupLeftPosition = (screenWidth-popupWinWidth)/2;
window.open('http://www.three.co.uk/microsites/Asset/3/redirectService.htm','popup','width=' + popupWinWidth + ',height='+ popupWinHeight +',top=' + popupTopPosition + ',left=' + popupLeftPosition + 'toolbar=no,location=no,status=no,menubar=no,scrol lbars=yes,resizable=no');
}

//-->
</script>

http://www.three.co.uk/microsites/Asset/3/servicebutton.gif
{/literal}
__________________
X-Cart Gold 4.3.2
X-Cart Gold 4.4.1
Unix

High Quality CCTV DVRs & Cameras
http://www.eaglemobiles.co.uk/CCTV
Reply With Quote
  #10  
Old 11-07-2005, 02:24 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Literal tags only around the javascript....
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
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 11:25 AM.

   

 
X-Cart forums © 2001-2020