[Skip to main content](#vessel-content)

#   Bouton "Ajouter au panier" à repositionner

##

- **[lbertrel](/forum/user/616-lbertrel "View lbertrel's Profile")**
- [![lbertrel's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/616-lbertrel "View lbertrel's Profile") Topic Author
- [ Offline](/forum/user/616-lbertrel)

Less More

- Posts: 54
- Thank you received: 2
-
-

13 years 3 months ago [\#113251](#113251) by [lbertrel](/forum/user/616-lbertrel "View lbertrel's Profile")  *[Bouton "Ajouter au panier" à repositionner](/forum/4-how-to/85106-bouton-ajouter-au-panier-a-repositionner#113251 "Bonjour Xavier,  J’ai essayé de changer la position du bouton « Ajouter au panier » (il sort du cadre vers la droite depuis que j'ai changé de template) et j’ai utilisé ceci dans le CSS comme vous me l’avez conseillé : btn button hikashop&#95;cart&#95;input&#95;button{ margin-left: -yyypx !important;}  Cela marche bien (avec -30px il est à la bonne place) mais le problème est que tous les autres boutons sont aussi décalés (vers la gauche) : btn button hikashop&#95;cart&#95;input&#95;button du checkout et même le bouton « Nous contacter pour plus d’information ».  Du coup, comment changer juste la position du bouton « Ajouter au panier » ?  Merci.  Laurent")* was created by *[lbertrel](/forum/user/616-lbertrel "View lbertrel's Profile")*

Bonjour Xavier,

J’ai essayé de changer la position du bouton « Ajouter au panier » (il sort du cadre vers la droite depuis que j'ai changé de template) et j’ai utilisé ceci dans le CSS comme vous me l’avez conseillé :
btn button hikashop_cart_input_button{ margin-left: -yyypx !important;}

Cela marche bien (avec -30px il est à la bonne place) mais le problème est que tous les autres boutons sont aussi décalés (vers la gauche) : btn button hikashop_cart_input_button du checkout et même le bouton « Nous contacter pour plus d’information ».

Du coup, comment changer juste la position du bouton « Ajouter au panier » ?

Merci.

Laurent

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg1MTA2LWJvdXRvbi1ham91dGVyLWF1LXBhbmllci1hLXJlcG9zaXRpb25uZXI/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Eliot](/forum/user/1824-eliot "View Eliot's Profile")**
- [![Eliot's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1824.png)](/forum/user/1824-eliot "View Eliot's Profile")
- [ Offline](/forum/user/1824-eliot)

Less More

- Posts: 2334
- Thank you received: 403
-
-

13 years 3 months ago [\#113304](#113304) by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")  Replied by *[Eliot](/forum/user/1824-eliot "View Eliot's Profile")* on topic *[Bouton "Ajouter au panier" à repositionner](/forum/4-how-to/85106-bouton-ajouter-au-panier-a-repositionner#113304 "Bonjour Xavier,  J’ai essayé de changer la position du bouton « Ajouter au panier » (il sort du cadre vers la droite depuis que j'ai changé de template) et j’ai utilisé ceci dans le CSS comme vous me l’avez conseillé : btn button hikashop&#95;cart&#95;input&#95;button{ margin-left: -yyypx !important;}  Cela marche bien (avec -30px il est à la bonne place) mais le problème est que tous les autres boutons sont aussi décalés (vers la gauche) : btn button hikashop&#95;cart&#95;input&#95;button du checkout et même le bouton « Nous contacter pour plus d’information ».  Du coup, comment changer juste la position du bouton « Ajouter au panier » ?  Merci.  Laurent")*

Bonjur Laurent,

Essayez plutôt: Code:

.hikashop_cart_input_button{ margin-left: -30px !important; }

The following user(s) said Thank You: [lbertrel](/forum/user/616-lbertrel "View lbertrel's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg1MTA2LWJvdXRvbi1ham91dGVyLWF1LXBhbmllci1hLXJlcG9zaXRpb25uZXI/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[lbertrel](/forum/user/616-lbertrel "View lbertrel's Profile")**
- [![lbertrel's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/616-lbertrel "View lbertrel's Profile") Topic Author
- [ Offline](/forum/user/616-lbertrel)

Less More

- Posts: 54
- Thank you received: 2
-
-

13 years 3 months ago [\#113318](#113318) by [lbertrel](/forum/user/616-lbertrel "View lbertrel's Profile")  Replied by *[lbertrel](/forum/user/616-lbertrel "View lbertrel's Profile")* on topic *[Bouton "Ajouter au panier" à repositionner](/forum/4-how-to/85106-bouton-ajouter-au-panier-a-repositionner#113318 "Bonjour Xavier,  J’ai essayé de changer la position du bouton « Ajouter au panier » (il sort du cadre vers la droite depuis que j'ai changé de template) et j’ai utilisé ceci dans le CSS comme vous me l’avez conseillé : btn button hikashop&#95;cart&#95;input&#95;button{ margin-left: -yyypx !important;}  Cela marche bien (avec -30px il est à la bonne place) mais le problème est que tous les autres boutons sont aussi décalés (vers la gauche) : btn button hikashop&#95;cart&#95;input&#95;button du checkout et même le bouton « Nous contacter pour plus d’information ».  Du coup, comment changer juste la position du bouton « Ajouter au panier » ?  Merci.  Laurent")*

Bonjour Eliot,

Oui, c'est ce que j'ai testé et comme je le précise cela marche bien (avec -30px il est à la bonne place). Le problème est que les autres boutons sont aussi décalés vers la gauche et le résultat est alors contre productif...

Une autre idée peut-être ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg1MTA2LWJvdXRvbi1ham91dGVyLWF1LXBhbmllci1hLXJlcG9zaXRpb25uZXI/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

13 years 3 months ago [\#113329](#113329) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Bouton "Ajouter au panier" à repositionner](/forum/4-how-to/85106-bouton-ajouter-au-panier-a-repositionner#113329 "Bonjour Xavier,  J’ai essayé de changer la position du bouton « Ajouter au panier » (il sort du cadre vers la droite depuis que j'ai changé de template) et j’ai utilisé ceci dans le CSS comme vous me l’avez conseillé : btn button hikashop&#95;cart&#95;input&#95;button{ margin-left: -yyypx !important;}  Cela marche bien (avec -30px il est à la bonne place) mais le problème est que tous les autres boutons sont aussi décalés (vers la gauche) : btn button hikashop&#95;cart&#95;input&#95;button du checkout et même le bouton « Nous contacter pour plus d’information ».  Du coup, comment changer juste la position du bouton « Ajouter au panier » ?  Merci.  Laurent")*

Bonjour,

La meilleure solution serai probablement de nous donner un lien vers la page en question, et de nous montrer à partir de captures d'écrans ce que vous voulez obtenir exactement comme résultat.

Merci ![:)](/media/kunena/emoticons/8.png ":)").

The following user(s) said Thank You: [lbertrel](/forum/user/616-lbertrel "View lbertrel's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg1MTA2LWJvdXRvbi1ham91dGVyLWF1LXBhbmllci1hLXJlcG9zaXRpb25uZXI/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[lbertrel](/forum/user/616-lbertrel "View lbertrel's Profile")**
- [![lbertrel's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/616-lbertrel "View lbertrel's Profile") Topic Author
- [ Offline](/forum/user/616-lbertrel)

Less More

- Posts: 54
- Thank you received: 2
-
-

13 years 3 months ago [\#113333](#113333) by [lbertrel](/forum/user/616-lbertrel "View lbertrel's Profile")  Replied by *[lbertrel](/forum/user/616-lbertrel "View lbertrel's Profile")* on topic *[Bouton "Ajouter au panier" à repositionner](/forum/4-how-to/85106-bouton-ajouter-au-panier-a-repositionner#113333 "Bonjour Xavier,  J’ai essayé de changer la position du bouton « Ajouter au panier » (il sort du cadre vers la droite depuis que j'ai changé de template) et j’ai utilisé ceci dans le CSS comme vous me l’avez conseillé : btn button hikashop&#95;cart&#95;input&#95;button{ margin-left: -yyypx !important;}  Cela marche bien (avec -30px il est à la bonne place) mais le problème est que tous les autres boutons sont aussi décalés (vers la gauche) : btn button hikashop&#95;cart&#95;input&#95;button du checkout et même le bouton « Nous contacter pour plus d’information ».  Du coup, comment changer juste la position du bouton « Ajouter au panier » ?  Merci.  Laurent")*

Bonjour Mohamed,

Effectivement, une copie d'écran est une bonne idée.
Comme vous pouvez le voir, le bouton "Ajouter au panier" est à droite.
En utilisant le code indiqué par Xavier (dans un email avant d'ouvrir ce post sur ce forum à sa demande) et Eliot, le bouton se décale bien vers la gauche.
Le problème est que les autres boutons comme par exemple "Nous contacter pour plus d'info" vont égalemnet vers la gauche (et du coup, la mise en page n'est pas optimale : je décale en fait le problème sur les autres boutons).

Est-ce plus clair ?

- [ ![Hikashop&#95;Bouton&#95;Mozilla&#95;Chrome.jpg](/forum/attachment/11043) ](/forum/attachment/11043 "...lla&#95;Chrome.jpg") [ ](/forum/attachment/11043?download=1 "...lla&#95;Chrome.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg1MTA2LWJvdXRvbi1ham91dGVyLWF1LXBhbmllci1hLXJlcG9zaXRpb25uZXI/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

13 years 3 months ago [\#113346](#113346) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Bouton "Ajouter au panier" à repositionner](/forum/4-how-to/85106-bouton-ajouter-au-panier-a-repositionner#113346 "Bonjour Xavier,  J’ai essayé de changer la position du bouton « Ajouter au panier » (il sort du cadre vers la droite depuis que j'ai changé de template) et j’ai utilisé ceci dans le CSS comme vous me l’avez conseillé : btn button hikashop&#95;cart&#95;input&#95;button{ margin-left: -yyypx !important;}  Cela marche bien (avec -30px il est à la bonne place) mais le problème est que tous les autres boutons sont aussi décalés (vers la gauche) : btn button hikashop&#95;cart&#95;input&#95;button du checkout et même le bouton « Nous contacter pour plus d’information ».  Du coup, comment changer juste la position du bouton « Ajouter au panier » ?  Merci.  Laurent")*

Oui beaucoup plus claire, il me faudrai cependant un lien vers la page en question pour savoir quel code sera le plus approprié.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg1MTA2LWJvdXRvbi1ham91dGVyLWF1LXBhbmllci1hLXJlcG9zaXRpb25uZXI/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[lbertrel](/forum/user/616-lbertrel "View lbertrel's Profile")**
- [![lbertrel's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/616-lbertrel "View lbertrel's Profile") Topic Author
- [ Offline](/forum/user/616-lbertrel)

Less More

- Posts: 54
- Thank you received: 2
-
-

13 years 3 months ago [\#113367](#113367) by [lbertrel](/forum/user/616-lbertrel "View lbertrel's Profile")  Replied by *[lbertrel](/forum/user/616-lbertrel "View lbertrel's Profile")* on topic *[Bouton "Ajouter au panier" à repositionner](/forum/4-how-to/85106-bouton-ajouter-au-panier-a-repositionner#113367 "Bonjour Xavier,  J’ai essayé de changer la position du bouton « Ajouter au panier » (il sort du cadre vers la droite depuis que j'ai changé de template) et j’ai utilisé ceci dans le CSS comme vous me l’avez conseillé : btn button hikashop&#95;cart&#95;input&#95;button{ margin-left: -yyypx !important;}  Cela marche bien (avec -30px il est à la bonne place) mais le problème est que tous les autres boutons sont aussi décalés (vers la gauche) : btn button hikashop&#95;cart&#95;input&#95;button du checkout et même le bouton « Nous contacter pour plus d’information ».  Du coup, comment changer juste la position du bouton « Ajouter au panier » ?  Merci.  Laurent")*

Il s'agit de toutes les pages produits de cette boutique :
[ www.agoracademie.com/boutique/formations-cd-dvd](http://www.agoracademie.com/boutique/formations-cd-dvd)

Une idée de solution ? ![:)](/media/kunena/emoticons/8.png ":)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg1MTA2LWJvdXRvbi1ham91dGVyLWF1LXBhbmllci1hLXJlcG9zaXRpb25uZXI/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

13 years 3 months ago [\#113369](#113369) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Bouton "Ajouter au panier" à repositionner](/forum/4-how-to/85106-bouton-ajouter-au-panier-a-repositionner#113369 "Bonjour Xavier,  J’ai essayé de changer la position du bouton « Ajouter au panier » (il sort du cadre vers la droite depuis que j'ai changé de template) et j’ai utilisé ceci dans le CSS comme vous me l’avez conseillé : btn button hikashop&#95;cart&#95;input&#95;button{ margin-left: -yyypx !important;}  Cela marche bien (avec -30px il est à la bonne place) mais le problème est que tous les autres boutons sont aussi décalés (vers la gauche) : btn button hikashop&#95;cart&#95;input&#95;button du checkout et même le bouton « Nous contacter pour plus d’information ».  Du coup, comment changer juste la position du bouton « Ajouter au panier » ?  Merci.  Laurent")*

La solution sera surement d'utiliser le code que Eliot vous a donné : Code:

.hikashop_cart_input_button{ margin-left: -30px !important; }

et aussi d'utiliser celui-ci : Code:

\#hikashop_product_contact_main { margin-left: 30px; }

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg1MTA2LWJvdXRvbi1ham91dGVyLWF1LXBhbmllci1hLXJlcG9zaXRpb25uZXI/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[lbertrel](/forum/user/616-lbertrel "View lbertrel's Profile")**
- [![lbertrel's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/616-lbertrel "View lbertrel's Profile") Topic Author
- [ Offline](/forum/user/616-lbertrel)

Less More

- Posts: 54
- Thank you received: 2
-
-

13 years 3 months ago [\#113373](#113373) by [lbertrel](/forum/user/616-lbertrel "View lbertrel's Profile")  Replied by *[lbertrel](/forum/user/616-lbertrel "View lbertrel's Profile")* on topic *[Bouton "Ajouter au panier" à repositionner](/forum/4-how-to/85106-bouton-ajouter-au-panier-a-repositionner#113373 "Bonjour Xavier,  J’ai essayé de changer la position du bouton « Ajouter au panier » (il sort du cadre vers la droite depuis que j'ai changé de template) et j’ai utilisé ceci dans le CSS comme vous me l’avez conseillé : btn button hikashop&#95;cart&#95;input&#95;button{ margin-left: -yyypx !important;}  Cela marche bien (avec -30px il est à la bonne place) mais le problème est que tous les autres boutons sont aussi décalés (vers la gauche) : btn button hikashop&#95;cart&#95;input&#95;button du checkout et même le bouton « Nous contacter pour plus d’information ».  Du coup, comment changer juste la position du bouton « Ajouter au panier » ?  Merci.  Laurent")*

Merci cela fonctionne pour le bouton "Nous contacter..." ![;-)](/media/kunena/emoticons/14.png ";-)")
Mais le problème reste le même pour les autres boutons du checkout...
Dois-je ajouter un autre code ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg1MTA2LWJvdXRvbi1ham91dGVyLWF1LXBhbmllci1hLXJlcG9zaXRpb25uZXI/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

13 years 3 months ago [\#113377](#113377) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Bouton "Ajouter au panier" à repositionner](/forum/4-how-to/85106-bouton-ajouter-au-panier-a-repositionner#113377 "Bonjour Xavier,  J’ai essayé de changer la position du bouton « Ajouter au panier » (il sort du cadre vers la droite depuis que j'ai changé de template) et j’ai utilisé ceci dans le CSS comme vous me l’avez conseillé : btn button hikashop&#95;cart&#95;input&#95;button{ margin-left: -yyypx !important;}  Cela marche bien (avec -30px il est à la bonne place) mais le problème est que tous les autres boutons sont aussi décalés (vers la gauche) : btn button hikashop&#95;cart&#95;input&#95;button du checkout et même le bouton « Nous contacter pour plus d’information ».  Du coup, comment changer juste la position du bouton « Ajouter au panier » ?  Merci.  Laurent")*

Oui, Il vous suffira de fixer une propriété : **margin-left: 30px;** Pour chaque autre bouton.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg1MTA2LWJvdXRvbi1ham91dGVyLWF1LXBhbmllci1hLXJlcG9zaXRpb25uZXI/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[lbertrel](/forum/user/616-lbertrel "View lbertrel's Profile")**
- [![lbertrel's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/616-lbertrel "View lbertrel's Profile") Topic Author
- [ Offline](/forum/user/616-lbertrel)

Less More

- Posts: 54
- Thank you received: 2
-
-

13 years 3 months ago [\#113409](#113409) by [lbertrel](/forum/user/616-lbertrel "View lbertrel's Profile")  Replied by *[lbertrel](/forum/user/616-lbertrel "View lbertrel's Profile")* on topic *[Bouton "Ajouter au panier" à repositionner](/forum/4-how-to/85106-bouton-ajouter-au-panier-a-repositionner#113409 "Bonjour Xavier,  J’ai essayé de changer la position du bouton « Ajouter au panier » (il sort du cadre vers la droite depuis que j'ai changé de template) et j’ai utilisé ceci dans le CSS comme vous me l’avez conseillé : btn button hikashop&#95;cart&#95;input&#95;button{ margin-left: -yyypx !important;}  Cela marche bien (avec -30px il est à la bonne place) mais le problème est que tous les autres boutons sont aussi décalés (vers la gauche) : btn button hikashop&#95;cart&#95;input&#95;button du checkout et même le bouton « Nous contacter pour plus d’information ».  Du coup, comment changer juste la position du bouton « Ajouter au panier » ?  Merci.  Laurent")*

Je teste (dans style_green.css et même dans le css du nouveau template) et n'arrive pas à trouver les boutons "Connexion" et "Enregistrer" (même avec FireBug) alors que j'ai trouvé facilement le bouton "Coupon".
J'ai loupé quelque chose mais quoi ? Pouvez-vous m'éclairer SVP ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg1MTA2LWJvdXRvbi1ham91dGVyLWF1LXBhbmllci1hLXJlcG9zaXRpb25uZXI/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Eliot](/forum/user/1824-eliot "View Eliot's Profile")**
- [![Eliot's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1824.png)](/forum/user/1824-eliot "View Eliot's Profile")
- [ Offline](/forum/user/1824-eliot)

Less More

- Posts: 2334
- Thank you received: 403
-
-

13 years 3 months ago [\#113501](#113501) by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")  Replied by *[Eliot](/forum/user/1824-eliot "View Eliot's Profile")* on topic *[Bouton "Ajouter au panier" à repositionner](/forum/4-how-to/85106-bouton-ajouter-au-panier-a-repositionner#113501 "Bonjour Xavier,  J’ai essayé de changer la position du bouton « Ajouter au panier » (il sort du cadre vers la droite depuis que j'ai changé de template) et j’ai utilisé ceci dans le CSS comme vous me l’avez conseillé : btn button hikashop&#95;cart&#95;input&#95;button{ margin-left: -yyypx !important;}  Cela marche bien (avec -30px il est à la bonne place) mais le problème est que tous les autres boutons sont aussi décalés (vers la gauche) : btn button hikashop&#95;cart&#95;input&#95;button du checkout et même le bouton « Nous contacter pour plus d’information ».  Du coup, comment changer juste la position du bouton « Ajouter au panier » ?  Merci.  Laurent")*

Bonjour,

Cela devrait marcher:
Code:

.hikashop_product_stock .hikashop_cart_input_button{ margin-left: -30px !important; }

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg1MTA2LWJvdXRvbi1ham91dGVyLWF1LXBhbmllci1hLXJlcG9zaXRpb25uZXI/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[lbertrel](/forum/user/616-lbertrel "View lbertrel's Profile")**
- [![lbertrel's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/616-lbertrel "View lbertrel's Profile") Topic Author
- [ Offline](/forum/user/616-lbertrel)

Less More

- Posts: 54
- Thank you received: 2
-
-

13 years 3 months ago [\#113513](#113513) by [lbertrel](/forum/user/616-lbertrel "View lbertrel's Profile")  Replied by *[lbertrel](/forum/user/616-lbertrel "View lbertrel's Profile")* on topic *[Bouton "Ajouter au panier" à repositionner](/forum/4-how-to/85106-bouton-ajouter-au-panier-a-repositionner#113513 "Bonjour Xavier,  J’ai essayé de changer la position du bouton « Ajouter au panier » (il sort du cadre vers la droite depuis que j'ai changé de template) et j’ai utilisé ceci dans le CSS comme vous me l’avez conseillé : btn button hikashop&#95;cart&#95;input&#95;button{ margin-left: -yyypx !important;}  Cela marche bien (avec -30px il est à la bonne place) mais le problème est que tous les autres boutons sont aussi décalés (vers la gauche) : btn button hikashop&#95;cart&#95;input&#95;button du checkout et même le bouton « Nous contacter pour plus d’information ».  Du coup, comment changer juste la position du bouton « Ajouter au panier » ?  Merci.  Laurent")*

Bonjour Eliot,

Je viens de placer ce code dans **style : green** sous
\#hikashop_product_contact_main {
margin-left: 30px;
}
mais cela ne fonctionne pas (rien de change).
Ai-je placé ce code au bon endroit ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg1MTA2LWJvdXRvbi1ham91dGVyLWF1LXBhbmllci1hLXJlcG9zaXRpb25uZXI/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Eliot](/forum/user/1824-eliot "View Eliot's Profile")**
- [![Eliot's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1824.png)](/forum/user/1824-eliot "View Eliot's Profile")
- [ Offline](/forum/user/1824-eliot)

Less More

- Posts: 2334
- Thank you received: 403
-
-

13 years 3 months ago [\#113516](#113516) by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")  Replied by *[Eliot](/forum/user/1824-eliot "View Eliot's Profile")* on topic *[Bouton "Ajouter au panier" à repositionner](/forum/4-how-to/85106-bouton-ajouter-au-panier-a-repositionner#113516 "Bonjour Xavier,  J’ai essayé de changer la position du bouton « Ajouter au panier » (il sort du cadre vers la droite depuis que j'ai changé de template) et j’ai utilisé ceci dans le CSS comme vous me l’avez conseillé : btn button hikashop&#95;cart&#95;input&#95;button{ margin-left: -yyypx !important;}  Cela marche bien (avec -30px il est à la bonne place) mais le problème est que tous les autres boutons sont aussi décalés (vers la gauche) : btn button hikashop&#95;cart&#95;input&#95;button du checkout et même le bouton « Nous contacter pour plus d’information ».  Du coup, comment changer juste la position du bouton « Ajouter au panier » ?  Merci.  Laurent")*

Essayez avec uniquement mon code et tout à la fin de votre fichier css.
Vous pouvez aussi essayer de le mettre dans le fichier css du frontend dans système&gt;configuration&gt;affichage&gt;css

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg1MTA2LWJvdXRvbi1ham91dGVyLWF1LXBhbmllci1hLXJlcG9zaXRpb25uZXI/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[lbertrel](/forum/user/616-lbertrel "View lbertrel's Profile")**
- [![lbertrel's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/616-lbertrel "View lbertrel's Profile") Topic Author
- [ Offline](/forum/user/616-lbertrel)

Less More

- Posts: 54
- Thank you received: 2
-
-

13 years 3 months ago [\#113542](#113542) by [lbertrel](/forum/user/616-lbertrel "View lbertrel's Profile")  Replied by *[lbertrel](/forum/user/616-lbertrel "View lbertrel's Profile")* on topic *[Bouton "Ajouter au panier" à repositionner](/forum/4-how-to/85106-bouton-ajouter-au-panier-a-repositionner#113542 "Bonjour Xavier,  J’ai essayé de changer la position du bouton « Ajouter au panier » (il sort du cadre vers la droite depuis que j'ai changé de template) et j’ai utilisé ceci dans le CSS comme vous me l’avez conseillé : btn button hikashop&#95;cart&#95;input&#95;button{ margin-left: -yyypx !important;}  Cela marche bien (avec -30px il est à la bonne place) mais le problème est que tous les autres boutons sont aussi décalés (vers la gauche) : btn button hikashop&#95;cart&#95;input&#95;button du checkout et même le bouton « Nous contacter pour plus d’information ».  Du coup, comment changer juste la position du bouton « Ajouter au panier » ?  Merci.  Laurent")*

Si je n'ajoute que votre code (dans style_green.css + frontend_custom2.css), cela ne change rien et en supprimant le code suivant
\#hikashop_product_contact_main {
margin-left: 30px;
}
le bouton "Nous contacter..." se décale à nouveau vers la gauche.
Une autre idée SVP ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg1MTA2LWJvdXRvbi1ham91dGVyLWF1LXBhbmllci1hLXJlcG9zaXRpb25uZXI/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 3 months ago [\#113569](#113569) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Bouton "Ajouter au panier" à repositionner](/forum/4-how-to/85106-bouton-ajouter-au-panier-a-repositionner#113569 "Bonjour Xavier,  J’ai essayé de changer la position du bouton « Ajouter au panier » (il sort du cadre vers la droite depuis que j'ai changé de template) et j’ai utilisé ceci dans le CSS comme vous me l’avez conseillé : btn button hikashop&#95;cart&#95;input&#95;button{ margin-left: -yyypx !important;}  Cela marche bien (avec -30px il est à la bonne place) mais le problème est que tous les autres boutons sont aussi décalés (vers la gauche) : btn button hikashop&#95;cart&#95;input&#95;button du checkout et même le bouton « Nous contacter pour plus d’information ».  Du coup, comment changer juste la position du bouton « Ajouter au panier » ?  Merci.  Laurent")*

Le code fourni par Eliot doit fonctionner, essayez de le placer via ftp dans le fichier:
[ www.agoracademie.com/media/com\_hikashop/css/style\_green.css](http://www.agoracademie.com/media/com_hikashop/css/style_green.css)

The following user(s) said Thank You: [lbertrel](/forum/user/616-lbertrel "View lbertrel's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg1MTA2LWJvdXRvbi1ham91dGVyLWF1LXBhbmllci1hLXJlcG9zaXRpb25uZXI/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[lbertrel](/forum/user/616-lbertrel "View lbertrel's Profile")**
- [![lbertrel's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/616-lbertrel "View lbertrel's Profile") Topic Author
- [ Offline](/forum/user/616-lbertrel)

Less More

- Posts: 54
- Thank you received: 2
-
-

13 years 3 months ago [\#113597](#113597) by [lbertrel](/forum/user/616-lbertrel "View lbertrel's Profile")  Replied by *[lbertrel](/forum/user/616-lbertrel "View lbertrel's Profile")* on topic *[Bouton "Ajouter au panier" à repositionner](/forum/4-how-to/85106-bouton-ajouter-au-panier-a-repositionner#113597 "Bonjour Xavier,  J’ai essayé de changer la position du bouton « Ajouter au panier » (il sort du cadre vers la droite depuis que j'ai changé de template) et j’ai utilisé ceci dans le CSS comme vous me l’avez conseillé : btn button hikashop&#95;cart&#95;input&#95;button{ margin-left: -yyypx !important;}  Cela marche bien (avec -30px il est à la bonne place) mais le problème est que tous les autres boutons sont aussi décalés (vers la gauche) : btn button hikashop&#95;cart&#95;input&#95;button du checkout et même le bouton « Nous contacter pour plus d’information ».  Du coup, comment changer juste la position du bouton « Ajouter au panier » ?  Merci.  Laurent")*

J'ai téléchargé le fichier via ftp, le code est à la bonne place mais j'ai suivi vos instructions. Je l'ai donc supprimé puis j'ai copy/past via ftp (test avant */ et après). Mais cela ne change rien.
D'où vient le conflit ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg1MTA2LWJvdXRvbi1ham91dGVyLWF1LXBhbmllci1hLXJlcG9zaXRpb25uZXI/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14265
-
-

13 years 3 months ago [\#113641](#113641) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Bouton "Ajouter au panier" à repositionner](/forum/4-how-to/85106-bouton-ajouter-au-panier-a-repositionner#113641 "Bonjour Xavier,  J’ai essayé de changer la position du bouton « Ajouter au panier » (il sort du cadre vers la droite depuis que j'ai changé de template) et j’ai utilisé ceci dans le CSS comme vous me l’avez conseillé : btn button hikashop&#95;cart&#95;input&#95;button{ margin-left: -yyypx !important;}  Cela marche bien (avec -30px il est à la bonne place) mais le problème est que tous les autres boutons sont aussi décalés (vers la gauche) : btn button hikashop&#95;cart&#95;input&#95;button du checkout et même le bouton « Nous contacter pour plus d’information ».  Du coup, comment changer juste la position du bouton « Ajouter au panier » ?  Merci.  Laurent")*

De ce que je vois sur votre site, le code
.hikashop_product_stock .hikashop_cart_input_button {
margin-left: -30px !important;
}
fonctionne est replace comme il faut le bouton d'ajout au panier à l'intérieur du cadre.

Concernant le bouton "nous contacter", le problème vient en fait du code:
.hikashop_cart_input_button {
background-color: #f1f2db;
margin-top: 10px;
margin-bottom: 10px;
border-right: 1px solid #969b43;
border-bottom: 1px solid #969b43;
border-left: 1px solid #d1d675;
border-top: 1px solid #d1d675;
padding: 3px 5px;
color: #797d2c;
cursor: pointer;
font-weight: bold;
margin-left: -30px !important;
}

dans le fichier [ www.agoracademie.com/media/com\_hikashop/...tyle\_green.css?v=200](http://www.agoracademie.com/media/com_hikashop/css/style_green.css?v=200) ou il faut supprimer la ligne margin-left: -30px !important;

The following user(s) said Thank You: [lbertrel](/forum/user/616-lbertrel "View lbertrel's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg1MTA2LWJvdXRvbi1ham91dGVyLWF1LXBhbmllci1hLXJlcG9zaXRpb25uZXI/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[lbertrel](/forum/user/616-lbertrel "View lbertrel's Profile")**
- [![lbertrel's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/616-lbertrel "View lbertrel's Profile") Topic Author
- [ Offline](/forum/user/616-lbertrel)

Less More

- Posts: 54
- Thank you received: 2
-
-

13 years 3 months ago [\#113646](#113646) by [lbertrel](/forum/user/616-lbertrel "View lbertrel's Profile")  Replied by *[lbertrel](/forum/user/616-lbertrel "View lbertrel's Profile")* on topic *[Bouton "Ajouter au panier" à repositionner](/forum/4-how-to/85106-bouton-ajouter-au-panier-a-repositionner#113646 "Bonjour Xavier,  J’ai essayé de changer la position du bouton « Ajouter au panier » (il sort du cadre vers la droite depuis que j'ai changé de template) et j’ai utilisé ceci dans le CSS comme vous me l’avez conseillé : btn button hikashop&#95;cart&#95;input&#95;button{ margin-left: -yyypx !important;}  Cela marche bien (avec -30px il est à la bonne place) mais le problème est que tous les autres boutons sont aussi décalés (vers la gauche) : btn button hikashop&#95;cart&#95;input&#95;button du checkout et même le bouton « Nous contacter pour plus d’information ».  Du coup, comment changer juste la position du bouton « Ajouter au panier » ?  Merci.  Laurent")*

C'est tout bon et cela marche parfaitement !!!!
Merci à vous tous. Super service comme toujours ![:-)](/media/kunena/emoticons/9.png ":-)")
Très bon week-end à vous !

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg1MTA2LWJvdXRvbi1ham91dGVyLWF1LXBhbmllci1hLXJlcG9zaXRpb25uZXI/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.762 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
