Fast Web Hosting & Game Hosting| SSD drives with RAID-10|Cheap| 24/7 Customer Support!

Vultric Hosting is a fast and reliable hosting company founded in early 2020 with up-to-date panels, locations, fast support and much more! … | Read the rest of https://www.webhostingtalk.com/showthread.php?t=1829511&goto=newpost

OpenVZ VPS Hosting + High Uptime & Low Prices – Hostpoco.com | 24/7 Customer Support! | NewProxyLists

Hostpoco.com always to get simple, fast, and secure hosting solutions that allow you to take your business to the next level. We have started this web hosting venture to support the ever-growing online business and meet the expectations of business users at an affordable price. To achieve these ventures we are constantly innovating and upgrading our services at no additional cost to our customers.

Now we built affordable and cheaper Openvz based VPS hosting plans that you can rely on. We’re deploying premium Intel Xeon servers with full-SSD / HDD storage in premium data centers connected to redundant Tier 1 internet providers. Our fast servers come with a 24/7 super-fast technical support service.

Our VPS hosting plans comes with:
– full root access,
– dedicated IP,
– free RDNS
– free re-installations.
– Premium Bandwidth
– VPS Type OpenVZ
– Free Setup
– 99 % Uptime Guarantee
– 24/7 Live Support
– Easy to use control panel to self-manage

**VPS Hosting Plan**
*VPS Startup:$14.99 /Monthly

– 1024 MB Memory
– 30 GB Raid 10 Storage
– 2 TB Monthly Traffic

*VPS Pro:$24.99 /Monthly
– 2048 MB Memory
– 60 GB Raid 10 Storage
– 3 TB Monthly Traffic

*VPS Premium:$44.99 /Monthly
– 4096 MB Memory
– 120 GB Raid 10 Storage
– 4 TB Monthly Traffic

*VPS Elite:$84.99 /Monthly
– 8192 MB Memory
– 180 GB Raid 10 Storage
– 8 TB Monthly Traffic

For more hosting offers, please check our website:https://hostpoco.com/
Should you have any questions, email us: Sales@hostpoco.com

 

product view – Tier pricing missing for customer groups, only visible for “All Groups”

I have set up several customer groups and want to give tier pricing based on the customer group. I have added them as such:

TieredPricing

On the product view page I don’t see any tiered pricing. When I change the “Group or Catalog” to “All Groups” (see below screenshot) then I can see the Group 1 pricing on the product view page.

TieredPricingAllGroups

Policy View Page Price and Tiered Price

The customer is set up for Group 1 and when I echo out the customer’s group I get the correct ID, so why doesn’t the tiered pricing for his group appear?

How do I make the product view page show the Tiered pricing for the specific group instead of only showing when set to “All Groups”?

wetransfer link to our website showing our branding and making the “to” field from us and the “from” field clear for the customer to add

We just purchased WeTransfer ro for our company. We receive a lot of files as we are a printing company. So I am trying to figure out how to embed our WeTransfer link on our website that shows our branding when clicked on. Also, instead of the company’s email address in the “from” field, we would like it in the “to” field. That way our customer will only have to include their email address and upload a file.

Is this even possible?

I embedded a link (<iframe src="https://we.tl/send/en/Supreme-Color" width="275" height="50" frameborder="0"></iframe>), but it looked generic and had our company’s email in the “from” field.

wetransfer link to our website showing our branding and making the “to” field from us and the “from” field clear for the customer to add

We just purchased wetransfer pro for our company. We receive a lot of files as we are a printing company. So I am trying to figure out how to embed our wetransfer link on our website that shows our branding when clicked on. Also, instead of the company’s email address in the “from” field, we would like it in the “to” field. That way our customer will only have to include their email address and upload a file.

Is this even possible?

I embedded a link () but it looked generic and had our company’s email in the “from” field.

Thanks!

How Marketing, Quality, Design go together in customer experience, UX user experience :SX : Shopper experience, BX :Buyer experience

Theory of 3 smiles MQD cycle: 3 spheres of exchange, objectives; professions; targets; missions X
enter image description here

No alt text provided for this image
At the beginning, a human’s intervention in process of resource’s domestication in 3 parts for
having natural resources more appealing
reducing risks on their availability
ameliorating their use.
That constitute in society an unchanging cycle in commercial and non-commercial objectives that matches respectively to these 3 jobs

Seduction in evaluation: Marketing mission, sphere of market
Securisation in engagement: Quality management mission, sphere of contract
Satisfaction in action: Design mission, sphere os society

