Assistance Needed with Discount Code Value 0.00 in JoomShopping

06.01.2025 13:57
#1
wessim
Joomshopping forum user no avatar
Name: Wesley
10.06.2012
Posts: 76
Quote
Assistance Needed with Discount Code Value 0.00 in JoomShopping

Hello,

I am using JoomShopping and have encountered an issue with discount codes. When I enter a discount code with a value of 0.00, nothing happens in the frontend. However, discount codes with values greater than 0 (e.g., 0.01 or 10.00) work without any issues.

I’ve reviewed and tested the code, and it seems that the value 0.00 is not being recognized or processed. I suspect this might be related to a validation or condition in the code, or a configuration setting.

My questions are:

Is this a known limitation of JoomShopping?
Is there an extension, plugin, or customization available that ensures discount codes with a value of 0.00 work as expected?
Are there any guidelines or solutions you can provide to resolve this issue?

Please let me know how I can proceed. If you need any additional information, feel free to ask.

Thank you in advance for your assistance!

Best regards,


Joomla: Joomla! 3.10.8
JoomShopping: Version 4.12.0
PHP: 7.433
Website Url: wesleyswitgoed.nl
 
06.01.2025 14:25
#2
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 27352
Quote
Aw: Assistance Needed with Discount Code Value 0.00 in JoomShopping

Example in template:

<?php if ($this->discount > 0){ ?>
<tr class="discount">
<td class="name">
<?php print Text::_('JSHOP_RABATT_VALUE')?><?php print $this->_tmp_ext_discount_text?>
</td>
<td class="value">
<?php print Helper::formatprice(-$this->discount);?><?php print $this->_tmp_ext_discount?>
</td>
</tr>
<?php } ?>

----------------------------------------------------

0 - no discount.

What do you want to do?

 
06.01.2025 15:14
#3
wessim
Joomshopping forum user no avatar
Name: Wesley
10.06.2012
Posts: 76
Quote
Aw: Assistance Needed with Discount Code Value 0.00 in JoomShopping

Thank you for your assistance and your previous suggestions.

After reviewing the situation, I would like to change the approach of the discount code. Instead of offering a discount, I would like to offer a 1-year warranty for my customers. I believe this would provide added value to my customers and help to achieve the desired result.

Could you guide me through the process of setting this up in JoomShopping? Specifically, I would like to know how to configure a code that applies a warranty instead of a monetary discount.

Please let me know if this is feasible, and if so, what steps I should take to implement it.

Thank you for your continued support.

 
06.01.2025 16:48
#4
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 27352
Quote
Aw: Assistance Needed with Discount Code Value 0.00 in JoomShopping

In templates the discount amount is checked

I don't think there is a simple solution.

 
06.01.2025 16:51
#5
wessim
Joomshopping forum user no avatar
Name: Wesley
10.06.2012
Posts: 76
Quote
Aw: Assistance Needed with Discount Code Value 0.00 in JoomShopping

Additionally, I wanted to ask if there are any extensions, plugins, or customizations available for JoomShopping that could allow me to provide a 1-year warranty instead of offering a discount code. If such a solution exists, I would be happy to explore the option of purchasing it.

Please let me know if there's a recommended extension or a way to configure this functionality.

Thank you again for your assistance.

 
06.01.2025 19:17
#6
wessim
Joomshopping forum user no avatar
Name: Wesley
10.06.2012
Posts: 76
Quote
Aw: Assistance Needed with Discount Code Value 0.00 in JoomShopping

Hello,

I wanted to let you know that the issue has now been resolved, and everything is working perfectly! Thanks to your quick responses and assistance, I was able to find the solution. I truly appreciate your support and effort in helping me.

Thanks again, and best regards!

 


Copyrights MAXXmarketing GmbH. Alle Rechte vorbehalten
Durch die Nutzung dieser Website stimme ich zu, dass Cookies zur optimalen Gestaltung der Website sowie zur Analyse der Nutzung der Website verwendet werden. Weiterführende Informationen finden Sie hier. OK, einverstanden.