Add the possibility to repeat order of other users and add unpublished product

Created on 29 April 2021, over 4 years ago
Updated 27 April 2025, 3 months ago

Problem/Motivation

On my e-commerce I use this module for repeat an order. In my case I have users linked together to form teams and an user must be able to repeat an order from a member of his team.
This feature is very specific but I think it might be good to allow copying of any order. Only for trusted roles.

I need to add unpublished product for some role.

Update 1 :
I need to authorize or not each variations when repeat order per user.
My users have a taxonomy term (which is also on the product variation) and when a user repeat an order I need to check the concordance of these fields.

Steps to reproduce

Ø

Proposed resolution

Add permission for enable repeat on any order.

Update 1:
Add a hook alter before add to cart with a boolean. Default this bool is true and a module can declare this hook_alter to change this boolean.

Remaining tasks

Create permission.
Update repeatOrder() function to take into account the feature.

User interface changes

Ø

API changes

Ø

Data model changes

Ø

Feature request
Status

Needs review

Version

1.0

Component

Code

Created by

🇫🇷France MΙΧALIΣ Nantes

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024