3 human centered professions for complet (CX) customer experience (SX, BX, UX)
Each profession enquires about psychology of these respective positions; shopper, buyer, user for trying to give to them the best experience.

So we can extend notion of UX user experience to upstream steps :SX : Shopper experience, BX :Buyer experience.

A wining tripartite
So, collaboration of these 3 key players permits to maintain squaring of circle of the contentment of the customer for capturing and keeping customers with complete smile effect, from seduction to final use.

Comments about jobs
Engineers bring their genius concerning feasibility of all these 3 moments of the customer.

The aesthetical work of designer is sometimes expanded for seducing mission from marketer’s asking and has original objective to play in the satisfaction of users (by the creation of concept, ergonomics amelioration, function enrichment, cultural integration,…)

Quality manager’s gathers synthetized market information from marketers and synthetized social information from designers for building standardized answers for customer.

Author of the theory of smile (SX, BX, UX)
Georges Koussouros: with diplomas on Marketing, Quality management and Design; make some searching about the logics of innovation and mainly work on the accessibility of technology, including information for answering to some essential problems. So he produces some synthesis and concepts on all shape of system (media, politics, product, technics, service, software, organization, methodology, philosophy…)

Magento2 How can I create an order on behalf of customer with admin Token

I need to implement salesman logic where he can place orders on behalf of customers. With the available Order processing Rest API I can only place an order with Customer Token.

Is there any way that I can retrieve the customer token through Admin Authentication or place an order on behalf of the customer

java – Migrate customer and transaction data from CSV to MongoDB

I wrote a Java Spring Boot application with MongoDB that on every application start loads customer, account type and transaction details from CSV files to MongoDB. It has one end point that returns transactions for a given customerId and accountType (for example customer id 1,3,5 etc. or account type “ALL”). The main target is to return demanded data (and sorted ascending by transaction amount) as fast as possible (read time matters most). I also wrote 3 tests to test this end point.

My service:

package com.colliers.mongodb.service;

import com.colliers.mongodb.exception.TransactionNotFoundException;
import com.colliers.mongodb.model.DTO.TransactionDTO;
import com.colliers.mongodb.model.Transaction;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Sort;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.data.mongodb.core.query.Criteria;
import org.springframework.data.mongodb.core.query.Query;
import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

@Service
public class TransactionService {

    private MongoTemplate mongoTemplate;

    @Autowired
    public TransactionService(MongoTemplate mongoTemplate) {
       this.mongoTemplate = mongoTemplate;
    }

    public List<TransactionDTO> getTransactions(String accountType, String customerId) throws TransactionNotFoundException {
        final List<String> accounts = Arrays.asList(accountType.split(","));
        final List<String> customers = Arrays.asList(customerId.split(","));

        Query query = new Query();
        query.with(Sort.by(Sort.Direction.ASC, "transactionAmount"));

        if(accountType.equals("") || accountType.equals("ALL"));
        else {
            query.addCriteria(Criteria.where("accountType.accountType").in(accounts));
        }

        if(customerId.equals("") || customerId.equals("ALL"));
        else {
            query.addCriteria(Criteria.where("customer.id").in(customers));
        }

        List<Transaction> transactions = this.mongoTemplate.find(query, Transaction.class, "transactions");

        if(transactions.isEmpty()) {
            throw new TransactionNotFoundException("No Transactions found.");
        }

        List<TransactionDTO> result = new ArrayList<>();

        for(var t : transactions) {
            TransactionDTO transactionDTO = TransactionDTO.builder()
                    .transactionDate(t.getTransactionDate())
                    .transactionId(t.getId())
                    .transactionAmount(t.getTransactionAmount())
                    .accountTypeName(t.getAccountType().getName())
                    .firstName(t.getCustomer().getFirstName())
                    .lastName(t.getCustomer().getLastName())
                    .build();

            result.add(transactionDTO);
        }

        return result;
    }
}

My Controller:

package com.colliers.mongodb.controller;

import com.colliers.mongodb.model.DTO.TransactionDTO;
import com.colliers.mongodb.service.TransactionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;

@RestController
class Controller {

    private TransactionService service;

    @Autowired
    Controller(TransactionService service) {
        this.service = service;
    }

    @GetMapping("/transactions")
    ResponseEntity<List<TransactionDTO>> getTransactionsByAccountTypeAndCustomerId(
        @RequestParam(value = "account_type") String accountType, @RequestParam(value = "customer_id") String customerId) {

        String regex = "^(^$)|(ALL)|(((1-9)(0-9)*)((,(1-9)(0-9)*)*))$";

        if(!accountType.matches(regex) || !customerId.matches(regex)) {
            return new ResponseEntity<>(HttpStatus.BAD_REQUEST);
        }

        return new ResponseEntity<>(this.service.getTransactions(accountType, customerId), HttpStatus.OK);
    }
}

