Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Category Not Recorded in Orders #11

Open
bret-BSA opened this issue Oct 15, 2021 · 0 comments
Open

Category Not Recorded in Orders #11

bret-BSA opened this issue Oct 15, 2021 · 0 comments

Comments

@bret-BSA
Copy link

bret-BSA commented Oct 15, 2021

Magento 2.4 ECE
PHP 7.4

activecampaign/module-integration/Order/Model/OrderData/OrderDataSend.php

        $quoteItemsData[] = [
            "externalid" => $quoteItem->getItemId(),
            "name" => $quoteItem->getName(),
            "price" => $this->coreHelper->priceToCents($quoteItem->getPrice()),
            "quantity" => $quoteItem->getQty(),
            "category" => implode(', ', $product->getCategoryIds()),
            "sku" => $quoteItem->getSku(),
            "description" => $quoteItem->getDescription(),
            "imageUrl" => $imageUrl,
            "productUrl" => $product->getProductUrl()
        ];

SHOULD BE:

        $quoteItemsData[] = [
            "externalid" => $quoteItem->getItemId(),
            "name" => $quoteItem->getName(),
            "price" => $this->coreHelper->priceToCents($quoteItem->getPrice()),
            "quantity" => $quoteItem->getQty(),
            "category" => $product->getCategoryDisplayString(),
            "sku" => $quoteItem->getSku(),
            "description" => $quoteItem->getDescription(),
            "imageUrl" => $imageUrl,
            "productUrl" => $product->getProductUrl()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant