Well, the easiest way is to use composer.phar update but if you don’t want to update all bundles and waste an hour of your time, you can use: […]
Quick tip: How to add WSSE Security headers in SoapUI?
Since this information is not easy to find, I want to share it with you. Valid WSSE security header should look like this: <soapenv:Header> <wsse:Security xmlns:wsse=”http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd” soapenv:mustUnderstand=”1″> <wsse:UsernameToken> […]
How to fix WooCommerce 404 error on product page
This can be frustrating when you are new to wordpres and/or woocommerce. You just created your first product, and got 404 when trying to see it. Fortunately solution […]
Quick tip: How to create WooCommerce product variants programmatically?
I found few solutions, but obviously none of them were working, so had to find it out by myself. So where to start – lets suppose we have […]
Magento direct SQL INSERT with safe parameters binding
Maybe someone will find it usefull: $write = Mage::getSingleton(“core/resource”)->getConnection(“core_write”); $query = “insert into mytable ” . “(field1, field2, field3, field4) values ” . “(:field1, :field2, :field3, 12)”; $binds […]
Send pdf automatically when invoice is created in Magento
It is a bit different then method showed in previous post – this time its not transactional email sent at demand, but we will catch event fired after […]
Quicktip: How to send PDF invoice via transactional email in Magento?
Seems to be complex, but its not that bad: $orderModel = Mage::getModel(‘sales/order’)->load($myOrderId); $invoices = $orderModel->getInvoiceCollection(); $invoicesSet = array(); foreach ($invoices as $_invoice) { array_push($invoicesSet, $_invoice); } $pdf = […]
Quicktip: SQLSTATE[HY000] [2002] Not a directory trying doctrine:schema:create
If you are using MAMP and trying to execute doctrine:schema:create or anything db related you may encounter that error, solution is simple – you need to create symlink […]
Tutorial: Fetching stock data from Amazon using FBAInventoryServiceMWS
First thing you need is PHP client for Fulfillment Inventory API, you can download at https://developer.amazonservices.ca/doc/fba/inventory/v20101001/php.html – yes, version is 4 years old, they don’t have any newer… […]