PriceDetectService

This service class contains functions related to getting the correct sales prices for customers.
All public functions are available in the Twig template renderer.

Deprecated!

since 5.0.0 will be removed in 6.0.0

Namespace

IO\Services

Properties
Type Name Description

``

$classId

``

$singleAccess

``

$currency

``

$plentyId

``

$shippingCountryId

DetectSalesPriceService

$detectSalesPriceService

ContactRepository

$contactRepository

Application

$app

CheckoutRepositoryContract

$checkoutRepository

BasketService

$basketService

VatService

$vatService

VatInitService

$vatInitService

``

$referrerId

``

$cache

Methods
public __construct($detectSalesPriceService, $contactRepository, $app, $checkoutRepository, $basketService, $vatInitService, $vatService)

PriceDetectService constructor.

Parameters

Type

Name

Description

DetectSalesPriceService

$detectSalesPriceService

ContactRepositoryContract

$contactRepository

Application

$app

CheckoutRepositoryContract

$checkoutRepository

BasketService

$basketService

VatInitContract

$vatInitService

VatService

$vatService

public getPriceIdsForCustomer():array
Deprecated!

since 5.0.0 will be removed in 6.0.0

Get valid price ids for current contact

public fromMemoryCache()
public resetMemoryCache($key = null)
Parameters

Type

Name

Description

``

$key