Jump to content
thirty bees forum

Smile

Administrators
  • Posts

    289
  • Joined

  • Last visited

  • Days Won

    35

Everything posted by Smile

  1. I have the same error, happens both on FO and on BO side. It only happens in certain cases, not sure when it does and when it not happens. ## ThirtyBeesException **Property Order->total_paid_tax_excl is not valid** *at line* **1027** *in file* `classes/ObjectModel.php` ```php 1022. } 1023. 1024. $message = $this->validateField($field, $this->$field); 1025. if ($message !== true) { 1026. if ($die) { 1027. => throw new PrestaShopException($message); 1028. } 1029. 1030. return $errorReturn ? $message : false; 1031. } 1032. } ``` - **ObjectModelCore->validateFields** - [line `322` - `classes/ObjectModel.php`] ```php 317. * @since 1.0.0 318. * @version 1.0.0 Initial version 319. */ 320. public function getFields() 321. { 322. => $this->validateFields(); 323. $fields = $this->formatFields(static::FORMAT_COMMON); 324. 325. // For retro compatibility 326. if (Shop::isTableAssociated($this->def['table'])) { 327. $fields = array_merge($fields, $this->getFieldsShop()); ``` - **ObjectModelCore->getFields** - [line `285` - `classes/order/Order.php`] ```php 280. { 281. if (!$this->id_lang) { 282. $this->id_lang = Configuration::get('PS_LANG_DEFAULT', null, null, $this->id_shop); 283. } 284. 285. => return parent::getFields(); 286. } 287. 288. /** 289. * Add this Order 290. * ``` - **OrderCore->getFields** - [line `8` - `override/classes/order/Order.php`] ```php 3. { 4. public $payment_fee; 5. public $payment_fee_rate; 6. public function getFields() 7. { 8. => $fields = parent::getFields(); 9. $fields['payment_fee'] = (float)($this->payment_fee); 10. $fields['payment_fee_rate'] = (float)($this->payment_fee_rate); 11. return $fields; 12. } 13. } ``` - **Order->getFields** - [line `748` - `classes/ObjectModel.php`] ```php 743. 744. if (Shop::checkIdShopDefault($this->def['table']) && !$this->id_shop_default) { 745. $this->id_shop_default = (in_array(Configuration::get('PS_SHOP_DEFAULT'), $idShopList) == true) ? Configuration::get('PS_SHOP_DEFAULT') : min($idShopList); 746. } 747. // Database update 748. => if (!$result = Db::getInstance()->update($this->def['table'], $this->getFields(), '`'.pSQL($this->def['primary']).'` = '.(int) $this->id, 0, $nullValues)) { 749. return false; 750. } 751. 752. // Database insertion for multishop fields related to the object 753. if (Shop::isTableAssociated($this->def['table'])) { ``` - **ObjectModelCore->update** - [line `326` - `classes/order/Order.php`] - [1 Arguments] ```php 321. */ 322. public function update($nullValues = true) 323. { 324. $this->roundAmounts(); 325. 326. => return parent::update($nullValues); 327. } 328. 329. /** 330. * This function rounds all the decimal properties of this Object 331. * ``` ```Argument [0] 1 ``` - **OrderCore->update** - [line `1685` - `controllers/admin/AdminOrdersController.php`] ```php 1680. $order->total_paid_tax_incl -= $orderCartRule->value; 1681. $order->total_paid_tax_excl -= $orderCartRule->value_tax_excl; 1682. } 1683. 1684. // Update Order 1685. => $res &= $order->update(); 1686. } 1687. 1688. if ($res) { 1689. Tools::redirectAdmin(static::$currentIndex.'&id_order='.$order->id.'&vieworder&conf=4&token='.$this->token); 1690. } else { ``` - **AdminOrdersControllerCore->postProcess** - [line `251` - `classes/controller/Controller.php`] ```php 246. if ($this->checkAccess()) { 247. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className))) { 248. $this->setMedia(); 249. } 250. 251. => $this->postProcess(); 252. 253. if (!empty($this->redirect_after)) { 254. $this->redirect(); 255. } 256. ``` - **ControllerCore->run** - [line `837` - `classes/Dispatcher.php`] ```php 832. if (isset($paramsHookActionDispatcher)) { 833. Hook::exec('actionDispatcher', $paramsHookActionDispatcher); 834. } 835. 836. // Running controller 837. => $controller->run(); 838. } catch (PrestaShopException $e) { 839. $e->displayMessage(); 840. } 841. } 842. ``` - **DispatcherCore->dispatch** - [line `63` - `admin/index.php`] ```php 58. if (!isset($_REQUEST['controller']) && isset($_REQUEST['tab'])) { 59. $_REQUEST['controller'] = strtolower($_REQUEST['tab']); 60. } 61. 62. // Prepare and trigger admin dispatcher 63. => Dispatcher::getInstance()->dispatch(); ``` After adding we get the error, then the discount is shown in the order but not working. @musicmaster was your solution a fix or a work around or?
  2. Good news, hope it works out well.
  3. Smile

    Server Move

    In general I expect that is has to do with htaccess, did you enable debugging using ftp?
  4. We are just working on Odoo nexterp is nicer opensource wise but has not so many functions jet....
  5. Smile

    Goodbye

    A smaller group is thinking working and thinking about a plan. Maybe it works maybe not but I expect in a few weeks we will know where we are heading.
  6. Smile

    Goodbye

    I love that idea!
  7. Smile

    Goodbye

    I don't know a better open source system on the market at the moment. Open source is key of TB/PS. Beside that would you migrate when you site is running the bigger business and all is connected to WMS, PIM, CRM ect. Well then 500,- is not that much anymore I can tell you. As stated above I love the Odoo model where there is also an enterprise model.
  8. Smile

    Goodbye

    Please make it a big bigger. To use some flight example: Platinum $500 per month Gold $250 Silver $100 Bronze $50 Generous backers < 50 So we have a more defined view on income.
  9. I am working with a implementing party to get a connector or integration for Odoo that works with Thirty bees. If someone is interested in this as well send me a private message so that we can discuss to join the project.
  10. Smile

    Goodbye

    According to the association or something like that I am willing to setup legal part as well as financial part. Considering we run it under a dutch flag.
  11. Smile

    Goodbye

    Just a comment on the side. We are a serious business and there are more people like me I guess. For my business I could think about hiring a developer. But we don't have enough work for it or time to work out all projects. But we just need 10-30 bigger sites running TB and tipingin to make a serious association or consortium. 20 x 250 per month = a reasonable salary to start with. And 250 is like not much for the bigger stores in my opinion? I mean I like to keep it mostly open source..... But like how it works with Odoo as an example. There is a community edition and a Enterprise version (Database managed). With functions you would need being a bigger store. For example think about API access, advanced vouchers, hreflangs .... ect. Maybe we should run a online meetup for all interested.... I did not read the full topic and all lesley's ideas about it.
  12. Smile

    Goodbye

    I am generally very busy so I can't help to much in time. But my company is running on TB and I have quite some employees running around. I mean like many others it is serious business. We even work on a connector for Odoo and I can tell you this is a huge investment. I would be happy to tip in a monthly fee. @wakabayashi As a user for many years I surely know what is definitely needed and not. What about making a association of it? We also could work with crowdsourcing major improvements. We just need a mastermind what has time and devotion to run it, and a steady financial income.
  13. Great guys, I will see the update in a next version thanks!
  14. I see indeed that it is only the case for bankwire. Not sure how to add a payment and not sure we like to do that manual 😉 When status changes to payment accepted you would expect it to change automatically.
  15. Well seems a bug or the same misconfiguration? 🤔
  16. Apparently I changed something a year ago in statuses and because of that the total amount of €.... sentence is not calculating right. Also the value at the end of a finished order is not showing the order value. It seems the only thing making a difference here is the "Consider the associated order as validated" I removed it form payment accepted as we like to check the order and make change before it goes to processing. Order processing does have "Consider the associated order as validated" thicked thoug, as do all the following order stages.... What is happening here?
  17. I did remove all shops(Multistore) from one currency pounds. But then the whole currency did disappear. I then tried to add it but got the error: This currency already exists. Fixing it would be easy by adding it again to the table ps_currency_shop Can this be fixed like this? Or should I do more?
  18. The error was something in the .htacces
  19. As soon as I enable Emit SEO fields I get a 404 on FO and BO. Debugging on does not show anything. Its a installation in a subdirectory of the true store. We run 1.0.8 multistore. Does someone knows how to change this setting to of using the DB?
  20. I think most people move to a WMS nowadays, I have used ASM in the past but it did not bring what I was hoping for. I agree an new design would be the best.
  21. I finally found the time to test it. Love it but something I really miss is the option to go back to a product by clicking the title. See attached. It would be great if it is an option to make this possible. Also it would be great if you can choose the order of the fields (shipping address ect.). We use shipping which predicts the time of delivery by exact address. Showing a iframe with dates, pickup locations and more. This is not show now... (myparcel-netherlands).
  22. That's an elaborate answer. Dutch and flemish seems the same indeed. Dutch is 2 times in the table. Normally the url should be indeed nl-NL and nl-BE. But TB uses the 2 letter codes in the url, while as you acknowledge it would be better to make it nl-nl. I think I can decide we leave flemisch for now. And better focus on improving other languages. We should use dutch also for flemisch.
  23. Well is it not a design flaw that only one iso can be used? As explained in the first topic: Well some agency here added it for me. I think in the DB we changed it. And seems to work kind of but not really. Making the conclusion that iso can be used multiple times. Can you tell me how to add flemisch as a language? I mean iths both nl, but really different words... Alos different websites with hreflang.... Attached some DB pictures. Not sure how to proceed.
  24. So here are the test results: Hreflang and multistore: Not working, only those can be found while we have also a nl-BE version running. <link rel="alternate" href="https://website.nl/PvChi2/" hreflang="nl-NL"> <link rel="alternate" href="https://website.nl/PvChi2/" hreflang="x-default"> Use iso codes multiple times: Still not possible in 1.1.0, see attached screenshots. Prevent store to not us a language that is not available for it. Still the store is presenting nl-NL language although it should present nl-BE language. See attached. I can give access to this test environment if needed to investigate. Or send a video....
  25. Thanks, this is a perfect solution! Just made a small fix: {if ($page_name == 'search' || $page_name == 'order-opc')} <meta name="robots" content="noindex,follow" /> {else} <meta name="robots" content="{if isset($nobots)}no{/if}index,{if isset($nofollow) && $nofollow}no{/if}follow" /> {/if}
×
×
  • Create New...