oxid-academy/product-promotion-banner

Shows promotion banner on start page for a selected product.

dev-main 2024-04-18 13:03 UTC

This package is auto-updated.

Last update: 2024-04-18 13:15:30 UTC


README

This package is part of the OXID Academy Training Development Basics. Please see our website for current training offers in german or english language.

Description

This extension is an OXID eShop Module. It displays a banner on the start page to promote a specific product. The product is selected in the module settings by entering its item number. As soon as the stock of the selected product drops under ten items, the setting is reset and an info is written to the source/log/oxideshop.log.

Installation

In your shop's root directory, execute the following Composer command:

composer require oxid-academy/product-promotion-banner

Usage

Activation

You can activate the module in your OXID eShop administration area or via OE Console by running the command oe:module:activate on your CLI:

./vendor/bin/oe-console oe:module:activate id

Configuration

You must provide an existing item number in the module settings.

Troubleshooting

Banner Not Displaying

If the banner is not displaying, verify the following:

  • Your module is active.
  • You are on the start page of your shop.
  • An existing item number is provided in the module settings.
  • The matching product is active and available for the current user.

If you still encounter any issues, clear your source/tmp directory. You can do this by running the oe:cache:clear command:

./vendor/bin/oe-console oe:cache:clear

No Log Entries

If you do not see corresponding entries in source/log/oxideshop.log, open your source/config.inc.php file and change your log level to info at least:

/**
 * String PSR3 log level Psr\Log\LogLevel
 */
$this->sLogLevel = 'info';