Server Trafficweb :- 2x Intel Xeon CPU | 8 User MAX | 64 GB RAM | 1 Gbps Full Duplex | Admin Encoding RDP | Storage RDP


Visit Site :- http://www.servertrafficweb.com/
Contact Us :- contact@servertrafficweb.com
Stay Connected with Skype:- servertrafficweb24

{
“lightbox_close”: “Close”,
“lightbox_next”: “Next”,
“lightbox_previous”: “Previous”,
“lightbox_error”: “The requested content cannot be loaded. Please try again later.”,
“lightbox_start_slideshow”: “Start slideshow”,
“lightbox_stop_slideshow”: “Stop slideshow”,
“lightbox_full_screen”: “Full screen”,
“lightbox_thumbnails”: “Thumbnails”,
“lightbox_download”: “Download”,
“lightbox_share”: “Share”,
“lightbox_zoom”: “Zoom”,
“lightbox_new_window”: “New window”,
“lightbox_toggle_sidebar”: “Toggle sidebar”
}

can an admin see what you do on tor and if my school admin blocks tor how do i access it?

ive tried accessing tor but my school admins blocked it, how do i access it? if i do manage to access tor will they see what i do?

magento2.3 – How to add column in admin order view items ordered section

I want to add extra column in items order section in Magento Admin order view items ordered section.

I have made changes in files as per this link But however this not working.

Additionally, I have also defined block in MagentoRoot/app/code/MyModule/Customadmin/etc/adminhtml/di.xml

<preference for="MagentoSalesBlockAdminhtmlItemsColumnDefaultColumn" type="MyModuleCustomadminBlockAdminhtmlItemsColumnCustom" />

Please provide any suggestion how to add a column in items orders section.

enter image description here

Magento 2.3.5 Order Status not showing in admin order view

I have below orders status and are correctly assign to state. However it is not showing in Admin Order view page.

enter image description here

Above order status should show in Admin Order View page as below. Only Open Order status show in dropdown.

enter image description here

magento2 – Magento 2 fresh install, admin page 404, css 404, js 404

Problem

I’ve got a fresh install of magento 2 on ubuntu 20.04. I followed the install with composer guide on the mangento site. The installer completed with no complaints.

When I head over to my url I get a very sparse looking page with no css or js. A look in the console and network tab shows that the page is trying to load a number of assets but non are found.

GET https://website.com/pub/static/version1606418294/frontend/Magento/luma/en_GB/css/styles-m.css
(HTTP/1.1 404 Not Found 58ms)

Looking into pub/static shows no directory called version1606418294 perhaps this is a clue?

In addition to this heading over to the admin URI that was generated on installation gives a 404 for the whole page.

Things I’ve Tried

changing mode between development / production / default

deploying static content and flushing the cache

php bin/magento setup:upgrade
bin/magento setup:static-content:deploy -f
bin/magento indexer:reindex
bin/magetno cache:flush

these are the current permissions

ls -la
total 1816
drwxrwxrwx 12 magento www-data   4096 Nov 26 19:16 .
drwxr-xr-x  4 root    root       4096 Nov 25 13:09 ..
-rwxrwxrwx  1 magento www-data    188 Nov 26 18:21 .editorconfig
-rwxrwxrwx  1 magento www-data  11281 Nov 26 19:16 .htaccess
-rwxrwxrwx  1 magento www-data  11382 Nov 26 18:21 .htaccess.sample
-rwxrwxrwx  1 magento www-data   1519 Nov 26 18:21 .php_cs.dist
-rwxrwxrwx  1 magento www-data    101 Nov 26 18:21 .user.ini
-rwxrwxrwx  1 magento www-data 766543 Nov 26 18:21 CHANGELOG.md
-rwxrwxrwx  1 magento www-data    650 Nov 26 18:21 COPYING.txt
-rwxrwxrwx  1 magento www-data   2994 Nov 26 18:21 Gruntfile.js.sample
-rwxrwxrwx  1 magento www-data  10364 Nov 26 18:21 LICENSE.txt
-rwxrwxrwx  1 magento www-data  10376 Nov 26 18:21 LICENSE_AFL.txt
-rwxrwxrwx  1 magento www-data    700 Nov 26 18:21 SECURITY.md
drwxrwxrwx  4 magento www-data   4096 Nov 26 18:21 app
-rwxrwxrwx  1 magento www-data    150 Nov 26 18:21 auth.json.sample
drwxrwxrwx  2 magento www-data   4096 Nov 26 18:21 bin
-rwxrwxrwx  1 magento www-data   2634 Sep 23 20:01 composer.json
-rwxrwxrwx  1 magento www-data 937015 Nov 26 18:21 composer.lock
drwxrwxrwx  4 magento www-data   4096 Nov 26 18:21 dev
drwxrwsrwx  3 magento www-data   4096 Nov 26 19:46 generated
-rwxrwxrwx  1 magento www-data     57 Nov 26 18:21 grunt-config.json.sample
-rwxrwxrwx  1 magento www-data   1370 Nov 26 18:21 index.php
drwxrwxrwx  4 magento www-data   4096 Nov 26 18:21 lib
-rwxrwxrwx  1 magento www-data   5842 Nov 26 18:21 nginx.conf.sample
-rwxrwxrwx  1 magento www-data   1416 Nov 26 18:21 package.json.sample
drwxrwxrwx  2 magento www-data   4096 Nov 26 18:21 phpserver
drwxrwxrwx  6 magento www-data   4096 Nov 26 18:21 pub
drwxrwxrwx  7 magento www-data   4096 Nov 26 18:21 setup
drwxrwsrwx  8 magento www-data   4096 Nov 26 19:46 var
drwxrwsrwx 84 magento www-data   4096 Nov 26 18:21 vendor

