Skip to content

Commit

Permalink
Moved "Measure" model from "Properties for Shopaholic" plugin. Added …
Browse files Browse the repository at this point in the history
…weight, height, length, width, measure_of_unit, quantity_in_unit fields to Offer model. Added new global settings: size unit measure, weight unit measure, piece unit measure.
  • Loading branch information
Andrey Kharanenka committed Feb 12, 2020
1 parent 49da2cd commit d8da026
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions classes/item/OfferItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,7 @@ protected function getTaxListAttribute()

/**
* Get measure of one unit
* @return \Lovata\Shopaholic\Classes\Item\MeasureItem
*/
protected function getMeasureOfUnitAttribute()
{
Expand All @@ -439,6 +440,7 @@ protected function getMeasureOfUnitAttribute()

/**
* Get dimensions unit measure
* @return \Lovata\Shopaholic\Classes\Item\MeasureItem
*/
protected function getDimensionsMeasureAttribute()
{
Expand All @@ -449,6 +451,7 @@ protected function getDimensionsMeasureAttribute()

/**
* Get weight unit measure
* @return \Lovata\Shopaholic\Classes\Item\MeasureItem
*/
protected function getWeightMeasureAttribute()
{
Expand Down

0 comments on commit d8da026

Please sign in to comment.