Post by viper8548 » Mon May 30, 2022 10:19 pm

Hi can someone please tell me how to get the decimals back and the end of the dollar ie $10 back to $10.00 Thanks

New member

Posts

Joined
Fri Feb 22, 2013 8:07 am

Post by xxvirusxx » Mon May 30, 2022 11:08 pm

system/library/cart/currency.php

Search and delete:

Code: Select all

$string = str_replace($this->language->get('decimal_point').'00', '', $string);

Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by viper8548 » Tue Jun 07, 2022 11:00 pm

Thanks so much that worked, also have another question. It appears the product description field in admin only display source code now, how do i get the html editor/preview back?

New member

Posts

Joined
Fri Feb 22, 2013 8:07 am

Post by Majnoon » Wed Jun 08, 2022 4:46 pm

viper8548 wrote:
Tue Jun 07, 2022 11:00 pm
Thanks so much that worked, also have another question. It appears the product description field in admin only display source code now, how do i get the html editor/preview back?
Did that happened after changing the code?
Can you confirm that you didn't touch anything else ?

Active Member

Posts

Joined
Fri Feb 05, 2021 8:29 pm

Post by viper8548 » Thu Jun 09, 2022 1:45 pm

I’m using 3.0.3.8 and tested a fresh install, issue is still there on both this tweak release and OC’s release. Then i went to check out some demos in the market place at confirmed 3.0.3.2 has this working so I replaced the product_form.twig from 3.0.3.2 to 3.0.3.8 and now it’s back. Surprised no one reported this bug? or i must be doing something wrong

New member

Posts

Joined
Fri Feb 22, 2013 8:07 am

Post by JNeuhoff » Thu Jun 09, 2022 5:04 pm

urprised no one reported this bug? or i must be doing something wrong
Because nobody else has this bug? It is working just fine on an OC 3.0.3.8 release. Something might be wrong with your Summernote configuration, or your JQuery.

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by xxvirusxx » Thu Jun 09, 2022 5:52 pm

viper8548 wrote:
Thu Jun 09, 2022 1:45 pm
Surprised no one reported this bug? or i must be doing something wrong
I think you talk about this

https://github.com/opencart/opencart/co ... 43c8539bca

Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by straightlight » Thu Jun 09, 2022 6:20 pm

It is a persistent bug or not? The provided github commit on the above does not have a resolution on it regardless of that new suggested shipping extension that's been posted in there that has nothing to do with this reported problem.

In the meantime, please create a pull request on the opencart-3 repository from Github Opencart.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by xxvirusxx » Thu Jun 09, 2022 6:49 pm

straightlight wrote:
Thu Jun 09, 2022 6:20 pm
new suggested shipping extension that's been posted in there that has nothing to do with this reported problem.
Was removed in another commit
straightlight wrote:
Thu Jun 09, 2022 6:20 pm
In the meantime, please create a pull request on the opencart-3 repository from Github Opencart.
Who?

Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by straightlight » Thu Jun 09, 2022 7:05 pm

xxvirusxx wrote:
Thu Jun 09, 2022 6:49 pm
straightlight wrote:
Thu Jun 09, 2022 6:20 pm
new suggested shipping extension that's been posted in there that has nothing to do with this reported problem.
Was removed in another commit
straightlight wrote:
Thu Jun 09, 2022 6:20 pm
In the meantime, please create a pull request on the opencart-3 repository from Github Opencart.
Who?
To the people who addresses this issue as being persistent.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by haxew38286 » Sun Jun 12, 2022 2:14 pm

Well I did my testing again and you didn't lie about this! I used hrtime again for this file at the beginning and the end:
catalog/controller/common/home.php

Newbie

Posts

Joined
Sun Jun 12, 2022 2:08 pm

Post by viper8548 » Wed Jun 15, 2022 6:34 am

xxvirusxx wrote:
Thu Jun 09, 2022 5:52 pm
viper8548 wrote:
Thu Jun 09, 2022 1:45 pm
Surprised no one reported this bug? or i must be doing something wrong
I think you talk about this

https://github.com/opencart/opencart/co ... 43c8539bca
Yes this is it!! which version was this fixed in? thanks

New member

Posts

Joined
Fri Feb 22, 2013 8:07 am

Post by viper8548 » Fri Jul 08, 2022 3:12 pm

Hi, just wondering if this will work with php 8.1, also it worth changing to 8.1 compared to 8.0. What are your thoughts? thanks

New member

Posts

Joined
Fri Feb 22, 2013 8:07 am

Post by JNeuhoff » Fri Jul 08, 2022 5:35 pm

viper8548 wrote:
Wed Jun 15, 2022 6:34 am
xxvirusxx wrote:
Thu Jun 09, 2022 5:52 pm
viper8548 wrote:
Thu Jun 09, 2022 1:45 pm
Surprised no one reported this bug? or i must be doing something wrong
I think you talk about this

https://github.com/opencart/opencart/co ... 43c8539bca
Yes this is it!! which version was this fixed in? thanks
It's the 3.0.x.x_Maintenance branch which works fine with PHP 8.1.

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by viper8548 » Fri Jul 08, 2022 7:41 pm

JNeuhoff wrote:
Fri Jul 08, 2022 5:35 pm
viper8548 wrote:
Wed Jun 15, 2022 6:34 am
xxvirusxx wrote:
Thu Jun 09, 2022 5:52 pm


I think you talk about this

https://github.com/opencart/opencart/co ... 43c8539bca
Yes this is it!! which version was this fixed in? thanks
It's the 3.0.x.x_Maintenance branch which works fine with PHP 8.1.
Thanks alot, may I ask what this maintenance branch is/means? I'm already using MaxD's version, can I update MaxD with maintenance branch? thanks

New member

Posts

Joined
Fri Feb 22, 2013 8:07 am

Post by JNeuhoff » Fri Jul 08, 2022 8:01 pm

The 3.0.x.x_Maintenance branch is based on OpenCart 3.0.3.8, with the aim to keep it closely backward compatible for extensions. It has bugfixes and support for PHP 8. You probably won't be able to upgrade MaxD's OpenCart version to it, though I haven't tried it. Why not try both and then see which one works best for you?

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by ocfan2020 » Mon Jul 25, 2022 8:52 am

MaxD wrote:
Tue Jun 08, 2021 6:29 am
Link to download - https://opencart.download/
Frontend demo - https://demo.opencart.download/
Backend demo - https://demo.opencart.download/admin/

Link is down? where i can get this?

Newbie

Posts

Joined
Mon Jul 25, 2022 8:30 am

Post by MaxD » Mon Jul 25, 2022 11:00 pm

I'm sorry, the project is closed.

User avatar
Active Member

Posts

Joined
Fri Jul 06, 2012 6:37 pm


Post by khnaz35 » Wed Aug 03, 2022 10:20 am

Why Max, what happened ?

Got an urgent question that’s keeping you up at night? There might just be a magical inbox ready to help: khnaz35@gmail.com
Enjoy nature ;) :) :-*


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia

Post by MaxD » Wed Aug 03, 2022 12:53 pm

People's interest was too weak )

User avatar
Active Member

Posts

Joined
Fri Jul 06, 2012 6:37 pm

Who is online

Users browsing this forum: Baidu [Spider], lockiedownunder and 7 guests