View Single Post
  #1  
Old 06-08-2004, 02:54 PM
 
nerd luv nerd luv is offline
 

Advanced Member
  
Join Date: Jun 2003
Location: California, USA
Posts: 58
 

Default syntax for meta mods in meta.tpl

I am using Funkydunk's Cool Meta Mod and Meta Tag Creator from CartMods.com ( http://forum.x-cart.com/viewtopic.php?t=3703 & http://www.cartmods.com/customer/product.php?productid=47&cat=1&page=1 ) and am having some trouble integrating the 2. I am not very knowledgable about PHP or Smarty syntax (although I learn more everyday!) so a morning of tweaking has fixed all but 1 problem.

Currently, on category pages I get both the general meta tags along with the category meta tags. It should be just the category meta tags. The product pages are correct (just shows product meta tags) and the other pages are fine as well (just shows general meta tags). Just getting the duplicate tags on the category tags.

Here is the section of meta.tpl which controls it

Code:
{if $main ne "product"} <meta name="description" content="The powerful shopping cart software for web stores and e-commerce enabled webstores is based on PHP."> <meta name="keywords" content="x-cart, xcart, cart, shopping cart, php, php4, mysql, postgres, shop, e-commerce, store, web store"> {* funkydunk metamod *} {if $current_category.meta_tags ne ""} <META NAME="Description" CONTENT="{$current_category.meta_description}"> <META NAME="Keywords" CONTENT="{$current_category.meta_tags}"> {* end of funkydunk metamod *} {/if} {else} <meta name="description" content="{$product.meta_desc}"> <meta name="keywords" content="{$product.meta_keys}"> {/if}

If anyone is able to help me locate the syntax error I have created, I would greatly appreciate it!
__________________
Always happy to Paypal over some money for X-Cart solutions. I need to get this store running! Help!
--Testing 3.5.8, heavily modified, Linux, Apache 1.3.31, PHP 4.3.4--
Reply With Quote