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

syntax for meta mods in meta.tpl

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #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
  #2  
Old 06-11-2004, 11:44 AM
 
nerd luv nerd luv is offline
 

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

Default

Anybody?
__________________
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
  #3  
Old 06-11-2004, 12:03 PM
  lildawg's Avatar 
lildawg lildawg is offline
 

X-Adept
  
Join Date: Jan 2003
Location: Utah
Posts: 686
 

Default

This is something you paid for from a third party creator. To get help contact them. Not to be rude but I wasnt paid for that mod you bought so will not offer help as this forum is not for offering help on third party paid for mods but for x-cart help. As said you should contact the creator as they are the ones who sold you it. Please as said do not take this wrong it is just my opinion on this subject.
Reply With Quote
  #4  
Old 06-11-2004, 12:13 PM
 
nerd luv nerd luv is offline
 

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

Default

I definitely see what you're saying, but (as far as I am understanding this problem) this is just a matter of syntax and could happen while integrating a paid or free modification.

I imagine an if/else statement needs tweaking and that would do it. I had hoped someone familiar with PHP and/or Smarty would be able to spot it in a second, as there are lots of experts here. I contacted the creator with no response, so I guess I'll have to try again.
__________________
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
  #5  
Old 06-11-2004, 12:21 PM
  lildawg's Avatar 
lildawg lildawg is offline
 

X-Adept
  
Join Date: Jan 2003
Location: Utah
Posts: 686
 

Default

You mean those spammers? I couldnt believe it when they emailed my corporate email address last week offering me serivces and to work on one of my sites. I am the owner of _lildawg_site_ and didnt need their spam (Unsolicited comercial email) nor would I trust them or their products. If you violate the law to try to get business why would I ever trust them. This is just my opinion on them as I was spammed by them and therefore really unhappy with them. I would recommend Boomers site (a forum admin here in x-cart) he offers his products as well as supports them. www.cart-lab.com is his address.

Remember if you buy a modification from a third party seller they are advertising that it will go in with no problems. If it doesnt then you didnt get what you paid for. They are selling you somehting they say works if you followed their instructions and it still doesnt work then they must have a problem with their product.
Reply With Quote
  #6  
Old 08-05-2004, 09:47 AM
 
jburba2000 jburba2000 is offline
 

Advanced Member
  
Join Date: Dec 2003
Location: Oklahoma
Posts: 66
 

Default

lol, i know this is a little old, but this is the mod i placed in my meta.tpl and it works great, except that it want to list the end of my short description for the product in "product view" at the top of my web page in plain text, cant figure out how make it stop if the short description of the product is too long....

ex.
http://www.mindells.com/customer/home.php?cat=524
look at any of the products on this page by clicking on them to see what i mean....

Quote:
<meta http-equiv="Content-Type" content="text/html; charset={$default_charset|default:"iso-8859-1"}">
{if $main ne "product"}
{if $current_category.description ne ""}
<meta name="description" content="{$current_category.description}">
{else}
<meta name="description" content="High quality home and garden products from smokers to spas, arbors to designer aquariums, to pond supplies and decor, all at mysite.com">
{/if}
{if $current_category.meta_tags ne ""}
<meta name="keywords" content="{$current_category.meta_tags}">
{else}
<meta name="keywords" content="pond supplies, outdoor cookers, portable spas, comfort line, bradley smokers, vinyl arbors, trellises, mailboxes, designer aquariums, cedar furniture">
{/if}
{else}
<meta name="description" content="{$product.descr}">
<meta name="keywords" content="pond supplies, outdoor cookers, portable spas, comfort line, bradley smokers, vinyl arbors, trellises, mailboxes, designer aquariums, cedar furniture">
{/if}
<meta name="robots" content="index,follow">
__________________
Mindells.com - Your Style. Your Comfort. Your Way.
X-Cart Platinum - 4.6.1
Reply With Quote
  #7  
Old 08-05-2004, 12:13 PM
 
jburba2000 jburba2000 is offline
 

Advanced Member
  
Join Date: Dec 2003
Location: Oklahoma
Posts: 66
 

Default

never mind. i found out why it was posting part of the short description at the top of the page.

i had quotes somewhere in the short description, probably describing a dimension somewhere. just dont have quotes in your short description, and all should be well.

by the way, i would suggest renaming the title of your product, as well as some keywords in your short description when using this mod. this should also help in the search engines.

hope this helps.
__________________
Mindells.com - Your Style. Your Comfort. Your Way.
X-Cart Platinum - 4.6.1
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 05:56 AM.

   

 
X-Cart forums © 2001-2020