My AppInit – database seeder:

package com.colliers.mongodb.configuration;

import com.colliers.mongodb.model.AccountType;
import com.colliers.mongodb.model.Customer;
import com.colliers.mongodb.model.Transaction;
import com.colliers.mongodb.repository.AccountTypeRepository;
import com.colliers.mongodb.repository.CustomerRepository;
import com.colliers.mongodb.repository.TransactionRepository;
import com.opencsv.CSVReader;
import com.opencsv.bean.CsvToBean;
import com.opencsv.bean.CsvToBeanBuilder;
import com.opencsv.bean.HeaderColumnNameTranslateMappingStrategy;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.stereotype.Component;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;

@Component
class AppInit implements CommandLineRunner {

    private CustomerRepository customerRepository;
    private TransactionRepository transactionRepository;
    private AccountTypeRepository accountTypeRepository;
    private MongoTemplate mongoTemplate;

    @Autowired
    public AppInit(CustomerRepository customerRepository, TransactionRepository transactionRepository,
                   AccountTypeRepository accountTypeRepository, MongoTemplate mongoTemplate) {

        this.customerRepository = customerRepository;
        this.transactionRepository = transactionRepository;
        this.accountTypeRepository = accountTypeRepository;
        this.mongoTemplate = mongoTemplate;
    }

    @Override
    public void run(String... args) throws Exception {
        mongoTemplate.dropCollection("customers");
        mongoTemplate.dropCollection("transactions");
        mongoTemplate.dropCollection("accountypes");
        mongoTemplate.createCollection("customers");
        mongoTemplate.createCollection("transactions");
        mongoTemplate.createCollection("accountypes");

        File customersCSV = new File("src/main/resources/static/customers.csv");
        File transactionsCSV = new File("src/main/resources/static/transactions.csv");
        File accountypesCSV = new File("src/main/resources/static/accountypes.csv");

        Map<String, Customer> customers = parseCustomers(customersCSV);
        customerRepository.saveAll(customers.values());

        Map<String, AccountType> accountTypes = parseAccountTypes(accountypesCSV);
        accountTypeRepository.saveAll(accountTypes.values());

        List<Transaction> transactions = parseTransactions(transactionsCSV);
        for(var t : transactions) {
            t.setAccountType(accountTypes.get(t.getAccountTypeNumber()));
            t.setCustomer(customers.get(t.getCustomerId()));
        }

        transactionRepository.saveAll(transactions);
    }

    private List<Transaction> parseTransactions(File file) throws Exception {
        HeaderColumnNameTranslateMappingStrategy<Transaction> strategy = new HeaderColumnNameTranslateMappingStrategy<>();
        strategy.setType(Transaction.class);

        Map<String, String> columnMapping = new HashMap<>();
        columnMapping.put("transaction_id", "id");
        columnMapping.put("transaction_amount", "transactionAmount");
        columnMapping.put("account_type", "accountTypeNumber");
        columnMapping.put("customer_id", "customerId");
        columnMapping.put("transaction_date", "transactionDate");

        strategy.setColumnMapping(columnMapping);

        CSVReader reader = new CSVReader(new FileReader(file.getPath()));
        CsvToBean<Transaction> csvToBean = new CsvToBeanBuilder<Transaction>(reader)
                .withMappingStrategy(strategy)
                .build();

        return csvToBean.parse();
    }

    private Map<String, Customer> parseCustomers(File file) throws IOException {
        HeaderColumnNameTranslateMappingStrategy<Customer> strategy = new HeaderColumnNameTranslateMappingStrategy<>();
        strategy.setType(Customer.class);

        Map<String, String> columnMapping = new HashMap<>();
        columnMapping.put("id", "id");
        columnMapping.put("first_name", "firstName");
        columnMapping.put("last_name", "lastName");
        columnMapping.put("last_login_balance", "lastLoginBalance");

        strategy.setColumnMapping(columnMapping);

        CSVReader reader = new CSVReader(new FileReader(file.getPath()));
        CsvToBean<Customer> csvToBean = new CsvToBeanBuilder<Customer>(reader)
                .withMappingStrategy(strategy)
                .build();

        return csvToBean.parse().stream().collect(Collectors.toMap(Customer::getId, c -> c));
    }

