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

HELP!! Webmaster Mode - Can't fix accidental change!

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-03-2003, 09:39 PM
 
Cameron Cameron is offline
 

eXpert
  
Join Date: Jan 2003
Location: Washington State, USA
Posts: 224
 

Default HELP!! Webmaster Mode - Can't fix accidental change!

Firstly, webmaster mode is COOL. Second, I just KILLED my "Choose your shipping option" while changing its font color and I can't fix it! I was typing in front of it <FONT COLOR="00000

when I accidentially hit enter and it took the change. Unfortunately, even IE isn't forgiving enough of sloppy code to let this one by. This has made the text totally disappear so I can't re-highlight and edit it with webmaster mode, AND the drop down menu that lists shipping options is also gone. Moreover, I can't find where the change has been put into effect! I've scoured my xcart_data.sql file, but there's no sign of it in there.

Can anyone tell me where the webmaster mode changes get logged so I can go in and manually fix the code?

Thanks,
Cameron
Reply With Quote
  #2  
Old 02-03-2003, 10:34 PM
 
deb deb is offline
 

Advanced Member
  
Join Date: Dec 2002
Location: California
Posts: 60
 

Default

It should be in your languages area, did you search there?
Reply With Quote
  #3  
Old 02-04-2003, 01:51 AM
  shan's Avatar 
shan shan is offline
 

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

Default

turn on debugger, go to the place where the problem is. find out which tpl file you changed, go to edit templates find that tpl and choose restore file
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #4  
Old 02-04-2003, 09:28 AM
 
Cameron Cameron is offline
 

eXpert
  
Join Date: Jan 2003
Location: Washington State, USA
Posts: 224
 

Default

Hi Deb and Shan. Thank you for the replies. I know I'm close to the solution, but need a little more help. The .tpl file in question is /customer/main/cart_totals.tpl However, restoring the file doesn't fix the problem. Here is the {if} statement in cart_totals.tpl that displays the delivery option:
Quote:
{if $shipping ne ""}
<font class=FormButton>{$lng.lbl_delivery}: </font>
<select name=shippingid onchange="document.cartform.submit()">
{section name=ship_num loop=$shipping}
<option value="{$shipping[ship_num].shippingid}" {if $shipping[ship_num].shippingid eq $cart.shippingid}selected{/if}>{$shipping[ship_num].shipping|escape}</option>
{/section}
</select>


{else}
<input type=hidden name=shippingid value=0>
{/if}

So it looks like I'm looking for $lng.lbl_delivery but when I search all my x-cart files for lbl_delivery I get serveral .tpl files that are all just referring to that string. If I search for just lbl_delivery I also get xcart_data.sql but when I search that file the only line that refers to lbl_delivery is this:
Quote:
INSERT INTO xcart_languages VALUES ('US','Delivery','lbl_delivery','Delivery','Labels ');

I'm pretty stumped at this point, so if anybody can shed light on where I need to go to correct this accidential change, I would be most grateful.

Thanks,
Cameron
Reply With Quote
  #5  
Old 02-04-2003, 09:49 AM
 
FishBookStore FishBookStore is offline
 

Advanced Member
  
Join Date: Oct 2002
Posts: 58
 

Default

It is in your langage settings.

Go to http://www.yourdomain.com/xcart/admin/languages.php?language=US&topic=Labels&filter=deli very
__________________
Regards
Mark

FishBookStore.com
Version (3.3.1) (Not Live)
Reply With Quote
  #6  
Old 02-04-2003, 12:35 PM
 
Cameron Cameron is offline
 

eXpert
  
Join Date: Jan 2003
Location: Washington State, USA
Posts: 224
 

Default

Thank you fishbookstore! Here I was making life hard on myself all that time. I just logged in, went to languages, chose english and on the 4th page there was my botched <font> argument. I just took out the font argument all together.

However, I still have one small problem. The "Choose your preferred shipping method" line with drop down box *still* doesn't appear for non-logged in customers. I've triple checked my "general settings/shipping options" and the box for "Enable all shpping methods while customer not logged in" box IS checked. I unchecked it, hit apply, re-checked it, applied it. Applied it over and over and over. Just can't it to come back. I reset all of my cart.tpl and cart_totals files.

Anybody know why this might be happening?

Thanks,
Cameron
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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:43 PM.

   

 
X-Cart forums © 2001-2020