Did Prestashop Display
WordPress plugin

Show Prestashop products in your WordPress. Dynamic banner generator.

Slider

Basic shortcode

To show the products it will be done through a simple shortcode.
The Shortcode will have some mandatory parameters and other optional parameters configured by default, which can be added and modified by default values.

An example of a basic shortcode ...

[dp_product id=15632 domain=0]

Description of the parameters ...

ParametersDescriptionMandatory / OptionalDefault value
idIt is the id of the product of your Prestashop.Obliged
domainIt is the key that has been created for this data source. You can have several data sources (PRO Version), so it is necessary to indicate which data source (Prestashop) we refer to. This key is indicated in the configuration.Obliged

Shortcode and all its parameters

In this table you will see all the shortcode configuration possibilities. List of parameters for the shortcode.

[ dp_product id=XXX type=X domain=X lang=X name="Text" description="text" button="Text" with_taxes=X with_price=X track="X" currency=X ]
ParameterDescriptionMandatory / OptionalDefault value
idIt is the id of the product of your Prestashop.Obliged
domainIt is the key that has been created for this data source. You can have several data sources (PRO Version), so it is necessary to indicate which data source (Prestashop) we refer to. This key is indicated in the configuration.Obliged
type The type of display. Below are the current available displays.

a = banner display..
b = link type display.
Optionala
lang Here you can determine the language of the font (Prestahop).

The logic is as follows:


- By default it searches the current language of the wordppress.
- In the event that the current language does not exist in the Prestashop, it will return the language with the lowest Prestashop id.
- If a specific language id is placed, the one specified in the language will appear as long as it exists and is active in Prestashop.

It must be taken into account that the language must be active. In the configuration we can see or check if they are active and what languages the Prestashop has.shop.
OptionalWordPress default language (iso_code). Example: es, en, de, fr, etc.
nameThe name of the product, in the case of using this parameter, will be replaced by the original name of the product.OptionalThe product name
descriptionA brief description of the banner. In the case of using this parameter it substitutes the original description of the producOpcionalThe brief description of the product.
buttonYou can customize the text of the action button. In case the product is out of stock, you have to find the text in the translator.Optional"More information"
with_taxes Determine if you want to show taxes.

- 0 = Does not show taxes in prices.
- 1 = Show price with tax.
Optional1
with_price To show prices..

- 0 = Does not show the price.
- 1 = Show the price.
Optional1
currencyThe currency icon.Optional
trackAvailable in the PRO version.
You can add a Track to the destination link.
Optional

Example of using optional parameters...