Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Show Table of Contents

Placeholders for Blade templates

In this article you can find the system placeholders for affiliate-toolkit template engine. Please note that you can use all php functions in blade engine and you are not limited to this list.

List of placeholders

You can see the column "object". It's required that you are using the correct loop around your placeholder.

Object $product

Please be sure that you are using this loop in your template:

<!--header-->
@foreach ($products as $product)
    <!--product content-->
    {{$formatter->get_title($product)}}
@endforeach
<!--footer-->

Object $offer

Please be sure that you are using this loop in your template:

<!--header-->
@foreach ($products as $product)
    <!--product content-->
    {{$formatter->get_title($product)}}

    @foreach($formatter->get_offers($product, true) as $offer)
        <!-- offer content -->
        {{$formatter->get_offer_price($offer, $translator->get_price())}}
    @endforeach
@endforeach
<!--footer-->

Object $image

Please be sure that you are using this loop in your template:

<!--header-->
@foreach ($products as $product)
    <!--product content-->
    {{$formatter->get_title($product)}}

    @foreach($formatter->get_images($product, true) as $image)
        <!-- image content -->
        {!!$formatter->get_image_mediumimage($product, $image)!!}
    @endforeach
@endforeach
<!--footer-->
Updated: 20. February 2023
Still not using affiliate-toolkit?
Setup takes less than 5 minutes and you can start to import first products!
Learn more about the packagesDownload FREE Version
Still need help?
Submit Your Question
Please give us the details, our support team will get back to you.
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram