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

category special charactor create error

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-10-2009, 02:17 AM
 
Kannan Kannan is offline
 

Senior Member
  
Join Date: Apr 2008
Posts: 116
 

Default category special charactor create error

Hi,
I am using x-cart pro version 4.1.10

i have one category name as "beauty & template"

First i gave "beauty & template" in category title. But category page display "beauty & template". Because we are passing value to dialog.tpl. I could not give special charactor in category title. when i give as title "beauty & template", it will display correctly everywhere. but it create html validation error.

Could any one solve my problem, i will be grateful.

Thanks in advance
__________________
4.6.6
- SNK
Reply With Quote
  #2  
Old 02-10-2009, 05:04 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: category special charactor create error

This is a problem, and I see what you mean. In order to get it to validate it needs to be "beauty & template" but then it will display it that way in the title bar of the web browser, If you use "beauty & template" then it doesn't validate.

I don't have an answer, but if it was me, I would just use "beauty and template" or "beauty - template".
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #3  
Old 02-10-2009, 05:11 AM
 
Kannan Kannan is offline
 

Senior Member
  
Join Date: Apr 2008
Posts: 116
 

Default Re: category special charactor create error

Thanks jwait,

But i dont have right to change the charactor. because client have to approve for this change. Not only that, there are lot (more than 30 category) avail some diferent special character. But i have to implement. I already compromised in last site implementation about this. But not now

Anyway i am waiting any one help

thanks in advance
__________________
4.6.6
- SNK
Reply With Quote
  #4  
Old 02-10-2009, 05:37 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: category special charactor create error

I'm no expert at Smarty but I think what is not changing the title is in skin1/customer/home.tpl...
Code:
{$location[position].0|strip_tags|escape} maybe change to {$location[position].0|escape} or {$smarty.capture.title|replace:" ":" "|truncate:$config.SEO.page_title_limit|replace:" ":" "} maybe change to {$smarty.capture.title|replace:" ":" "|replace:"&":"&"|truncate:$config.SEO.page_title_limit|replace:" ":" "|replace:"&":"&"}
Good luck!
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #5  
Old 02-10-2009, 08:16 PM
 
Kannan Kannan is offline
 

Senior Member
  
Join Date: Apr 2008
Posts: 116
 

Default Re: category special charactor create error

Hi, Jwait
I am sorry. I think you did not reach my point.

my problem describe below:


i have one category name as "beauty & template"

First i gave "beauty & template" in category title. But category page display "beauty & template". Because we are passing value to dialog.tpl. I could not give special charactor in category title. when i give as title "beauty & template", it will display correctly everywhere. but it create html validation error.


In dialog.tpl capture the title. but it disply as beauty & template.

that is my problem. could you any one have solution.

I would be grateful..

thanks for your reply.
__________________
4.6.6
- SNK
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 03:16 PM.

   

 
X-Cart forums © 2001-2020