Download the PHP package reevoo/reevoomark-php-api without Composer
On this page you can find all versions of the php package reevoo/reevoomark-php-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download reevoo/reevoomark-php-api
More information about reevoo/reevoomark-php-api
Files in reevoo/reevoomark-php-api
Package reevoomark-php-api
Short Description The reevoomark-php-api is a PHP tag library for Reevoo Ratings & Reviews customers who want to quickly and easily integrate Reevoo content in to their sites server-side.
License MIT
Informations about the package reevoomark-php-api
reevoomark-php-api
Description
The reevoomark-php-api is a PHP tag library for Reevoo Ratings & Reviews customers who want to quickly and easily integrate Reevoo content in to their sites server-side.
Other Languages
Tag libraries are also available for .NET and Java.
Features
- Server-side inclusion of Reevoo content.
- Included CSS for display of Reevoo content.
- Server-side caching of content that respects the cache control rules set by Reevoo.
Support
For Reevoo Ratings & Reviews customers, support can be obtained by emailing [email protected].
There is also a bug tracker available.
Installation
Get Composer from here and install it.
Add the reevoo tag lib to your composer.json like so:
and then do:
Implementation
Require the PHP library (make sure you use the correct path to the reevoo_mark.php file) and create new instance of ReevooMark class with your TRKREF and path to your cache directory (or false if you do not want to use cache) as a contructor attributes:
ReevooMark supports multiple retailers content on the same page, it such case you can specify multiple TRKREFs in the constructor:
To include the relevant CSS call the method inside section of your page:
To include the relevant JavaScript call the method before the closing tag your page:
Alternate Implementation
The standard implementation calls echo internally so is less flexible if you want to use the data in contexts other than your pages.
Alternatively you may use the ReevooMarkApi
class that works in a similar way to ReevooMark
but returns values directly eg:
Standard Badges
Product Badge
To render "product badges" you can use any of the examples below. The is compulsory but and are optional. Specify only if you are using multiple TRKREFs in constructor.
Conversations Badge
To render "conversations badges" you can use any of the examples below. The is compulsory but and are optional. Specify only if you are using multiple TRKREFs in constructor.
Series Badges
Product Badges
To render "product series badges" you can use any of the examples below. The is compulsory and should be set to the series id. The and are optional. Specify only if you are using multiple TRKREFs in constructor.
Conversations Badges
To render "conversation series badges" you can use any of the examples below. The is compulsory and should be set to the series id. The and are optional. Specify only if you are using multiple TRKREFs in constructor.
Overall Service Rating Badges
To render "Overall Service Rating badges" you can use any of the examples below. The and are optional. Specify only if you are using multiple TRKREFs in constructor.
Customer Service Rating Badges
To render "Customer Service Rating badges" you can use any of the examples below. The and are optional. Specify only if you are using multiple TRKREFs in constructor.
Delivery Rating Badges
To render "Delivery Rating badges" you can use any of the examples below. The and are optional. Specify only if you are using multiple TRKREFs in constructor.
Embedded Product Review Content
To render "embedded review content" you can use any of the examples below. The attribute is compulsory but , , and are optional. Any combination of the optional attributes is possible. Specify only if you are using multiple TRKREFs in constructor.
If you set the attribute to true, the embedded reviews will show pagination links.
If no reviews are available we will display default message in language specified by your . If you would like to specify your own message you can pass attribute with value false and use return value of the method that is false in this case.
Price Offers Widget
To render "price offers" you can use the example below. Please provide the attribute. The attribute is only compulsory if you are using multiple TRKREFs in constructor.
If there are no offers to display you can display your own custom message as in the example below:
Embedded Customer Experience Review Content
To render "embedded customer experience review content" you can use any of the examples below. The , , and a attributes are optional. Any combination of the optional attributes is possible. Specify only if you are using multiple TRKREFs in constructor.
If you set the attribute to true, the embedded reviews will show pagination links.
If no reviews are available we will display default message in language specified by your . If you would like to specify your own message you can pass attribute with value false and use return value of the method that is false in this case.
Embedded Conversation Content
To render "embedded conversations content" you can use any of the examples below. The attribute is compulsory but and are optional. Any combination of the optional attributes is possible. Specify only if you are using multiple TRKREFs in constructor.
If no conversations are available we will display default message in language specified by your . If you would like to specify your own message you can pass attribute with value false and use return value of the method that is false in this case.
Tracking
If you display the reviews in a tabbed display, or otherwise require visitors to your site to click an element before seeing the embedded reviews, add the following onclick attribute to track the clickthroughs:
If your trkref value is for example "REV" you would add:
If your trkref value is for example "PIU" you would add:
See how in examples above you need to put your trkref value as a suffix to the part. Also remember to replace by the sku of the actual product.
Purchase Tracking
If your site includes online shopping functionality you can use method on your "Order Confirmation Page".
- attribute value is with a comma separated list of all the skus that have been purchased as part of the order.
- attribute value is total price of the order, you don't need to include currency symbol.
- attribute value you need to specify only if you are using multiple TRKREFs in constructor.
All this tracking information will be available to you on your Reevoo Analytics account.
Propensity to Buy Tracking
This type of tracking is used as a substitute of purchase tracking for retailers that do not offer online purchase in their stores and therefore do not have an order confirmation page.
These retailers can use method which can be added to any page they wish on the site.
- attribute value is the type of event that you want to track, can be anything you want like "user visited the buy now page" or "user requested brochure" or "user requested a test drive", etc...
- attribute is optional, you only have to include it if you want to link the tracking event to a specific product SKU
- attribute value you need to specify only if you are using multiple TRKREFs in constructor.
All this tracking information will be available to you on your Google Analytics account.
More examples
Click here for a full page example of implementation in PHP.
License
This software is released under the MIT license. Only certified Reevoo partners are licensed to display Reevoo content on their sites. Contact [email protected] for more information.
(The MIT License)
Copyright (c) 2008 - 2014:
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.