X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   syntax for meta mods in meta.tpl (https://forum.x-cart.com/showthread.php?t=7994)

nerd luv 06-08-2004 02:54 PM

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!

nerd luv 06-11-2004 11:44 AM

Anybody? :cry:

lildawg 06-11-2004 12:03 PM

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.

nerd luv 06-11-2004 12:13 PM

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.

lildawg 06-11-2004 12:21 PM

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.

jburba2000 08-05-2004 09:47 AM

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">

jburba2000 08-05-2004 12:13 PM

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.


All times are GMT -8. The time now is 01:43 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.