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

X-Cart Adapt Template

 
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4
 
Thread Tools
  #31  
Old 08-31-2012, 05:03 AM
  KCAutosound's Avatar 
KCAutosound KCAutosound is offline
 

eXpert
  
Join Date: Feb 2005
Posts: 220
 

Default Re: X-Cart Adapt Template

Quote:
Originally Posted by JacksmithxD
Replace the Username with the Database username and same goes with the password.

Like this for example? Because it doesn't seem to be working to edit the testimonials.

$mysqlLink = @mysql_connect(
"localhost", // <- Database Hostname
"KCAuserKCA", // <- Database Username
"KCApassKCA" // <- Database Password
);
if (mysql_errno() == 0) { @mysql_select_db("KCAdataKCA", $mysqlLink); } // <- Database Name
__________________
X-Cart version 4.7.6 Gold
xcartmods.co.uk - Ultra Template
Reply With Quote
  #32  
Old 09-01-2012, 05:56 AM
 
JacksmithxD JacksmithxD is offline
 

X-Adept
  
Join Date: Oct 2010
Posts: 400
 

Default Re: X-Cart Adapt Template

Quote:
Originally Posted by KCAutosound
Like this for example? Because it doesn't seem to be working to edit the testimonials.

$mysqlLink = @mysql_connect(
"localhost", // <- Database Hostname
"KCAuserKCA", // <- Database Username
"KCApassKCA" // <- Database Password
);
if (mysql_errno() == 0) { @mysql_select_db("KCAdataKCA", $mysqlLink); } // <- Database Name

Looks good to me, add me on Skype if you get stuck I can take a look, ink-cartridges-fast is my username.
__________________
Xcart 4.5.2
Reply With Quote
  #33  
Old 09-01-2012, 07:06 AM
  KCAutosound's Avatar 
KCAutosound KCAutosound is offline
 

eXpert
  
Join Date: Feb 2005
Posts: 220
 

Default Re: X-Cart Adapt Template

Quote:
Originally Posted by JacksmithxD
Looks good to me, add me on Skype if you get stuck I can take a look, ink-cartridges-fast is my username.

I'm silly. Got it figured out. Didn't realize there was another place to put the info into on the admin/adapt_testimonials_grid.php file. All is good and luckily I had Phil's testimonials module installed on the previous site. I simply had to insert my data back into it.
__________________
X-Cart version 4.7.6 Gold
xcartmods.co.uk - Ultra Template
Reply With Quote
  #34  
Old 09-01-2012, 07:47 AM
 
JacksmithxD JacksmithxD is offline
 

X-Adept
  
Join Date: Oct 2010
Posts: 400
 

Default Re: X-Cart Adapt Template

Quote:
Originally Posted by KCAutosound
I'm silly. Got it figured out. Didn't realize there was another place to put the info into on the admin/adapt_testimonials_grid.php file. All is good and luckily I had Phil's testimonials module installed on the previous site. I simply had to insert my data back into it.

Glad your up and running again haha.
__________________
Xcart 4.5.2
Reply With Quote
  #35  
Old 09-04-2012, 06:52 AM
  KCAutosound's Avatar 
KCAutosound KCAutosound is offline
 

eXpert
  
Join Date: Feb 2005
Posts: 220
 

Default Re: X-Cart Adapt Template

quick question for Phil or anyone that's got some skills to do it. I would really like the Glossary mod to work with the product options display. For my customers I give the option to have their remote starters to be pre-wired for them. It would be great to have the Glossary bring up a quick tool tip to display what that is instead of them having to hunt around the site for the answer.
__________________
X-Cart version 4.7.6 Gold
xcartmods.co.uk - Ultra Template
Reply With Quote
  #36  
Old 09-04-2012, 07:38 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: X-Cart Adapt Template

You can use the glossary addon with the product option labels but not with the actual product options I'm afraid, unless you have some custom coding done.

Demo (see engraving)

In skin/adapt/modules/Product_Options/customer_options.tpl

Replace...

Code:
{if $usertype eq "A"} {$v.class} {else} {$v.classtext|escape|default:$v.class} {/if}

With...
Code:
{if $config.Adapt.adapt_addon_glossary eq "Y"}<span class="glossary_highlight">{/if} {if $usertype eq "A"} {$v.class} {else} {$v.classtext|escape|default:$v.class} {/if} {if $config.Adapt.adapt_addon_glossary eq "Y"}</span>{/if}
__________________
xcartmods.co.uk
Reply With Quote
  #37  
Old 09-04-2012, 10:33 AM
  KCAutosound's Avatar 
KCAutosound KCAutosound is offline
 

eXpert
  
Join Date: Feb 2005
Posts: 220
 

Default Re: X-Cart Adapt Template

That did the trick
http://www.kcautosound.com/images/forums/glossary.jpg

I did however find that now if the product option title has a few words like for example here it should say "Driver's Door Unlock" it doesn't wrap the lettering like it did before.

http://www.kcautosound.com/images/forums/nowrap.jpg
__________________
X-Cart version 4.7.6 Gold
xcartmods.co.uk - Ultra Template
Reply With Quote
  #38  
Old 09-04-2012, 10:50 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: X-Cart Adapt Template

It should be wrapping fine - Perhaps you modified some CSS?

Demo
__________________
xcartmods.co.uk
Reply With Quote
  #39  
Old 09-04-2012, 01:14 PM
  KCAutosound's Avatar 
KCAutosound KCAutosound is offline
 

eXpert
  
Join Date: Feb 2005
Posts: 220
 

Default Re: X-Cart Adapt Template

Quote:
Originally Posted by PhilJ
It should be wrapping fine - Perhaps you modified some CSS?



I don't believe I've touched anything from the CSS. In fact the only modification that I've done other than your steps of installing the Adapt template is adding my script for my live chat but I've taken then off the site completely during testing and it hasn't changed the way the option wording is displayed. I have noticed that when the page first starts to load words are fine but then after what ever scripts finishes loading it then "unwraps" the words. As seen HERE

I also did some playing around with it. If I only setup the glossary to notice the words Driver's Door then it will allow the words to wrap and does seem to solve the problem. Just becomes and issue if somewhere in a description for something else that it would pick it up like for instance if I was describing the new push-to-start systems that have a replacement Driver's Door handle.
__________________
X-Cart version 4.7.6 Gold
xcartmods.co.uk - Ultra Template
Reply With Quote
  #40  
Old 09-04-2012, 01:23 PM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: X-Cart Adapt Template

Hmm, try skin/adapt/css/altskin.csss

Look for around line 2195...

Code:
.highlightSpan { cursor: help; font-weight: bold; border-bottom: 1px dotted #333; white-space: nowrap; }

Change nowrap to normal.
__________________
xcartmods.co.uk
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4



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 12:44 PM.

   

 
X-Cart forums © 2001-2020