class UserSettings implements PrimaryKeyInterface

Class UserSettings

Properties

protected int $id
protected bool $anonymousAllowed Is anonymous(not logged) users allowed to complete order
protected bool $requireERPCode Indicates whether to show erp code field on registration or not
protected bool $requireMailConfirmation Indicates if registration should be confirmed via mail
protected bool $showPriceIfUserNotLogged Indicates if anonymous users can see price
protected bool $allowCouponIfUserNotLogged Indicates if anonymous users can use coupons
protected bool $showImageOnRegistration Indicates whether to show dropzone field on registration or not
protected bool $isB2BRegistration Indicates if it is b2b registration
protected bool $confirmOrderByMail Indicates if order should be confirmed via mail before completing it
protected bool $requireCaptchaConfirmation Indicates if captcha should be populate on registration
protected string $captchaSiteKey reCAPTCHA site key
protected string $captchaSecretKey reCAPTCHA secret key
protected bool $userActivatedByDefault Indicates if user is activated after the registration
protected bool $cascadeDiscounts Defines the way discounts are calculated, eg. 10% and 5% can be 15% but using cascade are 14.5%
protected string $orderMergeType Order merge type after user login. Can be one of predefined(user_last_order_as_anonymous,user_last_order_as_logged, clear_order or merge_orders)
protected string $pricelistType Indicates from where product prices will be loaded. Can be one of predefined(shop_pricelist_key or erp_pricelist_key)
protected bool $requireDefaultShippingSelect Show or hide default shipping provider on registration page
protected bool $requireDefaultPaymentSelect Show or hide default payment type on registration page
protected bool $addAvailableQuantityByDefault If requested quantity is not available, add available and inform user about that
protected bool $ignoreQuantityOnAddToCart Allow any quantity to be added regardless of number in stock
protected string $thousandsSeparator Default thousands separator for showing price
protected string $decimalSeparator Default decimal separator for showing price
protected int $decimalPlaces Default decimal places for showing price
protected int $reservationWarranty Warranty for reservations, expressed in months
protected int $maxQuantityPerOrderItem Max product quantity per order in reservation
protected int $maxNumberOfItemsPerOrder Max number of items per order in reservation

Methods

integer
getId()

No description

setId(int $id)

No description

bool
getAnonymousAllowed()

No description

setAnonymousAllowed(bool $anonymousAllowed)

No description

bool
getRequireMailConfirmation()

No description

setRequireMailConfirmation(bool $requireMailConfirmation)

No description

bool
getRequireERPCode()

No description

setRequireERPCode(bool $requireERPCode)

No description

bool
getShowPriceIfUserNotLogged() deprecated

No description

$this
setShowPriceIfUserNotLogged(boolean $showPriceIfUserNotLogged) deprecated

No description

bool
isShowImageOnRegistration()

No description

setShowImageOnRegistration(bool $showImageOnRegistration)

No description

bool
isConfirmOrderByMail()

No description

setConfirmOrderByMail(bool $confirmOrderByMail)

No description

bool
isIsB2BRegistration()

No description

setIsB2BRegistration(bool $isB2BRegistration)

No description

bool
isAllowCouponIfUserNotLogged()

No description

setAllowCouponIfUserNotLogged(bool $allowCouponIfUserNotLogged)

No description

bool
isRequireCaptchaConfirmation()

No description

setRequireCaptchaConfirmation(bool $requireCaptchaConfirmation)

No description

string
getCaptchaSiteKey()

No description

setCaptchaSiteKey(string $captchaSiteKey)

No description

string
getCaptchaSecretKey()

No description

setCaptchaSecretKey(string $captchaSecretKey)

No description

bool
isUserActivatedByDefault()

No description

setUserActivatedByDefault(bool $userActivatedByDefault)

No description

bool
getCascadeDiscounts()

No description

setCascadeDiscounts(bool $cascadeDiscounts)

No description

string
getOrderMergeType()

No description

setOrderMergeType(string $orderMergeType)

No description

string
getPricelistType()

No description

setPricelistType(string $pricelistType)

No description

bool
setRequireDefaultShippingSelect(bool $requireDefaultShippingSelect)

No description

bool
setRequireDefaultPaymentSelect(bool $requireDefaultPaymentSelect)

No description

bool
setAddAvailableQuantityByDefault(bool $addAvailableQuantityByDefault)

No description

int
getReservationWarranty()

No description

setReservationWarranty(int $reservationWarranty)

No description

int
getMaxNumberOfItemsPerOrder()

No description

setMaxNumberOfItemsPerOrder(int $maxNumberOfItemsPerOrder)

No description

int
getMaxQuantityPerOrderItem()

No description

setMaxQuantityPerOrderItem(int $maxQuantityPerOrderItem)

No description

string
getThousandsSeparator()

No description

setThousandsSeparator(string $thousandsSeparator)

No description

string
getDecimalSeparator()

No description

setDecimalSeparator(string $decimalSeparator)

No description

int
getDecimalPlaces()

No description

setDecimalPlaces(int $decimalPlaces)

No description

bool
isIgnoreQuantityOnAddToCart()

No description

setIgnoreQuantityOnAddToCart(bool $ignoreQuantityOnAddToCart)

No description

Details

at line 321
integer getId()

Return Value

integer

at line 331
UserSettings setId(int $id)

Parameters

int $id

Return Value

UserSettings

at line 341
bool getAnonymousAllowed()

Return Value

bool

at line 351
UserSettings setAnonymousAllowed(bool $anonymousAllowed)

Parameters

bool $anonymousAllowed

Return Value

UserSettings

at line 361
bool getRequireMailConfirmation()

Return Value

bool