    private Map<String, AccountType> parseAccountTypes(File file) throws IOException {
        HeaderColumnNameTranslateMappingStrategy<AccountType> strategy = new HeaderColumnNameTranslateMappingStrategy<>();
        strategy.setType(AccountType.class);


        Map<String, String> columnMapping = new HashMap<>();
        columnMapping.put("account_type", "accountType");
        columnMapping.put("name", "name");

        strategy.setColumnMapping(columnMapping);

        CSVReader reader = new CSVReader(new FileReader(file.getPath()));
        CsvToBean<AccountType> csvToBean = new CsvToBeanBuilder<AccountType>(reader)
                .withMappingStrategy(strategy)
                .build();

        return csvToBean.parse().stream().collect(Collectors.toMap(AccountType::getAccountType, a -> a));
    }
}

My ControllerTest:

package com.colliers.mongodb.controller;

import com.colliers.mongodb.model.AccountType;
import com.colliers.mongodb.model.Customer;
import com.colliers.mongodb.model.DTO.TransactionDTO;
import com.colliers.mongodb.model.Transaction;
import com.colliers.mongodb.service.TransactionService;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.ArgumentMatchers;
import org.mockito.Mock;
import org.mockito.junit.jupiter.MockitoExtension;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.data.mongodb.core.query.Query;
import org.springframework.http.ResponseEntity;
import java.util.Arrays;
import java.util.List;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.Mockito.when;

@ExtendWith(MockitoExtension.class)
class ControllerTest {

    @Mock
    private MongoTemplate mongoTemplate;

    private Controller controller;

    @BeforeEach
    void setup() {
        TransactionService service = new TransactionService(mongoTemplate);
        controller = new Controller(service);
    }

    @Test
    void test() {}

    @Test
    void getTransactionsByAccountTypeAndCustomerIdWithWIthOneAccountTypeAndOneCustomerIdTest() {
        Transaction t1 = Transaction.builder()
                .id(700)
                .transactionAmount(600.11)
                .accountType(new AccountType("1", "1", "checking account"))
                .customer(new Customer("1", "Elliot", "Alderson", 199))
                .transactionDate("2017-03-06 13:23:11")
                .build();

        when(this.mongoTemplate.find(ArgumentMatchers.any(Query.class), ArgumentMatchers.eq(Transaction.class),
                                            ArgumentMatchers.anyString())).thenReturn(Arrays.asList(t1));

        ResponseEntity<List<TransactionDTO>> result = controller.getTransactionsByAccountTypeAndCustomerId("1", "1");
        assertThat(result.getBody().get(0).getAccountTypeName()).isEqualTo("checking account");
        assertThat(result.getBody().get(0).getFirstName()).isEqualTo("Elliot");
    }

    @Test
    void getTransactionsByAccountTypeAndCustomerIdWithOneCustomerIdAndEmptyAccountTypeTest() {
        Transaction t1 = Transaction.builder()
                .id(700)
                .transactionAmount(600.11)
                .accountType(new AccountType("1", "1", "checking account"))
                .customer(new Customer("1", "Elliot", "Alderson", 199))
                .transactionDate("2017-03-06 13:23:11")
                .build();

        Transaction t2 = Transaction.builder()
                .id(723)
                .transactionAmount(524.32)
                .accountType(new AccountType("2", "2", "saving account"))
                .customer(new Customer("1", "Elliot", "Alderson", 199))
                .transactionDate("2013-08-04 23:57:38")
                .build();

        when(mongoTemplate.find(ArgumentMatchers.any(Query.class), ArgumentMatchers.eq(Transaction.class),
                ArgumentMatchers.anyString())).thenReturn(Arrays.asList(t1, t2));

        ResponseEntity<List<TransactionDTO>> result = controller.getTransactionsByAccountTypeAndCustomerId("", "1");
        assertThat(result.getBody().get(0).getAccountTypeName()).isEqualTo("checking account");
        assertThat(result.getBody().get(0).getFirstName()).isEqualTo("Elliot");

        assertThat(result.getBody().get(1).getAccountTypeName()).isEqualTo("saving account");
        assertThat(result.getBody().get(1).getFirstName()).isEqualTo("Elliot");
    }

