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

#   HikaSerial Consumer plugin

##

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

Less More

- Posts: 332
- Thank you received: 4
-
-

13 years 6 months ago [\#99954](#99954) by [emohk](/forum/user/7512-emohk "View emohk's Profile")  Replied by *[emohk](/forum/user/7512-emohk "View emohk's Profile")* on topic *[HikaSerial Consumer plugin](/forum/18-support-en-francais-de-hikaserial-french-support/79983-hikaserial-consumer-plugin?start=20#99954 "Bonjour,  Je n'ai pas trouvé de documentation à ce sujet : à quoi sert le plugin Product Add - HikaSerial Consumer plugin???  Merci")*

Bonjour,

Merci pour ces compléments

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

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

Less More

- Posts: 332
- Thank you received: 4
-
-

13 years 6 months ago [\#99966](#99966) by [emohk](/forum/user/7512-emohk "View emohk's Profile")  Replied by *[emohk](/forum/user/7512-emohk "View emohk's Profile")* on topic *[HikaSerial Consumer plugin](/forum/18-support-en-francais-de-hikaserial-french-support/79983-hikaserial-consumer-plugin?start=20#99966 "Bonjour,  Je n'ai pas trouvé de documentation à ce sujet : à quoi sert le plugin Product Add - HikaSerial Consumer plugin???  Merci")*

Re-bonjour,

En effet, l'appel du $app-&gt;enqueueMessage me permet de générer un message standard joomla mais quand mon retour de saisie du serial est OK et même erroné, comment faire pour que la page html ne soit pas affichée? Je veux tout simplement utiliser le module pour saisir le serial et mettre à jour des données. En plus, l'appel de la page html consumed_html, me vire mes informations déjà présente sur le main body
1) Image à l'init :

[ ![22&#95;-module&#95;consume&#95;serial.PNG](/forum/attachment/9739) ](/forum/attachment/9739 "...ume&#95;serial.PNG")

2) image quand retour OK (j'ai la page html) :

[ ![23&#95;-module&#95;consume&#95;serial&#95;retour&#95;OK.PNG](/forum/attachment/9740) ](/forum/attachment/9740 "...&#95;retour&#95;OK.PNG")

- [ ![22&#95;-module&#95;consume&#95;serial.PNG](/forum/attachment/9739) ](/forum/attachment/9739 "...ume&#95;serial.PNG") [ ](/forum/attachment/9739?download=1 "...ume&#95;serial.PNG")
- [ ![23&#95;-module&#95;consume&#95;serial&#95;retour&#95;OK.PNG](/forum/attachment/9740) ](/forum/attachment/9740 "...&#95;retour&#95;OK.PNG") [ ](/forum/attachment/9740?download=1 "...&#95;retour&#95;OK.PNG")

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 6 months ago [\#99968](#99968) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[HikaSerial Consumer plugin](/forum/18-support-en-francais-de-hikaserial-french-support/79983-hikaserial-consumer-plugin?start=20#99968 "Bonjour,  Je n'ai pas trouvé de documentation à ce sujet : à quoi sert le plugin Product Add - HikaSerial Consumer plugin???  Merci")*

Bonjour,

Pour ne pas rester sur la page, vous devez rediriger l'utilisateur vers une autre page, via un $app-&gt;redirect().
Afin de rester sur la page courante, le mieux est de rajouter un champs hidden dans la page de consommation (serial &#124; consume). Code:

&lt;input type="hidden" value="&lt;?php echo hikashop_currentUrl(); ?&gt;" name="return_url"/&gt;

Ainsi, l'url courante sera passée dans le forumulaire qui pourra alors rediriger l'utilisateur. Code:

$return_url = JRequest::getVar('return_url', ''); if(!empty($return_url)) { $app-&gt;redirect($return_url); }

Ainsi, l'utilisateur retournera sur la page précédente, sans avoir le contenu de la page de consommation puisqu'il sera directement redirigé avant l'affichage de celle ci.

Cordialement,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 332
- Thank you received: 4
-
-

13 years 6 months ago [\#99981](#99981) by [emohk](/forum/user/7512-emohk "View emohk's Profile")  Replied by *[emohk](/forum/user/7512-emohk "View emohk's Profile")* on topic *[HikaSerial Consumer plugin](/forum/18-support-en-francais-de-hikaserial-french-support/79983-hikaserial-consumer-plugin?start=20#99981 "Bonjour,  Je n'ai pas trouvé de documentation à ce sujet : à quoi sert le plugin Product Add - HikaSerial Consumer plugin???  Merci")*

Ok merci je vais tester.

De la même façon afin de rendre plus souple l'utilisation de la page html consumed_html, il serait intéressant d'indiquer comment éventuellement en lieu et place du "php echo JText::_('THANK_YOU');", autoriser un appel à un article joomla. Cela permettrait de personnaliser à sa guise la page.

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

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

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

Time to create page: 0.100 seconds

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

[](#top)
