This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd"> | |
<type name="Magento\CatalogRule\Model\Indexer\IndexBuilder"> | |
<plugin name="Klevu_IndexingProducts::CatalogRuleIndexBuilderPlugin" disabled="false"/> | |
</type> | |
</config> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
var klevuIdsWithKeys = []; | |
klevu.interactive(function () { | |
function formatPrice(price, currency, locale = navigator.language) { | |
return new Intl.NumberFormat(locale, {style: 'currency', currency: currency}).format(price); | |
} | |
function findProductList(data) { | |
return data.find(item => item.id === 'productList'); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- app/design/frontend/rwd/default/layout/local.xml --> | |
<!-- Replace rwd with the current theme --> | |
<?xml version="1.0"?> | |
<layout version="0.1.0"> | |
<catalog_product_view> | |
<reference name="product.info"> | |
<block type="core/template" | |
name="klevu.asklo.div" | |
after="-" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Custom\Es\Plugin; | |
use Klevu\Search\Model\Product\MagentoProductActionsInterface; | |
use Magento\Catalog\Api\ProductRepositoryInterface; | |
use Magento\CatalogInventory\Api\StockRegistryInterface; | |
use Magento\ConfigurableProduct\Model\ResourceModel\Product\Type\Configurable; | |
use Magento\Store\Model\StoreManagerInterface; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Klevu\Search\Model\Product; | |
use Klevu\Search\Api\Service\Catalog\Product\GetReviewCountInterface; | |
use Klevu\Logger\Constants as LoggerConstants; | |
use Klevu\Search\Api\Service\Catalog\Product\Review\ConvertRatingToStarsInterface; | |
use Klevu\Search\Api\Service\Catalog\Product\Review\GetAverageRatingInterface; | |
use Klevu\Search\Helper\Compat as CompatHelper; | |
use Klevu\Search\Helper\Config as ConfigHelper; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
ini_set('display_errors', 1); | |
ini_set('memory_limit', -1); | |
use Klevu\Search\Helper\Config; | |
use Klevu\Search\Model\Product\LoadAttributeInterface; | |
use Klevu\Search\Model\Product\ProductInterface; | |
use Magento\Framework\App\Bootstrap; | |
use Magento\Framework\App\ObjectManager; | |
use Klevu\Search\Helper\Stock as KlevuStockHelper; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Magento\Framework\App\Bootstrap; | |
require __DIR__ . '/../app/bootstrap.php'; | |
$params = $_SERVER; | |
$bootstrap = Bootstrap::create(BP, $params); | |
$objectManager = $bootstrap->getObjectManager(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Klevu\Search\Model\System\Config\Source\Order\Ip as OrderIP; | |
use Magento\Framework\App\Bootstrap; | |
use Magento\Framework\App\Filesystem\DirectoryList; | |
use Magento\Framework\Exception\NoSuchEntityException; | |
if (PHP_SAPI !== 'cli') { | |
echo 'klevu-sales-tracking must be run as a CLI application'; | |
exit(1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* bm_klevu/cartridge/scripts/utils/contentAssetsUtils.js */ | |
'use strict'; | |
/* API Includes*/ | |
const File = require('dw/io/File'); | |
const FileWriter = require('dw/io/FileWriter'); | |
const FileReader = require('dw/io/FileReader'); | |
const XMLIndentingStreamWriter = require('dw/io/XMLIndentingStreamWriter'); | |
const XMLStreamReader = require('dw/io/XMLStreamReader'); | |
const XMLStreamConstants = require('dw/io/XMLStreamConstants'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="https://js.klevu.com/theme/default/v2/search-results-page.js"></script> | |
<div class="klevuLanding"></div> |
NewerOlder