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

BCSE Static Page mod & Product Metatags Plus code confusion

 
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4
 
Thread Tools
  #1  
Old 10-01-2007, 01:45 PM
  WhiteDoveGifts's Avatar 
WhiteDoveGifts WhiteDoveGifts is offline
 

X-Adept
  
Join Date: Oct 2006
Location: Maarssen, The Netherlands
Posts: 474
 

Default BCSE Static Page mod & Product Metatags Plus code confusion

I am trying to install the static page metatag mod after the product metatag plus mod but the last step causes confusion with me.

In the last step you need to:

6. In skin1/meta.tpl, replace:

<meta name="description" content="{$_meta_descr|truncate:"500":"...":false| escape}" />
<meta name="keywords" content="{$_meta_keywords|truncate:"500":"":false| escape}" />

With:
{* BCSE Begin *}
{if $page_data.metadescr}
<meta name="description" content="{$page_data.metadescr|escape}" />
{else}
{* BCSE End *}
<meta name="description" content="{$_meta_descr|truncate:"500":"...":false| escape}" />
{* BCSE Begin *}
{/if}
{if $page_data.metakeywords}
<meta name="keywords" content="{$page_data.metakeywords|escape}" />
{else}
{* BCSE End *}
<meta name="keywords" content="{$_meta_keywords|truncate:"500":"":false| escape}" />
{/if} {* BCSE added *}

This is the current code in my meta.tpl:

<meta name="description" content="{$_meta_descr|truncate:"500":"...":false| escape}" />
{* BCSE Begin *}
{/if}
{if $product_meta_keywords ne ""}
<meta name="keywords" content="{$product_meta_keywords|escape}" />
{else}
{* BCSE End *}
<meta name="keywords" content="{$_meta_keywords|truncate:"500":"":false| escape}" />
{/if} {* BCSE added *}
{/if}

Now where do I need to add the code for the static page mod to work correctly?

Any help would be great
__________________
____________________________
X-Cart Gold 4.1.10

EWD Hosting | CDSEO Pro | One Page Checkout | Smart Search | Telafirma Dynamic Images | X-AOM | Product Importer Pro and many custom mods and tweaks found here...
Reply With Quote
  #2  
Old 10-01-2007, 04:01 PM
  BCSE's Avatar 
BCSE BCSE is online now
 

X-Guru
  
Join Date: Apr 2003
Location: Ohio - bcsengineering.com
Posts: 3,060
 

Default Re: BCSE Static Page mod & Product Metatags Plus code confusion

How about this as an alternative install instructions.

Find
Code:
<meta name="description" content="{$_meta_descr|truncate:"500":"...":false| escape}" />

BEFORE add:
Code:
{* BCSE Begin *} {if $page_data.metadescr} <meta name="description" content="{$page_data.metadescr|escape}" /> {else} {* BCSE End *}

Find:
Code:
<meta name="keywords" content="{$_meta_keywords|truncate:"500":"":false| escape}" />


BEFORE add
Code:
{* BCSE Begin *} {/if} {if $page_data.metakeywords} <meta name="keywords" content="{$page_data.metakeywords|escape}" /> {else} {* BCSE End *}

AFTER add
Code:
{/if} {* BCSE added *}


That should work.

Hope that helps!

Carrie
__________________
Custom Development, Custom Coding and Pre-built modules for X-cart since 2002!

We support X-cart versions 3.x through 5.x!

Home of the famous Authorize.net DPM & CIM Modules, Reward Points Module, Point of Sale module, Speed Booster modules and more!


Over 200 X-cart Mods available & Thousands of Customizations Since 2002 - bcsengineering.com

Please E-Mail us for questions/support!
Reply With Quote
  #3  
Old 10-01-2007, 09:03 PM
  WhiteDoveGifts's Avatar 
WhiteDoveGifts WhiteDoveGifts is offline
 

X-Adept
  
Join Date: Oct 2006
Location: Maarssen, The Netherlands
Posts: 474
 

Default Re: BCSE Static Page mod & Product Metatags Plus code confusion

Hi Carrie, I have just added the code you instructed. How can I check that the static page mod and the category mod are installed correctly? If I see the source code on those related pages I don't see the difference... Sorry for such a n00b question, I am just not a coder Thanks for helping me out!
__________________
____________________________
X-Cart Gold 4.1.10

EWD Hosting | CDSEO Pro | One Page Checkout | Smart Search | Telafirma Dynamic Images | X-AOM | Product Importer Pro and many custom mods and tweaks found here...
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4


Thread Tools

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:52 PM.

   

 
X-Cart forums © 2001-2020