I’m trying to get the total weight of the items in checkout_submit_all_after With this code: $orderItems = $order->getAllItems(); $weight = 0.0; $length = 0.0; $width = 0.0; $height = 0.0; $dimensions = array(); foreach ($orderItems as $item) { $product = $item->getProduct(); $weight += (float) ($product->getData('weight')*$item->getQtyOrdered()); $length += (float) $product->getData('ts_dimensions_length'); $width […]
Blog
I have a Synology NAS and I want to broadcast the SMB server it is hosting over Bonjour. It is hooked up to my Cable Modem over ethernet which also provides router capability. All devices connected to my Cable modem are within 192.168.0.* One of those devices is a WiFi […]
I’m in the process of setting up our new server and can connect to it while on the same network. The issue is when remote employees try to log in it takes them to our old server running 2008r2 instead of our new server running 2019. During tests I use […]
Recently I bought a Lenovo L27q-10 monitor which has DisplayPort v1.2 connection. I connected it to my iMac 27″ (Late 2013) running macOS Catalina 10.15.2 with Mini DisplayPort to DisplayPort cable but iMac won’t recognize the monitor. When I connect monitor with Mini DisplayPort to HDMI adapter monitor wakes up […]
I have a USB drive with multiple partitions on it that will be moved around to multiple computers. I want to be able to hide all but the first partition from all the computers I use it on. I have tried using various utilities to add the “hidden” flag to […]
A really useful feature in TextMate is multiple cursors, as described in this video: https://www.youtube.com/watch?v=Jqc5EdZmpmQ Are multiple cursors possible in Microsoft Word?
Basically I have to create a drop-down of “brands” on my product page such that customers can manually select their brands depending on their choice. What is the way to do this? Is it possible to create a custom attribute of brands in the admin panel then show that dropdown […]
My requirement was to add a “subscribe to newsletter” checkbox at onepage checkout page (below “terms and condition” checkbox). All the things are fine except 2 issues: The user MUST NOT be subscribed if he unchecks the checkboxes. For the very first time when the user mail is not there […]