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

How do I delete Newsletter from storefront, etc?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-17-2004, 09:15 AM
 
abdera abdera is offline
 

Member
  
Join Date: Jul 2004
Location: lost in code purgatory
Posts: 26
 

Default How do I delete Newsletter from storefront, etc?

I'd like to delete the newsletter from the storefront, but don't know how. I was easily able to remove gift certificates and a few others by making them inactive through Admin::Modules.

I wish to leave the out-of-the-box X-Cart alone if possible, and do not intend to change anything except the logos as explained in the manual. Besides, I may want a newsletter in the distant future (doubt it, but you never know). So all I'm trying to do is remove it from the storefront for now.

I'm using the blue standard and unmodified template supplied with X-Cart.

Any other suggestions are welcomed.

I know very little about UNIX, ftp, HTML, PHP, and so forth so talk very slow....
I do know BASIC.

I have the Gold Edition
__________________
v3.5.11 Live, X-AOM, Linux
Reply With Quote
  #2  
Old 07-17-2004, 09:38 AM
  adpboss's Avatar 
adpboss adpboss is offline
 

X-Man
  
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 2,389
 

Default

Admin => Edit Templates

Customer/home.tpl

Edit this file.

At the bottom you will see
Code:
{include file="news.tpl"}

Change this to
Code:
{* include file="news.tpl" *}

What you have done is changed this Smarty include (it is now a comment and not an actual element to be parsed) so that it won't add the news.tpl component to the site.
Reply With Quote
  #3  
Old 07-17-2004, 09:47 AM
 
abdera abdera is offline
 

Member
  
Join Date: Jul 2004
Location: lost in code purgatory
Posts: 26
 

Default

Thank you very much!

I assume the (*.........*) works like a REM: command in BASIC.
__________________
v3.5.11 Live, X-AOM, Linux
Reply With Quote
  #4  
Old 07-17-2004, 09:51 AM
  adpboss's Avatar 
adpboss adpboss is offline
 

X-Man
  
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 2,389
 

Default

Exactly. You are changing the Smarty tag (anything in a .tpl file between { and } symbols is Smarty) so that it isn't recognised as such.

You'll also notice that the beginning of every .tpl file has the file information, version etc. It is also inside one of these tags. If it was not in a {* *} tag then it would be displayed in the store.

They basically allow you to make "comments' through your code.

Sorry for going overboard on the explanation, I'm just hoping it helps someone else down the line.
Reply With Quote
  #5  
Old 07-17-2004, 10:32 AM
 
abdera abdera is offline
 

Member
  
Join Date: Jul 2004
Location: lost in code purgatory
Posts: 26
 

Default

This worked perfectly. Thanks again.

By the way, I like your site very much. I see what you mean by heavily modified.

Your portal or first page looks great. I was thinking on doing something similar for my site, and after seeing yours my mind is made up! Very elegent. Any newbies like me reading this thread ought to have a look at what can be done, as this site is my favourite thus far.
__________________
v3.5.11 Live, X-AOM, Linux
Reply With Quote
  #6  
Old 07-17-2004, 10:40 AM
  adpboss's Avatar 
adpboss adpboss is offline
 

X-Man
  
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 2,389
 

Default

Thanks for the kind words.

The site is kind a mish-mash and was an evolution from a 3.3.3 store all the way to 3.4.14.

Things like the categories menu are hardcoded because when I did them, I was unsure how to accomplish specific results with a dynamic catalog.

Since you are planning on doing very little modification, perhaps wait until version 4.0 matures a bit (say 4.0.3) and look at migrating early. That is my plan except I will do a complete side-by-side build and then just switch my database at the last minute. My story is too customised to handle the change from 3.4 to 4.0.

The feature set in version 4.0 is tremendous and by then you should be feeling confident enough to take anything on.
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 07:30 AM.

   

 
X-Cart forums © 2001-2020