    @Test
    void getTransactionsByAccountTypeAndCustomerIdWithEmptyAccountTypeAndALLCustomerIdTest() {
        Transaction t1 = Transaction.builder()
                .id(700)
                .transactionAmount(600.11)
                .accountType(new AccountType("1", "1", "checking account"))
                .customer(new Customer("1", "Elliot", "Alderson", 199))
                .transactionDate("2017-03-06 13:23:11")
                .build();

        Transaction t2 = Transaction.builder()
                .id(723)
                .transactionAmount(524.32)
                .accountType(new AccountType("2", "2", "saving account"))
                .customer(new Customer("1", "Elliot", "Alderson", 199))
                .transactionDate("2013-08-04 23:57:38")
                .build();

        Transaction t3 = Transaction.builder()
                .id(200)
                .transactionAmount(500)
                .accountType(new AccountType("1", "1", "checking account"))
                .customer(new Customer("2", "Tyrell", "Wellick", 10000))
                .transactionDate("2020-10-07 23:59:59")
                .build();

        Transaction t4 = Transaction.builder()
                .id(540)
                .transactionAmount(1000)
                .accountType(new AccountType("2", "2", "saving account"))
                .customer(new Customer("2", "Tyrell", "Wellick", 10000))
                .transactionDate("2018-02-01 12:05:18")
                .build();

        when(mongoTemplate.find(ArgumentMatchers.any(Query.class), ArgumentMatchers.eq(Transaction.class),
                ArgumentMatchers.anyString())).thenReturn(Arrays.asList(t1, t2, t3, t4));

        ResponseEntity<List<TransactionDTO>> result = controller.getTransactionsByAccountTypeAndCustomerId("", "ALL");
        assertThat(result.getBody().get(0).getAccountTypeName()).isEqualTo("checking account");
        assertThat(result.getBody().get(0).getFirstName()).isEqualTo("Elliot");

        assertThat(result.getBody().get(1).getAccountTypeName()).isEqualTo("saving account");
        assertThat(result.getBody().get(1).getFirstName()).isEqualTo("Elliot");

        assertThat(result.getBody().get(2).getAccountTypeName()).isEqualTo("checking account");
        assertThat(result.getBody().get(2).getFirstName()).isEqualTo("Tyrell");

        assertThat(result.getBody().get(3).getAccountTypeName()).isEqualTo("saving account");
        assertThat(result.getBody().get(3).getFirstName()).isEqualTo("Tyrell");
    }
}

This application is all that I am currently capable of (I want also to note, that I’m not a professional software dev – still learning and want to become one in the future). In order to keep improving I need feedback concerning topics like “clean code”, don’t do that – do that, use different library etc. I’m not interested in discussing app security (topic on different time). Below link to GitHub repo.

https://github.com/dstarostka/mongodb

magento2.3 – how to append media url in magento customer edit page admin custom field in magento 2.3

customer_form.xml

<?xml version="1.0" encoding="UTF-8"?>
<form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">

    <fieldset name="customer">        <field name="id_proof" sortOrder="400" formElement="input" class="MyModuleUiComponentFormFieldLinkProvider">
            <argument name="data" xsi:type="array">
                <item name="config" xsi:type="array">
                    <item name="source" xsi:type="string">customer</item>
                    <item name="elementTmpl" xsi:type="string">My_Module/link.html</item>
                </item>
            </argument>
            <settings>
                <dataType>text</dataType>
                <label translate="true">Id Proof</label>
                <!--<dataScope>id_proof</dataScope>-->
            </settings>
        </field>    
</fieldset>
</form>

MyModuleUiComponentFormFieldLinkProvider.php

use MagentoFrameworkViewElementUiComponentContextInterface;
use MagentoFrameworkViewElementUiComponentFactory;
use MagentoStoreModelStoreManagerInterface;
use MagentoFrameworkUrlInterface;

class LinkProvider extends MagentoUiComponentFormField
{
    /**
     * @var StoreManagerInterface
     */
    public $storeManager;    /**
     * LinkProvider constructor.
     * @param ContextInterface $context
     * @param UiComponentFactory $uiComponentFactory
     * @param StoreManagerInterface $storeManager
     * @param array $components
     * @param array $data
     */
    public function __construct (
        ContextInterface $context,
        UiComponentFactory $uiComponentFactory,
        StoreManagerInterface $storeManager,
        $components = (), array $data = ())
    {
        parent::__construct($context, $uiComponentFactory, $components, $data);
        $this->storeManager = $storeManager;
    }    /**
     * Prepare component configuration
     *
     * @return void
     * @throws MagentoFrameworkExceptionLocalizedException
     */
    public function prepare()
    {        
    parent::prepare();        
    $this->_data('value')="custom_value";        
    $this->setData('id_proof','new_value');    
    }

link.html

<a data-bind="attr: {href : value}" target="_blank">Click Here</a>

here i want to append

Media url with => value

how i change the value of this ?

(Now just /Files/NewFile.pdf) — here i want append media url here

how i can do this?

(Ver . Magento 2.3.5)

enter image description here