Fantasytoys Produsul Săptămânii
This plugin adds a widget to your sidebar that shows one product a week from the recommended products of the fantasytoys.ro shop. The widget card shows: the week number, the product photo with the discount badge, the product name, the regular and the discounted price, with the lowest price from the
This plugin adds a widget to your sidebar that shows one product a week from the recommended products of the fantasytoys.ro shop.
The widget card shows:
- the week number,
- the product photo with the discount badge,
- the product name,
- the regular and the discounted price, with the lowest price from the 30 days before the discount,
- a “View product” button linking to the product page in the shop.
The product is picked automatically from the recommended products on the shop’s home page and stays the same for the whole week (ISO week, site timezone). A new product appears every Monday – no configuration needed.
Features
- Classic widget, also available in the block-based widget editor (Legacy Widget block).
- Shortcode [fantasytoys_produsul_saptamanii] for posts, pages and block themes without a sidebar.
- Image, prices, week number and button can be turned on or off.
- Data is cached (prices refreshed every 6 hours), so the shop is not queried on every page view.
- If the shop is temporarily unavailable, the last successfully loaded product is shown.
- Lightweight: no JavaScript, one small stylesheet loaded only where the widget is displayed.
- Translation ready.
External services
This plugin connects to fantasytoys.ro, the online shop whose products it displays. Without this connection the plugin cannot work.
- What is requested: the public home page of the shop ( https://fantasytoys.ro/ ), to read the name, link, image and prices of the recommended products.
- When: on the server side, when a page containing the widget or shortcode is displayed and the cached data is older than 6 hours, the week has changed, or 10 minutes after a failed request.