Components/Translations/ProductTranslator.php 1 location
|
@@ 207-216 (lines=10) @@
|
| 204 |
|
return true; |
| 205 |
|
} |
| 206 |
|
|
| 207 |
|
public function getUrlForProduct($productId, $shopId = null) |
| 208 |
|
{ |
| 209 |
|
$shopId = (int) $shopId; |
| 210 |
|
$url = $this->baseProductUrl . $productId; |
| 211 |
|
if ($shopId > 0) { |
| 212 |
|
$url = $url . '/shId/' . $shopId; |
| 213 |
|
} |
| 214 |
|
|
| 215 |
|
return $url; |
| 216 |
|
} |
| 217 |
|
|
| 218 |
|
private function getShopRepository() |
| 219 |
|
{ |
Components/ProductQuery/LocalProductQuery.php 1 location
|
@@ 409-418 (lines=10) @@
|
| 406 |
|
return $builder; |
| 407 |
|
} |
| 408 |
|
|
| 409 |
|
public function getUrlForProduct($productId, $shopId = null) |
| 410 |
|
{ |
| 411 |
|
$shopId = (int) $shopId; |
| 412 |
|
$url = $this->baseProductUrl . $productId; |
| 413 |
|
if ($shopId > 0) { |
| 414 |
|
$url = $url . '/shId/' . $shopId; |
| 415 |
|
} |
| 416 |
|
|
| 417 |
|
return $url; |
| 418 |
|
} |
| 419 |
|
|
| 420 |
|
/** |
| 421 |
|
* Select attributes which are already mapped to marketplace |