Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
MetaGer
Commits
519cc6d7
Commit
519cc6d7
authored
Sep 20, 2016
by
Dominik Hebeler
Browse files
Versandkosten hinzugefügt
parent
bbe2d647
Changes
3
Show whitespace changes
Inline
Side-by-side
app/Models/Result.php
View file @
519cc6d7
...
...
@@ -27,7 +27,7 @@ class Result
public
$rank
;
# Das Ranking für das Ergebnis
# Erstellt ein neues Ergebnis
public
function
__construct
(
$provider
,
$titel
,
$link
,
$anzeigeLink
,
$descr
,
$gefVon
,
$sourceRank
,
$partnershop
=
false
,
$image
=
""
,
$price
=
0
)
public
function
__construct
(
$provider
,
$titel
,
$link
,
$anzeigeLink
,
$descr
,
$gefVon
,
$sourceRank
,
$partnershop
=
false
,
$image
=
""
,
$price
=
0
,
$additionalInformation
=
[]
)
{
$provider
=
simplexml_load_string
(
$provider
);
$this
->
titel
=
strip_tags
(
trim
(
$titel
));
...
...
@@ -61,6 +61,7 @@ class Result
$this
->
partnershop
=
$partnershop
;
$this
->
image
=
$image
;
$this
->
price
=
$price
;
$this
->
additionalInformation
=
$additionalInformation
;
}
/* Ranked das Ergebnis nach folgenden Aspekten:
...
...
app/Models/parserSkripte/Rlvproduct.php
View file @
519cc6d7
...
...
@@ -33,7 +33,8 @@ class RlvProduct extends Searchengine
$counter
,
$partnershop
=
false
,
$image
,
$result
[
"price"
]
$result
[
"price"
],
[
'shipping'
=>
$result
[
"distribution"
]]
);
}
}
...
...
resources/views/layouts/products.blade.php
View file @
519cc6d7
...
...
@@ -11,7 +11,7 @@
<img
src=
"{{ $metager->getImageProxyLink($product["
image
"])
}}"
/>
<p
class=
"title"
>
{{$product["titel"]}}
</p>
<p
class=
"shop"
>
{{$product["gefVon"]}}
</p>
<p
class=
"shipping"
>
Versand gratis
</p>
<p
class=
"shipping"
>
{{$product["additionalInformation"]["shipping"]}}
</p>
</a>
</div>
</li>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment