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)
-   -   common if/then modifications I make to x-cart... (https://forum.x-cart.com/showthread.php?t=8881)

instinctual 10-23-2005 05:48 PM

Problem solved in this thread 3rd page ----> http://forum.x-cart.com/viewtopic.php?p=112207#112088

chrisinoz 10-23-2005 10:45 PM

Hi Instinctual

Thanks for the feedback but I could not get that to work.

See

http://www.integrinet.com.au/image.gif

The first shot is the live site - text should have shown under the help menu.

Cheers

Chris

instinctual 10-24-2005 05:41 AM

Problem solved in this thread 3rd page ----> http://forum.x-cart.com/viewtopic.php?p=112207#112088

chrisinoz 10-24-2005 01:28 PM

Yippee

This worked

{if $userinfo.membership eq "Premium"} display this{/if}

Thanks heaps for persisting with this Instinctual

Cheers

Chris
4.016

chrisinoz 10-24-2005 01:37 PM

Well kind of Yippee.

It shows okay on cart.php pages but on any other pages eg home.php, pages.php etc it disappears again.

Here is my home.tpl .

Code:

{* $Id: home.tpl,v 1.67.2.9 2005/06/28 12:02:38 svowl Exp $ *}
{if $printable ne ''}
{include file="customer/home_printable.tpl"}
{else}
{config_load file="$skin_config"}
<HTML><HEAD><TITLE>
{if $config.SEO.page_title_format eq "A"}
{section name=position loop=$location}
{$location[position].0|escape}
{if not %position.last%} :: {/if}
{/section}
{else}{section name=position loop=$location step=-1}
{$location[position].0|escape}
{if not %position.last%} :: {/if}{/section}
{/if}</TITLE>

{ include file="meta.tpl" }
<LINK rel="stylesheet" href="{$SkinDir}/{#CSSFile#}">
</HEAD>

<BODY leftmargin="0" topmargin="0" rightmargin="0" bottomargin="0" marginwidth="0" marginheight="0"{if $body_onload ne ''} onload="{$body_onload}"{/if}><a name="top"></a>
{ include file="rectangle_top.tpl" }
{ include file="head.tpl" }
{if $active_modules.SnS_connector}
{include file="modules/SnS_connector/header.tpl"}
{/if}
<TABLE border="0" width="100%" cellpadding="0" cellspacing="0" align="center">
<TR valign=top>
<TD width="43" class="sidebglhs"></TD>
<TD width="145" class=sidebg valign="top">
{if $categories ne "" and ($active_modules.Fancy_Categories ne "" or $config.General.root_categories eq "Y" or $subcategories ne "")}
{ include file="customer/categories.tpl" }

{/if}

{if $active_modules.Manufacturers ne "" and $config.Modules.manufacturers_menu eq "Y"}
{ include file="modules/Manufacturers/menu_manufacturers.tpl" }
{/if}
{include file="about.tpl"}


{*<a href=giftcert.php>[img]{$ImagesDir}/gift_cert.gif[/img]</a>*}



{include file="help.tpl" }

{if $userinfo.membership eq "Premium"} display this{/if}

[img]{$ImagesDir}/spacer.gif[/img]</TD>
<TD width="20"></TD>
<TD valign="top">



{include file="printable.tpl"}

{if $main eq "catalog" and $current_category.category eq ""}{else}{include file="location.tpl"}{/if}

{include file="dialog_message.tpl"}

{if $active_modules.Special_Offers ne ""}
{include file="modules/Special_Offers/customer/new_offers_message.tpl"}
{/if}

{include file="customer/home_main.tpl"}



{ include file="minormenu.tpl" }

</TD>
<TD width="20"></td>
<TD width="6" class=menubgrhs></td>
<TD width="150" valign="top" class=menubgrhs>

{if $active_modules.SnS_connector}
{include file="modules/SnS_connector/button.tpl"}


{/if}
{if $active_modules.Feature_Comparison ne "" && $comparison_products ne ''}
{ include file="modules/Feature_Comparison/product_list.tpl" }


{/if}
{if $active_modules.Users_online ne "" and $users_online}
{ include file="modules/Users_online/menu_users_online.tpl" }


{/if}

{if $login eq "" }
{ include file="auth.tpl" }


{else}
{ include file="authbox.tpl" }


{/if}
{if $active_modules.Bestsellers ne "" and $config.Modules.bestsellers_menu eq "Y"}
{ include file="modules/Bestsellers/menu_bestsellers.tpl" }



{/if}
{ include file="news.tpl" }
{if $active_modules.Interneka ne ""}


{ include file="modules/Interneka/menu_interneka.tpl" }
{/if}


{ include file="poweredby.tpl" }


[img]{$ImagesDir}/spacer.gif[/img]
</TD>
<TD width="6" class=menubgrhs></TD>
</TR>
</TABLE>
{ include file="rectangle_bottom.tpl" }


</BODY>
</HTML>
{/if}


Cheers

Chris
4.016

instinctual 10-25-2005 08:12 PM

Problem solved in this thread 3rd page ----> http://forum.x-cart.com/viewtopic.php?p=112207#112088

chrisinoz 10-25-2005 08:30 PM

Thanks but that brings no joy at all - not on any page

Code:

{include file="help.tpl" }

{if $smarty.get.userinfo.membership eq "Premium"}display this{/if}


One for x-cart do you think???

Cheers Instinctual

Chris

instinctual 10-26-2005 06:08 AM

Problem solved in this thread 3rd page ----> http://forum.x-cart.com/viewtopic.php?p=112207#112088

chrisinoz 10-26-2005 01:33 PM

Hi Instinctual

We persist then :> Thanks.

This worked correctly on cart.php but not other pages

{if $userinfo.membership eq "Premium" or $user_membership eq 'Premium'} display this{/if}

The other code did not produce any results.

Cheers

Chris
4.016

mffowler 10-26-2005 05:43 PM

There must be a php expert out there who knows how to call the data into the home.php so the {if} can work?

Is there a developers manual for XC like the LC dev. manual?

- Mike


All times are GMT -8. The time now is 03:50 PM.

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