prestarocket-agence / classic-rocket

Classic Rocket is a rework of "classic theme". It has been built keeping in mind : performance, accessibility and SEO.
https://demoprestashop.prestarocket.com/
Other
230 stars 127 forks source link

Add combination option for JSON-LD #70

Closed ghost closed 2 years ago

ghost commented 5 years ago

Combination options for product JSON-LD

Main flaws: Price for each combination - any ideas? For now price is fixed as main product price. URL depend on combination - now is fixed as main product url.

Considerations: home_default image size should be replaced by large_default

prestarocket commented 5 years ago

PR on branch develop plz

bhavikvaghani commented 5 years ago

Have you tested Product Comment data? I think it's not working.

ghost commented 5 years ago

@bhavikvaghani not tested yet with 1.7.6 (lack of time) feel free to add it! :)

bhavikvaghani commented 4 years ago
{if isset($nbComments) && $nbComments && $ratings.avg}"aggregateRating": {
        "@type": "AggregateRating",
        "ratingValue": "{$ratings.avg|round:1|escape:'html':'UTF-8'}",
        "reviewCount": "{$nbComments|escape:'html':'UTF-8'}"
    },{/if}

This data are available for it's respective .tpl files so I think it's not possible.