Jump to content
thirty bees forum

lukewood

Members
  • Posts

    61
  • Joined

  • Last visited

Everything posted by lukewood

  1. Thanks so much for ruling that cause out, I really appreciate your help.
  2. 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
  3. 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
  4. In case it is any use, the following was in the error log from the same IP address that ordered: PHP Notice: Undefined index: ogtype in /html/vendor/smarty/smarty/libs/sysplugins/smartyinternaltemplatebase.php(157) : eval()'d code on line 38, referer: https://www.domain.my/quick-order?step=1 PHP Notice: Trying to get property of non-object in /html/vendor/smarty/smarty/libs/sysplugins/smartyinternaltemplatebase.php(157) : eval()'d code on line 38, referer: https://www.domain.my/quick-order?step=1 PHP Notice: Undefined index: ogtype in /html/vendor/smarty/smarty/libs/sysplugins/smartyinternaltemplatebase.php(157) : eval()'d code on line 38, referer: https://live.adyen.com/hpp/pay.shtml PHP Notice: Trying to get property of non-object in /html/vendor/smarty/smarty/libs/sysplugins/smartyinternaltemplatebase.php(157) : eval()'d code on line 38, referer: https://live.adyen.com/hpp/pay.shtml PHP Notice: Undefined index: ogtype in /html/vendor/smarty/smarty/libs/sysplugins/smartyinternaltemplatebase.php(157) : eval()'d code on line 38, referer: https://www.domain.my/quick-order PHP Notice: Trying to get property of non-object in /html/vendor/smarty/smarty/libs/sysplugins/smartyinternaltemplatebase.php(157) : eval()'d code on line 38, referer: https://www.domain.my/quick-order PHP Notice: Undefined index: ogtype in /html/vendor/smarty/smarty/libs/sysplugins/smartyinternaltemplatebase.php(157) : eval()'d code on line 38, referer: https://3dsecure.hlb.com.my/ImsControl.do PHP Notice: Trying to get property of non-object in /html/vendor/smarty/smarty/libs/sysplugins/smartyinternaltemplatebase.php(157) : eval()'d code on line 38, referer: https://3dsecure.hlb.com.my/ImsControl.do PHP Notice: Undefined index: ogtype in /html/vendor/smarty/smarty/libs/sysplugins/smartyinternaltemplatebase.php(157) : eval()'d code on line 38, referer: https://www.domain.my/order-confirmation?idcart=290&idmodule=132&idorder=54&key=521fc88b0b3514344a63b23095b4676a PHP Notice: Trying to get property of non-object in /html/vendor/smarty/smarty/libs/sysplugins/smartyinternaltemplatebase.php(157) : eval()'d code on line 38, referer: https://www.domain.my/order-confirmation?idcart=290&idmodule=132&id_order=54&key=521fc88b0b3514344a63b23095b4676a
  5. Hi, Just to update. I believe I have figured out how to fix the problem manually. The values in entries in two MYSQL tables were blank: tborders.invoicenumber contained a 0. I entered the correct invoice number from tborderinvoice.idorderinvoice tborderdetail.idorderinvoice for all the purchased products also contained 0s. I added the invoice numbers to all the products. I would really appreciate input from someone who understands the coding. First of all, when is the invoice number added is it when the status is changed to payment accepted or once the order has been placed? Are there any other entries to check that I haven't thought of that may not have been written to the database? Are there any implications for changing these numbers manually? What could cause this glitch? Any help would be greatly appreciated. Thanks so much. Kind regards, Luke
  6. 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
  7. 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: Regards, Luke
  8. @Traumflug Yes, this is definitely the same issue. I tested on http://back.thirtybees.com and it behaves the same.
  9. @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);
  10. I managed to fix the problem by editing contollers/front/ProductController.php. I added the following function ``` protected function getGroupReduction() { $idcustomer = (isset($this->context->customer) ? (int)$this->context->customer->id : 0); $idgroup = (int)Group::getCurrent()->id; $idcountry = $idcustomer ? (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['idproductattribute']]['price'] = (float) Tools::convertPriceFull($row['price'], null, $this->context->currency, false); with $groupreduction = $this->getGroupReduction(); $price = $row['price'] - $row['price']* $groupreduction; $combinations[$row['idproductattribute']]['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
  11. 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.
  12. 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.
  13. Hi, I am using combinations with price reductions. As I sell secondhand books, my main listed price is 'As New'. I reduce for each degradation in book condition such as 'Very Good', 'Good', 'Acceptable' etc in the combinations. I have just created a new customer group, offering these shoppers a 10% discount. The product page reduces the price of the combination price by 10% of the main 'As New' price, when displaying combinations. The shopping cart is unaffected. There is something on the Prestashop forum about this but the solution is to replace the following files: \controllers\front\ProductController.php \classes\Product.php https://www.prestashop.com/forums/topic/499621-1609-to-1614-item-with-combination-is-showing-incorrect-prices/ Is there anyway to sort this quickly or should I report this as a bug on GitHub? Any help would be greatly appreciated. Regards, Luke
  14. Thanks, I created new shipping carriers and hopefully the issues will go away.
  15. @colorful-ant Thanks, I think I will try to simplify my shipping as you suggest. However, I need to class Borneo as a separate country as shipping to there is expensive. @andyc I have RM0.50 handling charges. Do you think this can be causing the problem? Thanks so much, Luke
  16. Hi Traumflug, Thanks so much. Regards, Luke
  17. We don't have states in the UK though only countries and counties.
  18. That's great. There isn't a Cumberland and Westmorland anymore though. They merged with a bit of Lancashire to form Cumbria years back.
  19. Dear All, I have a strange issue going on with my shipping. Two customers have benefited from free shipping who shouldn't have. The shop is based in Malaysia, which is made of Peninsular Malaysia and Borneo. Peninsular Malaysia customers are given free shipping for orders over RM100 but Borneo follows standard shipping rates. I have three carriers: Standard Shipping with prices entered for all zones and no free shipping options Promotional Shipping with prices entered for all zones and no free shipping options Free shipping is set up as a standard carrier with RM0 rate for orders between RM100 and RM5000 for Peninsular Malaysia One customer who benefited from free shipping was standard shipping, the other promotional shipping. I have checked and amount were entered for the zones at those weights. The only thing I can think of was I had "Spend X to get free shipping module" installed but not configured. I don't see how that could affect things but I could be wrong. Any help would be greatly appreciated. Kind regards, Luke
  20. Yes, the problem arose when users without accounts added products to their cart. When they confirmed their orders, they were asked to create an account within the page. The The Catpcha wasn't displayed and the error was displayed.
  21. I thought it might be something to do with the cache but the captcha isn't even displayed. I don't think there is an option to disable just on checkout but you can for the whole account registration. I have disabled it for now and see what happens. Thanks so much.
  22. Hi, I launched my webstore a couple of weeks ago. A customer contacted me complaining that when she tried to register at the one-page checkout, she received a message ""There is 1 Error(s): Your captcha was wrong. Please try again." When I checked, the captcha is not shown. However, it is displaying correctly on the contact form and normal account registration form. Does anyone else encountered this problem? Any help would be greatly appreciated. Kind regards, Luke
  23. Thanks so much dosbiner, I couldn't get it to work for a while. What worked for me was changing double to quotes to single quotes for the trigger. In case anyone else has the same problem, this worked for me: BEGIN UPDATE tbproductshop SET visibility='search' WHERE idproduct IN (SELECT idproduct FROM tbstockavailable WHERE quantity=0); UPDATE tbproductshop SET visibility='both' WHERE idproduct IN (SELECT idproduct FROM tbstockavailable WHERE quantity>0); END
  24. Thanks very much for your help. I tried adapting a MYSQL trigger based on dosbiner's suggestion for use with combinations: BEGIN UPDATE tbproductshop SET visibility="search" WHERE idproduct IN (SELECT idproduct FROM tbstockavailable WHERE 1 GROUP BY idproduct HAVING SUM(quantity)=0); UPDATE tbproductshop SET visibility="both" WHERE idproduct IN (SELECT idproduct FROM tbstockavailable WHERE 1 GROUP BY idproduct HAVING SUM(quantity)>0) END At the moment it doesn't seem to be working. I will post again if I manage to make it work. Thanks again.
  25. Hi, I am currently creating a shop that has thousands of used books. Some of these only have one or two copies and will be in and out of stock regularly. I know you can disable products using MYSQL triggers or thirty-party modules. However, is there a way to simply hide the product from the category listing? That way, users won't see the out of stock products but they will still display in the search engines to attract traffic. If not, how do other people deal with this issue. Any help is greatly appreciated. Kind regards, Luke
×
×
  • Create New...