• Hello.

    I have question how to edit manage subscription page in code. For example i want to change place of mailpoet-submit-success text. Im trying edit manage_subscription.html file, but nothing change.
    Im trying edit return $this->templateRenderer->render('subscription/manage_subscription.html', $templateData); for example manage_subscription2.html but nothing changes. Where is Manage Subscription code.

    And how to add description in list view.

    $segments = array_map(function (SegmentEntity $segment) use ($subscribedSegmentIds) {
    return [
    'id' => $segment->getId(),
    'name' => $segment->getName(),
    'description' => $segment->getDescription(),
    'is_checked' => in_array($segment->getId(), $subscribedSegmentIds),
    ];

    Im trying add description like this, but dont know where is data output file where i can output this text.

    • This topic was modified 4 days, 21 hours ago by dowista.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter dowista

    (@dowista)

    Ok i have added description in manage page. In segment.php added new function:
    private function getSegmentsDesc($values): array {
    $ids = array_column($values, 'id');
    $segments = $this->segmentsRepository->findBy(['id' => $ids]);
    $namesMap = [];
    foreach ($segments as $segment) {
    $namesMap[$segment->getId()] = $segment->getDescription();
    }
    return $namesMap;
    }

    But still dont know how to edit Manage Subscription page. Where is file.

    Thread Starter dowista

    (@dowista)

    in \mailpoet\generated\twig\37\37c932a78ed74763258ac8681a3292689781f976f45ca9fca3f16b864f8ffcb7.php
    i found that you can edit Manage Subscription page.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.