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
|
@@ 385-394 (lines=10) @@
|
| 382 |
|
return $builder; |
| 383 |
|
} |
| 384 |
|
|
| 385 |
|
public function getUrlForProduct($productId, $shopId = null) |
| 386 |
|
{ |
| 387 |
|
$shopId = (int) $shopId; |
| 388 |
|
$url = $this->baseProductUrl . $productId; |
| 389 |
|
if ($shopId > 0) { |
| 390 |
|
$url = $url . '/shId/' . $shopId; |
| 391 |
|
} |
| 392 |
|
|
| 393 |
|
return $url; |
| 394 |
|
} |
| 395 |
|
|
| 396 |
|
/** |
| 397 |
|
* Select attributes which are already mapped to marketplace |