Jump to content

Remove Best Sellers and Mailing List


jthornton

Recommended Posts

Please note that the template rendering engine (Smarty) builds the page before the web browser gets it. Putting HTML comment tags around the Smarty commands does not stop Smarty from replacing those {commands-in-braces} with the intended content. That intended content could also have HTML comment tags. That results in nested comment tags.

Look for those statements in the template as mentioned earlier, but change them to look like this:

{* include file='templates/box.newsletter.php' *}

and

{* include file='templates/box.popular.php' *}

The brace-asterisk-space sequence is Smarty's comment tag. Thus, the content will not appear in the rendered page sent out to the browser.

Edited by bsmither
  • Thanks 1
Link to comment
Share on other sites

And thanks again, I looked at the source for the page and sure enough there was the tag.

                  <!--
<div class="panel" id="box-popular">
  <h3>Best Sellers</h3>
  <ol>
		<li><a href="http://localhost/cubecart/test-category/test-product.html" title="Test Product">Test Product</a><br>
	         $10.00
    	</li>
		<li><a href="http://localhost/cubecart/test-category/5i25.html" title="5i25">5i25</a><br>
	         $99.00
    	</li>
	
  </ol>
</div>
-->
   

Changed to the smarty comment tag and sure enough they are not generated.

Of course the reason I didn't delete the tag is I might change my mind.

Thanks again for the help.

JT

 

Edited by jthornton
add more info
Link to comment
Share on other sites

  • 2 weeks later...

Starting at Cubecart's main folder, look in the /skins/ folder.

This folder has a collection of folders named for the available skins that CubeCart can use. Determine the name of the skin your store is currently using.

Look in that folder to find the /templates/ folder. The template main.php will be in there.

Link to comment
Share on other sites

I'm using the Mican skin,  after locating the mican/templates/main.php file the only codes there are:  {include file='templates/box.errors.php'}  and  {include file='templates/ccpower.php'}

Are the commands located somewhere else? 

Link to comment
Share on other sites

In the Mican skin, you will want to make these changes:

In main.php, near line 69, find:

{$MAIL_LIST}

Change to:

{* $MAIL_LIST *}

Near line 72, find:

{if isset($POPULAR_PRODUCTS)}{$POPULAR_PRODUCTS}{/if}

Change to:

{if isset($POPULAR_PRODUCTS)}{* $POPULAR_PRODUCTS *}{/if}

After making changes to a skin template, you should clear the cache (admin, Maintenance, Rebuild tab, check Clear Cache).

Edited by bsmither
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...