Jump to content

Welcome, Guest!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

lukewood

Members
  • Content Count

    41
  • Joined

  • Last visited

Community Reputation

6 Neutral
  1. Just in case anyone reads this in the future, this was actually an Adyen Payment module that was causing the issues. Nothing to do with Thirty Bees. Is there a way to mark this a closed or solved?
  2. Thank you both for your recommendations. I tried the GitUpdater. It reported that there was nothing wrong with my installation. This saved me a lot of work as it was a problem with a third-party module. Thanks.
  3. Dear All, I have a TB site running on 1.0.7. It is giving me so many problems that I have given up on it. There is something seriously wrong with the orders. I have two options: migrate to a different platform or develop a new TB site and copy the relevant parts of the database to the new site. That would include orders, products, stock, customers etc. I have a Prestashop 1.6 database schema but there appear to be some differences with TB. Has anyone ever done this? Regards, Luke
  4. Hi, I have been experiencing difficulties when my customer pay. I have been using the Adyen module by WebKUL. I have explained some of the problems in these two posts. https://forum.thirtybees.com/topic/2458-2458/regenerated-invoice-that-was-only-partially-created-and-a-double-order/#comment-24564 https://forum.thirtybees.com/topic/2488-can-poor-template-cause-random-issues/?page=0#comment-24548 Basically, the problem arises when a customer pays. The order status is changed to "Payment accepted" before "Awaiting payment". This screws up the order and invoicing. As usual, the module developer didn't want to know once he discovered it was running on Thirty Bees. I installed the module on a fresh install of Prestashop 1.6 and there were no problems. The Apache, CentOS, PHP, MYSQL versions are the same. I performed a fresh install of Thirty Bees to see if it was a compatibility issue. There were no problems on the fresh install. I reverted to the community theme and disabled all of the modules that I have installed apart from the Adyen module. I disabled the cache. I also copied the files from Thirty Bees over the top of my site in case any files had been corrupted. The problem remained. The last thing I tried, was replacing the database of the site that was causing problems with the one created by the clean install of Thirty Bees. There were no problems. I believe that the problem is with the database or some settings. Is there any way to check there all the database changes have been adopted correctly? I started development on TB 1.0.0 and it is now 1.0.7 so I believe that one of the updates could have affected something. Any help would be greatly appreciated. Kind regards, Luke
  5. Thanks for helping me rule it out.
  6. lukewood

    Can poor template cause random issues?

    Thanks so much for ruling that cause out, I really appreciate your help.
  7. Hi, I have been experiencing a lot of seemingly random issues that I have been trying to get to the bottom of. I frequently have my head in my hands trying not to cry. Can a poorly coded template cause Thirty Bees to misbehave? I recently posted the topic below. When this happens, Apache reports the following errors: [Wed Jan 16 07:04:25.619099 2019] [:error] [pid 8902] [client 14.192.209.82:2228] PHP Notice: Undefined index: og_type in /srv/www/domain.my/html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 38, referer: https://www.mepsfpx.com.my/FPXMain/finalconfirmation.jsp [Wed Jan 16 07:04:25.619161 2019] [:error] [pid 8902] [client 14.192.209.82:2228] PHP Notice: Trying to get property of non-object in /srv/www/domain.my/html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 38, referer: https://www.mepsfpx.com.my/FPXMain/finalconfirmation.jsp [Wed Jan 16 07:04:38.728492 2019] [:error] [pid 8902] [client 14.192.209.82:2228] PHP Notice: Undefined index: og_type in /srv/www/domain.my/html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 38, referer: https://www.domain.my/order-confirmation?id_cart=328&id_module=132&id_order=58&key=19dddac21c867d4843bc854ee9283673 [Wed Jan 16 07:04:38.728518 2019] [:error] [pid 8902] [client 14.192.209.82:2228] PHP Notice: Trying to get property of non-object in /srv/www/domain.my/html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 38, referer: https://www.domain.my/order-confirmation?id_cart=328&id_module=132&id_order=58&key=19dddac21c867d4843bc854ee9283673 I also created the following post: When this has occurred, the following errors are logged: [Mon Dec 24 15:43:36.003900 2018] [:error] [pid 11147] [client 15.211.153.76:62929] PHP Notice: Undefined index: og_type in /srv/www/domain.my/html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 38, referer: https://www.domain.my/quick-order [Mon Dec 24 15:43:36.003953 2018] [:error] [pid 11147] [client 15.211.153.76:62929] PHP Notice: Trying to get property of non-object in /srv/www/domain.my/html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 38, referer: https://www.domain.my/quick-order [Mon Dec 24 15:50:55.105536 2018] [:error] [pid 12544] [client 15.211.153.76:51128] PHP Notice: Undefined index: og_type in /srv/www/domain.my/html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 38, referer: https://live.adyen.com/hpp/pay.shtml [Mon Dec 24 15:50:55.105585 2018] [:error] [pid 12544] [client 15.211.153.76:51128] PHP Notice: Trying to get property of non-object in /srv/www/domain.my/html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 38, referer: https://live.adyen.com/hpp/pay.shtml [Mon Dec 24 15:53:22.865003 2018] [:error] [pid 13665] [client 15.211.153.76:51458] PHP Notice: Undefined index: og_type in /srv/www/domain.my/html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 38, referer: https://www.domain.my/quick-order [Mon Dec 24 15:53:22.865045 2018] [:error] [pid 13665] [client 15.211.153.76:51458] PHP Notice: Trying to get property of non-object in /srv/www/domain.my/html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 38, referer: https://www.domain.my/quick-order [Mon Dec 24 15:54:22.295077 2018] [:error] [pid 13412] [client 15.211.153.76:54952] PHP Notice: Undefined index: og_type in /srv/www/domain.my/html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 38, referer: https://live.adyen.com/hpp/pay.shtml [Mon Dec 24 15:54:22.295119 2018] [:error] [pid 13412] [client 15.211.153.76:54952] PHP Notice: Trying to get property of non-object in /srv/www/domain.my/html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 38, referer: https://live.adyen.com/hpp/pay.shtml [Mon Dec 24 15:56:05.263670 2018] [:error] [pid 14303] [client 15.211.153.76:51352] PHP Notice: Undefined index: og_type in /srv/www/domain.my/html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 38, referer: https://www.domain.my/quick-order [Mon Dec 24 15:56:05.263706 2018] [:error] [pid 14303] [client 15.211.153.76:51352] PHP Notice: Trying to get property of non-object in /srv/www/domain.my/html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 38, referer: https://www.domain.my/quick-order [Mon Dec 24 15:58:17.019355 2018] [:error] [pid 14550] [client 15.211.153.76:57921] PHP Notice: Undefined index: og_type in /srv/www/domain.my/html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 38, referer: https://maybankard3dsecure.maybank.com.my/ImsControl.do [Mon Dec 24 15:58:17.019396 2018] [:error] [pid 14550] [client 15.211.153.76:57921] PHP Notice: Trying to get property of non-object in /srv/www/domain.my/html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 38, referer: https://maybankard3dsecure.maybank.com.my/ImsControl.do [Mon Dec 24 15:58:19.426297 2018] [:error] [pid 14550] [client 15.211.153.76:57921] PHP Notice: Undefined index: og_type in /srv/www/domain.my/html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 38, referer: https://www.domain.my/order-confirmation?id_cart=292&id_module=132&id_order=48&key=e142434f686ada1e166547eef52780b8 [Mon Dec 24 15:58:19.426340 2018] [:error] [pid 14550] [client 15.211.153.76:57921] PHP Notice: Trying to get property of non-object in /srv/www/domain.my/html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 38, referer: https://www.domain.my/order-confirmation?id_cart=292&id_module=132&id_order=48&key=e142434f686ada1e166547eef52780b8 Should I change template to avoid having a thrombosis? Any help would be really appreciated. Regards, Luke
  8. Dear All, I also noticed that I have a lot of these alerts; Frontcontroller::init - Cart cannot be loaded or an order has already been placed using this cart Could this be causing the problem? I am running 1.0.7 Regards, Luke
  9. Hi, I have received an order that has been paid for. The status has been updated to payment accepted. Normally, a document symbol will appear by the order that allows me to download an invoice. This is missing. I can create an invoice by selecting 'Generate PDF Invoice by Date' using the invoices tab. However, the invoice only lists one of the 15 purchased items. Unfortunately, the customer has received this incorrect invoice through email. Is it possible to manually delete this invoice from the system and create a new one manually? I also had another issue where one order was created twice. I cancelled the order as shown in the screenshot. However, it messed up my inventory because when I cancelled, the items were added back to the stock even though they had already been updated by the first order. So I had to manually remove the items from the stock. Any help would be greatly appreciated. Regards, Luke
  10. lukewood

    Thirty Bees Randomly Assigning Free Shipping

    Hi, Just to confirm the problem hasn't gone away. It does appear to be intermittent. I can't find the cause of the problem. The screenshots of the carrier and shipping part of the invoice are as follows: ![1_1546591558590_Screenshot_2019-01-04 Carriers Peninsular Malaysia Shipping • My Children's Books.png](/assets/uploads/files/337/1546591565203screenshot_2019-01-04-carriers-peninsular-malaysia-shipping-my-children-s-books.png) ![0_1546591558590_Invoice-4-1-2019.png](/assets/uploads/files/337/1546591565204invoice-4-1-2019.png) Regards, Luke
  11. @Traumflug Yes, this is definitely the same issue. I tested on http://back.thirtybees.com and it behaves the same.
  12. @traumflug Yes, this appears to be the same although I could not tell you if it is JS Variables or PHP. i did try this fix but it did not work for me: Modify from themes the product.js find around line 680 basePriceWithTax = basePriceWithTax + +combination.price * (taxRate/100 + 1) and replace with basePriceWithTax = basePriceWithTax + +combination.price * (taxRate/100 + 1) * (1 - groupReduction); and few lines bellow find basePriceWithTax = +combination.specific_price.price * (taxRate/100 + 1) and replace with basePriceWithTax = +combination.specific_price.price * (taxRate/100 + 1) * (1 - groupReduction);
  13. I managed to fix the problem by editing contollers/front/ProductController.php. I added the following function ``` protected function getGroupReduction() { $id_customer = (isset($this->context->customer) ? (int)$this->context->customer->id : 0); $id_group = (int)Group::getCurrent()->id; $id_country = $id_customer ? (int)Customer::getCurrentCountry($id_customer) : (int)Tools::getCountry(); $group_reduction = GroupReduction::getValueForProduct($this->product->id, $id_group); if ($group_reduction === false) { $group_reduction = Group::getReduction((int)$this->context->cookie->id_customer) / 100; } return $group_reduction; } ``` One line 742 (after function about line 756), I replaced the following code: ``` $combinations[$row['id_product_attribute']]['price'] = (float) Tools::convertPriceFull($row['price'], null, $this->context->currency, false); ``` with ``` $group_reduction = $this->getGroupReduction(); $price = $row['price'] - $row['price']* $group_reduction; $combinations[$row['id_product_attribute']]['price'] = (float)Tools::convertPriceFull($price, null, Context::getContext()->currency, false); ``` My test server appears to be working well. I would appreciate it if any programmers could see if this could cause any other problems down the line. I am not a coder and worried that I might make spheres of things. Cheers, Luke
  14. I managed to recreate the exact same problem on the http://back.thirtybees.com. I wanted to be sure that it wasn't something on my installation. ![0_1543844040178_price-wrong-1.png](/assets/uploads/files/337/1543844041337price-wrong-1.png) ![0_1543844051525_price-wrong-2.png](/assets/uploads/files/337/1543844052185price-wrong-2.png)
  15. Thanks for replying. The shopping cart price is correct. The Retail Price is RM12. The price is reduced by RM2.40 for being a Library Very Good Copy (RM9.60). A customer group discount of 10% (RM0.96) should reduce this to RM8.64 as the cart displays. However, on the product listing 10% of the Retail price (RM1.20) is being subtracted RM9.60 - RM1.20 = RM8.40.
×