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)
-   -   Static Page Help (https://forum.x-cart.com/showthread.php?t=55265)

sharingsunshine 08-26-2010 08:17 AM

Static Page Help
 
Hello,

I have recently upgraded to 4.3.2 on one of our sites and I need a php program to be called when static page 11 is displayed. Here is the code I put into the new pages.tpl page. Could you please let me know if this will work for 4.3.2 installations.

Code:


{*
$Id: pages.tpl,v 1.10 2009/04/17 13:03:09 max Exp $
vim: set ts=2 sw=2 sts=2 et:
*}
{include file="rjw/frrship.tpl"}<br />

<h1>{* {$page_data.title} *}</h1>

{capture name=dialog}
{if $smarty.get.pageid eq "11"}
{include file="rjw/sitemap.tpl"}
{/if}
  {if $page_content ne ''}

  {if $config.General.parse_smarty_tags eq "Y"}
      {eval var=$page_content}
    {else}
      {$page_content}
    {/if}

  {/if}

{/capture}
{include file="customer/dialog.tpl" title=$page_data.title content=$smarty.capture.dialog noborder=true}


sitemap.tpl has the following code - I can run the url below without any problems

Code:

{php}
include ("http://www.healthypetcorner.com/isearch2/sitemap.php");
{/php}


This coding worked fine on a 4.0.16 installation. So I just wanted to make sure something didn't need to be changed for the 4.3.2 installations.


Thanks,

Randal

cflsystems 08-26-2010 08:19 AM

Re: Static Page Help
 
It should work but you can use

$page_data.pageid
instead of
$smarty.get.pageid

sharingsunshine 08-26-2010 01:07 PM

Re: Static Page Help
 
Thanks for your help.

The old way only will work if you do it like this $smarty.get.pageid = rather than how I had it $smarty.get.pageid eq.

The difference being the = sign instead of the eq.

Hope that helps someone in the future.

Randal


All times are GMT -8. The time now is 06:48 AM.

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