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)
-   -   how to movie login menu to left column on top (https://forum.x-cart.com/showthread.php?t=3874)

ladybird 01-13-2009 01:57 AM

Re: how to movie login menu to left column on top
 
Sorry still having probs:

I created a new freeship.tpl and loaded this to customer folder where the home.tpl sits, it reads

{* $Id: authbox.tpl,v 1.25.2.1 2007/09/03 06:15:21 max Exp $ *}
{capture name=menu}
Spend over $180 in one order to receive free shipping! <br> <br> Simply enter the coupon code <br><br><strong>bulkbuy</strong> <br> <br> when you check out.
{/capture}
{ include file="menu.tpl" dingbats="dingbats_shipping.gif" menu_title="Bulk Buy" menu_content=$smarty.capture.menu }

I found where the dingbats live and uploaded dingbats_shipping.gif

I then changed the home template to read as follows:

<td class="VertMenuRightColumn">
{if $active_modules.SnS_connector && $config.SnS_connector.sns_display_button eq 'Y' &&
$sns_collector_path_url ne ''}
{include file="modules/SnS_connector/button.tpl"}
<br />
{/if}
{if $active_modules.Feature_Comparison ne "" && $comparison_products ne ''}
{include file="modules/Feature_Comparison/product_list.tpl" }
{/if}
<br />
{include file="news.tpl" }
<br />
{if $login eq "" }
{include file="auth.tpl" }
{else}
{include file="authbox.tpl" }
{/if}
<br />
{include file="customer/menu_cart.tpl" }
<br />
{if $active_modules.XAffiliate ne ""}
<br />
{include file="partner/menu_affiliate.tpl" }
{/if}
{if $active_modules.Interneka ne ""}
<br />
{include file="modules/Interneka/menu_interneka.tpl" }
{/if}
<br />
{include file="freeship.tpl"}
<br />
{include file="poweredby.tpl" }
<br />
</tr>
</table>
{include file="rectangle_bottom.tpl" }
{if $active_modules.Google_Analytics ne "" && $config.Google_Analytics.ganalytics_code ne ""}
{include file="modules/Google_Analytics/ga_code.tpl"}
{/if}
</body>
</html>
{/if}

and the results were not good I got

Warning: Smarty error: unable to read resource: "freeship.tpl" in /home/makeu/public_html/Smarty-2.6.12/Smarty.class.php on line 1095

does this mean I have to edit the smarty.class.php file as well - any suggestions?

ARW VISIONS 01-13-2009 07:02 AM

Re: how to movie login menu to left column on top
 
home.tpl is customer/home.tpl so it sould be

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

ARW VISIONS 01-13-2009 07:04 AM

Re: how to movie login menu to left column on top
 
news.tpl should already be in a box.


Quote:

Originally Posted by ladybird
HI ashley,

thanks for all your help. Just a couple of little things...

1) where do I save the image for the dingbat to?

2) If I want to put the news.tpl in a box too,

do I just go:

{* $Id: authbox.tpl,v 1.25.2.1 2007/09/03 06:15:21 max Exp $ *}
{include file="news.tpl" }
{ include file="menu.tpl" dingbats="dingbats_news.gif" menu_title=$lng.lbl_news menu_content=$smarty.capture.menu }


ladybird 01-13-2009 03:29 PM

Re: how to movie login menu to left column on top
 
Quote:

Originally Posted by Ashley
news.tpl should already be in a box.


in my version it isn't will my mod work.

ladybird 01-13-2009 03:38 PM

Re: how to movie login menu to left column on top
 
Update:

its OK I fgured it out

instead of

{ include file="menu.tpl" ...

I needed to have

{ include file="menu_border.tpl" ...

so simple really - just have to learn to read what is actually written.

Thanks again for your help.

ARW VISIONS 01-13-2009 07:12 PM

Re: how to movie login menu to left column on top
 
so you got it working.

ladybird 01-14-2009 02:04 AM

Re: how to movie login menu to left column on top
 
Yes thanks, interestingly the dingbats icons are not appearing - any suggestions?

ARW VISIONS 01-14-2009 06:39 AM

Re: how to movie login menu to left column on top
 
check file location and make sure spelling is exact, same case and file extension.


All times are GMT -8. The time now is 10:12 AM.

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