| @@ 178-185 (lines=8) @@ | ||
| 175 | * |
|
| 176 | * @return string product number |
|
| 177 | */ |
|
| 178 | public function getProductNumber() |
|
| 179 | { |
|
| 180 | if ($this->getProduct()->get('has_variation')) { |
|
| 181 | return $this->getProduct()->get("number").'.'.$this->getProductVariation()->getNumber(); |
|
| 182 | } else { |
|
| 183 | return $this->getProduct()->get("number"); |
|
| 184 | } |
|
| 185 | } |
|
| 186 | ||
| 187 | /** |
|
| 188 | * Returns name of product |
|
| @@ 192-199 (lines=8) @@ | ||
| 189 | * |
|
| 190 | * @return string name of product |
|
| 191 | */ |
|
| 192 | public function getProductName() |
|
| 193 | { |
|
| 194 | if ($this->getProduct()->get('has_variation')) { |
|
| 195 | return $this->getProduct()->get("name").' - '.$this->getProductVariation()->getName(); |
|
| 196 | } else { |
|
| 197 | return $this->getProduct()->get("name"); |
|
| 198 | } |
|
| 199 | } |
|
| 200 | ||
| 201 | /** |
|
| 202 | * Gets the tax percent on the individual product |
|
| @@ 193-201 (lines=9) @@ | ||
| 190 | * |
|
| 191 | * @return string product number |
|
| 192 | */ |
|
| 193 | public function getProductNumber() |
|
| 194 | { |
|
| 195 | if ($this->getProduct()->get('has_variation')) { |
|
| 196 | return $this->getProduct()->get("number").'.'.$this->getProductVariation()->getNumber(); |
|
| 197 | } else { |
|
| 198 | return $this->getProduct()->get("number"); |
|
| 199 | } |
|
| 200 | } |
|
| 201 | ||
| 202 | /** |
|
| 203 | * Returns name of product |
|
| 204 | * |
|
| @@ 207-215 (lines=9) @@ | ||
| 204 | * |
|
| 205 | * @return string name of product |
|
| 206 | */ |
|
| 207 | public function getProductName() |
|
| 208 | { |
|
| 209 | if ($this->getProduct()->get('has_variation')) { |
|
| 210 | return $this->getProduct()->get("name").' - '.$this->getProductVariation()->getName(); |
|
| 211 | } else { |
|
| 212 | return $this->getProduct()->get("name"); |
|
| 213 | } |
|
| 214 | } |
|
| 215 | ||
| 216 | ||
| 217 | /** |
|
| 218 | * Gets price without taxes |
|