how to show the cart items in the personalized module, and send by email

Guys how can I get the cart items in a customized module? I need in my module on a certain page to show all the items that are in the cart, so that I can send them by email

I want to replace an URL in Google Sheets as a personalized hyperlink in my Google Docs body

I have a link in one of the Google Sheets cells like this:

I know how to attach it to the Google Docs body through the following steps:

const body = doc.getBody();
body.replaceText('{{MyURL}}',row(number)

This gives me the result you can watch here:

but I would like to have this result instead:

So, how can I do this? Any help will be appreciated!

magento2 – Sending personalized module email does not work

I’m trying to create a custom module that sends an email to the user. I tried to follow a tutorial and when trying to use the code it didn’t work it returns: “main.DEBUG: Unable to send email: Unknown error () ()”. I need to click on submit to send an email to the user. Help me please don’t know what to do

Vendor/Module/Controller/Index/Post.php

<?php

namespace VendorModuleControllerIndex;

use ZendLogFilterTimestamp;
use MagentoStoreModelStoreManagerInterface;

class Post extends MagentoFrameworkAppActionAction
{
    const XML_PATH_EMAIL_RECIPIENT_NAME = 'trans_email/ident_support/name';
    const XML_PATH_EMAIL_RECIPIENT_EMAIL = 'trans_email/ident_support/email';

    protected $_inlineTranslation;
    protected $_transportBuilder;
    protected $_scopeConfig;
    protected $_logLoggerInterface;
    protected $storeManager;

    public function __construct(
        MagentoFrameworkAppActionContext $context,
        MagentoFrameworkTranslateInlineStateInterface $inlineTranslation,
        MagentoFrameworkMailTemplateTransportBuilder $transportBuilder,
        MagentoFrameworkAppConfigScopeConfigInterface $scopeConfig,
        PsrLogLoggerInterface $loggerInterface,
        StoreManagerInterface $storeManager,
        array $data = ()

    ) {
        $this->_inlineTranslation = $inlineTranslation;
        $this->_transportBuilder = $transportBuilder;
        $this->_scopeConfig = $scopeConfig;
        $this->_logLoggerInterface = $loggerInterface;
        $this->messageManager = $context->getMessageManager();
        $this->storeManager = $storeManager;

        parent::__construct($context);
    }

    public function execute()
    {
        $post = $this->getRequest()->getPost();
        try {
            // Send Mail
            $this->_inlineTranslation->suspend();

            $senderName = $post('name');
            $senderEmail = $post('email');

            $sender = (
                'name' => $senderName,
                'email' => $senderEmail,
            );

            $sentToEmail = $this->_scopeConfig->getValue('trans_email/ident_general/email', MagentoStoreModelScopeInterface::SCOPE_STORE);

            $sentToName = $this->_scopeConfig->getValue('trans_email/ident_general/name', MagentoStoreModelScopeInterface::SCOPE_STORE);


            $transport = $this->_transportBuilder
                ->setTemplateIdentifier('customemail_email_template')
                ->setTemplateOptions(
                    (
                        'area' => 'frontend',
                        'store' => $this->storeManager->getStore()->getId()
                    )
                )
                ->setTemplateVars((
                    'name'  => $post('name'),
                    'email'  => $post('email')
                ))
                ->setFromByScope($sender)
                ->addTo($sentToEmail, $sentToName)
                ->addTo('teste@gmail.com', 'owner')
                ->getTransport();

            $transport->sendMessage();

            $this->_inlineTranslation->resume();
            $this->messageManager->addSuccess('Email sent successfully');
            $this->_redirect('customemail/index/index');
        } catch (Exception $e) {
            $this->messageManager->addError($e->getMessage());
            $this->_logLoggerInterface->debug($e->getMessage());
            exit;
        }
    }
}

Vendor/Module/Controller/Index/Index.php

<?php
 
namespace VendorModuleControllerIndex;
 
class Index extends MagentoFrameworkAppActionAction
{
    public function execute()
    {
 
        $this->_view->loadLayout();
        $this->_view->getLayout()->initMessages();
        $this->_view->renderLayout();
    }
}

Vendor/Module/Block/Index/Index.php

<?php
 
namespace VendorModuleBlockIndex;
 
 
class Index extends MagentoFrameworkViewElementTemplate {
 
    public function __construct(MagentoCatalogBlockProductContext $context, array $data = ()) {
 
        parent::__construct($context, $data);
 
    }
 
 
    protected function _prepareLayout()
    {
        return parent::_prepareLayout();
    }
 
}

Vendor/Module/etc/frontend/routes.xml

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../lib/internal/Magento/Framework/App/etc/routes.xsd">
    <router id="standard">
        <route id="customemail" frontName="customemail">
            <module name="Vendor_Module" />
        </route>
    </router>
</config>

Vendor/Module/etc/email_templates.xml

<?xml version="1.0" encoding="UTF-8"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Email:etc/email_templates.xsd">
 
    <template id="customemail_email_template" label="Email Form" file="customemail.html" type="html" module="Vendor_Module" area="frontend"/>
     
</config>

Vendor/Module/view/frontend/email/customemail.html

<!--@subject Sending email from my custom module @-->

{{template config_path="design/email/header_template"}}
<table>
    <tr class="email-intro">
        <td>
            Email: {{var email}}
        </td>
        <td>
            Name: {{var name}}
        </td>
    </tr>
</table>

{{template config_path="design/email/footer_template"}}

Vendor/Module/view/frontend/layout/customemail_index_index.xml

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="../../../../../../../lib/internal/Magento/Framework/View/Layout/etc/page_configuration.xsd">
 
    <head>
        <title>test</title>
    </head> 
 
    <body>
 
        <referenceContainer name="content">
            <block class="VendorModuleBlockIndexIndex" name="customemail_index_index" template="Vendor_Module::customemail_index_index.phtml"/>
        </referenceContainer>
 
    </body>
</page>

Vendor/Module/view/frontend/templates/customemail_index_index.phtml

<form action="<?php echo $block->getBaseUrl().'customemail/index/post/';?>" name="customemaildata" method="post" id="contactForm-1" data-hasrequired="<?php echo __('* Required Fields') ?>" data-mage-init='{"validation":{}}'>
    <fieldset class="fieldset">
            <div class="field email required">
                <label class="label" for="email"><span><?php  echo __('Name') ?></span></label>
                <div class="control">
                    <input name="name" id="name" title="<?php echo __('Name') ?>" class="input-text" type="text" data-validate="{required:true}"/>
                </div>
            </div>
            <div class="field email required">
                <label class="label" for="email"><span><?php  echo __('Email') ?></span></label>
                <div class="control">
                    <input name="email" id="email" title="<?php echo __('Email') ?>" class="input-text" type="email" data-validate="{required:true, 'validate-email':true}"/>
                </div>
            </div>                        
    </fieldset>
    <div class="actions-toolbar">
        <div class="primary">
            <input type="hidden" name="hideit" id="hideit" value="" />
            <button type="submit" title="<?php echo __('Submit') ?>" class="action submit primary">
                <span><?php echo __('Submit') ?></span>
            </button>
        </div>
    </div>
</form>

I will set up your google analytics and personalized objectives for $30

I will set up your google analytics and personalized objectives

About This Gig

Think of information as the 21st century’s oil. If you are not tracking your data, you are making uninformed decisions. Google Analytics allows you to track many vital metrics and enables you to monitor the effectiveness of your online marketing strategies, onsite content, user experience, and device functionality. This Gig is everything you need to set up your website or app with Google analytics.

Correct implementation of Google Analytics done by an expert is vital. If the data is not reliable, it is useless. I am a Performance Marketing Analyst with extensive experience with Google Analytics. I know exactly what to do to set your website up for success.

What you can expect from this Gig:

  • I will create an Analytics account.
  • I will install the code on your website.
  • I will set up personalized goals (Google Analytics Universal), filters, and views that are adapted to your business needs
  • I will make sure it is working correctly by doing tests on different devices and browsers.

I will only take 48 hours to complete the service, and you will be ready to make data-driven decisions!

Before ordering, please contact me first to make sure we’re the right fit for each other!

.(tagsToTranslate)objectives(t)personalized(t)analytics(t)google

8 – How do I create a personalized feed?

I created a Views to display messages from the Message module. I want to create an RSS feed, but the display proposed by the Views module doesn’t manage images and doesn’t allow the fields to be grouped together.

How do I create a personalized RSS feed?

The template for the RSS display mode I created is the following.

message.html.twig

<item>
  <title>{{ drupal_token('message:field_node_reference:entity:title', {message: message}) }}</title>
  <link>{{ drupal_token('message:field_node_reference:entity:url', {message: message}) }}</link>
  <description>{{ drupal_token('message:field_node_reference:entity:content-type', {message: message}) }}</description>
  <pubDate>{{ drupal_token('message:created:since', {message: message}) }}</pubDate>
  <dc:creator>{{ drupal_token('message:author:display-name', {message: message}) }}</dc:creator>
  <enclosure url="{{ drupal_token('message:rss-node-render', {message: message}) }}" length="3180" type="image/jpeg"/>
  <guid isPermaLink="true">{{ drupal_token('message:url:absolute', {message: message}) }}</guid>
</item>

I want to use my view because it will have context filters. I have to rewrite it entirely.

screenshot

8 – How to create a personalized RSS Feed?

I created a Views to display the Messages (from the Message module). I want to create an RSS Feed, but the RSS Feed display proposed by the Views does not manage images and does not allow the fields to be grouped together.

How to create a personalized RSS Feed ?

I created an RSS display mode for Messages and here is my template.

message.html.twig :

<item>
  <title>{{ drupal_token('message:field_node_reference:entity:title', {message: message}) }}</title>
  <link>{{ drupal_token('message:field_node_reference:entity:url', {message: message}) }}</link>
  <description>{{ drupal_token('message:field_node_reference:entity:content-type', {message: message}) }}</description>
  <pubDate>{{ drupal_token('message:created:since', {message: message}) }}</pubDate>
  <dc:creator>{{ drupal_token('message:author:display-name', {message: message}) }}</dc:creator>
  <enclosure url="{{ drupal_token('message:rss-node-render', {message: message}) }}" length="3180" type="image/jpeg"/>
  <guid isPermaLink="true">{{ drupal_token('message:url:absolute', {message: message}) }}</guid>
</item>

I want to use my view because it will have context filters. I have to rewrite it entirely.

enter image description here

plugins – Downloadable/virtual but also personalized file

I sell files through WooCommerce (virtual / downloadable product).
These files are personalized.

I had found as a trick not to put (in the product sheet of WooCommerce) the download link to the file, but to a PHP page that generated the custom file (zipped it and downloaded it) … and it worked fine .

However, since the last version of WooCommerce I enter in the product file the address of the link (eg http: //www.mywebsite/myFolder/myFiles/file.php), I save my modification, but then the address of the link disappears and does not work!

  1. Would you know why this is not working?

  2. I had sought at one time how to achieve this in a more rigorous way (via an action for example), but I had not found … if there again you can help me, that would be very nice.

Thank you

google sheets – How to send personalized HTML emails from a spreadsheet

I have a Google spreadsheet that contains recipient’s names, emails, and a message that anonymous people have sent this Valentine’s Day. I am aware of applications such as the various Mail Merges that allow one to send personalized messages. All of which, however, send in plaintext. I am also aware of scripts that can send HTML emails, but not automatically to a large number of people.

I would like to find a way to automatically send these messages in a nicer format but still contain variables (e.g. name and message), preferably in a way that is free, perhaps as an HTML email that allows formatting and images. It can be a solution in the form of Google Script.

Thanks in advance.

Does google scholar give personalized results?

More specifically, would any two google scholar search results entered at the same time with the same search criteria return the same results in the same order?

(If not, where can I learn more about how it works?)

A personalized professional website for $98

A personalized professional website

We had Designed various websites beforeThis website help you to reach to various customer. They make a impact on your customers.We make most affordable Website that looks stunning and professional. Which attracts people and buyers and make a strong image in everyones mind.And increase loyalty.This is one time small investment which will help you to growIn this website we make stunning websites that attracts customers.We make really very professional website.And we make so affordable Website that any small business can afford it.We provide our own domain and hosting in our charges. And no extra charge you will pay.And also no monthly or yearly charges .It’s just like one time investment.You will be surely satisfied by your website

.