rewrite module is enabled

a2enmod rewrite 
Module rewrite already enabled

here’s a list of php modules while im at it

php -m
(PHP Modules)
bcmath
calendar
Core
ctype
curl
date
dom
exif
FFI
fileinfo
filter
ftp
gd
gettext
hash
iconv
intl
json
libxml
mbstring
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
Phar
posix
readline
Reflection
session
shmop
SimpleXML
soap
sockets
sodium
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
xml
xmlreader
xmlwriter
xsl
Zend OPcache
zip
zlib

(Zend Modules)
Zend OPcache

I read that changing .htacces in the projects root folder to affect symlinks might help, though neither of those two options seems to make any difference.

 13 ############################################                                                                      
 12 ## enable rewrites                                                                                                
 11                                                                                                                   
 10 #    Options +FollowSymLinks                                                                                      
  9 Options +SymLinksIfOwnerMatch                                                                                     
  8                                                                                                                   
  7     RewriteEngine on                                                                                             

added the following to the bottom of /etc/apache2/sites-available/000-default.conf as per magento’s trouble shooting instructions. here and here.

  4   <Directory /var/www/html>                                                                                       
  3           Options Indexes FollowSymLinks                                                                          
  2           AllowOverride all                                                                                       
  1           Require all granted                                                                                     
48    </Directory>    

I logged into mysql to see if magento is speaking to it but it seems to have made a whole bunch of tables so is probably ok?

mysql> show tables;
+------------------------------------------------------+
| Tables_in_magento                                    |
+------------------------------------------------------+
| admin_analytics_usage_version_log                    |
| admin_passwords                                      |
| admin_system_messages                                |
| admin_user                                           |
| admin_user_expiration                                |
| admin_user_session                                   |
| adminnotification_inbox     
.
.
.
| wishlist                                             |
| wishlist_item                                        |
| wishlist_item_option                                 |
| yotpo_order_status_history                           |
| yotpo_rich_snippets                                  |
| yotpo_sync                                           |
+------------------------------------------------------+
404 rows in set (0.02 sec)

I’m pretty much out of ideas, any insight or direction would be greatly appreciated.

Audit Admin rights use on SQL Server 2019

Being security conscious, I want to audit the use of admin rights. I would like to assign specific permissions to a user (following the concept of least privilege) that current has the SysAdmin role and I want to know what rights they are using above DBO to the database. Is there a good way to audit these actions so that I can grant those specific rights?

magento2.3 – Magento2 Enable WYSIWYG On Email Templates Admin Panel

I know Magento has a WYSIWYG library but I am surprised that when you go to Marketing>Email Templates and click into one of the email templates the textarea is not WYSIWYG enabled.

Does anyone know what fileI would edit or an open source plugin that would enable that textarea to be a WYSIWYG

woocommerce – How to add gift message to checkout form and admin order detail?

I’m trying to add a gift message to my orders.

So I created a textarea & a custom field that I hooked before paiement selection :

// texte cadeau 
// on commence par créer la zone de texte
add_action('woocommerce_review_order_before_payment', 'add_gift_message');

