If you are using Xtento in combination with an automated product importer, you may have seen the following error before.
Missing required argument $name of Xtento\ProductExport\Logger\Logger.
The error message appears right after saving a product. The reason is that, at least one of your products in Products > Catalog has no Name. To fix this, you can update the name manually via MySQL queries or simply delete the products and import again correctly.
Algolia 1.6.1 or higher comes with a new feature that automatically updates your product index, every time you save a category. The disadvantage is that it will also update the product index, even if you just change an attribute which has nothing to do with URL rewrites or something else that can break search results. This can increase your indexing operations rapidly, therefore your monthly bills from Algolia as well.
To prevent unnecessary indexing, you should disable the new feature in System > Configuration > Algolia Search 1.x > Advanced > Update product on category products update and manage indexing manually with System > Index Management or simply with cron jobs.
This is a quick example of how you can programmatically create a code for Magestore’s Gift Card module.
1. Create the Gift Card
$data = array(
// Valid price format without currency code
'balance' => $input['giftcard_balance'],
// The currency code such as $ or €
'currency' => Mage::app()->getStore()->getCurrentCurrencyCode(),
// Please find all available statuses in the Magestore > Gift Card module
'status' => 2,
// Remove the line to set no expire date
'expired_at' => strtotime('+1 month'),
'customer_id' => $customer->getId(),
'customer_name' => $customer->getFirstname(),
'customer_email' => $customer->getEmail(),
'recipient_name' => 'Recipient Name',
'recipient_email' => 'email@example.com',
'extra_content' => $this->__('Created by module X')
$giftvoucher = Mage::getModel('giftvoucher/giftvoucher')
2. Link the Gift Card to a Customer
In order to be able to see the Gift Card in My Account > Gift Card you need to create a reference between Gift Card and a customer id. This is something you can do right after the Gift Voucher was successfully created.
$customervoucher = Mage::getModel('giftvoucher/customervoucher')