at line 371
UserSettings setRequireMailConfirmation(bool $requireMailConfirmation)

Parameters

bool $requireMailConfirmation

Return Value

UserSettings

at line 381
bool getRequireERPCode()

Return Value

bool

at line 391
UserSettings setRequireERPCode(bool $requireERPCode)

Parameters

bool $requireERPCode

Return Value

UserSettings

at line 403
bool getShowPriceIfUserNotLogged() deprecated

deprecated This is done via permissions on product/user groups

Return Value

bool

at line 415
$this setShowPriceIfUserNotLogged(boolean $showPriceIfUserNotLogged) deprecated

deprecated This is done via permissions on product/user groups

Parameters

boolean $showPriceIfUserNotLogged

Return Value

$this

at line 425
bool isShowImageOnRegistration()

Return Value

bool

at line 435
UserSettings setShowImageOnRegistration(bool $showImageOnRegistration)

Parameters

bool $showImageOnRegistration

Return Value

UserSettings

at line 445
bool isConfirmOrderByMail()

Return Value

bool

at line 455
UserSettings setConfirmOrderByMail(bool $confirmOrderByMail)

Parameters

bool $confirmOrderByMail

Return Value

UserSettings

at line 465
bool isIsB2BRegistration()

Return Value

bool

at line 475
UserSettings setIsB2BRegistration(bool $isB2BRegistration)

Parameters

bool $isB2BRegistration

Return Value

UserSettings

at line 485
bool isAllowCouponIfUserNotLogged()

Return Value

bool

at line 495
UserSettings setAllowCouponIfUserNotLogged(bool $allowCouponIfUserNotLogged)

Parameters

bool $allowCouponIfUserNotLogged

Return Value

UserSettings

at line 505
bool isRequireCaptchaConfirmation()

Return Value

bool

at line 515
UserSettings setRequireCaptchaConfirmation(bool $requireCaptchaConfirmation)

Parameters

bool $requireCaptchaConfirmation

Return Value

UserSettings

at line 525
string getCaptchaSiteKey()

Return Value

string

at line 535
UserSettings setCaptchaSiteKey(string $captchaSiteKey)

Parameters

string $captchaSiteKey

Return Value

UserSettings

at line 545
string getCaptchaSecretKey()

Return Value

string

at line 555
UserSettings setCaptchaSecretKey(string $captchaSecretKey)

Parameters

string $captchaSecretKey

Return Value

UserSettings

at line 565
bool isUserActivatedByDefault()

Return Value

bool

at line 575
UserSettings setUserActivatedByDefault(bool $userActivatedByDefault)

Parameters

bool $userActivatedByDefault

Return Value

UserSettings

at line 585
bool getCascadeDiscounts()

Return Value

bool

at line 595
UserSettings setCascadeDiscounts(bool $cascadeDiscounts)

Parameters

bool $cascadeDiscounts

Return Value

UserSettings

at line 605
string getOrderMergeType()

Return Value

string

at line 615
UserSettings setOrderMergeType(string $orderMergeType)

Parameters

string $orderMergeType

Return Value

UserSettings

at line 625
string getPricelistType()

Return Value

string

at line 635
UserSettings setPricelistType(string $pricelistType)

Parameters

string $pricelistType

Return Value

UserSettings

at line 645
bool isRequireDefaultShippingSelect()

Return Value

bool

at line 655
UserSettings setRequireDefaultShippingSelect(bool $requireDefaultShippingSelect)

Parameters

bool $requireDefaultShippingSelect

Return Value

UserSettings

at line 665
bool isRequireDefaultPaymentSelect()

Return Value

bool

at line 675
UserSettings setRequireDefaultPaymentSelect(bool $requireDefaultPaymentSelect)

Parameters

bool $requireDefaultPaymentSelect

Return Value

UserSettings

at line 685
bool isAddAvailableQuantityByDefault()

Return Value

bool

at line 695
UserSettings setAddAvailableQuantityByDefault(bool $addAvailableQuantityByDefault)

Parameters

bool $addAvailableQuantityByDefault

Return Value

UserSettings

at line 705
int getReservationWarranty()

Return Value

int

at line 715
UserSettings setReservationWarranty(int $reservationWarranty)

Parameters

int $reservationWarranty

Return Value

UserSettings

at line 725
int getMaxNumberOfItemsPerOrder()

Return Value

int

at line 735
UserSettings setMaxNumberOfItemsPerOrder(int $maxNumberOfItemsPerOrder)

Parameters

int $maxNumberOfItemsPerOrder

Return Value

UserSettings

at line 745
int getMaxQuantityPerOrderItem()

Return Value

int

at line 755
UserSettings setMaxQuantityPerOrderItem(int $maxQuantityPerOrderItem)

Parameters

int $maxQuantityPerOrderItem

Return Value

UserSettings

at line 765
string getThousandsSeparator()

Return Value

string

at line 775
UserSettings setThousandsSeparator(string $thousandsSeparator)

Parameters

string $thousandsSeparator

Return Value

UserSettings

at line 785
string getDecimalSeparator()

Return Value

string

at line 795
UserSettings setDecimalSeparator(string $decimalSeparator)

Parameters

string $decimalSeparator

Return Value

UserSettings

at line 805
int getDecimalPlaces()

Return Value

int

at line 815
UserSettings setDecimalPlaces(int $decimalPlaces)

Parameters

int $decimalPlaces

Return Value

UserSettings

at line 825
bool isIgnoreQuantityOnAddToCart()

Return Value

bool

at line 835
UserSettings setIgnoreQuantityOnAddToCart(bool $ignoreQuantityOnAddToCart)

Parameters

bool $ignoreQuantityOnAddToCart

Return Value

UserSettings