function add_gift_message($checkout) {
    echo '<div id="gift-area"><h5>' . __('C'est un cadeau ?','lilamand') . '</h5>';
    woocommerce_form_field('gift_message', array(
                                            'type' => 'textarea',
                                            'class' => array(
                                            'gift-message'
                                            ) ,
                            'placeholder' => __('Laissez-nous un message personnalisé que nous glisserons dans votre colis (optionnel et gratuit).','lilamand') ,
                            ) ,
    );
    echo '</div>';
}

Then I saved the content to my new custom field :

// on sauvegarde le message
add_action('woocommerce_checkout_update_order_meta', 'add_gift_message_meta_update');
function add_gift_message_meta_update($order_id) {
    if (!empty($_POST('gift_message'))) {
        update_post_meta($order_id, 'gift_message',sanitize_text_field($_POST('gift_message')));
    }
}

add_action( 'woocommerce_admin_order_data_after_order_details', 'add_gift_message_display_in_order', 20 );

And then i’m displaying it in the order detail :

// on l'affiche dans la commande 
function add_gift_message_display_in_order( $order ){ 
    $message = get_post_meta( $order->get_id() , '_gift_message', true );
    //if($message && !empty($message)) {
        echo '<div style="clear:both;"></div>';
        echo '<div style="margin:10px;">';
        echo '<h2>'. _e( 'Message a mettre dans le colis','lilamand' ) .'</h2>';
        echo '<p>'. $message .'</p></div>';
    //}
}

Perhaps, I don’t know what is wrong, but on order side, there is no message displayed.
Wich step is wrong ?

thanks in advance for your help

magento2 – Using repository in admin form magento 2

I using admin form from this example

But i want change modelFactory from model to repository

But i don`t know how do it.

I need to change this files from model to repository

<?php

namespace JeffContactsControllerAdminhtmlIndex;

use Exception;
use MagentoBackendAppAction;
use MagentoBackendAppActionContext;
use MagentoFrameworkViewResultPageFactory;
use JeffContactsModelContactFactory;

class Delete extends Action
{

const ADMIN_RESOURCE = 'Index';

protected $resultPageFactory;
protected $contactFactory;

public function __construct(
    Context $context,
    PageFactory $resultPageFactory,
    ContactFactory $contactFactory
)
{
    $this->resultPageFactory = $resultPageFactory;
    $this->contactFactory = $contactFactory;
    parent::__construct($context);
}

public function execute()
{
    $id = $this->getRequest()->getParam('id');

    $contact = $this->contactFactory->create()->load($id);

    if(!$contact)
    {
        $this->messageManager->addError(__('Unable to process. please, try again.'));
        $resultRedirect = $this->resultRedirectFactory->create();
        return $resultRedirect->setPath('*/*/', array('_current' => true));
    }

    try{
        $contact->delete();
        $this->messageManager->addSuccess(__('Your contact has been deleted !'));
    }
    catch(Exception $e)
    {
        $this->messageManager->addError(__('Error while trying to delete contact'));
        $resultRedirect = $this->resultRedirectFactory->create();
        return $resultRedirect->setPath('*/*/index', array('_current' => true));
    }

    $resultRedirect = $this->resultRedirectFactory->create();
    return $resultRedirect->setPath('*/*/index', array('_current' => true));
}

}

And this file:

<?php

namespace JeffContactsControllerAdminhtmlIndex;
use Exception;
use MagentoBackendAppAction;
use MagentoBackendAppActionContext;
use MagentoFrameworkViewResultPageFactory;
use JeffContactsModelContactFactory;

class Save extends Action
{

const ADMIN_RESOURCE = 'Index';

protected $resultPageFactory;
protected $contactFactory;

public function __construct(
    Context $context,
    PageFactory $resultPageFactory,
    ContactFactory $contactFactory
)
{
    $this->resultPageFactory = $resultPageFactory;
    $this->contactFactory = $contactFactory;
    parent::__construct($context);
}

public function execute()
{
    $resultRedirect = $this->resultRedirectFactory->create();
    $data = $this->getRequest()->getPostValue();

    if($data)
    {
        try{
            $id = $data('jeff_contacts_contact_id');

            $contact = $this->contactFactory->create()->load($id);

            $data = array_filter($data, function($value) {return $value !== ''; });

            $contact->setData($data);
            $contact->save();
            $this->messageManager->addSuccess(__('Successfully saved the item.'));
            $this->_objectManager->get('MagentoBackendModelSession')->setFormData(false);
            return $resultRedirect->setPath('*/*/');
        }
        catch(Exception $e)
        {
            $this->messageManager->addError($e->getMessage());
            $this->_objectManager->get('MagentoBackendModelSession')->setFormData($data);
            return $resultRedirect->setPath('*/*/edit', ('id' => $contact->getId()));
        }
    }

    return $resultRedirect->setPath('*/*/');
}

}