Jump to content

Edit History

El Patron

El Patron

1 hour ago, zunxunz said:

Thank you for your suggestion. After some more research I've opted for the solution below in stead. This prevents adding new groups to all carriers, in stead of removing them afterwards.

It would be good if this would become an 'optional' setting in Prestashop.

Override the Group class.

good job!  it's a great idea to create feature request, I should do this more often or at least once.  :)

 

 

How to open a Feature Request on PrestaShop GitHub

  • Go to the PrestaShop Issues page.
  • Click the green “New issue” button (top right).

You’ll see a list of templates:

  • Bug report
  • Feature request
  • Improvement suggestion
  • (sometimes “feature request” and “improvement” are merged depending on their repo settings).

Select Feature request.

If it doesn’t appear, choose “Open a blank issue” and then label it yourself as Feature request.

Fill in the template:

  • Title: Short, clear description of the feature.
  • Problem: Why it’s needed / what it solves.
  • Proposed solution: How it could work.
  • Alternatives: If any.
  • Additional details: Screenshots, links, use cases.

Submit the issue.

El Patron

El Patron

1 hour ago, zunxunz said:

Thank you for your suggestion. After some more research I've opted for the solution below in stead. This prevents adding new groups to all carriers, in stead of removing them afterwards.

It would be good if this would become an 'optional' setting in Prestashop.

Override the Group class.

<?php

class Group extends GroupCore
{

    public function add($autodate = true, $null_values = false)
    {
        Configuration::updateGlobalValue('PS_GROUP_FEATURE_ACTIVE', '1');
        if (parent::add($autodate, $null_values)) {
            Category::setNewGroupForHome((int) $this->id);
            // Carrier::assignGroupToAllCarriers((int) $this->id);


            return true;
        }

        return false;
    }

}

 

good job!  it's a great idea to create feature request, I should do this more often or at least once.  :)

<p>To request a new feature on PrestaShop GitHub, here’s the process:</p>

<ol>
  <li>Go to the <a href="https://github.com/PrestaShop/PrestaShop/issues">PrestaShop Issues page</a>.</li>
  <li>Click the green <strong>“New issue”</strong> button (top right).</li>
  <li>Select the <strong>Feature request</strong> template.<br>
      – If you don’t see it, choose “Open a blank issue” and later add the label <em>Feature request</em>.</li>
  <li>Fill in the template with:<br><strong>Title:</strong> Short clear description<br><strong>Problem:</strong> Why it’s needed / what it solves<br><strong>Proposed solution:</strong> How it could work<br><strong>Alternatives:</strong> Any workarounds<br><strong>Additional details:</strong> Screenshots, examples, use cases</li>
  <li>Submit the issue.</li>
  <li>(Optional) Upvote similar requests with 👍 so the maintainers see community demand.</li>
</ol>

<p>👉 Direct link to open a new feature request: <a href="https://github.com/PrestaShop/PrestaShop/issues/new?assignees=&labels=Feature+request&template=feature_request.yml">Click here</a></p>

 

×
×
  • Create New...