Skip to content

ivoba-oxid/ivoba-action-anywhere

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 

Actions everywhere module for Oxid eShop

This module makes your actions available in all templates that have access to oxViewConf.

This module will be obsolete with OXID eShop v6 as it will have this buildin: https://www.proudcommerce.com/OXID-Blog/Globales-Aktions-Widget.html

Installation

  1. Copy "copy_this" into your shop root directory.
  2. empty /tmp directory.
  3. activate the module under "Erweiterungen->Module->Ivo Bathke: ActionEverywhere".
  4. clear the cache

Requirements

  • UTF-8
  • PHP >= 5.6
  • Oxid eShop >= CE 4.9.0

Usage

Create a new action, give it an id and title and assign some products.

Then in template fetch the products from the action:

[{if $oViewConf->getActionArticles('neue-aktion')|@count > 0}]
      [{assign var="myActionArticles" value=$oViewConf->getActionArticles('neue-aktion') }]
      [{include file="widget/product/list.tpl" type=grid head=$oViewConf->getActionTitle('neue-aktion') listId="myAction" products=$myActionArticles showMainLink=true}]
[{/if}]

Todo

  • dont allow to change ids of standard actions like 'oxnewest'

License MIT

© Ivo Bathke

About

Use Actions anywhere in your OXID eShop

Resources

Stars

Watchers

Forks

Packages

No packages published