-
Posts
79 -
Joined
-
Last visited
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
MostlyConfused's Achievements
-
[Resolved] Add Additional Order Status'
MostlyConfused replied to LaughingHorse's topic in Technical Help
Yeah thanks, I had found that and it would have been convenient. Unfortunately my hoster does not have ION cube, so that's a no-go. Thank you! -
[Resolved] Add Additional Order Status'
MostlyConfused replied to LaughingHorse's topic in Technical Help
I need exactly the same thing, another status. @bsmitherThis thread is really old though and I am wondering if it is still valid for 6.4.x? Or is there an easier version right now? I do find the constants in order.class.php and cubecart.class.php, but not the case statements as described. Thanks! EDIT: I think I figured it out. The line numbers were way different, but I have found and changed all instances. Seems to work, thank you! -
How to translate the names of months?
MostlyConfused replied to MostlyConfused's topic in Technical Help
Update: Since Al does not give a hoot about his bugs and all workarounds I tried did not work, I had to resort to a really dirty hack, but at least it works so far. I changed the template for the printed bill like this: At the beginning, I put: {$datefind = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug','Sep', 'Oct', 'Nov','Dec']} {$daterepl = ['Jan.', 'Feb.', 'März', 'Apr.', 'Mai', 'Juni','Juli', 'Aug.', 'Sep.','Okt.', 'Nov.', 'Dez.']} And further down, where the date is actually printed, I replaced {$order.order_date} with {$order.order_date|replace:$datefind:$daterepl} @fabriceunko, maybe this will be a solution for you as well. -
How to translate the names of months?
MostlyConfused replied to MostlyConfused's topic in Technical Help
Update to my own answer above: I suddendly get the same effect, blank screen when I log in and resetting it back to "en_EN" instead of "de_DE" made it work again. If I am LOGGED IN and upload the file with changed locale, it works and month names are shown in German. As soon as I LOG OUT I can NOT log in again, until I change the locale back. At the same time, in cc_CubeCart_system_error_log the following error is created: [<strong>Exception</strong>] /home/.sites/188/site7252192/web/shop/classes/session.class.php:609 - DateTime::__construct() [<a href='http://docs.php.net/manual/en/datetime.construct.php'>datetime.construct.php</a>]: Failed to parse time string (Mo 31 Mai 2021 22:19:21 UTC) at position 0 (M): The timezone could not be found in the database Something's really fishy here. It clearly works and shows the correct date and time before logout. Why the error ONLY when I log in again? Since this is clearly a bug, it would be nice if @Al Brookbanks would chime in! The error it shows happens during setting of cookie in session.class.php: -
How to translate the names of months?
MostlyConfused replied to MostlyConfused's topic in Technical Help
Trying to set a "wrong" locale should not crash PHP or have any other effect than just not setting it. By default, PHP tries to set given locale(s) until one works, and if not defaults to NULL For example, my change above would work on the live Linux server, but not on my local WAMP. I just added another parameter for Windows and now it works on both: setlocale(LC_ALL, 'de_DE.UTF-8', 'German'); If you get a white screen or something, there's likely to be a syntax error somewere. -
How to translate the names of months?
MostlyConfused replied to MostlyConfused's topic in Technical Help
Update: I think I found it. And I am pretty sure, this is a bug. In classes/language.class.php there is a function to set the locale. And it was hardcoded to setlocale(LC_ALL, 'en_EN.UTF-8'); I changed it to de_DE and immediately I get the month names in german. @Al Brookbanks please check this, 6.4.2. -
How to translate the names of months?
MostlyConfused replied to MostlyConfused's topic in Technical Help
I think you are right, especially since nobody else seems to have this problem. The date used in the bills is {$order.order_date} If I debug, the content is for instance "30 May 2021, 09:08" in plain text, not as a timestamp. I tried brute-forcing it, by inserting a php setlocale statement into main.php and main.checkout.php, but as expected this did not work. Do you have any idea what else I could try? In store settings, country is set to Austria and language to German. I went through all options a couple of times, but could not find anything else to set. -
Maybe I am missing something, but I can't find a way to translate the names of months that are shown in invoices to my language. Same goes for weekdays. The only language in my shop is German, frontend and admin, but all monthnames and weekdays are shown in English I can't find it in "Languages" in Admin and also did filesearches as well as in the database. Please help, thanks!
-
Plugin "Bank Transfer" leaves products in cart
MostlyConfused replied to MostlyConfused's topic in Technical Help
Update: since I know now that $GLOBALS['cart']->clear(); is the command to clear the cart, I tried moving it elsewhere in gateway.class.php. And just like that, it works! Thanks again mate. -
Plugin "Bank Transfer" leaves products in cart
MostlyConfused replied to MostlyConfused's topic in Technical Help
nope, sorry, products are still left in cart after changing this -
[SOLVED] Need field at checkout to be mandatory
MostlyConfused replied to MostlyConfused's topic in Customising Look & Feel
I solved it by snooping through the code and the solution was easier than expected. I just put "required" into the respective textarea in templates/content.checkout.confirm.php -
Hi, one of my gateways is "Bank Transfer" (latest version 1.2.0) https://www.cubecart.com/extensions/payment-gateways/bank-transfer If a purchase is made using Bank Transfer, the products are still in the cart afterwards. If purchased with either PayPal or "Print Order Form", the cart is empty afterwards as it should be. How can i change this, so it works with Bank Transfer as well? Thanks!
-
How to hide "Change Currency"?
MostlyConfused replied to MostlyConfused's topic in Customising Look & Feel
Update: In box.off_canvas.left.php there is a condition to display languages or not if there is only one. I put a similiar condition around currencies and it works fine. I also put the same condition into box.currency.php I think this should be the default behavior anyway, maybe this was an oversight? -
How to hide "Change Currency"?
MostlyConfused replied to MostlyConfused's topic in Customising Look & Feel
Thank you, I was wondering if there was a way without changing templates? If I remove this box from main.php (tried that already), it still shows up in the sidebar of small screens. I can find and remove it there too, but I would much prefer a "clean" way to do it. Just like languages behave automatically if there is only one.