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

#   Fail to remind the user to check T&amp;C checkbox

##

- **[FORIDA\_LTD](/forum/user/54676-forida-ltd "View FORIDA&#95;LTD's Profile")**
- [![FORIDA&#95;LTD's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/54676-forida-ltd "View FORIDA&#95;LTD's Profile") Topic Author
- [ Offline](/forum/user/54676-forida-ltd)

Less More

- Posts: 20
- Thank you received: 0
-
-

8 years 5 months ago [\#293681](#293681) by [FORIDA\_LTD](/forum/user/54676-forida-ltd "View FORIDA&#95;LTD's Profile")  *[Fail to remind the user to check T&amp;C checkbox](/forum/27-checkout/894924-fail-to-remind-the-user-to-check-t-c-checkbox#293681 "-- HikaShop version -- : 3.4.0 -- Joomla version -- : 3.7.2 -- PHP version -- : 5.4.22 -- Browser(s) name and version -- : Chrome  Step 1: Cart Step 2: Login + Address Step 3: Cart + Terms and Conditions Step 4: Payment + Coupon  During the check-out process, if user forgot to check the T&amp;C checkbox, there is nothing to remind the user they must check the checkbox prior to do the payment. Also, it redirects user from step 3 back to step 1. Please advise. Thank you!")* was created by *[FORIDA\_LTD](/forum/user/54676-forida-ltd "View FORIDA&#95;LTD's Profile")*

-- HikaShop version -- : 3.4.0
-- Joomla version -- : 3.7.2
-- PHP version -- : 5.4.22
-- Browser(s) name and version -- : Chrome

Step 1: Cart
Step 2: Login + Address
Step 3: Cart + **Terms and Conditions**
Step 4: Payment + Coupon

During the check-out process, if user forgot to check the T&amp;C checkbox, there is nothing to remind the user they must check the checkbox prior to do the payment. Also, it redirects user from step 3 back to step 1. Please advise. Thank you!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5NDkyNC1mYWlsLXRvLXJlbWluZC10aGUtdXNlci10by1jaGVjay10LWMtY2hlY2tib3g/dG1wbD1tYXJrZG93bg==) 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: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

8 years 5 months ago [\#293689](#293689) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Fail to remind the user to check T&amp;C checkbox](/forum/27-checkout/894924-fail-to-remind-the-user-to-check-t-c-checkbox#293689 "-- HikaShop version -- : 3.4.0 -- Joomla version -- : 3.7.2 -- PHP version -- : 5.4.22 -- Browser(s) name and version -- : Chrome  Step 1: Cart Step 2: Login + Address Step 3: Cart + Terms and Conditions Step 4: Payment + Coupon  During the check-out process, if user forgot to check the T&amp;C checkbox, there is nothing to remind the user they must check the checkbox prior to do the payment. Also, it redirects user from step 3 back to step 1. Please advise. Thank you!")*

Hi,

Your problem description make me think that you're using the legacy version of the checkout.
[ www.hikashop.com/support/documentation/5...html#advanced\_legacy](https://www.hikashop.com/support/documentation/54-hikashop-config.html#advanced_legacy)

Regards,

---

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

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

- **[FORIDA\_LTD](/forum/user/54676-forida-ltd "View FORIDA&#95;LTD's Profile")**
- [![FORIDA&#95;LTD's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/54676-forida-ltd "View FORIDA&#95;LTD's Profile") Topic Author
- [ Offline](/forum/user/54676-forida-ltd)

Less More

- Posts: 20
- Thank you received: 0
-
-

8 years 5 months ago [\#293910](#293910) by [FORIDA\_LTD](/forum/user/54676-forida-ltd "View FORIDA&#95;LTD's Profile")  Replied by *[FORIDA\_LTD](/forum/user/54676-forida-ltd "View FORIDA&#95;LTD's Profile")* on topic *[Fail to remind the user to check T&amp;C checkbox](/forum/27-checkout/894924-fail-to-remind-the-user-to-check-t-c-checkbox#293910 "-- HikaShop version -- : 3.4.0 -- Joomla version -- : 3.7.2 -- PHP version -- : 5.4.22 -- Browser(s) name and version -- : Chrome  Step 1: Cart Step 2: Login + Address Step 3: Cart + Terms and Conditions Step 4: Payment + Coupon  During the check-out process, if user forgot to check the T&amp;C checkbox, there is nothing to remind the user they must check the checkbox prior to do the payment. Also, it redirects user from step 3 back to step 1. Please advise. Thank you!")*

Hi Jerome,

I updated the setting for the Checkout Legacy and it did work, Thanks!
However, when I apply the following code to have a onchange for the cart view at checkout, either one does not work anymore according to the change of checkout legacy.

Code used:
[ ](https://www.hikashop.com/support/forum/checkout/885143-auto-increase-the-quantity-and-auto-next-on-addres.html)[ www.hikashop.com/support/forum/checkout/...-next-on-addres.html](https://www.hikashop.com/support/forum/checkout/885143-auto-increase-the-quantity-and-auto-next-on-addres.html)

In the file "cart" of the view "checkout" via the menu Display&gt;Views Code:

echo JHTML::_('select.genericlist', $values, 'item['.$row-&gt;cart_product_id.']', '', 'value', 'text', $row-&gt;cart_product_quantity,'hikashop_checkout_quantity_'.$row-&gt;cart_product_id);

to: Code:

echo JHTML::_('select.genericlist', $values, 'item['.$row-&gt;cart_product_id.']', 'onchange="this.form.submit();"', 'value', 'text', $row-&gt;cart_product_quantity,'hikashop_checkout_quantity_'.$row-&gt;cart_product_id);

Current situation:
1. When checkout legacy is "YES", the T&amp;C reminder works fine but the onchange cart view is no longer available
2. When checkout legacy is "NO", the T&amp;C reminder simply show in plain text (please see attached) and the onchange cart view works fine

Can i have a solution for both the proper T&amp;C reminder (and I would like to change the reminder box to red, please advise) and the onchange cart view together?

Many Thanks!

- [ ![Legacy&#95;Y&#95;TC.png](/forum/attachment/43903) ](/forum/attachment/43903 "Legacy&#95;Y&#95;TC.png") [ ](/forum/attachment/43903?download=1 "Legacy&#95;Y&#95;TC.png")
- [ ![Legacy&#95;N&#95;TC.png](/forum/attachment/43904) ](/forum/attachment/43904 "Legacy&#95;N&#95;TC.png") [ ](/forum/attachment/43904?download=1 "Legacy&#95;N&#95;TC.png")

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

Less More

- Posts: 86561
- Thank you received: 14307
-
-

8 years 5 months ago [\#293950](#293950) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Fail to remind the user to check T&amp;C checkbox](/forum/27-checkout/894924-fail-to-remind-the-user-to-check-t-c-checkbox#293950 "-- HikaShop version -- : 3.4.0 -- Joomla version -- : 3.7.2 -- PHP version -- : 5.4.22 -- Browser(s) name and version -- : Chrome  Step 1: Cart Step 2: Login + Address Step 3: Cart + Terms and Conditions Step 4: Payment + Coupon  During the check-out process, if user forgot to check the T&amp;C checkbox, there is nothing to remind the user they must check the checkbox prior to do the payment. Also, it redirects user from step 3 back to step 1. Please advise. Thank you!")*

Hi,

With the new checkout, the "cart" file of the view "checkout" is not used anymore. It's the file "show_block_cart" which is used instead.
However, there is no need to change show_block_cart anymore to auto submit the change of the quantity when the quantity input is displayed as a dropdown. That's already the case by default: Code:

$onchange = 'onchange="window.hikashop.checkQuantity(this); var qty_field = document.getElementById(\'hikashop_checkout_quantity_'.$product-&gt;cart_product_id.'\'); if (qty_field &amp;&amp; qty_field.value != \''.$product-&gt;cart_product_quantity.'\'){'.$input.'return window.checkout.submitCart('.$this-&gt;step.','.$this-&gt;module_position.'); } return false;"'; $ret = JHTML::_('select.genericlist', $values, 'checkout[cart][item]['.$product-&gt;cart_product_id.']', 'id="hikashop_checkout_quantity_'.$product-&gt;cart_product_id.'" data-hk-qty-old="'. $product-&gt;cart_product_quantity.'" '.$onchange, 'value', 'text', $product-&gt;cart_product_quantity); echo str_replace('id="checkoutcartitem'.$product-&gt;cart_product_id.'"', '', $ret);

The solution with the chekcout legacy turned off is the way to go.
The issue with the error message displaying in plain text is simply a CSS issue either coming from your template or because you're using a really old CSS of HikaShop that you've customized. Check the "frontend CSS file" option of the HikaShop configuration and check that it is set to "default". The error message should then display properly. If not please provide a link to the shop along with instructions to reproduce the issue.

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

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