Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Allow late static binding in ProductController to overwrite AJAX_CART_TYPE_NUM #705

@helmutstrasser

Description

@helmutstrasser

Bug Report

Current Behavior
AJAX_CART_TYPE_NUM sets the typeNum to 2278001. For cases where two different carts are needed, another typeNum has to be registered. To accomplish that, one can extend the ProductController just to define another AJAX_CART_TYPE_NUM and use the original methods. But that only works, if the comparison in line 107 (v10) does not read self::AJAX_CART_TYPE_NUM but static::AJAX_CART_TYPE_NUM.

Expected behavior/output
The ProductController respects the custom AJAX_CART_TYPE_NUM when ProductController has been extended to change self::AJAX_CART_TYPE_NUM.

Environment

  • TYPO3 version: 12
  • cart version: 10
  • Is your TYPO3 installation set up with Composer (Composer Mode): yes
  • OS: OSX

Possible Solution
I will submit a pull request

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions