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)
-   -   custom add to cart button (https://forum.x-cart.com/showthread.php?t=54655)

Tdeviant 07-21-2010 03:05 PM

Re: custom add to cart button
 
Thanks, but It needs to be,

IF THIS HTML -
<div class="nav_bottom">&nbsp;</div>
</div>

<div id="login">
<div class="nav">
<div class="nav_main" style="min-height:35px;">
{if $login eq "" }
{include file="customer/auth.tpl" }
{else}
{include file="customer/authbox.tpl" }
{/if}
{include file="customer/news.tpl" }
{if $active_modules.XAffiliate && $config.XAffiliate.partner_register eq 'Y' && $config.XAffiliate.display_backoffice_link eq 'Y'}
{include file="partner/menu_affiliate.tpl" }
{/if}
{if $active_modules.Interneka}
{include file="modules/Interneka/menu_interneka.tpl" }
{/if}
{include file="poweredby.tpl" }
</div>
</div>

ELSE - 'Nothing'

as the style is shoming up unless this whole section is in the statement.

Shamun 07-21-2010 03:11 PM

Re: custom add to cart button
 
Sorry, I added it inside because I figured it was just overlayed. Though, I'm a bit iffy because it has the poweredby.tpl file included there? I don't think that's by default so I'll just assume you added it in there.

Try this one:


Code:

{if $main neq 'need_login'}

<div class="nav_bottom">&nbsp;</div>
</div>

<div id="login">
<div class="nav">
<div class="nav_main" style="min-height:35px;">
{if $login eq "" }
{include file="customer/auth.tpl" }
{else}
{include file="customer/authbox.tpl" }
{/if}
{include file="customer/news.tpl" }
{if  $active_modules.XAffiliate &&  $config.XAffiliate.partner_register eq 'Y' &&  $config.XAffiliate.display_backoffice_link eq 'Y'}
{include file="partner/menu_affiliate.tpl" }
{/if}
{if $active_modules.Interneka}
{include file="modules/Interneka/menu_interneka.tpl" }
{/if}
{include file="poweredby.tpl" }
</div>
</div>
{/if}


Tdeviant 07-21-2010 03:26 PM

Re: custom add to cart button
 
Thank you Tal, works perfectly, your a legend!

SID357 08-11-2010 04:02 PM

Re: custom add to cart button
 
Quote:

Originally Posted by Tdeviant
Thank you Tal, works perfectly, your a legend!


roger that

isaels@i-artsupplies.co.u 12-20-2010 06:04 AM

Re: custom add to cart button
 
Quote:

ok, so 4.3.2 is a bit different than older version since it has all the ajax functions.

The button now has 3 states, the default state, the being added, and added states.

Im using 4.3.2, and my button only seems to have one state. Anyone any ideas if there is there a setting I need to change for this?


All times are GMT -8. The time now is 10:37 PM.

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