Widgets from 4.8 5.1

ArticleBox

New widget was created to display article box in different lists (category article list, wish list, basket article list, etc.).

It can be loaded in template with widget include:

[{oxid_include_widget cl="oxwArticleBox" nocookie=1 _parent=$oView->getClassName() _navurlparams=$oViewConf->getNavUrlParams() _object=$oArticle skipESIforUser=1 <parameters>}]

Specific parameters for widget:

sWidgetType=product
anid=$oArticle->getId()
iLinkType=$oArticle->getLinkType()
inlist=$oArticle->isInList()

Parameters for article lists with different view types (widget/product/list.tpl) (depending on your template design not all parameters are required):

sListType=listitem_$type
recommid=$recommid
owishid=$owishid
blDisableToCart=$blDisableToCart
isVatIncluded=$oView->isVatIncluded()
showMainLink=$showMainLink
toBasketFunction=$toBasketFunction
removeFunction=$removeFunction
altproduct=$altproduct
iIndex=$iIndex

Parameters for article list of “Top of the Shop”, “Related products”, Accessories” and “Have you seen” (widget/product/boxproducts.tpl):

sListType=boxproduct
isVatIncluded=$oView->isVatIncluded()
iProdCount=$iProdCount

Parameters for product compare (page/compare/compare.tpl):

sListType=compareitem
altproduct=$altproduct
iIndex=$smarty.foreach.comparelist.iteration

Parameters for “Bargain items” (widget/product/bargainitems.tpl):

sListType=bargainitem
isVatIncluded=$oView->isVatIncluded()
rsslinks=$rsslinks
iIteration=$smarty.foreach.bargainList.iteration

Article list with view types is using existing widget templates with additional changes made:

widget/product/listitem_grid.tpl
widget/product/listitem_infogrid.tpl
widget/product/listitem_line.tpl

“Top of the Shop”, “Related products”, Accessories” and “Have you seen” is using new template:

widget/product/boxproduct.tpl

Code for this template was moved from existing template with additional changes made:

widget/product/boxproducts.tpl

“Bargain items” is using new template:

widget/product/bargainitem.tpl

Code for this template was moved from existing template with additional changes made:

widget/product/bargainitems.tpl

Product compare list is using existing template with additional changes made:

widget/product/compareitem.tpl

This template was moved from:

page/compare/inc/compareitem.tpl

ArticleDetails

New widget was created to display article details.

It can be loaded in template with widget include:

[{oxid_include_widget cl="oxwArticleDetails" nocookie=1 _parent=$oView->getClassName() _navurlparams=$oViewConf->getNavUrlParams() force_sid=$force_sid _object=$oView->getProduct() skipESIforUser=1 <parameters>}]

Specific parameters for widget:

anid=$oViewConf->getActArticleId()
iPriceAlarmStatus=$oView->getPriceAlarmStatus()
sorting=$oView->getSortingParameters()

This widget is using new template:

widget/product/details.tpl

Code for this template was moved from existing template with additional changes made:

page/details/details.tpl

Rating

New widget was created to display article or recommendation list rating.

It can be loaded in template with widget include:

[{oxid_include_widget cl="oxwRating" nocookie=1 _parent=$oViewConf->getTopActiveClassName() force_sid=$force_sid skipESIforUser=1 <parameters>}]

Specific parameters for widget:

blCanRate=$oView->canRate()
dRatingCount=$oView->getRatingCount()
dRatingValue=$oView->getRatingValue()

Parameters for article rating:

sRateUrl=$oArticle->getLink()
anid=$oArticle->oxarticles__oxnid->value

Parameters for recommendation list rating:

sRateUrl=$oRecommList->getLink()
recommid=$oRecommList->getId()

This widget is using existing template with additional changes made:

widget/reviews/rating.tpl

Review

New widget was created to display article or recommendation list reviews.

It can be loaded in template with widget include:

[{oxid_include_widget cl="oxwReview" nocookie=1 _parent=$oViewConf->getTopActiveClassName() force_sid=$force_sid skipESIforUser=1 <parameters>}]

Specific parameters for widget:

canrate=$oView->canRate() – rating widget is loaded inside review widget

Parameters for article reviews in article page:

type=oxarticle
anid=$oArticle->oxarticles__oxnid->value
aid=$oArticle->oxarticles__oxid->value

Parameters for article reviews in reviews page:

type=oxarticle
anid=$oArticle->oxarticles__oxnid->value
aid=$oArticle->oxarticles__oxid->value
reviewuserhash=$oView->getReviewUserHash()

Parameters for recommendation list reviews:

type=oxrecommlist
recommid=$oRecommList->getId()

This widget is using existing template with additional changes made:

widget/reviews/reviews.tpl


0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *