Magento 2 CE + CyberSource Checkout

I’m trying to setup a 2.2.5 store with CyberSource v3, however, I keep receiving below error.

You are not authorized to view this page. The transaction has not been
processed. If the problem persists please report your problem and
quote the following Error Reference Number: XXXX

Online search suggested checking signed/unsigned field and signed_date_time however, online search did not yield any helpful hints.

All topic

503 service error for shipping information api in magento 2?

I have logged in as USER and at checkout end in the network seeing that for shipping information am getting 503 service error. how to fix this issue.How to resolve this issue.

Request URL:



503 Service Unavailable

Service Unavailable

The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

All topic

Why does Magento give us the option to disable Form Key Validation on Checkout?

I’ve noticed Magento provides us with Form Key validation on Login, Registration and Checkout pages.

However only in the Checkout are we given the option to disable Form Key Validation.

My question is: why does this option exist?

In what scenario would we want to disable Form Key Validation and why are we only given that option for the checkout?

All topic

Magento 2 | Should “Guest” customer have a session ID?

I am trying to find out the session Id number.

I am using object manager for this (temporarily):

$customerName = $customerSession->getCustomer()->getName();
Customer Session:getCustomerId() ?>

Now, when I am logged in, the customer session display a number (expected behaviour), however, when I am logged out, there is no output.

My question is, should not-logged-in (“guest”) customer have a session ID?

All topic

Magento 2 Migration Error customer_eav_attribute and index_process_event

I am getting error during migration from Magento 1 to Magento 2.

[2018-01-09 09:01:32][ERROR]: Foreign key (FK_CSTR_EAV_ATTR_ATTR_ID_EAV_ATTR_ATTR_ID) constraint fails on source database. Orphan records id: 185,186,187 from `customer_eav_attribute`.`attribute_id` has no referenced records in `eav_attribute`


[2018-01-09 09:01:32][ERROR]: Foreign key (FK_INDEX_PROCESS_EVENT_EVENT_ID_INDEX_EVENT_EVENT_ID) constraint fails on source database. Orphan records id: 36788 from `index_process_event`.`event_id` has no referenced records in `index_event`

Can you guys help me to resolve this issue?

All topic

Magento 2: Display sub-categories on Category Landing Page

Am I missing something in Magento 2 but I don’t seem to be able to create a Category Landing Page which displays the sub-categories within (Image, Title, Link, Product Count and CTA).

How is this done in Magento 2?

There’s an example attached (not Magento based) which displays the sub-categories on the root category.

enter image description here

All topic

Magento 2 : Use plugin / interceptor on abstract class

I am trying to create a plugin that fires after MagentoSalesControllerAdminhtmlShipmentAbstractShipmentPrintAction::execute.
So I have my plugin setup in di.xml and an afterExecute() method, but it doesn’t seem to get fired.
Now I know there are some limitations for plugins, but I can’t read anything about abstract classes.
Can plugins / interceptors be used on abstract classes?

All topic

Customer multiselect attribute selections not saving – Magento 2

I have successfully added a multiselect attribute to the adminhtml customer edit form, but when saving the customer the selected values are not saved.

$customerSetup->addAttribute(Customer::ENTITY, 'customattribute', [
    'type' => 'text',
    'label' => 'Custom Attribute',
    'input' => 'multiselect',
    'backend' => 'MagentoEavModelEntityAttributeBackendArrayBackend',
    'source' => 'MyModuleModelConfigSourceCustomOptions',
    'required' => false,
    'visible' => true,
    'user_defined' => true,
    'sort_order' => 1000,
    'position' => 1000,
    'system' => 0,


The source class:

class PortalCategoryOptions extends AbstractSource {
    protected $_categoryHelper;

    protected $_categoryCollectionFactory;

    public function __construct(Category $catalogCategory, CollectionFactory $categoryCollectionFactory) {
        $this->_categoryHelper = $catalogCategory;
        $this->_categoryCollectionFactory = $categoryCollectionFactory;

    public function getStoreCategories($sorted = false, $asCollection = false, $toLoad = true) {
        $collection = $this->_categoryCollectionFactory->create();

        return $collection;

    public function getAllOptions() {
        $arr = $this->toArray();
        $ret = [];

        foreach ($arr as $key => $value)  {
            $ret[] = [
                'value' => $key,
                'label' => $value

        return $ret;

    public function toArray() {
        $categories = $this->getStoreCategories(true,false,true);

        $categoryList = array();
        foreach ($categories as $category){
            if ($category->getEntityId() >= 3) {
                $categoryList[$category->getEntityId()] = __($category->getName());

        return $categoryList;

All topic

Magento 2 | Mini Cart has items but cart is empty | Session problem?

I have a weird problem where my mini-cart is showing that there are products in the cart, however, cart is showing empty.

Also, when refreshing the checkout a few times, it redirects to the cart with a message of:

You have no items in your shopping cart.

Click here to continue shopping.

I have set my cookie life time to 1 year but that didn’t solve my problem. Could the problem be related to customer session? Not sure how to debug this.

All topic

Magento 2.2.5: ‘rm’ is not recognized as an internal or external command

this is kinda basic question but i can’t find the answer at anywhere, so ..
When i’m trying to use this command:

rm -rf var/cache/

It throws an error message: 'rm' is not recognized as an internal or external command.

I’m on the magento root folder already (C:xampphtdocsmagento), am i missing something here?

Please help, thanks for reading, have a good day 🙂

All topic