Fully integrated ecommerce for Craft CMS.
showEditUserCommerceTab
config setting.craft\commerce\services\Customers::addEditUserCommerceTab()
.craft\commerce\services\Customers::addEditUserCommerceTabContent()
.hasUnlimitedStock
variant query param wasn’t working. (#3400)currentStore
Twig variable.commerce/pricing-catalog/generate
command.hasUnlimitedStock
variant query param. inventoryTracked
should be used instead.shippingCategory
, shippingCategoryId
, taxCategory
, and taxCategoryId
product query params. The corresponding variant query params can be used instead.craft\commerce\base\CatalogPricingConditionRuleInterface
.craft\commerce\base\EnumHelpersTrait
craft\commerce\base\HasStoreInterface
.craft\commerce\base\InventoryMovementInterface
.craft\commerce\base\InventoryMovement
.craft\commerce\base\Purchasable::$availableForPurchase
.craft\commerce\base\Purchasable::$freeShipping
.craft\commerce\base\Purchasable::$height
.craft\commerce\base\Purchasable::$inventoryTracked
craft\commerce\base\Purchasable::$length
.craft\commerce\base\Purchasable::$maxQty
.craft\commerce\base\Purchasable::$minQty
.craft\commerce\base\Purchasable::$promotable
.craft\commerce\base\Purchasable::$shippingCategoryId
.craft\commerce\base\Purchasable::$stock
craft\commerce\base\Purchasable::$taxCategoryId
.craft\commerce\base\Purchasable::$weight
.craft\commerce\base\Purchasable::$width
.craft\commerce\base\Purchasable::getInventoryItem()
.craft\commerce\base\Purchasable::getInventoryLevels()
.craft\commerce\base\Purchasable::getOnPromotion()
.craft\commerce\base\Purchasable::getPrice()
.craft\commerce\base\Purchasable::getPromotionalPrice()
.craft\commerce\base\Purchasable::getStock()
craft\commerce\base\Purchasable::getStore()
craft\commerce\base\Purchasable::setPrice()
.craft\commerce\base\Purchasable::setPromotionalPrice()
.craft\commerce\base\StoreRecordTrait
.craft\commerce\base\StoreTrait
.craft\commerce\behaviors\StoreBehavior
.craft\commerce\collections\InventoryMovementCollection
craft\commerce\collections\UpdateInventoryLevelCollection
craft\commerce\console\controllers\CatalogPricingController
.craft\commerce\controllers\CatalogPricingController
.craft\commerce\controllers\CatalogPricingRulesController
.craft\commerce\controllers\InventoryLocationsController
craft\commerce\controllers\InventoryLocationsStoresController
craft\commerce\controllers\VariantsController
.craft\commerce\db\Table::CATALOG_PRICING_RULES_USERS
.craft\commerce\db\Table::CATALOG_PRICING_RULES
.craft\commerce\db\Table::CATALOG_PRICING
.craft\commerce\db\Table::INVENTORYITEMS
.craft\commerce\db\Table::INVENTORYLOCATIONS_STORES
.craft\commerce\db\Table::INVENTORYLOCATIONS
.craft\commerce\db\Table::INVENTORYMOVEMENTS
.craft\commerce\db\Table::PURCHASABLES_STORES
.craft\commerce\db\Table::STORESETTINGS
.craft\commerce\db\Table::STORES
.craft\commerce\db\Table::TRANSFERS_INVENTORYITEMS
.craft\commerce\db\Table::TRANSFERS
.craft\commerce\elements\Product::getVariantManager()
.craft\commerce\elements\Variant::getProductSlug()
.craft\commerce\elements\Variant::getProductTypeHandle()
.craft\commerce\elements\Variant::setProductSlug()
.craft\commerce\elements\Variant::setProductTypeHandle()
.craft\commerce\elements\VariantCollection
.craft\commerce\elements\actions\SetDefaultVariant
.craft\commerce\elements\conditions\customer\CatalogPricingCustomerCondition
.craft\commerce\elements\conditions\orders\DiscountedItemSubtotalConditionRule
.craft\commerce\elements\conditions\orders\ShippingAddressZoneConditionRule
.craft\commerce\elements\conditions\orders\ShippingMethodOrderCondition
.craft\commerce\elements\conditions\orders\ShippingRuleOrderCondition
.craft\commerce\elements\conditions\orders\TotalWeightConditionRule
.craft\commerce\elements\conditions\products\ProductVariantInventoryTrackedConditionRule
.craft\commerce\elements\conditions\purchasables\CatalogPricingCondition
.craft\commerce\elements\conditions\purchasables\CatalogPricingCustomerConditionRule
.craft\commerce\elements\conditions\purchasables\CatalogPricingPurchasableConditionRule
.craft\commerce\elements\conditions\purchasables\PurchasableConditionRule
.craft\commerce\elements\db\OrderQuery::$totalWeight
.craft\commerce\elements\db\OrderQuery::totalWeight()
.craft\commerce\elements\traits\OrderValidatorsTrait::validateOrganizationTaxIdAsVatId()
.craft\commerce\enums\InventoryTransactionType
.craft\commerce\enums\InventoryUpdateQuantityType
.craft\commerce\events\RegisterAvailableShippingMethodsEvent::getShippingMethods()
.craft\commerce\events\RegisterAvailableShippingMethodsEvent::setShippingMethods()
.craft\commerce\fieldlayoutelements\PurchasabaleAllowedQtyField
.craft\commerce\fieldlayoutelements\PurchasabaleAvailableForPurchaseField
.craft\commerce\fieldlayoutelements\PurchasabaleDimensionsField
.craft\commerce\fieldlayoutelements\PurchasabaleFreeShippingField
.craft\commerce\fieldlayoutelements\PurchasabalePriceField
.craft\commerce\fieldlayoutelements\PurchasabalePromotableField
.craft\commerce\fieldlayoutelements\PurchasabaleSkuField
.craft\commerce\fieldlayoutelements\PurchasabaleStockField
.craft\commerce\fieldlayoutelements\PurchasabaleWeightField
.craft\commerce\helpers\Cp
.craft\commerce\helpers\Currency::moneyInputHtml()
.craft\commerce\helpers\Purchasable::catalogPricingRulesTableByPurchasableId()
.craft\commerce\models\CatalogPricingRule
.craft\commerce\models\Discount::$storeId
.craft\commerce\models\InventoryItem
.craft\commerce\models\InventoryLocation
.craft\commerce\models\InventoryTransaction
.craft\commerce\models\Level
.craft\commerce\models\LineItem::getSnapshot()
.craft\commerce\models\LineItem::setSnapshot()
.craft\commerce\models\LineItems::getFulfilledTotalQuantity()
.craft\commerce\models\PaymentSources::getStore()
.craft\commerce\models\ProductType::$maxVariants
.craft\commerce\models\PurchasableStore
.craft\commerce\models\Store::getInventoryLocations()
.craft\commerce\models\Store::getInventoryLocationsOptions()
.craft\commerce\models\inventory\InventoryCommittedMovement
craft\commerce\models\inventory\InventoryLocationDeactivatedMovement
.craft\commerce\models\inventory\InventoryManualMovement
.craft\commerce\models\inventory\UpdateInventoryLevel
.craft\commerce\plugin\Services::getVat()
.craft\commerce\records\CatalogPricingRulePurchasable
.craft\commerce\records\CatalogPricingRuleUser
.craft\commerce\records\CatalogPricingRule
.craft\commerce\records\CatalogPricing
.craft\commerce\records\InventoryItem
.craft\commerce\records\InventoryLocation
.craft\commerce\records\PurchasableStore
.craft\commerce\services\CatalogPricingRules
.craft\commerce\services\CatalogPricing
.craft\commerce\services\Discounts::getAllDiscountsByStoreId()
.craft\commerce\services\InventoryLocations
.craft\commerce\services\Inventory
.craft\commerce\services\OrderStatuses::getOrderStatusByUid()
.craft\commerce\services\Purchasables::updateStoreStockCache()
craft\commerce\services\Sales::canUseSales()
.craft\commerce\services\ShippingCategories::clearCaches()
.craft\commerce\services\Stores
.craft\commerce\services\Vat
.craft\commerce\web\assets\inventory\InventoryAsset
.craft\commerce\base\Purchasable::getOnSale()
. getOnPromotion()
should be used instead.craft\commerce\base\Variant::hasUnlimitedStock()
. craft\commerce\base\Purchasable::$inventoryTracked
should be used instead.craft\commerce\elements\Order::$totalSaleAmount
. $totalPromotionalAmount
should be used instead.craft\commerce\elements\Variant::getProduct()
. getOwner()
should be used instead.craft\commerce\elements\Variant::getProductId()
. getOwnerId()
should be used instead.craft\commerce\elements\Variant::setProduct()
. setOwner()
should be used instead.craft\commerce\elements\Variant::setProductId()
. setOwnerId()
should be used instead.craft\commerce\elements\conditions\products\ProductVariantHasUnlimitedStockConditionRule
. ProductVariantInventoryTrackedConditionRule
should be used instead.craft\commerce\models\Store::getCountries()
. craft\commerce\models\Store::getSettings()->getCountries()
should be used instead.craft\commerce\models\Store::getMarketAddressCondition()
. craft\commerce\models\Store::getSettings()->getMarketAddressCondition()
should be used instead.craft\commerce\models\Store::setCountries()
. craft\commerce\models\Store::getSettings()->setCountries()
should be used instead.craft\commerce\base\PurchasableInterface::getId()
.craft\commerce\base\Variant::$unlimitedStock
. craft\commerce\base\Purchasable::$inventoryTracked
can be used instead.craft\commerce\console\controllers\UpgradeController
.craft\commerce\controllers\LiteShippingController
.craft\commerce\controllers\LiteTaxController
.craft\commerce\controllers\ProductsController::actionDeleteProduct()
.craft\commerce\controllers\ProductsController::actionDuplicateProduct()
.craft\commerce\controllers\ProductsController::actionVariantIndex()
.craft\commerce\controllers\ProductsPreviewController
.craft\commerce\elements\Variant::$stock
. craft\commerce\base\Purchasable::getStock()
can be used instead.craft\commerce\helpers\Product
.craft\commerce\helpers\VariantMatrix
.craft\commerce\helpers\VariantMatrix
.craft\commerce\models\Currency
.craft\commerce\models\Discount::$baseDiscountType
.craft\commerce\models\LiteShippingSettings
.craft\commerce\models\LiteTaxSettings
.craft\commerce\models\ProductType::$hasVariants
. $maxVariants
can be used instead.craft\commerce\models\Settings::$allowCheckoutWithoutPayment
. craft\commerce\models\Store::getAllowCheckoutWithoutPayment()
can be used instead.craft\commerce\models\Settings::$allowEmptyCartOnCheckout
. craft\commerce\models\Store::getAllowEmptyCartOnCheckout()
can be used instead.craft\commerce\models\Settings::$allowPartialPaymentOnCheckout
. craft\commerce\models\Store::getAllowPartialPaymentOnCheckout()
can be used instead.craft\commerce\models\Settings::$autoSetCartShippingMethodOption
. craft\commerce\models\Store::getAutoSetCartShippingMethodOption()
can be used instead.craft\commerce\models\Settings::$autoSetNewCartAddresses
. craft\commerce\models\Store::getAutoSetNewCartAddresses()
can be used instead.craft\commerce\models\Settings::$autoSetPaymentSource
. craft\commerce\models\Store::getAutoSetPaymentSource()
can be used instead.craft\commerce\models\Settings::$emailSenderAddressPlaceholder
.craft\commerce\models\Settings::$emailSenderAddress
. craft\commerce\models\Email::$senderAddress
can be used instead.craft\commerce\models\Settings::$emailSenderNamePlaceholder
.craft\commerce\models\Settings::$emailSenderName
. craft\commerce\models\Email::$senderName
can be used instead.craft\commerce\models\Settings::$freeOrderPaymentStrategy
. craft\commerce\models\Store::getFreeOrderPaymentStrategy()
can be used instead.craft\commerce\models\Settings::$minimumTotalPriceStrategy
. craft\commerce\models\Store::getMinimumTotalPriceStrategy()
can be used instead.craft\commerce\models\Settings::$pdfPaperOrientation
. craft\commerce\models\Pdf::$paperOrientation
can be used instead.craft\commerce\models\Settings::$pdfPaperSize
. craft\commerce\models\Pdf::$paperSize
can be used instead.craft\commerce\models\Settings::$requireBillingAddressAtCheckout
. craft\commerce\models\Store::getRequireBillingAddressAtCheckout()
can be used instead.craft\commerce\models\Settings::$requireShippingAddressAtCheckout
. craft\commerce\models\Store::getRequireShippingAddressAtCheckout()
can be used instead.craft\commerce\models\Settings::$requireShippingMethodSelectionAtCheckout
. craft\commerce\models\Store::getRequireShippingMethodSelectionAtCheckout()
can be used instead.craft\commerce\models\Settings::$useBillingAddressForTax
. craft\commerce\models\Store::getUseBillingAddressForTax()
can be used instead.craft\commerce\models\Settings::$validateBusinessTaxIdasVatId
. craft\commerce\models\Store::getValidateOrganizationTaxIdasVatId()
can be used instead.craft\commerce\models\Settings::FREE_ORDER_PAYMENT_STRATEGY_COMPLETE
. craft\commerce\models\Store::FREE_ORDER_PAYMENT_STRATEGY_COMPLETE
can be used instead.craft\commerce\models\Settings::FREE_ORDER_PAYMENT_STRATEGY_PROCESS
. craft\commerce\models\Store::FREE_ORDER_PAYMENT_STRATEGY_PROCESS
can be used instead.craft\commerce\models\Settings::MINIMUM_TOTAL_PRICE_STRATEGY_DEFAULT
. craft\commerce\models\Store::MINIMUM_TOTAL_PRICE_STRATEGY_DEFAULT
can be used instead.craft\commerce\models\Settings::MINIMUM_TOTAL_PRICE_STRATEGY_SHIPPING
. craft\commerce\models\Store::MINIMUM_TOTAL_PRICE_STRATEGY_SHIPPING
can be used instead.craft\commerce\models\Settings::MINIMUM_TOTAL_PRICE_STRATEGY_ZERO
. craft\commerce\models\Store::MINIMUM_TOTAL_PRICE_STRATEGY_ZERO
can be used instead.craft\commerce\models\ShippingRule::$maxQty
.craft\commerce\models\ShippingRule::$maxTotal
.craft\commerce\models\ShippingRule::$maxWeight
.craft\commerce\models\ShippingRule::$minMaxTotalType
.craft\commerce\models\ShippingRule::$minQty
.craft\commerce\models\ShippingRule::$minTotal
.craft\commerce\models\ShippingRule::$minWeight
.craft\commerce\models\ShippingRule::$shippingZoneId
.craft\commerce\models\ShippingRule::getShippingZone()
.craft\commerce\records\Discount::BASE_DISCOUNT_TYPE_PERCENT_ITEMS_DISCOUNTED
.craft\commerce\records\Discount::BASE_DISCOUNT_TYPE_PERCENT_ITEMS
.craft\commerce\records\Discount::BASE_DISCOUNT_TYPE_PERCENT_TOTAL_DISCOUNTED
.craft\commerce\records\Discount::BASE_DISCOUNT_TYPE_PERCENT_TOTAL
.craft\commerce\records\Discount::BASE_DISCOUNT_TYPE_VALUE
.craft\commerce\records\ShippingRule::TYPE_MIN_MAX_TOTAL_SALEPRICE_WITH_DISCOUNTS
.craft\commerce\records\ShippingRule::TYPE_MIN_MAX_TOTAL_SALEPRICE
.craft\commerce\records\ShippingRule::getShippingZone()
.craft\commerce\services\PaymentSources::getAllGatewayPaymentSourcesByUserId()
.craft\commerce\services\PaymentSources::getAllPaymentSourcesByUserId()
.craft\commerce\services\TaxRates::getTaxRatesForZone()
.craft\commerce\validators\StoreCountryValidator
.craft\commerce\widgets\Orders::$orderStatusId
. $orderStatuses
can be used instead.craft\commerce\base\PurchasableInterface
now extends craft\base\ElementInterface
.craft\commerce\elements\Product::getVariants()
now returns a collection.craft\commerce\elements\Variant
now implements craft\base\NestedElementTrait
.craft\commerce\elements\db\PurchasableQuery
is now abstract.craft\commerce\services\Discounts::getAllDiscounts()
now returns a collection.craft\commerce\services\Gateways::getAllCustomerEnabledGateways()
now returns a collection.craft\commerce\services\Gateways::getAllGateways()
now returns a collection.craft\commerce\services\PaymentSources::getAllGatewayPaymentSourcesByCustomerId()
now returns a collection.craft\commerce\services\PaymentSources::getAllPaymentSourcesByCustomerId()
now returns a collection.craft\commerce\services\PaymentSources::getAllPaymentSourcesByGatewayId()
now returns a collection.craft\commerce\services\ShippingCategories::getAllShippingCategories()
now returns a collection.craft\commerce\services\ShippingMethods::getAllShippingMethods()
now returns a collection.craft\commerce\services\ShippingRules::getAllShippingRules()
now returns a collection.craft\commerce\services\ShippingRules::getAllShippingRulesByShippingMethodId()
now returns a collection.craft\commerce\services\TaxRates::getAllTaxRates()
now returns a collection.craft\commerce\services\TaxRates::getTaxRatesByTaxZoneId()
now returns a collection.craft\commerce\services\TaxZones::getAllTaxZones()
now returns a collection.craft\commerce\base\Purchasable::tableAttributeHtml()
to attributeHtml()
.craft\commerce\controllers\BaseStoreSettingsController
to BaseStoreManagementController
.craft\commerce\controllers\StoreSettingsController
to StoreManagementController
.craft\commerce\elements\Subscription::tableAttributeHtml()
to attributeHtml()
.craft\commerce\elements\Variant::tableAttributeHtml()
to attributeHtml()
.craft\commerce\elements\traits\OrderElementTrait::tableAttributeHtml()
to attributeHtml()
.craft\commerce\models\ShippingMethod::isLite
.craft\commerce\models\ShippingRule::isLite
.craft\commerce\models\TaxRate::isLite
.craft\commerce\models\LiteShippingSettings
.craft\commerce\models\LiteTaxSettings
.craft\commerce\controllers\LiteShippingController
.craft\commerce\controllers\LiteTaxController
.craft\commerce\services\ShippingMethods::getLiteShippingMethod()
. getAllShippingMethods()
should be used instead.craft\commerce\services\ShippingMethods::saveLiteShippingMethod()
. saveShippingMethod()
should be used instead.craft\commerce\services\ShippingRules::getLiteShippingRule()
. getAllShippingRules()
should be used instead.craft\commerce\services\ShippingRules::saveLiteShippingRule()
. saveShippingRule()
should be used instead.craft\commerce\services\TaxRates::getLiteTaxRate()
. getAllTaxRates()
should be used instead.craft\commerce\services\TaxRates::saveLiteTaxRate()
. saveTaxRate()
should be used instead.commerce/upgrade
command on PostgreSQL. (#3380)