Jump to content

[RESOLU]Remplacer le bouton ajouter au panier


Recommended Posts

bonjour a tous et a toutes

voila je recherche a changer le texte du bouton ajouter au panier par inscrivez-vous seulement pour les invités et visiteurs

un fois qu'il sont enregistrer le bouton reviens a la normal avec ajouter au panier

merci de votre aide a tous

Edited by didiflo (see edit history)
Link to comment
Share on other sites

Voici l'exemple pour le productlist, il vous servira de base pour le homefeatured et la page produit

 

  	 {if $logged}
			{if ($product.id_product_attribute == 0 || (isset($add_prod_display) && ($add_prod_display == 1))) && $product.available_for_order && !isset($restricted_country_mode) && $product.minimal_quantity <= 1 && $product.customizable != 2 && !$PS_CATALOG_MODE}
				{if ($product.allow_oosp || $product.quantity > 0)}
					{if isset($static_token)}
						<a class="button ajax_add_to_cart_button exclusive" rel="ajax_id_product_{$product.id_product|intval}" href="{$link->getPageLink('cart',false, NULL, "add&id_product={$product.id_product|intval}&token={$static_token}", false)}" title="{l s='Add to cart'}"><span></span>{l s='Add to cart'}</a>
					{else}
						<a class="button ajax_add_to_cart_button exclusive" rel="ajax_id_product_{$product.id_product|intval}" href="{$link->getPageLink('cart',false, NULL, "add&id_product={$product.id_product|intval}", false)} title="{l s='Add to cart'}"><span></span>{l s='Add to cart'}</a>
					{/if}						
				{else}
					<span class="exclusive"><span></span>{l s='Add to cart'}</span><br />
				{/if}
			{/if}
			{else}
		<a class="exclusive"  href="{$link->getPageLink('my-account', true)}"} title="{l s='Login'}"><span></span>{l s='Login'}</a>
	{/if}

ajout de {if $logged} en début de code

et de la condition et bouton en fin de code

{else}

<a class="exclusive" href="{$link->getPageLink('my-account', true)}"} title="{l s='Login'}"><span></span>{l s='Login'}</a>

{/if}

Edited by Muche (see edit history)
Link to comment
Share on other sites

bonjour

voila pour ceux que sa interesse j'ai trouver

rajouter dans le fichiers théme/product.tpl

a la ligne 437

{if $logged}

{else}

<a class="exclusive" href="{$link->getPageLink('my-account', true)}"} title="{l s='Login'}"><span></span>{l s='Login'}</a>

{/if}

post-496358-0-84149400-1363523573_thumb.png

 

 

ou bien ceci

{if $logged}

{else}

<a class="exclusive" href="{$link->getPageLink('my-account', true)}"} title="{l s='Login'}"><span></span>Se connecter</a>

{/if}

 

ce qui vous donnera cela voir image capture

post-496358-0-84149400-1363523573_thumb.png

Edited by didiflo (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...