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

#   show\_quantity.php $this-&gt;params-&gt;get('html') ou ?

##

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

Less More

- Posts: 2705
- Thank you received: 74
-
-

9 years 5 months ago [\#271880](#271880) by [erickb](/forum/user/4069-erickb "View erickb's Profile")  *[show\_quantity.php $this-&gt;params-&gt;get('html') ou ?](/forum/5-support-en-francais-french-support-/890707-show-quantity-php-this-params-get-html-ou#271880 "-- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.2  Bonjour  dans product/show&#95;quantity.php -&gt; $html = $this-&gt;params-&gt;get('html'); d'ou provient ce html qui genere le bouton d'ajout au panier ?  Je voudrais pouvoir le modifier facilement  merci")* was created by *[erickb](/forum/user/4069-erickb "View erickb's Profile")*

-- HikaShop version -- : 3.1.1
-- Joomla version -- : 3.7.2

Bonjour

dans product/show_quantity.php -&gt; $html = $this-&gt;params-&gt;get('html');
d'ou provient ce html qui genere le bouton d'ajout au panier ?
Code:

&lt;a rel="nofollow" class="hikashop_cart_button" href="#" onclick="var field=document.getElementById('hikashop_product_quantity_field_1');if(hikashopCheckChangeForm('item','hikashop_product_form')){ return hikashopModifyQuantity('4272',field,1,'hikashop_product_form','cart'); } else { return false; }"&gt;Ajout au panier&lt;/a&gt;

Je voudrais pouvoir le modifier facilement

merci

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODkwNzA3LXNob3ctcXVhbnRpdHktcGhwLXRoaXMtcGFyYW1zLWdldC1odG1sLW91P3RtcGw9bWFya2Rvd24=) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

9 years 5 months ago [\#271887](#271887) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[show\_quantity.php $this-&gt;params-&gt;get('html') ou ?](/forum/5-support-en-francais-french-support-/890707-show-quantity-php-this-params-get-html-ou#271887 "-- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.2  Bonjour  dans product/show&#95;quantity.php -&gt; $html = $this-&gt;params-&gt;get('html'); d'ou provient ce html qui genere le bouton d'ajout au panier ?  Je voudrais pouvoir le modifier facilement  merci")*

Bonjour,

Activez l'option "Display view files" de la configuration pour pouvoir facilement voir quelle vue appelle quelle autre vue.

html vient de administrator/components/com_hikashop/helpers/cart.php
Je recommanderais plutôt de passer sur le nouveau ajout au panier en désactivant l'option "add to cart legacy" de la configuration.
Vous passerez alors sur le fichier "quantity" de la vue "layouts" avec le bouton provenant de "quantity" de la vue "product". Et donc, pas de code HTML en dur dans le helper.cart comme avec l'ancien add to cart et en plus le add to cart sera AJAX.

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

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

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

Less More

- Posts: 2705
- Thank you received: 74
-
-

9 years 5 months ago -  9 years 5 months ago [\#271934](#271934) by [erickb](/forum/user/4069-erickb "View erickb's Profile")  Replied by *[erickb](/forum/user/4069-erickb "View erickb's Profile")* on topic *[show\_quantity.php $this-&gt;params-&gt;get('html') ou ?](/forum/5-support-en-francais-french-support-/890707-show-quantity-php-this-params-get-html-ou#271934 "-- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.2  Bonjour  dans product/show&#95;quantity.php -&gt; $html = $this-&gt;params-&gt;get('html'); d'ou provient ce html qui genere le bouton d'ajout au panier ?  Je voudrais pouvoir le modifier facilement  merci")*

Merci et le display view files est une super idee de la v3

Code:

UPDATE &#96;#__hikashop_config&#96; SET &#96;config_value&#96; = '0' WHERE &#96;#__hikashop_config&#96;.&#96;config_namekey&#96; = 'add_to_cart_legacy';

Last edit: 9 years 5 months ago by [erickb](/forum/user/4069-erickb "View erickb's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODkwNzA3LXNob3ctcXVhbnRpdHktcGhwLXRoaXMtcGFyYW1zLWdldC1odG1sLW91P3RtcGw9bWFya2Rvd24=) 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.048 seconds

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