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

#   lost 0 points error

##

- **[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)
-

10 years 4 months ago [\#243789](#243789) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[lost 0 points error](/forum/30-integrations/884933-lost-0-points-error?start=20#243789 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.5.9-1 -- Browser(s) name and version -- : Firefox 46.0.1 -- Error-message(debug-mod must be tuned on) -- : easysocial Points History admin lost 0 points Correct -240 Used Points 240 Points  Hi: process  1. right menu -&gt;Products listing   123.mart168.com/hikashop-menu-for-products-listing.html  2.add to cart  Subtotal 1 000,00 TWD Points discount -240,00 TWD Points used 240 Points Total 760,00 TWD  Button Finish  Your order is now complete. The amount of 800,00 TWD will be collected upon delivery of your order (L10) Thank you for your purchase.  Complete  3.right menu -&gt;Community admin-&gt;menu-&gt;points   123.mart168.com/community/points/history/135-admin.html  Screen Display admin lost 0 points error  -240 is the correct  test HikaShop points Correct -240 test AltaUserPoints points Correct -240 test EasySocial points error 0  set up Attach the picture, please see  thank you！")*

Hi,

The text indicate that the customer can use X points to have a Y discount.
I don't see what the issue with that text ; which is just a question to the customer in order to know if he wants to use his points to get a discount... So even if he does not want to use his points, he still have the information that he can change his mind and use his X points to get a Y discount...

Regards,

---

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

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

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

Less More

- Posts: 27
- Thank you received: 0
-
-

10 years 4 months ago [\#243827](#243827) by [hlv008](/forum/user/40053-hlv008 "View hlv008's Profile")  Replied by *[hlv008](/forum/user/40053-hlv008 "View hlv008's Profile")* on topic *[lost 0 points error](/forum/30-integrations/884933-lost-0-points-error?start=20#243827 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.5.9-1 -- Browser(s) name and version -- : Firefox 46.0.1 -- Error-message(debug-mod must be tuned on) -- : easysocial Points History admin lost 0 points Correct -240 Used Points 240 Points  Hi: process  1. right menu -&gt;Products listing   123.mart168.com/hikashop-menu-for-products-listing.html  2.add to cart  Subtotal 1 000,00 TWD Points discount -240,00 TWD Points used 240 Points Total 760,00 TWD  Button Finish  Your order is now complete. The amount of 800,00 TWD will be collected upon delivery of your order (L10) Thank you for your purchase.  Complete  3.right menu -&gt;Community admin-&gt;menu-&gt;points   123.mart168.com/community/points/history/135-admin.html  Screen Display admin lost 0 points error  -240 is the correct  test HikaShop points Correct -240 test AltaUserPoints points Correct -240 test EasySocial points error 0  set up Attach the picture, please see  thank you！")*

Hi:
Shopping habits and different ideas
How do I change 0
Please provide code
thank you！

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84ODQ5MzMtbG9zdC0wLXBvaW50cy1lcnJvcj9zdGFydD0yMCZ0bXBsPW1hcmtkb3du) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86556
- Thank you received: 14304
-
-

10 years 4 months ago -  10 years 4 months ago [\#243928](#243928) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[lost 0 points error](/forum/30-integrations/884933-lost-0-points-error?start=20#243928 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.5.9-1 -- Browser(s) name and version -- : Firefox 46.0.1 -- Error-message(debug-mod must be tuned on) -- : easysocial Points History admin lost 0 points Correct -240 Used Points 240 Points  Hi: process  1. right menu -&gt;Products listing   123.mart168.com/hikashop-menu-for-products-listing.html  2.add to cart  Subtotal 1 000,00 TWD Points discount -240,00 TWD Points used 240 Points Total 760,00 TWD  Button Finish  Your order is now complete. The amount of 800,00 TWD will be collected upon delivery of your order (L10) Thank you for your purchase.  Complete  3.right menu -&gt;Community admin-&gt;menu-&gt;points   123.mart168.com/community/points/history/135-admin.html  Screen Display admin lost 0 points error  -240 is the correct  test HikaShop points Correct -240 test AltaUserPoints points Correct -240 test EasySocial points error 0  set up Attach the picture, please see  thank you！")*

Hi,

It doesn't sound logical to change that... But anyway, you can change the code: Code:

$consume['points']

to: Code:

($use_coupon?$consume['points']:0)

in plugins/hikashop/userpoints/userpoints_checkout.php for that change.
But we won't include that change on our end.

Last edit: 10 years 4 months ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile"). Reason: typo fix

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

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

Less More

- Posts: 27
- Thank you received: 0
-
-

10 years 4 months ago [\#243944](#243944) by [hlv008](/forum/user/40053-hlv008 "View hlv008's Profile")  Replied by *[hlv008](/forum/user/40053-hlv008 "View hlv008's Profile")* on topic *[lost 0 points error](/forum/30-integrations/884933-lost-0-points-error?start=20#243944 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.5.9-1 -- Browser(s) name and version -- : Firefox 46.0.1 -- Error-message(debug-mod must be tuned on) -- : easysocial Points History admin lost 0 points Correct -240 Used Points 240 Points  Hi: process  1. right menu -&gt;Products listing   123.mart168.com/hikashop-menu-for-products-listing.html  2.add to cart  Subtotal 1 000,00 TWD Points discount -240,00 TWD Points used 240 Points Total 760,00 TWD  Button Finish  Your order is now complete. The amount of 800,00 TWD will be collected upon delivery of your order (L10) Thank you for your purchase.  Complete  3.right menu -&gt;Community admin-&gt;menu-&gt;points   123.mart168.com/community/points/history/135-admin.html  Screen Display admin lost 0 points error  -240 is the correct  test HikaShop points Correct -240 test AltaUserPoints points Correct -240 test EasySocial points error 0  set up Attach the picture, please see  thank you！")*

Hi:
Thank you !
($use_coupon?:$consume:0)
Blank screen

($use_coupon?:$consume=0)

Test results
1. Please provide the correct code
select Yes 1 error (700 correct)

You have 6425 points.
You can use 1 points to have a discount of 700,00 TWD.
Do you want to use these points ?
Yes

2.
select No 0 correct

You have 6425 points.
You can use 0 points to have a discount of 700,00 TWD.
Do you want to use these points ?
No

You can earn 1000 points with this order

Thank you !

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

10 years 4 months ago [\#243947](#243947) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[lost 0 points error](/forum/30-integrations/884933-lost-0-points-error?start=20#243947 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.5.9-1 -- Browser(s) name and version -- : Firefox 46.0.1 -- Error-message(debug-mod must be tuned on) -- : easysocial Points History admin lost 0 points Correct -240 Used Points 240 Points  Hi: process  1. right menu -&gt;Products listing   123.mart168.com/hikashop-menu-for-products-listing.html  2.add to cart  Subtotal 1 000,00 TWD Points discount -240,00 TWD Points used 240 Points Total 760,00 TWD  Button Finish  Your order is now complete. The amount of 800,00 TWD will be collected upon delivery of your order (L10) Thank you for your purchase.  Complete  3.right menu -&gt;Community admin-&gt;menu-&gt;points   123.mart168.com/community/points/history/135-admin.html  Screen Display admin lost 0 points error  -240 is the correct  test HikaShop points Correct -240 test AltaUserPoints points Correct -240 test EasySocial points error 0  set up Attach the picture, please see  thank you！")*

I fixed a typo in the Nicolas' message

---

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

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

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

Less More

- Posts: 27
- Thank you received: 0
-
-

10 years 4 months ago [\#243954](#243954) by [hlv008](/forum/user/40053-hlv008 "View hlv008's Profile")  Replied by *[hlv008](/forum/user/40053-hlv008 "View hlv008's Profile")* on topic *[lost 0 points error](/forum/30-integrations/884933-lost-0-points-error?start=20#243954 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.5.9-1 -- Browser(s) name and version -- : Firefox 46.0.1 -- Error-message(debug-mod must be tuned on) -- : easysocial Points History admin lost 0 points Correct -240 Used Points 240 Points  Hi: process  1. right menu -&gt;Products listing   123.mart168.com/hikashop-menu-for-products-listing.html  2.add to cart  Subtotal 1 000,00 TWD Points discount -240,00 TWD Points used 240 Points Total 760,00 TWD  Button Finish  Your order is now complete. The amount of 800,00 TWD will be collected upon delivery of your order (L10) Thank you for your purchase.  Complete  3.right menu -&gt;Community admin-&gt;menu-&gt;points   123.mart168.com/community/points/history/135-admin.html  Screen Display admin lost 0 points error  -240 is the correct  test HikaShop points Correct -240 test AltaUserPoints points Correct -240 test EasySocial points error 0  set up Attach the picture, please see  thank you！")*

Hi:
select Yes 1 error (700 correct)
Please 1 how to change the amount of deduction
1 = 700 correct

You have 6425 points.
You can use 1 points to have a discount of 700,00 TWD.
Do you want to use these points ?
Yes

Please provide the correct code
Thank you !

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84ODQ5MzMtbG9zdC0wLXBvaW50cy1lcnJvcj9zdGFydD0yMCZ0bXBsPW1hcmtkb3du) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86556
- Thank you received: 14304
-
-

10 years 4 months ago [\#243989](#243989) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[lost 0 points error](/forum/30-integrations/884933-lost-0-points-error?start=20#243989 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.5.9-1 -- Browser(s) name and version -- : Firefox 46.0.1 -- Error-message(debug-mod must be tuned on) -- : easysocial Points History admin lost 0 points Correct -240 Used Points 240 Points  Hi: process  1. right menu -&gt;Products listing   123.mart168.com/hikashop-menu-for-products-listing.html  2.add to cart  Subtotal 1 000,00 TWD Points discount -240,00 TWD Points used 240 Points Total 760,00 TWD  Button Finish  Your order is now complete. The amount of 800,00 TWD will be collected upon delivery of your order (L10) Thank you for your purchase.  Complete  3.right menu -&gt;Community admin-&gt;menu-&gt;points   123.mart168.com/community/points/history/135-admin.html  Screen Display admin lost 0 points error  -240 is the correct  test HikaShop points Correct -240 test AltaUserPoints points Correct -240 test EasySocial points error 0  set up Attach the picture, please see  thank you！")*

Hi,

The modification that I provided (and that was corrected by Jerome) cannot give a result of "1 points" on the view of the checkout.
So I can only think that the modification we gave wasn't applied properly. Please double check it.

Please note that this is a user support forum. We provide answers to user questions. We're not here to customize your website for you. We were nice enough to provide help and some hints as to what to do, and even gave some code samples.

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

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

Less More

- Posts: 27
- Thank you received: 0
-
-

10 years 4 months ago -  10 years 4 months ago [\#244011](#244011) by [hlv008](/forum/user/40053-hlv008 "View hlv008's Profile")  Replied by *[hlv008](/forum/user/40053-hlv008 "View hlv008's Profile")* on topic *[lost 0 points error](/forum/30-integrations/884933-lost-0-points-error?start=20#244011 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.5.9-1 -- Browser(s) name and version -- : Firefox 46.0.1 -- Error-message(debug-mod must be tuned on) -- : easysocial Points History admin lost 0 points Correct -240 Used Points 240 Points  Hi: process  1. right menu -&gt;Products listing   123.mart168.com/hikashop-menu-for-products-listing.html  2.add to cart  Subtotal 1 000,00 TWD Points discount -240,00 TWD Points used 240 Points Total 760,00 TWD  Button Finish  Your order is now complete. The amount of 800,00 TWD will be collected upon delivery of your order (L10) Thank you for your purchase.  Complete  3.right menu -&gt;Community admin-&gt;menu-&gt;points   123.mart168.com/community/points/history/135-admin.html  Screen Display admin lost 0 points error  -240 is the correct  test HikaShop points Correct -240 test AltaUserPoints points Correct -240 test EasySocial points error 0  set up Attach the picture, please see  thank you！")*

Hi:
Understanding!
Because it was right before it was revised
Correct but turned into error =1 $use_coupon?:$consume=0
Do not modify = 700 $consume
This part I didn't estimate
Please
see test
reality is equal to 1

[ 123.mart168.com/index.php/hikashop-menu-for-products-listing](http://123.mart168.com/index.php/hikashop-menu-for-products-listing)
login user:test
pw:12345678

If you need a number can also invoke custom
that would with a numeric charges to how much?

Thank you very much!

plugins\hikashop\userpoints\userpoints.php 880
Do you have equal to 1 reason Code:

$use_coupon = 1 - (int)$app-&gt;getUserState(HIKASHOP_COMPONENT.'.userpoints_no_virtual_coupon', (int)(@$this-&gt;plugin_options['checkout_step'] &amp;&amp; @$this-&gt;plugin_options['default_no_use']));

plugins\hikashop\userpoints\userpoints_checkout.php Code:

&lt;?php /** * @package HikaShop for Joomla! * @version 2.6.3 * @author hikashop.com * @copyright (C) 2010-2016 HIKARI SOFTWARE. All rights reserved. * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html */ defined('_JEXEC') or die('Restricted access'); ?&gt;&lt;div id="hikashop_userpoints_status"&gt; &lt;fieldset&gt; &lt;legend&gt;&lt;?php echo JText::_('POINTS'); ?&gt;&lt;/legend&gt; &lt;span class="hikashop_userpoints_status_value"&gt;&lt;?php if($points &gt; 0) { echo JText::sprintf('USERPOINTS_HAVE_X_POINTS', $points); } else { echo JText::_('USERPOINTS_NO_POINTS'); } ?&gt;&lt;/span&gt; &lt;?php if(!empty($consume)) { ?&gt; [color=#bb0000]&lt;br/&gt;&lt;span class="hikashop_userpoints_status_user"&gt;&lt;?php echo JText::sprintf('USERPOINTS_USER_FOR_DISCOUNT', $use_coupon?:$consume['points']=0, $discount); ?&gt;&lt;/span&gt;[/color] &lt;!-- ($use_coupon?:$consume['points']:0) &lt;?php echo JText::sprintf('USERPOINTS_USER_FOR_DISCOUNT', $consume['points'], $discount); ?&gt;&lt;/span&gt; --&gt; &lt;?php if(!empty($this-&gt;plugin_options['ask_no_coupon'])) { ?&gt; &lt;br/&gt;&lt;span class="hikashop_userpoints_status_question"&gt;&lt;span&gt;&lt;?php echo JText::_('USERPOINTS_USE_DISCOUNT_QUESTION');?&gt;&lt;/span&gt; &lt;?php echo JHTML::_('hikaselect.booleanlist', 'userpoints_use_coupon', 'onchange="this.form.submit();"', $use_coupon); ?&gt;&lt;/span&gt; &lt;?php } } if($earn_points !== false &amp;&amp; !empty($earn_points)) { ?&gt; &lt;br/&gt;&lt;span class="hikashop_userpoints_earn"&gt;&lt;?php echo JText::sprintf('USERPOINTS_EARN_POINTS', $earn_points); ?&gt;&lt;/span&gt; &lt;?php } ?&gt; &lt;/fieldset&gt; &lt;/div&gt;

Last edit: 10 years 4 months ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile"). Reason: formatting code

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84ODQ5MzMtbG9zdC0wLXBvaW50cy1lcnJvcj9zdGFydD0yMCZ0bXBsPW1hcmtkb3du) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86556
- Thank you received: 14304
-
-

10 years 4 months ago [\#244015](#244015) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[lost 0 points error](/forum/30-integrations/884933-lost-0-points-error?start=20#244015 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.5.9-1 -- Browser(s) name and version -- : Firefox 46.0.1 -- Error-message(debug-mod must be tuned on) -- : easysocial Points History admin lost 0 points Correct -240 Used Points 240 Points  Hi: process  1. right menu -&gt;Products listing   123.mart168.com/hikashop-menu-for-products-listing.html  2.add to cart  Subtotal 1 000,00 TWD Points discount -240,00 TWD Points used 240 Points Total 760,00 TWD  Button Finish  Your order is now complete. The amount of 800,00 TWD will be collected upon delivery of your order (L10) Thank you for your purchase.  Complete  3.right menu -&gt;Community admin-&gt;menu-&gt;points   123.mart168.com/community/points/history/135-admin.html  Screen Display admin lost 0 points error  -240 is the correct  test HikaShop points Correct -240 test AltaUserPoints points Correct -240 test EasySocial points error 0  set up Attach the picture, please see  thank you！")*

Hi,

You're using the code: Code:

$use_coupon?:$consume['points']=0

instead of the code: Code:

($use_coupon?$consume['points']:0)

like we provided. Please use the correct code and it should work.

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

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

Less More

- Posts: 27
- Thank you received: 0
-
-

10 years 4 months ago [\#244038](#244038) by [hlv008](/forum/user/40053-hlv008 "View hlv008's Profile")  Replied by *[hlv008](/forum/user/40053-hlv008 "View hlv008's Profile")* on topic *[lost 0 points error](/forum/30-integrations/884933-lost-0-points-error?start=20#244038 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.5.9-1 -- Browser(s) name and version -- : Firefox 46.0.1 -- Error-message(debug-mod must be tuned on) -- : easysocial Points History admin lost 0 points Correct -240 Used Points 240 Points  Hi: process  1. right menu -&gt;Products listing   123.mart168.com/hikashop-menu-for-products-listing.html  2.add to cart  Subtotal 1 000,00 TWD Points discount -240,00 TWD Points used 240 Points Total 760,00 TWD  Button Finish  Your order is now complete. The amount of 800,00 TWD will be collected upon delivery of your order (L10) Thank you for your purchase.  Complete  3.right menu -&gt;Community admin-&gt;menu-&gt;points   123.mart168.com/community/points/history/135-admin.html  Screen Display admin lost 0 points error  -240 is the correct  test HikaShop points Correct -240 test AltaUserPoints points Correct -240 test EasySocial points error 0  set up Attach the picture, please see  thank you！")*

Hi:
Thank you very much!

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

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

Less More

- Posts: 27
- Thank you received: 0
-
-

10 years 4 months ago -  10 years 4 months ago [\#244204](#244204) by [hlv008](/forum/user/40053-hlv008 "View hlv008's Profile")  Replied by *[hlv008](/forum/user/40053-hlv008 "View hlv008's Profile")* on topic *[lost 0 points error](/forum/30-integrations/884933-lost-0-points-error?start=20#244204 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.5.9-1 -- Browser(s) name and version -- : Firefox 46.0.1 -- Error-message(debug-mod must be tuned on) -- : easysocial Points History admin lost 0 points Correct -240 Used Points 240 Points  Hi: process  1. right menu -&gt;Products listing   123.mart168.com/hikashop-menu-for-products-listing.html  2.add to cart  Subtotal 1 000,00 TWD Points discount -240,00 TWD Points used 240 Points Total 760,00 TWD  Button Finish  Your order is now complete. The amount of 800,00 TWD will be collected upon delivery of your order (L10) Thank you for your purchase.  Complete  3.right menu -&gt;Community admin-&gt;menu-&gt;points   123.mart168.com/community/points/history/135-admin.html  Screen Display admin lost 0 points error  -240 is the correct  test HikaShop points Correct -240 test AltaUserPoints points Correct -240 test EasySocial points error 0  set up Attach the picture, please see  thank you！")*

Hi:
Can not find a place to modify the order
please
See additional pictures

[ ![s01.jpg](/forum/attachment/32347) ](/forum/attachment/32347 "s01.jpg")

I want to be out
joomla yes in the first no back
but here are in turn
i found for more code modifications are not successful

Yes change in the top
General habits yes is in front

I'm sorry for the national and regional shopping habits.
Ask you these questions

administrator\components\com_hikashop\helpers\joomla30.php
public static function booleanlist($name, $attribs = null, $selected = null, $yes = 'JYES', $no = 'JNO', $id = false){
$arr = array(
JHtml::_('select.option', '1', JText::_($yes)),
JHtml::_('select.option', '0', JText::_($no))
);

thank you！

- [ ![s01.jpg](/forum/attachment/32347) ](/forum/attachment/32347 "s01.jpg") [ ](/forum/attachment/32347?download=1 "s01.jpg")

Last edit: 10 years 4 months ago by [hlv008](/forum/user/40053-hlv008 "View hlv008's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84ODQ5MzMtbG9zdC0wLXBvaW50cy1lcnJvcj9zdGFydD0yMCZ0bXBsPW1hcmtkb3du) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86556
- Thank you received: 14304
-
-

10 years 4 months ago [\#244206](#244206) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[lost 0 points error](/forum/30-integrations/884933-lost-0-points-error?start=20#244206 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.5.9-1 -- Browser(s) name and version -- : Firefox 46.0.1 -- Error-message(debug-mod must be tuned on) -- : easysocial Points History admin lost 0 points Correct -240 Used Points 240 Points  Hi: process  1. right menu -&gt;Products listing   123.mart168.com/hikashop-menu-for-products-listing.html  2.add to cart  Subtotal 1 000,00 TWD Points discount -240,00 TWD Points used 240 Points Total 760,00 TWD  Button Finish  Your order is now complete. The amount of 800,00 TWD will be collected upon delivery of your order (L10) Thank you for your purchase.  Complete  3.right menu -&gt;Community admin-&gt;menu-&gt;points   123.mart168.com/community/points/history/135-admin.html  Screen Display admin lost 0 points error  -240 is the correct  test HikaShop points Correct -240 test AltaUserPoints points Correct -240 test EasySocial points error 0  set up Attach the picture, please see  thank you！")*

Hi,

As you found out, the order of the yes/no comes from the file administrator\components\com_hikashop\helpers\joomla30.php
So you'll have to reverse the two lines:
JHtml::_('select.option', '1', JText::_($yes)),
JHtml::_('select.option', '0', JText::_($no))

like that:
JHtml::_('select.option', '0', JText::_($no)),
JHtml::_('select.option', '1', JText::_($yes))

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

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

Less More

- Posts: 27
- Thank you received: 0
-
-

10 years 4 months ago [\#244256](#244256) by [hlv008](/forum/user/40053-hlv008 "View hlv008's Profile")  Replied by *[hlv008](/forum/user/40053-hlv008 "View hlv008's Profile")* on topic *[lost 0 points error](/forum/30-integrations/884933-lost-0-points-error?start=20#244256 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.5.9-1 -- Browser(s) name and version -- : Firefox 46.0.1 -- Error-message(debug-mod must be tuned on) -- : easysocial Points History admin lost 0 points Correct -240 Used Points 240 Points  Hi: process  1. right menu -&gt;Products listing   123.mart168.com/hikashop-menu-for-products-listing.html  2.add to cart  Subtotal 1 000,00 TWD Points discount -240,00 TWD Points used 240 Points Total 760,00 TWD  Button Finish  Your order is now complete. The amount of 800,00 TWD will be collected upon delivery of your order (L10) Thank you for your purchase.  Complete  3.right menu -&gt;Community admin-&gt;menu-&gt;points   123.mart168.com/community/points/history/135-admin.html  Screen Display admin lost 0 points error  -240 is the correct  test HikaShop points Correct -240 test AltaUserPoints points Correct -240 test EasySocial points error 0  set up Attach the picture, please see  thank you！")*

Hi:
This file is not
administrator\components\com_hikashop\helpers\joomla30.php
Can not find a place to modify

Can prompt on the ?

Thank you!

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

10 years 4 months ago [\#244304](#244304) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[lost 0 points error](/forum/30-integrations/884933-lost-0-points-error?start=20#244304 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.5.9-1 -- Browser(s) name and version -- : Firefox 46.0.1 -- Error-message(debug-mod must be tuned on) -- : easysocial Points History admin lost 0 points Correct -240 Used Points 240 Points  Hi: process  1. right menu -&gt;Products listing   123.mart168.com/hikashop-menu-for-products-listing.html  2.add to cart  Subtotal 1 000,00 TWD Points discount -240,00 TWD Points used 240 Points Total 760,00 TWD  Button Finish  Your order is now complete. The amount of 800,00 TWD will be collected upon delivery of your order (L10) Thank you for your purchase.  Complete  3.right menu -&gt;Community admin-&gt;menu-&gt;points   123.mart168.com/community/points/history/135-admin.html  Screen Display admin lost 0 points error  -240 is the correct  test HikaShop points Correct -240 test AltaUserPoints points Correct -240 test EasySocial points error 0  set up Attach the picture, please see  thank you！")*

Hi,

Please edit directly the "user points" plugin for the "checkout" file ; it will be easier.

Regards

---

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

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

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

Less More

- Posts: 27
- Thank you received: 0
-
-

10 years 4 months ago -  10 years 4 months ago [\#244394](#244394) by [hlv008](/forum/user/40053-hlv008 "View hlv008's Profile")  Replied by *[hlv008](/forum/user/40053-hlv008 "View hlv008's Profile")* on topic *[lost 0 points error](/forum/30-integrations/884933-lost-0-points-error?start=20#244394 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.5.9-1 -- Browser(s) name and version -- : Firefox 46.0.1 -- Error-message(debug-mod must be tuned on) -- : easysocial Points History admin lost 0 points Correct -240 Used Points 240 Points  Hi: process  1. right menu -&gt;Products listing   123.mart168.com/hikashop-menu-for-products-listing.html  2.add to cart  Subtotal 1 000,00 TWD Points discount -240,00 TWD Points used 240 Points Total 760,00 TWD  Button Finish  Your order is now complete. The amount of 800,00 TWD will be collected upon delivery of your order (L10) Thank you for your purchase.  Complete  3.right menu -&gt;Community admin-&gt;menu-&gt;points   123.mart168.com/community/points/history/135-admin.html  Screen Display admin lost 0 points error  -240 is the correct  test HikaShop points Correct -240 test AltaUserPoints points Correct -240 test EasySocial points error 0  set up Attach the picture, please see  thank you！")*

Hi:
plugins\hikashop\userpoints\userpoints_checkout.php

I notice that this
is not fall back here?
echo JHTML::_('hikaselect.booleanlist', 'userpoints_use_coupon', 'onchange="this.form.submit();"', $use_coupon);

Search all of the
Could not find

&lt;?php
/**
* @package HikaShop for Joomla!
* @version 2.6.3
* @author hikashop.com
* @copyright (C) 2010-2016 HIKARI SOFTWARE. All rights reserved.
* @license GNU/GPLv3 [ www.gnu.org/licenses/gpl-3.0.html](http://www.gnu.org/licenses/gpl-3.0.html)
*/
defined('_JEXEC') or die('Restricted access');
?&gt;&lt;div id="hikashop_userpoints_status"&gt;
&lt;fieldset&gt;
&lt;legend&gt;&lt;?php echo JText::_('POINTS'); ?&gt;&lt;/legend&gt;
&lt;span class="hikashop_userpoints_status_value"&gt;&lt;?php
if($points &gt; 0) {
echo JText::sprintf('USERPOINTS_HAVE_X_POINTS', $points);
} else {
echo JText::_('USERPOINTS_NO_POINTS');
}
?&gt;&lt;/span&gt;
&lt;?php
if(!empty($consume)) {
?&gt;
&lt;br/&gt;&lt;span class="hikashop_userpoints_status_user"&gt;&lt;?php echo JText::sprintf('USERPOINTS_USER_FOR_DISCOUNT', $use_coupon?$consume:0, $discount); ?&gt;&lt;/span&gt;

&lt;?php if(!empty($this-&gt;plugin_options)) { ?&gt;
&lt;br/&gt;&lt;span class="hikashop_userpoints_status_question"&gt;&lt;span&gt;&lt;?php echo JText::_('USERPOINTS_USE_DISCOUNT_QUESTION');?&gt;&lt;/span&gt; &lt;?php
echo JHTML::_('hikaselect.booleanlist', 'userpoints_use_coupon', 'onchange="this.form.submit();"', $use_coupon);
?&gt;&lt;/span&gt;
&lt;?php }
}
if($earn_points !== false &amp;&amp; !empty($earn_points)) {
?&gt; &lt;br/&gt;&lt;span class="hikashop_userpoints_earn"&gt;&lt;?php echo JText::sprintf('USERPOINTS_EARN_POINTS', $earn_points); ?&gt;&lt;/span&gt;
&lt;?php
}
?&gt;
&lt;/fieldset&gt;
&lt;/div&gt;

Thank you!

Last edit: 10 years 4 months ago by [hlv008](/forum/user/40053-hlv008 "View hlv008's Profile").

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

10 years 4 months ago [\#244462](#244462) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[lost 0 points error](/forum/30-integrations/884933-lost-0-points-error?start=20#244462 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.5.9-1 -- Browser(s) name and version -- : Firefox 46.0.1 -- Error-message(debug-mod must be tuned on) -- : easysocial Points History admin lost 0 points Correct -240 Used Points 240 Points  Hi: process  1. right menu -&gt;Products listing   123.mart168.com/hikashop-menu-for-products-listing.html  2.add to cart  Subtotal 1 000,00 TWD Points discount -240,00 TWD Points used 240 Points Total 760,00 TWD  Button Finish  Your order is now complete. The amount of 800,00 TWD will be collected upon delivery of your order (L10) Thank you for your purchase.  Complete  3.right menu -&gt;Community admin-&gt;menu-&gt;points   123.mart168.com/community/points/history/135-admin.html  Screen Display admin lost 0 points error  -240 is the correct  test HikaShop points Correct -240 test AltaUserPoints points Correct -240 test EasySocial points error 0  set up Attach the picture, please see  thank you！")*

Hi,

You can create an override :
templates/YOUR_TEMPLATE_NAME/plg_hikashop_userpoints/checkout.php
And I don't understand your fallback question. You can to change how the "yes/no" is generated and that is provided by the HikaShop core (or the Joomla core), so if the result is not what you're expecting, the best is to do the HTML yourself in the view.

Regards,

---

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

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

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