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

The template names in the source code
 
Reply
   X-Cart forums > X-Cart 4 > Changing and adding new features
 
Thread Tools Search this Thread
  #11  
Old 07-18-2007, 03:32 AM
  vtonya's Avatar 
vtonya vtonya is offline
 

Advanced Member
  
Join Date: Apr 2007
Posts: 61
 

Default Re: The template names in the source code

Thanks a lot!
Just what i needed!
__________________
X-card Gold 4.1.7
Batch Order Mod/Order Processing
Detailed Order Management Mod
Order Audit/Profit reports
Advanced Product Search
Ajax Username Checker
Direct Product Enquiry Form
FAQ Manager
Social Bookmarking
Tabs Mod v3
MagneticOne.com All-IN-ONE X-Cart Export
Show Referrer Information on Order Details Page
www.medsmarket.net
Reply With Quote
  #12  
Old 01-27-2008, 03:20 AM
 
Nadeem Nadeem is offline
 

Advanced Member
  
Join Date: Sep 2006
Posts: 56
 

Default Re: The template names in the source code

add:
"customer/home.tpl",
to the $templates in function func_show_as_comment


Code:
function func_show_as_comment($string, $end=false) { $templates = array ( "customer/home.tpl", "buttons/go_image_menu.tpl", "modules/Special_Offers/customer/cart_checkout_buttons.tpl", "main/title_selector.tpl", "modules/QuickBooks/orders.tpl", "modules/UPS_OnLine_Tools/ups_currency.tpl", "buttons/go_image.tpl", "buttons/go_image_menu.tpl", "main/image_property.tpl", "main/include_js.tpl" ); if (!in_array($string, $templates) ) { echo "\n\n<!--"; if ($end) echo " / "; echo "$string -->\n\n"; } }

Quote:
Originally Posted by carpeperdiem
Eugene,

I found a slight problem with this new mod:

In Windows IE6 and IE7, WHILE LOGGED IN as admin, it disrupts the css style sheet, to the point where a "centered" container no longer centers, category menus
distort and basically the site looks like doo. A simple logout by the admin and everything is back to normal. if the admin logs in, then it looks like doo again (that is, CSS is not recognized or used).

This problem does not show itself in Firefox (win or mac) or any mac browser. I did not test in Safari/windows.

Basically, whatever is going on here disrupts the CSS code in MSIE 6 and 7 (win XP pro SP2 -- tested on 2 different machines) - ONLY when logged in as admin.

For now, I have reverted to what I had, and I can re-visit this another time...

Thanks

Jeremy
__________________
X-Cart 4.4.5 | Linux/Apache | PHP 5.2.17 | MySQL 5.0.77 | FireFox
Reply With Quote
  #13  
Old 01-30-2008, 06:39 PM
 
david@WSS david@WSS is offline
 

Newbie
  
Join Date: Dec 2007
Location: Los Angeles
Posts: 8
 

Default Re: The template names in the source code

I am just starting designing my x-cart store. This mod is extremely helpful in figuring all this out.

I have discovered that this mod "breaks" the mod for "Color Code Order Status".

http://forum.x-cart.com/showthread.php?t=4949&highlight=color+orders

The modifications to Smarty cause problems in the color coding of the Order Status table.

Any suggestion on how I can make both work. This is WAY over my head.

Thanks,
David

http://forum.x-cart.com/images/attach/jpg.gif
Attached Thumbnails
Click image for larger version

Name:	xcart_colorMod_prob.jpg
Views:	36
Size:	18.3 KB
ID:	759  
__________________
David
Wide Screen Software LLC
============
X-Cart Gold v4.1.9
in development

PHP 5.2.5
MySQL 5.0.45
Apache 2.2.6
Reply With Quote
  #14  
Old 01-03-2009, 02:49 PM
 
weckie weckie is offline
 

eXpert
  
Join Date: Feb 2005
Location: Netherlands
Posts: 220
 

Default Re: The template names in the source code

I tried to put this in my 4.1.11 shop, but all i got at the customer fornt was an empty page.

Some i do wrong?
__________________
Herman Steijn

Using: X-cart 4.5.4
AT: http://www.weckonline.com LIVE
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Changing and adding new features


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 09:19 PM.

   

 
X-Cart forums © 2001-2018