texts:
I have Created a Custom Email template module, I wants asign all the footer design same as my module footer design, how to override Default Footer to my custom email module.

Thanks


texts: SUPEE-5994 Patch Bundle Admin Path Disclosure - Fix Not Working?

texts:
I've applied the SUPEE-5994 Patch Bundle to Magento v1.9.0.1 this morning on a development system, and I'm still able to get to the 'hidden' admin login when calling a module directly.

Compilation is off and cleared, caches flushed, etc.
Admin is on [https] devhost.local/index.php/SECRETSTRING
Accessing [http] devhost.local/index.php/MODULENAME/adminhtml_rule presents a login form on [https] devhost.local/index.php/MODULENAME/adminhtml_rule?SID=STRING

Am I misunderstanding either what the patch is meant to solve, is it an issue to pass to the developer of the affected modules or have I missed out something?


texts: Unable to unserialize value - when adding to website magento 2.2

texts:
Migrated fine to 2.2. Now when we open a product and change text for example all works and saves. When trying to assign to another website we get the error

Unable to unserialize value.

Log shows:
[2017-11-01 22:17:52] main.CRITICAL: Unable to unserialize value. {"exception":"[object] (InvalidArgumentException(code: 0): Unable to unserialize value. at /home2/staging/public_html/vendor/magento/framework/Serialize/Serializer/Json.php:39)"} []

Tried flushing cache, indexing, etc. Still nothing. Anybody that can help in this?


texts:
I have created a custom grid associated with a tab.

Now the grid work well, there is an issue with ajax call.

The  Ajax call hit the right url and the content is correctly displayed ( onSuccess state ) anyway for some reason the onCompleate state is never reached and so the loader continue to load.

The layout looks correct, I'm not sure what to check.

any suggestion ?

Note:
I think, I am correctly using the getGridUrl() function in the tab since the grid content, on the ajax call, is retrieved and delivered on the page ...


texts:
Magento bundle product not saving after upgrade please find the below screenshot

product wheel keeps on rotating.

thanks


texts:
I need urgent restore of Magento DB. I have an sql file exported from PHPMYADMIN, I am unable to restore this file from command line, it give an error Duplicate entry '1' for key 'PRIMARY'.

I am frantic, should I drop Magento DB and restore the PHPMADMIN generated backup?

I have disabled foriegn key restraints per this Wiki
http://www.magentocommerce.com/wiki/1_-_installation_and_configuration/restoring_a_backup_of_a_magento_database

Any help appreciated


texts: Mage_Module_Helper_Data not found in Magento C.E 1.9

texts:
I am using magento 1.9 C.E and I have this issue whenever I try to disable any module from app/etc/modules/Mymodule_Custom.xml

    <active>false</false>

It throws the error Mage_Module_Helper_Data not found. I don't understand why it is coming and this is the problem with almost all the extensions that I'm using. Please help me out folks.


texts: Magento 1.8 site using a custom theme... but not set in admin panel

texts:
I have recently taken over looking after a Magento var. 1.8 site and I want to be able to change the theme that the site is using (to be able to propose changes to the boss!)

I know the theme is currently in: app/design/frontend/<company>/<company> and skin/frontend/<company>/<company>.

I was expecting to see a Theme override in the admin panel, but all the theme options are set to default... so how does Magento know which theme to use!?

I have tried 'grep-ing' the files for some sort of override that has been set... But this has proved fruitless.

Any ideas?


texts:
How to manage Banner module for Web and Mobile Application as per
  service contact standards and REST API ?

Should i make different modules for mobile and web ?
Or it can be manageable by common ?


texts: Delete customer with total order less than 2 in Magento 2

texts: Currently i'm using Magento 2.3.4, i want to run a single mysql query to delete customer with order less then 2 where order date is less then 2018-01-01, how can i achieve this?


texts: Magento2 - How to show a block content on homepage

texts:
How to show a block content on homepage?

After install magento2 without sample data, I chose 'Magento Luma' theme and add 'Home Page Block' block and copy the code from the sample store.

but nothing show up on the home page, how to show my cms block on home page like sample store?

my home

sample store


texts: while creating customer account in magento 2 it shows "we can't save the customer"

texts:
1 exception(s):
Exception #0 (ReflectionException): Class Mageplaza\CustomerApproval\Model\Config\Source\AttributeOptions does not exist


texts: Magento admin custom form with multiple entry

texts:
I have a custom form in Magento admin. When I submit the form with multiple click of the save button the multiple entry are inserted in my table, even if I have a form key.

if ($data = $this->getRequest()->getPost()) {
    $request = $this->getRequest();
    $formKey = Mage::getSingleton('core/session')->getFormKey();
    $request->setParam('form_key', $formKey);
    $model = Mage::getModel('flpackage/packages');
    $id = $this->getRequest()->getParam('id');
    $oldPrice = '';
    if ($id) {
        $model->load($id);
        $oldPrice = $model->getData('package_price');
    }
    Mage::getSingleton('adminhtml/session')->setFormData($data);
    try {
        $model->setData($data);
    } catch (Exception $e) {
        $this->__($e->getMessage());
        $this->getCoreSession()->addError($e->getMessage());
        if($this->getRequest()->getParam('id')) {
            $this->_redirect('*/*/edit', array('id' => $id));
        } else {
            $this->_redirect('*/*/edit');
        }
        return ;
    }
    if($id) {
        $model->setId($id);
    }
    $model->save();
}

Screen:

Kindly suggest your answer for solving this issue.


texts: Magento 2 - Ui Component Form: Change input name

texts:
I use Ui Component to build backend form.

This field when rendered has attribute [name=template_id]. But I want this field to have attribute [name=id]. Please help me to do this.

If there is any information needed to solve this problem, please ask me. I will provide it later.

Thanks a lot.

    <field name="id">
        <argument name="data" xsi:type="array">
            <item name="config" xsi:type="array">
                <item name="dataScope" xsi:type="string">template_id</item>
                <item name="visible" xsi:type="boolean">false</item>
                <item name="dataType" xsi:type="string">text</item>
                <item name="formElement" xsi:type="string">input</item>
                <item name="source" xsi:type="string">template</item>
            </item>
        </argument>
    </field>


texts: Custom javascript not running from module

texts:
I have a Magento module that currently provides a custom API route. I am wanting to update it to push some Javascript to the /customer/account page.

I tried following the answer here but this didn't work, my script is not rendered or executed on the customer account page.

My module looks like this:

My module lives in app/Code/James/AddToCart.

I have a app/code/James/AddToCart/view/frontend/layout/customer_account_index.xml file that looks like this:

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <head>
    <script src="james_addtocart::postMessage.js"/>
    </head>
</page>

I then have the Javascript file living in app/code/James/AddToCart/view/frontend/web/js/postMessage.js and it looks like this:

console.log('test');
alert('I am working');

The real script I will use is not the above, however it is all just vanilla javascript with no dependencies.

I then ran these commands (not sure if necessary):

php bin/magento maintenance:enable
php bin/magento setup:upgrade
php -d memory_limit=2G bin/magento setup:di:compile
history
php -d memory_limit=8G -d max_execution_time=18000 bin/magento setup:static-content:deploy -f
php bin/magento maintenance:disable
php bin/magento cache:clean
php bin/magento cache:flush
redis-cli -p 6379 flushall

However when I go to the /customer/account page, I do not see my script run at all.

What am I doing wrong?

Update

As per @xanka's comment, I have updated my customer_account_index.xml file to be:

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <head>
    <script src="James_AddToCart::postMessage.js"/>
    </head>
</page>

However this still isn't running the alert nor the console.log statement.

Update 2

I have added the postMessage.js file to app/code/James/AddToCart/view/frontend/web/postMessage.js and then added a new app/code/James/AddToCart/view/frontend/layout/customer_account.xml with the following contents:

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <head>
    <link src="James_AddToCart::postMessage.js"/>
    </head>
</page>

I now have a postMessage.js file in app/code/James/AddToCart/view/frontend/web/postMessage.js and app/code/James/AddToCart/view/frontend/web/js/postMessage.js that looks like this:

require(["jquery"],
    function($){

    console.log('test');
    alert('I am working');

})

When I visit the /customer/account page, I do not see an alert or the console.log statement in my dev tools.


texts: Custom REST API endpoint - Consumer is not authorized to access %resources - Magento_Indexer::Indexer

texts:
I'm trying to expose the getLatestUpdated() method of the Indexer class through the REST API.  The endpoint is getting an auth token and all that - I can use protected endpoints no problem.  What resources should I have requested or how can I give my extension permission to use the resource?

Here is what my webapi.xml looks like:

<?xml version="1.0"?>
<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Webapi:etc/webapi.xsd">
    <route url="/V1/GetIndexerInfo/id/:id" method="GET">
        <service class="MyCompany\GetIndexerInfo\Api\GetIndexerInfoInterface" method="getInfo"/>
        <resources>
            <resource ref="Magento_Indexer::Indexer"/>
        </resources>
    </route>
</routes>


texts: Extension attribute for shipping method in Magento 2

texts:
I want to display some custom message from admin in front of my custom shipping method. in extension attribute not set individually in shipping method for custom shipping method of cart and checkout. The same custom message is set in all shipping method from extension attribute.

Please suggest some solution.


texts: Custom csv Import not working in magento 2.3

texts:
While doing importing from backend for custom table its trowing  following error

  systemException
  Additional data:
  Error in data structure: entity values are mixed

but its correct validated in magento 2.3 and Same code is working with magento 2.2.6

Any suggestion please share


texts: How to add additianal charges for cash on delivery based on postal codes in Magento 2

texts:
How to add the additional price charges for cash on delivery option selected based on specific postal codes

For Example -: When the customer select the cash on delivery option need to add 50LKR for based on postal code

Ex : postal code 01 - 10500
     postal code 02 - 10600

If one of these postal code selected with cash on delivery option need to add additional 50LKR to cart total


texts:
When purchasing something the order goes through on the website the money gets removed from my account but I don't get an email confirmation to confirm my purchase, but I get other emails like wishlist suggestions newsletter etc not at the same time but it seems to be just sales emails.

I recently install http://www.magentocommerce.com/magento-connect/aoe-scheduler.html extention to see what cron jobs I have running on my site.

Why is my core_email_queue_send_all so packed and how do I clean it out ?

Once I selected all my cron jobs and clicked run my sales emails started coming through, I thought this would run automatically but apparently not, any ideas on how to make this run automatically ?


texts: Magento 2 How to override vendor/magento/magento2-base/setup/view/magento/setup/popupauth.phtml

texts: How do you add vendor/magento/magento2-base/setup/view/magento/setup/popupauth.phtml to a custom theme to restyle the auth popup to match my custom theme and also add new options to it.


texts: Magento 2: How to Banned some words to be used by products and customer?

texts:
I have around 500 words which I want to banned them to be use on product add and user registration. How can i do that ?

I tried using the event and observer for catalog_product_save_after

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
    <event name="catalog_product_save_after">
        <observer name="ghrix_bannedwords_banned" instance="Ghrix\BannedWords\Observer\Banned"  />
    </event>
</config>

any other way to do globally ?

Thanks


texts: Magento 2 Rewrite minicart default.html with phtml

texts:
I have created a file app/design/frontend/my_vendor/my_theme/Magento_Checkout/web/template/minicart/item/default.html to write the Magento 2 standard mini cart default.html. And this is working fine.

However, I need to add some PHP code into my default.html. Can I change this to default.phtml, so I can add PHP code? and how do I tell the system to use default.phtml as the mini cart template? I can't find a layout.xml where we can define the file name.


texts: Can't Add Child Block to category.products

texts:
I am new to Magento .

I have a problem while trying to add a block to ‘category.products’, but if I try to add a block to ‘content’, it works perfect.  I searched through Stack Exchange, but I couldn’t find any solution for my problem.

In my layout file (located at app/design/frontend/default/hookahs/layout/webwhales/seoblock.xml), I have the following:

<?xml version="1.0"?>
<layout version="0.1.0">
    <default>
        <reference name="category.products">
            <block type="webwhales_variousmodule/catalog_categoryseo" name="webwhales_seoblock" />
        </reference>
    </default>
</layout>

My layout file is being loaded, because I can remove a sidebar for example.

The config file looks like this:

<?xml version="1.0" ?>
<!-- Root node for Magento configuration files -->
<config>
    <modules>
        <WebWhales_VariousModule>
            <version>0.1.0</version>
        </WebWhales_VariousModule>
    </modules>
    <global>
        <blocks>
            <webwhales_variousmodule>
                <class>WebWhales_VariousModule_Block</class>
            </webwhales_variousmodule>
        </blocks>
        <models>
            <webwhales_variousmodule>
                <class>WebWhales_VariousModule_Model</class>
            </webwhales_variousmodule>
        </models>
    </global>
    <frontend>
        <layout>
            <updates>
                <webwhales_variousmodule>
                    <file>webwhales/seoblock.xml</file>
                </webwhales_variousmodule>
            </updates>
        </layout>
    </frontend>
</config>

My block class is located at app/code/local/WebWhales/VariousModule/Block/Catalog/Categoryseo.php and has the following content:

<?php
    class WebWhales_VariousModule_Block_Catalog_Categoryseo extends Mage_Core_Block_Template {
        public function __construct() {
            parent::__construct();
            $this->setTemplate( 'webwhales/seoblock.phtml' );
        }
    }

Right now I have no clue what the problem is or how to solve it. When I change <reference name="category.products"> to <reference name="content"> it works, but my code isn't loaded at the right place; it has to be loaded at the top of category.products.

I have also tried to change <default> to <catalog_category_default> or <catalog_category_layered>, but that doesn't make a difference either.


texts: Child theme not being picked up on product detail page

texts:
I'm using Porto theme. I have created a child theme and its working everywhere but the product detail pages.

On those pages it falls back to the default porto theme for all of its templates.

For example there is a template file that is in all pages: /app/design/frontend/smartwave/porto_childtheme/template/page/html/header_type3.phtml but on the product detail page it's not using that child theme template, the first one it see is /app/design/frontend/smartwave/porto/template/page/html/header_type3.phtml. There are also css amends I've made in a copy of layout.xml in the child theme.

I don't have any exceptions set up:

I have turned on the debug template path hints and I can see that there is no mention of the child theme in any of its normal places.

I have turned off all caching.

The site works with my child theme throughout the site except on the product detail pages. On these product detail pages the theme default "header_type3.phtml" is being loaded from "porto" instead of "porto_childtheme", the customisations I have made in local.xml to add css files are being skipped, it's like the child theme isn't being checked first.

Is there a setting that could make the product detail templates some kind of special case when selecting the template files?


texts: How to add status as dropdown list in UI form in magento 2

texts:
I have created a Ui form in magento 2. How do i kept status as dropdown list in Ui form ?
It should look in below format.
Status-1)Enabled
       2)Disabled


texts: How to add custom fields In manage products general tab?

texts:
I want to create some extra fields in catalog->manage product-> general tab section.

give me some suggestion


texts: How to integrate Magento 2 auto deploy with Bitbucket Pipelines?

texts: I have some servers which I use SSH to deploy, each time manually, I'd like to implement Bitbucket Pipelines to do an auto deploy.


texts: Magento 2: Failed to set ini option “session.cookie_samesite” to value “Lax” when updating to - 2.3.6-p1

texts:
We're working on updating to Magento 2.3.6-p1. Everything runs and builds properly, but we're getting an error report as well as an error logged in our System.log.
The error it's throwing is in line 630 of /vendor/magento/framework/Session/SessionManager.php
report.ERROR: Failed to set ini option "session.cookie_samesite" to value "Lax".

Here's the Method:
private function initIniOptions()
{
    $result = ini_set('session.use_only_cookies', '1');
    if ($result === false) {
        $error = error_get_last();
        throw new \InvalidArgumentException(
            sprintf('Failed to set ini option session.use_only_cookies to value 1. %s', $error['message'])
        );
    }

    foreach ($this->sessionConfig->getOptions() as $option => $value) {
        if ($option=='session.save_handler') {
            continue;
        } else {
            $result = ini_set($option, $value);
            if ($result === false) {
                $error = error_get_last();
                throw new \InvalidArgumentException(
                    sprintf('Failed to set ini option "%s" to value "%s". %s', $option, $value, $error['message'])
                );
            }
        }
    }
}

Has anyone run into this yet?


texts: Is there a list of my account sidebar link names for use with removeLinkByName module?

texts:
When trying to remove my account links in the sidebar, using the module outlined here http://www.magentocommerce.com/boards/viewthread/435/#e9

Is there a list of all the names that are associated with each link?


texts: How to enable a shipping method for a specific SKU?

texts:
I'd like to create a module to enable the Table Rate Shipping Method if a product with a specific SKU is the customer cart.

How could I do that?


texts: Observer to trigger before redirecting to payment gateway and after the Magento order creats

texts:
As we all know, if the customer is not redirecting the Magento store smoothly (in case of payment page crashes etc), the customer's shopping cart becomes empty.

I am trying to prevent this functionality by keeping the quote alive. So, I am trying to trigger the event before redirecting to the payment gateway.

I tried with checkout_submit_before and checkout_submit_before, However, this event is not triggering.

My code as below,

events.xml definition as below

Prevent.php inside modules observer directory as below,

<?php

namespace Ucs\ActiveCart\Observer;
use Magento\Framework\Event\ObserverInterface;
use Magento\Framework\App\RequestInterface;
use Magento\Sales\Api\OrderRepositoryInterface;

class Prevent implements ObserverInterface
{

    protected $orderRepository;
    protected $_scopeConfig;
    protected $_storeManager;
    protected $_productRepository;
    protected $_logger;

    public function __construct(
        OrderRepositoryInterface $OrderRepositoryInterface,
        \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig,
        \Magento\Store\Model\StoreManagerInterface $storeManager,
        \Psr\Log\LoggerInterface $logger,
        \Magento\Catalog\Model\ProductRepository $productRepository
    )
    {
        $this->orderRepository = $OrderRepositoryInterface;
        $this->_scopeConfig = $scopeConfig;
        $this->_storeManager = $storeManager;
        $this->_productRepository = $productRepository;
        $this->_logger = $logger;

        $this->website_scope = \Magento\Store\Model\ScopeInterface::SCOPE_WEBSITES; // INITIALIZING WEBSITE SCOPR
    }

    public function execute(\Magento\Framework\Event\Observer $observer)
    {
        $log_file = 'prevent-cart-'.date('Y-m-d').'.log';
            echo '<pre>'; print_r('Sample'); echo '</pre>'; die;
        $writer = new \Zend\Log\Writer\Stream(BP . '/var/log/'.$log_file);
        $logger = new \Zend\Log\Logger();
        $logger->addWriter($writer);

        $logger->info("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
        $logger->info("latest order Id ===> ");
        $logger->info('Received Products are as below');

    }
}

But I don't find the event is triggered. Any suggestion?


texts: Remove header sign in link from magento 2 one page checkout

texts:
I have been playing around with removing elements on magento 2's one page checkout. Not sure how to remove the sole sign in link provided during checkout in the header. The code below does not work in cart_index_index.xml. Any help is appreciated.

  <referenceBlock name="authentication-wrapper" remove="true"/>


texts:
I am trying to read Magento customer from a C# third-party software.
When I enter SOAP into the browser, its throwing error.

URL:-
    http://localhost:81/magento2-2.2.5/soap/default?wsdl&services=customerCustomerMetadataV1

Error:-
    Consumer is not authorized to access %resources

Please suggesr how to resolve this error.

Thanks
Gautam


texts: Magento 2: Is it required to compile after manual extension update?

texts: Is it required to run setup:di:compile after manually sending extension update via FTP? Installation is in production mode.


texts: How to make orders as complete mannually

texts:
I am shipping some orders manually and i want this orders in the magento for record purpose only.so i had placed this orders in the magento.

Now issue is i want to make this orders as complete but i dont want to create invoice and shipment.just make order as complete.

i had tried to make this order as complete programmtically but i am getting error as The Order State "complete" must not be set manually.

this means for order to be complete it should have to be invoiced first then shipment then only order will become complete

is their any way to make this order as complete.


texts: PHP Fatal error:  Uncaught Exception: User Error: Some transactions have not been committed or rolled back in /var/www/html/vype/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php on line 3981 in /var/www/html/vype/vendor/magento/framework/App/ErrorHandler.php:61\nStack trace:\n#0 [internal function]: Magento\Framework\App\ErrorHandler->handler(256, 'Some transactio...', '/var/www/html/v...', 3981, Array)\n#1 /var/www/html/vype/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(3981): trigger_error('Some transactio...', 256)\n#2 [internal function]: Magento\Framework\DB\Adapter\Pdo\Mysql->__destruct()\n#3 {main}\n  thrown in /var/www/html/vype/vendor/magento/framework/App/ErrorHandler.php on line 61, referer:


texts: Why my Magento just send order emails using the Send Email button?

texts:
I have my cron configured, but my order emails are sent just when I click on the Send Email button.

How could I have my emails send via schedule?


texts:
I'm having a problem when using the attributes as filter the a catalog category view, the error is:

Exception #0 (Zend_Db_Statement_Exception): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'marca_filter.value' in 'where clause', query was: INSERT INTO `search_tmp_5a46446e7dce40_69908069` SELECT `main_select`.`entity_id`, SUM(score) AS `relevance` FROM (SELECT `search_index`.`entity_id`, (((0) + (0)) * 1) AS `score` FROM `catalogsearch_fulltext_scope2` AS `search_index`
 LEFT JOIN `catalog_eav_attribute` AS `cea` ON search_index.attribute_id = cea.attribute_id
 INNER JOIN `catalog_category_product_index` AS `category_ids_index` ON search_index.entity_id = category_ids_index.product_id AND category_ids_index.store_id = '2' WHERE (category_ids_index.category_id = 4) AND (marca_filter.value  IN ('169'))) AS `main_select` GROUP BY `entity_id` ORDER BY `relevance` DESC, `entity_id` DESC

Marca is a custom attribute of type text/varchar and Magento has multiple stores.

The thing that i'm guessing that marca_filter is a alias for a table but i cannot figure it out what table is.

How can i know what table marca_filter is? To see if the column is there
What could be the problem? How can i debug it more?


texts:
When I open my .co.uk website, it says a lot of stuff in Dutch from the pack I installed. I want my German website to be German, Dutch to be Dutch and English to be English.

  Why it is not working?

  How can I fix this?

I don't know from where to start.

My website:

  https://www.thefixedgearshop.co.uk

The storeviews:

Not switchable


texts: Sample data set given with Magento Community Edition and having our own data

texts:
I intend to develop an e-commerce solution using Magento Community Edition (free version). During Magento Community Edition installation, we need to first install sample data (given in the magento web-site) which has to be put into a new database in MySQL, which is reflected after the installation in the Magento Demo Store.
I need to develop the e-commerce web-site from the scratch and I have given our own data to be put into the web-site. So, should I first delete the sample data and start developing the web-site, or keep the sample data and demo store as it is, and develop a new web-site with data ? Should I create a new database for this solution or can use the same existing database created for the sample data ?

Thank you very much for your feedback!


texts: Can't seem to extend the WSDL from the local directory

texts:
Very new to Magento and having some issues extending it.

I need to add some attributes to the existing SOAP API.

I have the code working to add those attributes and if I add them to the WSDL and the WSI in the core it works fine, but whenever I remove them from the core and add files to the etc location in my local code dir it fails to work.

Specifically the API I am updating is salesOrderInfo.

I have created my override file inside /app/code/local/Mage/Sales/Model/Order/Api.php

I have put the following code in this location: /app/code/local/Mage/Sales/etc/wsdl.xml

<?xml version="1.0" encoding="UTF-8"?>
  <definitions xmlns:typens="urn:{{var wsdl.name}}"
     xmlns:xsd="http://www.w3.org/2001/XMLSchema"
     xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
     xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
     xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
     xmlns="http://schemas.xmlsoap.org/wsdl/"
     name="{{var wsdl.name}}" targetNamespace="urn:{{var wsdl.name}}">
  <types>
    <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:Magento">
        <complexType name="salesOrderItemEntity">
            <all>
               <element name="pvx_line_price" type="xsd:string" minOccurs="0" />
            </all>
        </complexType>
    </schema>
</types>

and the other one is here: /app/code/local/Mage/Sales/etc/wsi.xml

<?xml version="1.0" encoding="UTF-8"?>
     <wsdl:definitions xmlns:typens="urn:{{var wsdl.name}}"
         xmlns:xsd="http://www.w3.org/2001/XMLSchema"
         xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
         xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
         xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
         name="{{var wsdl.name}}"
         targetNamespace="urn:{{var wsdl.name}}">
<wsdl:types>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:{{var wsdl.name}}">
        <xsd:complexType name="salesOrderItemEntity">
            <xsd:sequence>
        <xsd:element name="pvx_line_price" type="xsd:string" minOccurs="0" />
            </xsd:sequence>
        </xsd:complexType>
    </xsd:schema>
</wsdl:types>

I have tried so many times to work out what caches I might need to disable, rebuild etc but I've hit pretty much the end of my tether on this one. I've exhausted all the googling and tutorials I can find. I am basically following what I think should work.

Please bear in mind in your reply I am new to Magento so may not know how to do what you are describing. That said I am not new to PHP. It has to be said in all the years I have never found such a complex system to extend.


texts: Get quotes (active and inactive) for a customer

texts:
The goal is to get all the quotes for a given customer (considering id, email, whatever).

But this quotes collection seems to work differently from those of customers and products.

First attempt: getCollection

$quote_collection = Mage::getModel('sales/quote')->getCollection()
  ->addFieldToFilter('customer_id', $customer->getId())
  //or //addFieldToFilter('customer_email', $customer->getEmail())

Gives a frustrating (even by filtering on created_at)

Allowed memory size of 268435456 bytes exhausted ...

To avoid messing around with server's memory, tried appending

  ->limit(10)

Which gives the error

Call to undefined method Mage_Sales_Model_Resource_Quote_Collection::limit()

Deserately, try to limit to only one result, using getFirstItem: it works perfectly and the code is now

$quote_collection = Mage::getModel('sales/quote')->getCollection()
  ->addFieldToFilter('customer_id', $customer->getId())
  ->getFirstItem(); //->limit(10);

Too well in fact, since I do not want only one quote but all of them.

Second attempt: getSelect

$quote_collection = Mage::getModel('sales/quote')->getCollection()
  ->getSelect()
  ->where('(customer_id='.$customer->getId().')');
Mage::log($quote_collection->__toString());

The sql is exatly what I want:

SELECT `main_table`.*
FROM `sales_flat_quote` AS `main_table`
WHERE ((customer_id=136))

Which gives 8 lines on the Magento sample data, for customer 136.

But I do not know a way to get the results from this query (not even that), since

$quote_collection = Mage::getModel('sales/quote')->getCollection()
  ->getSelect()
  ->where('(customer_id='.$customer->getId().')')
  ->getItems();

Results in a error report telling:

Unrecognized method 'getItems()'

Any suggestion? TIA!

EDIT: Finally, the first part was nearlyy right, my memory issues were caused by some var_dump :)

The working code is

$quote_collection = Mage::getModel('sales/quote')->getCollection()
  ->addFieldToFilter('customer_id', $customer->getId());
foreach($quote_collection as $key => $quote)
{
  $quote_data=$quote->getData();
  Mage::log('quote '.$quote_data['entity_id'].')
  Mage::log('  created at '.$quote_data['created_at']);
  if($quote_data['is_active']) {
    Mage::log('  is active');
  }
  Mage::log('  $'.$quote_data['grand_total']);
}


texts: How to define/change baseurl in config for magento 2.0?

texts:
For magento 1.x we could create /app/etc/local.xml and define something like following:

<stores>
        <default>
            <web>
                <unsecure>
                    <base_url>http://new.magento/</base_url>
                </unsecure>
        <secure>
                    <base_url>http://new.magento/</base_url>
                </secure>
        </web>
        </default>
        <admin>
            <web>
                <unsecure>
                    <base_url>http://new.magento/</base_url>
                </unsecure>
        <secure>
                    <base_url>http://new.magento/</base_url>
                </secure>
        </web>
        </admin>
    </stores>

I can't seem to find how to do that for Magento 2.0 CE. Why is this needed? This is for the dev setup that we are sharing right now. If we could have a common database, svn would have been a lot easier to maintain.

Further explanation:
What I am trying to do is to override the secure and unsecure base_urls set inside core_config_data table. This is to allow every dev machine to have the same database and use the same svn repository without having to worry about product uploads, orders, migrations and all other upgrade stuffs.


texts:
What i am trying to do is rewrite some URLs and apply SSL on certaing pages on my site.

This is the code that i have:

  RewriteEngine on
    RewriteBase /
    RewriteRule ^mylogin$ index.php?view=login [QSA,L,NC]
    RewriteRule ^registerme$ index.php?view=register [QSA,L,NC]
    RewriteCond %{HTTPS} off
    RewriteRule ^(mylogin|registerme)/?$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L,NC]

This works to the extent that:
I am able to access http(s)://example.com/mylogin both. Also http(s)://example.com/index.php?view=login is still available. My goal is to have only one active URL https://example.com/mylogin .

Another thing is that i have a lot of pages on my site tied to index.php. What i would like to do is when someone opens http://example.com to go to https://example.com.

I also have rewites for the pages that i need to force them to http://

RewriteRule ^viewpr$     index.php?view=products  [QSA,L,NC]
RewriteRule ^wall$       wall.php                  [QSA,L,NC]
RewriteRule ^services$   services.php              [QSA,L,NC]
RewriteRule ^exchange$  exp_exchange.php?view=exp       [QSA,L,NC]

So to summarize i need https://example.com , https://example.com/mylogin and https://example.com/registerme, and i need only those options available.

For the rewrites on the bottom same thing but on http:// . Honestly i dont care about the other URLs. Please advice.


texts: Magento 2: User get Redirected to Empty Cart Page?

texts:
When I placed order from checkout page with money order. User get redirected to empty cart page instead of success page.

I am using one step checkout in website.


texts: in Magento 2: How to set Currency by default Billing Address Country

texts:
How we can set Currency by default Billing Address Country. I was trying to implement the same using the solution mentioned in

  How to set Currency by default Billing Address Country in Magento 1.9?.

But now I got stuck in the following error.

  Fatal error: Uncaught Error: Class 'Mage' not found. Becuase "
  Mage::app()->getStore()->setCurrentCurrencyCode($mapping[$countryCode]);"
  not supported in magento 2.

I was trying to do change the currency on cutomer login based on billing addrsss country with the help of observer.

Can anybody help on how we Can set the store currency in Magento 2?


texts: How to turn off specific Magento Crons for a development store?

texts:
Synopsis

I have a development environment which is a copy of the production system.  I would like to be able to turn off certain crons in this development environment so orders, products and the likes are not synchronised with third-parties.

I do however need certain crons to run, some of which are being developed within this environment.


texts: How to skip shipping method magento 1.9.2.1

texts:
Is there any way to skip Shipping method in checkout? i have one checkbox in checkout billing block see below image

so when customer click on that checkbox then shipping method will be skip.


texts:
I've been working with magento for a long time. I've done all the basics.  I'm also to the point i'm stepping through code using xdebug + phpstorm and STILL can't figure it out.

None of the default templates will show on my site. In admin, when i edit a page, and click the dropdown for layouts, its just empty. I've ripped every single  customized part / module out, and i've also deleted the enterprise / base themes and re-copied them over in case i had done something stupid in the past for a fix. My /app/code/local directory is GONE, and i've deleted community, and all the modules in /etc related to them. I've chosen enterprise and even base just to get something to happen at all.  All i can get is no layouts in the backend, and the white screen of death on the front.  No logs entries in system, php, nginx, anything.

All caches are disabled, and i'm still clearing and deleting the cache folder.

I cannot for the life of me figure out why magento can't get the layouts out of enterprise / base.


texts:
I created a widget and assigned the following values to it:

Type: Catalog Category Link
Design Package/Theme: rwd / default
Widget Instance Title: Categories
Sort Order: 1

Now I want it displayed in the sidebar below the default poll.  How do I do that?


texts: redirect to a controller from block magento2

texts:
I was trying to check few things on a function defined on the block.So if that condition doesn't match, I need to redirect from that function defined on that block to the controller action.

Can anyone please suggest how I achieve this?

Also how can I achieve the same using objectmanager not using factory method.

Can you suggest both ways on doing it.


texts: Magento2 - Failed Data validation at product import

texts:
I try to update all my Product-images with an import via .csv. I got all the images in pub/media/import and declared them in the csv-file.

Even everything should be valid i get a error:

Data validation failed. Please fix the following errors and upload the file again.

Checked rows: 8832, checked entities: 9041, invalid rows: 0, total errors: 1

Since i cant find the error or it is not visible for me I cant resolve it...

I hope someone can help me.


texts: Magento 2.35p2 EE with AWS ElasticSearch 6.8 - wrong products being returned

texts:
We recently upgraded from Magento EE 2.1.18 with ES 2.3 to Magento 2.3.5p2 with ES 6.8 on AWS.
The previous version of the system returns correct results when a user specifies a search keyword.
In the 2.3.5p2 version we are getting extraneous results - products that do not contain the search word are being displayed on the results page.
In examining the search logs in ES, the search query that Magento is generating looks correct.
There are no references to the incorrect products, yet on the results page the incorrect products are displayed.
How does Magento use the search results from ES to identify the products in the magento database to display?
Thank you.


texts: Shipping Rates are not showing on cart page

texts: I have upgraded my site from 2.2.4 to 2.3.5-p1. I am getting the shipping method name on the cart page but not getting the shipping rate.


texts: can someone give me a good documentation or resource on where can i understand how product super attributes works? its the catalog_product_super_attribute table. Thanks


texts: How can i configure, Payment pending order remainder auto-mail to customer

texts: In my site have option cash on delivery and Bank deposit, if customer placed order by cod or Bank Deposit, How can i remember to customer if order not completed with in 2 days.


texts: How redirect simple products of Configurable product

texts: How to redirect a simple product's page to the parent configurable product page?


texts: Magento 2: How can I add products in recently viewed via API

texts: I am building a mobile app using magento2 rest API, I want to add product in recently viewed when any customer views the product on the mobile app. Can anyone help me on this?


texts: How is the Onepage checkoutProvider implemented and how could a custom provider be written for a similar component, for example a product page "productProvider" specific to that product, with all of the frontend for the page written in uiComponents?


texts: Add each product items separately to a shopping cart

texts:
I want to make adding to the shopping cart as a separate item on every action of clicking to a button Add to Cart. If the customer clicks Add to Cart a couple of times he/she should see different items in the shopping cart with qty 1.

I know about this question but this is not having an answer.

So is it possible to somehow achieve this?


texts:
I need to remove message after 2 sec but its not working

$.ajax({
                        'method': 'post',
                        'url': $form.attr('action'),
                        'dataType': 'json',
                        'data': $form.serialize(),
    'success': function (res) {
                                if (res.success) {
                                    $form.find('[type=submit]').removeAttr('disabled');
                                   var h = '

' + res.message + '

';
                                   $(h).insertBefore($form);
                                    $form.hide();
                                    setTimeout(function () {
                                        $(h).remove();

                                }, 2000);

                            }
                        }});


texts:
I would like to display my "Products" category items on my homepage for https://cashino.kellyseye.com/

The "home-page-main-content" static block contains the following code:

{{block type="core/template" name="home-page-center" as="home-page-center" template="homepage/home.phtml"}}

"home.phtml" contains the following code:

<?php $_helper = Mage::helper('catalog/category') ?>
<?php $_rootCategories = $_helper->getStoreCategories() ?>
<?php $currentCategory = Mage::registry('current_category') ?>

<?php
if (count($_rootCategories) > 0):
$_columnCount = 3;?>

<?php foreach ($_rootCategories as $_rootCategory)
{?>
        <?php $_rootCategory = Mage::getModel('catalog/category')->load($_rootCategory->getId()); ?>
        <?php $_categories = $_rootCategory->getChildrenCategories(); ?>
        <?php $i=0;?>
        <?php foreach($_categories as $_category):
                $_categoryDetail = Mage::getModel('catalog/category')->load($_category->getId());
        ?>

        <?php if($i%($_columnCount) == 0) { ?>

        <?php }

        if(($i+1)%$_columnCount==0)
          $class = 'item last';
        else
          $class= 'item';
        ?>
            <a href="<?php echo $_helper->getCategoryUrl($_categoryDetail) ?>">
                <li class="<?php echo $class;?>" style="background: #fff; background-image: url('<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA).'catalog/category/'.$_categoryDetail->getImage()?>'); background-size: cover; background-repeat: no-repeat;">

                        <?php echo $_categoryDetail->getName() ?>
                        <?php if($_categoryDetail->getDescription() != "") { ?>

                                <?php
                                $desc = strip_tags($_categoryDetail->getDescription());
                                if (strlen($desc) > 200) {
                                    // truncate stringstring
                                    $stringCut = substr($desc, 0, 200);
                                    // make sure it ends in a word so assassinate doesn't become ass...
                                    $desc = substr($stringCut, 0, strrpos($stringCut, ' ')).'...';
                                }
                                echo $desc;
                                ?>

                        <?php } ?>

        <?php
        $i++;

            if ($i % ($_columnCount) == 0 || ($i == count($_categories))) {?>

            <?php }?>

        <?php endforeach; ?>
<?php }?>
<?php endif; ?>

I would like to keep this as it is displaying the products on https://store.kellyseye.com/ perfectly.

Please help!


texts: How to load a model with relationships via repository in Magento 2?

texts:
Background story:
I was trying to load a model with model_store relationship using this snippet. I failed to do that with my own model. Model is being loaded without store data. Some debuging later I found out that my table_store isn't even joined to main table in queries.
Same problem with a stock model:
I tried same actions with a stock model - \Magento\Cms\Model\Block. Results are the same. I can load an array of blocks but without any store data whatsoever.
Adding a store filter results with a zend error in sql generated by the ORM:
Exception #0 (Zend_Db_Statement_Exception): SQLSTATE[42S22]: Column not found:
1054 Unknown column 'store_table.store_id' in 'where clause',
query was:
SELECT `main_table`.* FROM `cms_block` AS `main_table` WHERE ((`store_table`.`store_id` IN(0, 1, 2, 3, 4, 5))) ORDER BY main_table.block_id ASC

I used following code in a plugin to perform the tests:
<?php
namespace Vendor\Module\Plugin\Checkout\Model\Checkout;

use \Magento\Framework\Api\SearchCriteriaInterface;
use \Magento\Framework\Api\Search\FilterGroup;
use \Magento\Framework\Api\FilterBuilder;

class LayoutProcessor
{
    /**
     * @var SearchCriteriaInterface
     */
    private $criteria;

    /**
     * @var FilterGroup
     */
    private $filterGroup;

    /**
     * @var FilterBuilder
     */
    private $filterBuilder;

    /**
     * LayoutProcessor constructor for DI.
     * @param SearchCriteriaInterface $criteria
     * @param FilterGroup $filterGroup
     * @param FilterBuilder $filterBuilder
     */
    public function __construct(
        SearchCriteriaInterface $criteria,
        FilterGroup $filterGroup,
        FilterBuilder $filterBuilder,
        \Magento\Cms\Model\BlockRepository $blockRepository
    ){
        $this->searchCriteria = $criteria;
        $this->filterGroup = $filterGroup;
        $this->filterBuilder = $filterBuilder;

        $this->filterGroup->setFilters([
            $this->filterBuilder->setField('store')
                ->setConditionType('in')
                ->setValue([0,1,2,3,4,5])
                ->create()
        ]);
        $this->searchCriteria->setFilterGroups([$this->filterGroup]);
        $blocks = $blockRepository->getList($this->searchCriteria)->getItems();
        $firstBlock = $blocks[0];
    }
}

How can I load models with all data from related tables via repository? Currently I'm able to load them correctly only using collection.


texts:
I have installed fresh Magento and have backup old public_html files.But I forget export products from Magento admin. How can I export catalog tables from myphpadmin section ?

I still backup old database.

Also import to new database ?


texts: Custom button in product form does not generate a proper form key

texts:
So I need to add a Save & Close button on the product grid.

It even works, but not quite so. On clicking that button product is saved, and redirect to product grid happens. But with an error "Invalid security or form key. Please refresh the page.":
.
In page code, I see that form keys on the back button and Save & Close button are different.

Button is added via product_form.xml :

<form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
    <argument name="data" xsi:type="array">
        <item name="buttons" xsi:type="array">
            <item name="save-close-button" xsi:type="string">Vendor\Module\Block\Adminhtml\Product\Edit\Button\Save</item>
        </item>
    </argument>

Button class:

class Save extends Generic
{
    /**
     * @inheritdoc
     */
    public function getButtonData()
    {
        if ($this->getProduct()->isReadonly()) {
            return [];
        }

        return [
            'id_hard' => 'save_and_close_add',
            'label' => __('Save & Close'),
            'class' => 'save',
            'data_attribute' => [
                'mage-init' => [
                    'buttonAdapter' => [
                        'actions' => [
                            [
                                'targetName' => $this->getSaveTarget(),
                                'actionName' => $this->getSaveAction(),
                                'params' => [
                                    true
                                ]
                            ]
                        ]
                    ]
                ]
            ],
            'class_name' => Container::DEFAULT_CONTROL,
        ];
    }

    /**
     * Retrieve target for button.
     *
     * @return string
     */
    protected function getSaveTarget()
    {
        $target = 'product_form.product_form';
        if ($this->isConfigurableProduct()) {
            $target = 'product_form.product_form.configurableVariations';
        }
        return $target;
    }

    /**
     * Retrieve action for button.
     *
     * @return string
     */
    protected function getSaveAction()
    {
        $action = 'save';
        if ($this->isConfigurableProduct()) {
            $action = 'saveFormHandler';
        }
        return $action;
    }

    /**
     * Is configurable product.
     *
     * @return boolean
     */
    protected function isConfigurableProduct()
    {
        return !$this->getProduct()->isComposite() || $this->getProduct()->getTypeId() === ConfigurableType::TYPE_CODE;
    }

Is there a way to fix that? What am I doing wrong?


texts: How can i add Sample Track of My Songs Releated Items

texts: I need to Assign Sample track of my Songs Related Items, In every products i need to set up sample track.


texts: Change position of Cart Link in Top Links

texts:
I want to put the Cart link at the end of the top links - ideally using my local.xml file.

Most top links are added like this:

<reference name="top.links">
      <action method="addLink" translate="label title" module="customer"><label>My Account</label><url helper="customer/getAccountUrl"/><title>My Account</title><prepare/><urlParams/><position>10</position></action>
</reference>

where I can obviously change the position.

But the cart links seem to be added like this:

<block type="checkout/links" name="checkout_cart_link">
       <action method="addCartLink"></action>
       <action method="addCheckoutLink"></action>
</block>

How do I change the position of a link that doesn't use the addLink method?


texts: Does changing the session save type from database to file have any affect to store functioning when changing it in live site? I'm presuming at least current sessions are cut off. Working with Magento 1.7.0.2. Any other risks that I should consider / tackle?


texts: Magento 2 exception Requested product doesn't exist

texts:
My site running Magento 2.2.4 has been throwing a high number of exceptions: Requested product doesn't exist.

The error comes from method getById() in ProductRepository, line 273:

                throw new NoSuchEntityException(__('Requested product doesn\'t exist'));

Looking for answers on the internet I saw messages such as lack of SKU on products and module relate issues, but sku's are all complete including flat and indexes. Neither I could find the buggy extensions installed.

There are no stack traces with the error message either.

Anyone can help me ? Thanks !


texts:
Is there a way to have customers email address automatically recorded at the back end after they enter it on checkout page but they do not place order?

I want to have a record of customers who leave the site before they submit the quote request so I can contact them for follow up.


texts: Create configurable product magento 2 Programmatically

texts: Create Programmatically configurable & simple product


texts: I'm trying to add an event like 'keyup: validationSuccess' to all input fields on the checkout. I have overwritten input.html and added the Js to Shipping.js but now when i go to checkout/cart.html I get an error because of course the validationSuccess function doesn't exist on the Cart JS. So I need the function on all inputs on the Checkout but not on the Cart so overwriting input doesn't work. How do I do this the right way?


texts: How to change Category page layout in Magento 2?

texts:
I am using Porto theme in Magento 2 ?
I want to change the layout of category page like :
I want to show price filter from sidebar to top just below the menu and make listing to full width ?
How would i do that any help is appreciated ?


texts: How Do I Specify Certain Products To Only Be Purchasable and Shipped To UK

texts:
I have a brand of products which we are not allowed to ship outside of the UK. Is it possible in the back-office of Magento to specify a brand/category to ONLY show the UK shipping options (i.e. preventing customers from placing the order to an international country)?

I would still like the rest of my brands/categories to be shippable internationally. I just need to exclude 1 brand/category.


texts: Magento 2 How create Time Range Picker in ui component?

texts:
I want create for my working store hours
https://devdocs.magento.com/guides/v2.4/pattern-library/getting-user-input/date_time_selector/date_time_selector.html#time-range-picker
How i can create this? Please, help me!


texts: How Do I Upgrade From Magento 1.9.2.4 to 1.9.3 (and what are the related problems?)

texts:
I've got several separate Magento installations using version 1.9.2.4

I need to update to 1.9.3. What is the 'official' method of updating? And what are the alternative methods, if any?

I normally update my versions of Magento using the update function in Plesk, but I don't think it supports Magento 1 any more (although I'm not 100% sure of this!)

If needed, I have access to my server via FTP, and I'm able to download Magento 1.9.3 from Magento Tech Resources but I'm not sure what I'm supposed to do with it once I've downloaded it.

Also, what problems have been found after updating to 1.9.3?

Due to extensions I use not being available (yet), I am NOT looking to upgrade or migrate to Magento 2.0 at this time. I just need to know about upgrading to 1.9.3.


texts: How to export product SKU and its related category tree path in CSV file

texts:
I want to export my products in CSV file. I have used DataFlow profiles Export Products functionality but it exports products with category_ids e.g. 2,4,56

I want to export category names with category ids

My Category with ID 2 is ABC and the Path for this category is Root Catalog > Parent Category > ABC

I need to export path of the category like Parent Category/ABC instead of 2 and so on for other categories.

The final export data will look something like below.

SKU       Category ID   Category Path
-----------------------------------------------------------------------------
sku1        2,4,56      Men/Tees, Knits and Polos, Accessories/Bags & Luggage
sku2        6,8,12      Sale, Sale/Men/Shorts, Sale/Home & Decor
sku3        14,22       Men/New Arrivals, Sale/Accessories

I have 17k+ products on my store.


texts: Magento 2 system configuration changes not applying

texts: Magento 2 I am trying to change ups licence number and user is after saving it not showing values it showing blank can any one tell why it happening


texts: Magento not sending order emails despite cron being set up correctly

texts:
Having some real trouble getting my Magento installation to send out order emails.

Before you say it, I've set up a cron, and yes it's running (I've even tested it with a basic php echo to be sure).

I've currently got the cron set up as

 /usr/bin/php -f /home/username/public_html/cron.php

But I've also tried

www-data /bin/sh /home/username/cron.sh cron.php -m=always
php -f /home/username/public_html/cron.php

All scheduled between 1 and 15 minutes per cycle.

I've also set up the AOE scheduler AND ran the core_email_queue_send_all task and all emails send as expected. On the AOE, I get a heartbeat task error, but then again I have the same on another site where I'm having no issue.

Could this be a server thing? I believe the IT guy changed some permissions to allow me shell access, but I can't see why that would be a problem.

Thanks in advance.


texts: Hide shipping option if another available

texts:
I have a freeshipping and another (same shipping but with price).

THe set up is that when the cart is more than 35€ the freeshipping is applied.

But the problem is that another shipping is also displayed.

I want to hide it if the free shipping is available.

I found one short tutorial witch suggested to include this code before dt in available.phtml this code:

    <?php
if ( array_key_exists('freeshipping_freeshipping', $_shippingRateGroups)){
    unset($_shippingRateGroups["flatrate_flatrate"]);
}
?>

But it doesn't work for me... I don't know why.

I'm on Magento 1.9,

Any ideas?

Thanks,


texts: How to show list of top 10 customers who have purchased most of the products on the site

texts: How to show list of top 10 customers, who have purchased most of the products on the site.


texts: How to remove More Choices option block from checkout cart page?

texts: Noted that sometimes More Choices block is displayed below update cart button. Also I debugged and found that these are cross sell products of some item which are in the cart. How to remove this cross sell / More Choices block from checkout cart page?


texts: knockout js text bind giving object instead of string in magento2

texts:
I am binding knockout js value to html but it's give me

[object HTMLLIElement]

insteadof value

  prescriptionList:{customer_prescription_id: "1", customer_id: "23971", customer_name: "Rutvee Sojitra", customer_email: "rutvee.sojitra@krishtechnolabs1.com", prescription: "This is some Description for this product option", …}
enter code here


texts: Magento Customer Login Notification Email Sent to Customer

texts:
Is there an easy solution for the customer to receive a notification email every time login to the store?

i am creating extension

Custom_Notify.xml

<?xml version="1.0" encoding="UTF-8"?>
<config>
    <modules>
        <Custom_Notify>
            <active>true</active>
            <codePool>local</codePool>
        </Custom_Notify>
    </modules>
</config>

config.xml

<?xml version="1.0"?>
<config>
  <modules>
    <Custom_Notify>
      <version>0.1.0</version>
    </Custom_Notify>
  </modules>
  <frontend>
    <events>
    <customer_login>
        <observers>
            <cnotify>
                <type>model</type>
                <class>cnotify/observer</class>
                <method>customerNotify</method>
            </cnotify>
        </observers>
    </customer_login>
    </events>
  </frontend>
  <global>
    <helpers>
      <cnotify>
        <class>Custom_Notify_Helper</class>
      </cnotify>
    </helpers>
    <blocks>
      <cnotify>
        <class>Custom_Notify_Block</class>
      </cnotify>
    </blocks>
    <models>
      <cnotify>
        <class>Custom_Notify_Model</class>
      </cnotify>
    </models>
  </global>
</config>

observer.php

<?php

class Custom_Notify_Model_Observer {

  public function customerNotify($observer) {

    /* for  Template  */
    $template_id= '1';

     $customer = Mage::getSingleton('customer/session')->getCustomer();

    $recepient = array(
        'name' => $customer->getName(),
        'email' => $customer->getEmail()
    );

    $sender = array(
        'name' => Mage::getStoreConfig('trans_email/ident_general/name'),
        'email' => Mage::getStoreConfig('trans_email/ident_general/email')
    );

    $email_template_variables = array(
        'customer_name' => $customer->getName(),
        'customer_email' =>  $customer->getEmail()

    );

    $email_template  = Mage::getModel('core/email_template')->loadDefault($template_id);
    $storeId = Mage::app()->getStore()->getId();

    $email_template->setSenderName($sender['name']);
    $email_template->setSenderEmail($sender['email']);
    $email_template->send($recepient['email'], $recepient['name'], $email_template_variables,$storeId);

    }

}


texts:
Product images are not uploading while saving the products. This happens only when I try to update the product. After trying to save the image, it throws an error and says,

  Update with id "0" does not exist.

I got the following exception in the log file.

  [2018-01-08 06:47:17] report.CRITICAL: Update with id "0" does not
  exist. {"exception":"[object]
  (Magento\Framework\Exception\NoSuchEntityException(code: 0): Update
  with id \"0\" does not exist. at
  \vendor\magento\module-staging\Model\UpdateRepository.php:103)"}

What is causing the problem? Why is it happening? I don't really understand.


texts: How to add a color picker in custom form field in admin magento 2?

texts:
How can I add a color picker in custom form field in admin magento 2?

Note: not in system-config


texts: Add container under body directly in Magento 2

texts:
In Magento 2, I want add a new container right.sidebar under <body> directly, not under content container. Then move the block catalog.product.related to the new container. I write the codes below in my custom catalog_product_view.xml, but it doesn't work. Thanks for any advice :)

<?xml version="1.0"?>
<page layout="1column" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <container name="right.sidebar" />
        <move element="catalog.product.related" destination="right.sidebar" />
    </body>
</page>


texts: Beginner question about Kubernetes and Magento 2

texts:
i followed a tutorial to install magento 2 with kubernetes using alexcheng1982 / docker-magento2 package.
But the magento installation fails due to a database problem:
[ERROR] InvalidArgumentException: Cannot process definition to array for type set in /var/www/html/vendor/magento/framework/Setup/Declaration/Schema/Db/DefinitionAggregator.php:57

So now I would like to inspect the tables via phpmyadmin and work on the files with phpstorm
but
how do I reach the magento files that presumably will be in the virtual machine created with minikube?
In practice, how should I set up phpstorm to have the project files synchronized with those of the virtual machine?
Any help will be appreciate!


texts:
I'm trying to create a POST call to a custom API for magento 2 , but I do not know how to do this. What is the correct way to do this request?

Code:

  webapi.xml

<?xml version="1.0"?>
<routes xmlns:xsi="http://www.ws3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Webapi:etc/webapi.xsd">
    <route url="/V1/rest/produtos/" method="POST">
        <service class="Api\Rest\Api\HelloInterface" method="name"/>
        <resources>
            <resource ref="anonymous"/>
        </resources>
    </route>
</routes>

  di.xml

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<preference for="Api\Rest\Api\HelloInterface" type="Api\Rest\Model\Hello" />
</config>

  HelloInterface.php

namespace Api\Rest\Api;

interface HelloInterface
{

public function name($nome);

}

  Hello.php

namespace Api\Rest\Model;
use Api\Rest\Api\HelloInterface;
class Hello implements HelloInterface
{

    protected $request;
    public function __construct(
        \Magento\Framework\App\RequestInterface $request
     )
     {
        $this->_request = $request;
     }

    public function name($nome)
    {
        //$params = $this->_request->getParams();
        return "test";
    }

}

My request

  Header:

Content-Type: application/json

  Send:

{"nome":"test"}

  Return Body:

{
"message": "\"%fieldName\" is required. Enter and try again.",
"parameters": {
    "fieldName": "nome"
} }


texts:
I try using session variable in my custom module on Magento 2.1.9 Enterprise Edition, cloud version.
When i post my form, i can set and display session variable in my controller. But when i quit the page, go back and display session variable, it's empty...

My controller code is :

<?php
namespace Vendor\VendorModule\Controller\Index;

use \Magento\Framework\App\Action\Action;

class Index extends Action
{
    /** @var  \Magento\Framework\View\Result\Page */
    protected $resultPageFactory;

/** @var  \Magento\Framework\Session\Generic */
protected $_genericSession;

/**
 * @param \Magento\Framework\App\Action\Context $context
 */
public function __construct(\Magento\Framework\App\Action\Context $context,
                            \Magento\Framework\View\Result\PageFactory $resultPageFactory,
                            \Magento\Framework\Session\Generic $genericSession
                            )
{
    $this->_resultPageFactory = $resultPageFactory;
    $this->_genericSession = $genericSession;
    parent::__construct($context);
}

/**
 *
 * @return \Magento\Framework\View\Result\PageFactory
 */
public function execute()
{
    // Form submit
    $post = $this->getRequest()->getPost();

    if ($post && count($post) > 0) {

        $this->_genericSession->setRX($post);

    }

    echo "<pre>";
    var_dump($this->_genericSession->getRX());
    echo "</pre>";

    // Add page title
    $resultPageFactory = $this->_resultPageFactory->create();
    $resultPageFactory->getConfig()->getTitle()->set(__('Page title'));

    // Add breadcrumb
    /** @var \Magento\Theme\Block\Html\Breadcrumbs */
    $breadcrumbs = $resultPageFactory->getLayout()->getBlock('breadcrumbs');
    $breadcrumbs->addCrumb('home',
        [
            'label' => __('Home'),
            'title' => __('Home'),
            'link' => $this->_url->getUrl('')
        ]
    );

    $breadcrumbs->addCrumb('explore-breadcrumbs',
        [
            'label' => __('Page title'),
            'title' => __('Page title')
        ]
    );

    return $resultPageFactory;
    }
}
?>

It seems many topics on the web about session problem. Is there really a problem
 with session ?

Thanks


texts: Insted of clicking the WYSIWYG Editor is it possible to make it visible without clicking ?


texts: Magento 2 - how to redirect to popup login form while add a product to wishlist

texts:
I add a popup login form in my magento 2 template and when I add a product to the wishlist and I'm not logged in, I want to show the popup for the login and then add to wishlist the product.

Anyone knows how to do it?

Thanks


texts:
I have multiple website and multiple store Magento 2.3 based website
but recently i can't save shipment if i try i get error
like this "Cannot save shipment"
can u please any one help me ?


texts:
Hi i have encountered a very strange error today in my console log where my js files are missing and this is the error which am getting in the console
DevTools failed to load SourceMap: Could not load content for https://domain.com/static/version1595961576/frontend/Test/Test2/en_US/Magento_PageBuilder/js/resource/jarallax/jarallax.min.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE

any fix for this please let me know


texts: Flushed Cache and lost database connection

texts:
The last thing I did was System/Cache Management/Flush Magento Cache, now it appears database connectivity has been interrupted:

  ERR (3): Warning: PDO::__construct(): php_network_getaddresses:
  getaddrinfo failed: Name or service not known  in
  /opt/bitnami/apps/magento/htdocs/lib/Zend/Db/Adapter/Pdo/Abstract.php
  on line 129


texts: Magento 2 flat catalog category not available

texts:
I would like to enable Flat Catalog Category in our multistore Magento 2 (2.1.9), but I cannot find the option in Store > Configuration > Catalog > Catalog > Storefront

What could be the cause of this problem?


texts: Magento Performance using image Optimization tool

texts:
My current Magento EE1.14 website is loading around 9 seconds with enabling Varnish Cache, Merging JS and CSS, Having Nginx web server, enabling Zend Opcache, running page warm up scripts, enabled Magento compilation and updating Php & Mysql settings as well.

We also installed Fishpig Smush it tool for Image optimizing. the script ran almost 10hrs to optimize the images and it really optimized. When we cleared the cache, image sizes are reverted to the original version.

Fishpig Smush it tool only optimizing Media Catalog images. Is there any extension / API to optimize images in WYSIWYG folders as well

Kindly help me to find a solution to make website run under 5 secs


texts: Paypal PayFlow Pro -> How to modify transaction data?

texts:
How would I modify the data in a PayFlow Pro transaction? I want to add some stuff to the comments. I know that the tranction data is built in the _addMethodToRequest() function in
the /app/code/core/Mage/PaypalUk/Model/Api/Nvp.php file.

I really don't want to modify the core source code. We are using 1.4.0.1 with intentions of maybe upgrading later.

This post shows how to do it as a module but doesn't give the version. I followed the steps, modifying them to fit the version I have, but it isn't working. http://www.magentocommerce.com/boards/viewthread/274906/


texts: Issue Accessing Model in Custom Head Block

texts:
I'll prefix this by saying I'm a frontend guy, so forgive my general lack of knowledge but I am trying to learn. I'm using an addon called 'Zeon Manufacturer' (CE 1.9.2), basically associates a chosen manufacturer product attribute with further data about the manufacturer.

I'm trying to manipulate the manufacturers detail pages to add Schema/OpenGraph data but having trouble accessing the model within a block I've added to the head.phtml, the only place that data can go. For example:

<meta property="og:description" content="<?php echo $_manufacturer->getDescription(); ?&gt">

On the page content block itself, view.phtml, the variables I need are accessed as such:

$_manufacturer = $this->getManufacturer();
$example = echo $_manufacturer->getDescription();

I've also been able to access the model on product pages no issue using:

$manufacturerId = $_product->getManufacturer();
$_manufacturer = Mage::getModel('zeon_manufacturer/manufacturer')->load($manufacturerId, "manufacturer");
$example = echo $_manufacturer->getDescription();

However on my custom block, meta.phtml, I can't any method I try to work:

$_manufacturer = $this->getManufacturer();

Or:

$_manufacturer = Mage::getModel('zeon_manufacturer/manufacturer')->load('example', "manufacturer");

I'm sure there's some core PHP concept I'm missing, perhaps the scope where I can access the model or limitations imposed on the head child blocks before the page content is generated?

I'm trying to learn so please forgive any naivity.


texts: Attributes not showing on configurable product

texts:
I am trying to follow this guide to create some configurable products, however the attributes are not showing on the new product page when I am creating it.
I created an attribute called colour_suit. Below are the options I used.

After creating the attribute I created an attribute set called Suits and added the colour_suits attribute to it (below SKU).

Next I set the Attribute Set to Suits and Product Type to Configurable Product and I the checkbox beside Suits colour and then clicked Continue. I don't see the Suit colour option below the SKU field.

I have disabled the cache management and flushed the Magento Cache and Flash Storage. I even logged out and back in and it still doesn't show up.

If I create a Simple Product with the Attribute set Suits it will show the Suits Colour option this time. What am I doing wrong?


texts: Query to get product options Configurable in order

texts:
i need the query to get the all configurable options of a product in the order,

In order, i wants to get the configurable product option like color, size by the query

from that i cant used that into the export item.

$instance = Mage::getResourceModel("sales/order_grid_collection")->addAttributeToSelect('increment_id')
    ->addAttributeToSelect('status')
    ->addAttributeToSelect('grand_total')
    ->addAttributeToSelect('total_paid')
    ->addAttributeToSelect('base_currency_code')
    ->addAttributeToSelect('order_currency_code')
    ->addAttributeToSelect('shipping_name')
    ->addAttributeToSelect('billing_name')
    ->addAttributeToSelect('created_at')
    ->addAttributeToSelect('updated_at');
$instance->getSelect()
        ->join(array('sfo'=>'sales_flat_order'),'sfo.entity_id=main_table.entity_id',array('sfo.shipping_description'))
        ->joinLeft(array('sfoi'=>'sales_flat_order_item'),'sfoi.order_id=main_table.entity_id',array('sfoi.sku','sfoi.product_type','sfoi.name','sfoi.product_options'))
        ->where('(main_table.status = "processing")')
        ->group(array('sfoi.order_id'));
$gridcollection = $instance->getFirstItem()->getData();

i need product options ie. configurable product - super attribute(color,size)  with this

after selecting 'product_option' i got below,

a:10:{s:15:"info_buyRequest";a:6:{s:4:"uenc";s:80:"aHR0cDovL2lwaG9uZTVjLmVtc21vYmlsZS5jb20vaXBob25lL2lwaG9uZS01cy13aXRoLXBsYW5zLXA,";s:7:"product";s:2:"73";s:8:"form_key";s:16:"EnCATaJe2xLoYzhQ";s:15:"related_product";s:0:"";s:15:"super_attribute";a:3:{i:176;s:2:"12";i:177;s:2:"19";i:180;s:2:"27";}s:3:"qty";i:1;}s:15:"attributes_info";a:3:{i:0;a:2:{s:5:"label";s:12:"Phone Colour";s:5:"value";s:4:"Gold";}i:1;a:2:{s:5:"label";s:12:"Phone Memory";s:5:"value";s:5:"64 GB";}i:2;a:2:{s:5:"label";s:12:"Plans";s:5:"value";s:8:"POSTPAID";}}s:11:"simple_name";s:29:"iPhone 5S Gold 64 GB Postpaid";s:10:"simple_sku";s:29:"iPhone 5S Gold 64 GB Postpaid";s:20:"product_calculations";i:1;s:13:"shipment_type";i:0;s:17:"giftcard_lifetime";N;s:22:"giftcard_is_redeemable";i:0;s:23:"giftcard_email_template";N;s:13:"giftcard_type";N;}

i need,
Phone Colour - Gold

Plans - POSTPAID

Phone Memory - 64 GB

how to get this

any ideas?
thanks in advance.


texts: Is there a payment method for Sage and worldpay where you arent taken off site?

texts:
I was looking at the extensions and most of them seem to take you offsite to then be redirected back. Is there anyway that these methods can be used without being taken away from the checkout?

I know it is kind of a broad question but my client is thinking of going down the route of processing and keeping payment details on our servers and I'd rather avoid that if possible.


texts: Internal Server Error because one cookie is too big

texts:
I don't know the reason but _GPSLSC cookie gets very big after some time browsing our website. So sometimes we get a Internal Server Error and then I have to delete the cookie.

How can I fix it so it won't happen again?


texts: Lasti Full page cache module, Customer session

texts:
In a custom module I had added a block to product page through xml, on the site i am using Lasti_FPC so I also added that block to dynamic_blocks in Lasti_Fpc config.xml file.
In that block's phtml file, I am using

if(Mage::getSingleton('customer/session')->isLoggedIn())

to check if the customer is logged in or not (to show different button for logged in vs not logged in)
but the problem is when i browse the product page before login, then after login the page still shows content for the not logged in customers.
Can anybody help me guide me, how to tackle this and which block to include in dynamic block list?


texts: cannot my customers checkout in my checkout page

texts:
my customers can't checkout in my site

I have a problem in my site,my customers can not check out .
when they click on checkout button not happened
pls help me

https://www.roblixshop.com/checkout/onepage/


texts: Magento 2 : Command bin/magento setup:upgrade failing after upgrade to 2.2.4?

texts:
I was upgrading Magento 2.2.3 to Magento 2.2.4. Everything went ok but the final step is to run bin/magento setup:upgrade and when I run that I get the below error-

We can't save the address: Email has a wrong format.

Which email address has an issue? I have upgraded from 2.2.2 to 2.2.3 with no problem a few months ago.

Edit this is the new error-


texts:
I am new to magento and I have very basic coding knowledge.

Kindly help me to fix the issues:

How do I find the file which contains the word "infopromo.biz"?

My website is working well but when customer reaches the onapage checkout page google chrome warns "The site ahead contains malware".

Kindly let me know how do I find the right file with the word "infopromo" and clean it...

Here is the "Google Transparency Report":

Status of: https://infopromo.biz/lib/paypal_icon.jpg

Current status: Dangerous
infopromo.biz/lib is not safe to visit right now.

Any suggestions would be appreciated.


texts: Got an error while submitting an extension in magento connect

texts:
I am facing one issue while uploading a magento extension/plugin on magento connect.

I have generated my custom plugin successfully from magento admin feature

  SYSTEM --> Magento Connect --> Package Extensions

But when I am trying to upload this extension in magento connect it shows me this error.

 Unable to save version. Filename is not valid. Expected filename without ext is 3c3d7d19d8a80d1f0ed64e1d2db55836-1.0.0.

I have used same extension secure key name as my extension name while packaging process from magento admin.

So my question is, why I am facing this error? is there anything that I have missed here?


texts:
is it possible to make cross-links between simple products by color attribute (magento 2 config or custom extension)?
Example page:
https://www.trendyol.com/trendyolmilla/siyah-ve-beyaz-100-pamuk-v-yaka-2-li-paket-orme-t-shirt-twoss20ts0142-p-35469657
All products are simple, but grouped by color attribute, and when you select a color, it opens a related product page.


texts: Add custom styleshet to IWD one page checkout module

texts:
I've installed IWD Onepage Checkout, and I'm trying to style it.

Rather than edit the 'core' installation, I want to add my own stylesheet -

I've added this to /app/design/frontend/default/<theme>/layout/local.xml

<opc_index_index>
    <action method="addCss">
        <stylesheet>css/custom-opc.css</stylesheet>
    </action>
</opc_index_index>

..however, my stylesheet isn't getting added?


texts: how to pass data from one controller's action to another controller's action in magento?

texts:
I have created a custom controller in my module and i want to pass data from one controller's action to another controller's action, but how can i do it may know the proper syntax ?

$params = array('order_ids' => $ids);
$this->_redirect('adminhtml/OrderController/pdfinvoices', array('_query' => $params));

I am trying this is it possible in magento?


texts: How to get categorychildren in a list under topcategories

texts:
I want a list of categories with under each categoryname their children categories. But my code isn't working, the top categories are showing but

is empty, so the children are not showing.

This is my code:

$categoryCollection = Mage::getResourceModel('catalog/category_collection')
->addFieldToFilter('level',2)
->addAttributeToSelect('name')
->addAttributeToSelect('url');
$out = "
";
foreach($categoryCollection as $cat){
    $children = $cat->getChildren();
    $out .= "
";
    $out .= "getUrl()."'>".$cat->getName()."";
        $out .="
";
        foreach($children as $child){
            $ChildModel = Mage::getModel('catalog/category')->load($child)
            ->addAttributeToSelect('name');
            $out .="
getUrl()."'>".$ChildModel->getName()."
";
        }
        $out .="
";
    $out .= "
";
}
$out .= "
";
echo $out;


texts:
Has anyone downloaded extensions from ext.topmage.com before? Is this site safe?

I am asking because I need to download the free Disable Compare Products extension.


texts: Magento2 How to change the price of configurable product as zero in product view page using js?

texts:
I want to show the configurable product price as zero instead of minimum price in product view page until options are selected. When all option of the product are selected then  only price has to change. Please help me how to do this by using jQuery in Magento 2?

In below image minimum price of the product is visible but i want zero in that place.


texts:
Magento 2.3.3
Is it somehow (code, extension, ...) possible to make a clone (except for the name) of an attribute? I searched a bit, but found nothing useful. The product I want to clone is of type multi select.
Thanks!


texts:
I need to  display 2 currencies at the same time (USD and BRL, both alreary configured in my magento backend) and I´d tried to follow this post ( Two currencies at same time)  however I´m doing something wrong. Hope you can help me figure out that.

I´ve changed in line 7  $rates = Mage::getModel('directory/currency')->getCurrencyRates  **for**    $rates = Mage::getModel('app/code/core/Mage/Directory/Model/Currency.php')->getCurrencyRates(

and

in line 15 ->getTranslation($code, 'nametocurrency');  for ->getTranslation($code, 'USD');

When I try to see the page I get the following error: Fatal error: Call to a member function getCurrencyRates() on a non-object in/home3/grupots/public_html/terrasantaviagens.com.br/lojavirtual/app/design/frontend/default/helloresponsive/template/catalog/product/price.phtmlon line 7

price.phtml directory that I´m changing the code= pp/design/frontend/default/helloresponsive/template/catalog/product/

Any ideas on what I´m doing wrong?

Follow entire code as asked:

At the begining of price.phtml

  <?php $store = Mage::app()->getStore();
    $currentCurrency = $store->getCurrentCurrencyCode();
    $currencies = array();

    $codes = Mage::app()->getStore()->getAvailableCurrencyCodes(true);
    if (is_array($codes) && count($codes) > 1) {
        $rates = Mage::getModel('directory/currency')->getCurrencyRates(
            Mage::app()->getStore()->getBaseCurrency(),
            $codes
        );

        foreach ($codes as $code) {
            if (isset($rates[$code])) {
                $currencies[$code] = Mage::app()->getLocale()
                    ->getTranslation($code, 'USD');
            }
        }
    }

    foreach($currencies as $code => $value):

    ?>

        <?php $store->setCurrentCurrency(null)->setCurrentCurrencyCode(strtoupper($code), false); ?>
        <?php if(strtoupper($code) != strtoupper($currentCurrency)) $this->setIdSuffix($this->getIdSuffix().'-'.strtolower($code)); ?>

At the end of price.phtml:

<?php endforeach; ?>

<?php $store->setCurrentCurrency(null)->setCurrentCurrencyCode($currentCurrency); ?>


texts: magento downloadable products not able to download

texts:
downloadable products only worked once when i set the link to be downloaded able only once after that i couldnt download it with a different account

does the download limit apply to only one account or all accounts

so i set the product download limit to one then i was able to download it with the first account

i tried again with a second account and i received an error says "The link is not available."
that comes up after i click the product in the my downloadable products section of the account


texts: How to Bulk Delete Spam Customers M2 2.3.5 p1

texts:
Just moved over from M1 to M2 (hate it so slow)
But during setup I got 100's of spam emails with sex and porn in them.
In M1 you could filter on Porn then select and bulk delete no issue.
When i try in M2 it does nothing just sits there in console it checks up a lot CPC errors?
Is it easy to fix from admin backend?
See errors here top screen just loading customer, 2nd trying to delete
See here


texts: What is the difference between magento 1.9.2.4 and magento 1.9.3.0?

texts:
Magento has released it's new community edition version 1.9.3.0.

I am very curious to know what are the differences with previous Magento edition?

I want to know full details about the what is the difference with its feature in Magento 1.9.3.0.

and also want to know what step needs to take after upgrade my current site to 1.9.3.0 which is in Magento 1.9.2.4?


texts: How do I get Magento2 to process my _theme.less?

texts:
I can't figure out how to get the LESS files in my theme to update. I've tried every different .less file the docs recommend. I've tried copying this file from samples:

https://github.com/magento/magento2-samples/blob/master/sample-module-theme/web/css/source/_theme.less

to the same exact spot in my own theme (/app/design/frontend/Grant/knit/web/css/source). I'm running in dev mode, clearing the cache, and forcing static deploy (even though I shouldn't have to), and I can't get the changes to register.


texts:
I am new in magento and creating a module for use of both frontend and backend. Module works perfectly on frontend but it does not work in Magento Admin. It goes to 404 page.Here is the config file and IndexController file. Any help?

config.xml

<config>
<modules>
    <Mymodule_Customerpage>
        <version>1.0.0</version>
    </Mymodule_Customerpage>
</modules>
<admin>
    <routers>
        <the_name_of_this_element_is_not_important_it_should_be_unique>
            <use>admin</use>
            <args>
                <modules>
                <Mymodule_Customerpage before="Mage_Adminhtml">Mymodule_Customerpage</Mymodule_Customerpage>
                </modules>
            </args>
        </the_name_of_this_element_is_not_important_it_should_be_unique>
    </routers>
</admin>
<adminhtml>
    <menu>
        <tutorial_menu translate="title" module="mymodule_customerpage">
            <title>Artwork</title>
            <sort_order>9999</sort_order>
            <children>
                <first_page module="mymodule_customerpage">
                    <title>Artwork</title>
                    <action>adminhtml/mymodule_customerpage/index</action>
                </first_page>
            </children>
        </tutorial_menu>
    </menu>
</adminhtml>
<frontend>
    <layout>
        <updates>
            <mymodule_customerpage module="mymodule_customerpage">
                <file>mymodule_customerpage.xml</file>
            </mymodule_customerpage>
        </updates>
    </layout>
    <routers>
        <mymodule_customerpage>
            <use>standard</use>
            <args>
                <module>Mymodule_Customerpage</module>
                <frontName>mymodule_customerpage</frontName>
            </args>
        </mymodule_customerpage>
    </routers>
</frontend>
<global>
<models>
    <mymodule_customerpage>
        <class>Mymodule_Customerpage_Model</class>
        <resourceModel>mymodule_customerpage_mysql4</resourceModel>
    </mymodule_customerpage>
    <mymodule_customerpage_mysql4>
        <class>Mymodule_Customerpage_Model_Mysql4</class>
        <entities>
            <customerpage>

customerpage

            </customerpage>
        </entities>
    </mymodule_customerpage_mysql4>
</models>
<resources>
    <mymodule_customerpage_setup>
        <setup>
            <module>Mymodule_Customerpage</module>
        </setup>
        <connection>
            <use>core_setup</use>
        </connection>
    </mymodule_customerpage_setup>
    <mymodule_customerpage_write>
        <connection>
            <use>core_write</use>
        </connection>
    </mymodule_customerpage_write>
    <mymodule_customerpage_read>
        <connection>
            <use>core_read</use>
        </connection>
    </mymodule_customerpage_read>
</resources>
<helpers>
    <mymodule_customerpage>
        <class>Mymodule_Customerpage_Helper</class>
    </mymodule_customerpage>
</helpers>

Mymodule/Customerpage/Controller/Adminhtml/IndexController.php

class Mymodule_Customerpage_Adminhtml_IndexController extends Mage_Adminhtml_Controller_Action{
public function indexAction()
{
    $this->loadLayout();

     $block = $this->getLayout()
     ->createBlock('core/text', 'adminhtml_artwork')
     ->setText('
This is a text block
');

    $this->_addContent($block);

    $this->renderLayout();
} }


texts: Store based email template not working with magento 1.9.2

texts:
I am having magento 1.9.2 portal with english & arabic language stores. When i had register or order a product i get transactional emails in english itsef.

Then i had do like this "system - transactional emails" there i had created new template for arabic and saved for register confirmation mail in store based.

But, when i had register with english store also receiving the arabic store email.

I want to fix this one


texts: checkout as guest redirects back to product page

texts:
I have just moved a new Magento website onto it's production server. The website seems to work fine, however after clicking 'proceed to checkout', when you click on 'checkout as guest' and then complete your details, you are then sent back to the product page. Could this be a cache problem? Any ideas?

Thanks


texts: Magento 2 : save additional attributes in newsletter

texts:
I have a promotional popup on home page, asking to subscribe a newsletter.
Also I want to save gender and Interested Categories of that User.
How I can save these additional Information to 'newsletter_subscriber' table.

I have referred this link:
Magento 2 : How to add additional fields to newsletter

So Fields are added to table and admin grid, but it doesn't save gender and category data to table.

Can anyone help me? Thanks in advance.

please check SS.

Adding Some code here,

   public function aroundSubscribe($subject, \Closure $proceed, $email) {
    $result = $proceed($email);
    if ($this->request->isPost() && $this->request->getPost('gender')) {
        print_r($this->request->getPost('gender'));
        exit;
        $gender = $this->request->getPost('gender');
        $category = $this->request->getPost('category');

        $subject->setGender($gender);
        $subject->setInterestedCategory($category);

        try {
            $subject->save();
        }catch (\Exception $e) {
            throw new \Exception($e->getMessage());
        }
    }

    return $result;
}


texts: Magento2: custom header.phtml stays cached forever!

texts:
I have a child theme, and uploaded a custom header: header.phtml. Right after I uploaded, it showed it correctly in the front-end.

However, changing something in this custom header, never reflects in the front-end. It ALWAYS shows the first version I uploaded. Once I remove the custom file, it falls back to the parent. But if i upload again (a new version): the old version is back!

I tried various ways of cleaning cache:

Manually empty folders (var/* pub/static/*)
php bin/magento cache:clean + php bin/magento indexer:reindex
In the admin itself (flush static files, and all other cache)

Note: Magento is in developers version, and I am using v2.1.9).

I wasted like 6 hours trying everything!

Hope someone can help me out there.

Thanks


texts: Fix for Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry?

texts:
I last logged in 2 days ago and everything is fine but I went to my site today and my admin page is showing:

  Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '6307b08438f5cf42baa54f7af5abe85e' for key 'PRIMARY'' in /home/wwwshopm/public_html/store/lib/Zend/Db/Statement/Pdo.php:228 Stack trace: #0 /home/wwwshopm/public_html/store/lib/Zend/Db/Statement/Pdo.php(228): PDOStatement->execute(Array) #1 /home/wwwshopm/public_html/store/lib/Varien/Db/Statement/Pdo/Mysql.php(110): Zend_Db_Statement_Pdo->_execute(Array) #2 /home/wwwshopm/public_html/store/app/code/core/Zend/Db/Statement.php(291): Varien_Db_Statement_Pdo_Mysql->_execute(Array) #3 /home/wwwshopm/public_html/store/lib/Zend/Db/Adapter/Abstract.php(480): Zend_Db_Statement->execute(Array) #4 /home/wwwshopm/public_html/store/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('INSERT INTO mg...', Array) #5 /home/wwwshopm/public_html/store/lib/Varien/Db/Adapter/Pdo/Mysql.php(428): Zend_Db_Adapter_Pdo_Abstract->query('INSERT INTOmg...', Array) #6 /home/wwwshopm/public_html/st in /home/wwwshopm/public_html/store/lib/Zend/Db/Statement/Pdo.php on line 235

I have 4 store views, all except one are showing fine. The final store view which isn't working is showing the exact same code but with:

  Duplicate entry '21a999787fc3e2ffa14eafc17a834408' for key 'PRIMARY'

Anyone have any ideas on how I can resolve this problem?

EDIT: I checked Pdo.php and this is the section the error refers to:

{
    try {
        if ($params !== null) {
            return $this->_stmt->execute($params);
        } else {
            return $this->_stmt->execute();
        }
    } catch (PDOException $e) {
        #require_once 'Zend/Db/Statement/Exception.php';
        $message = sprintf('%s, query was: %s', $e->getMessage(), $this->_stmt->queryString);
        throw new Zend_Db_Statement_Exception($message, (int) $e->getCode(), $e);
    }
}


texts:
I'm aware of how the XML system in Magento works with handles such as catalog_product_view.xml and catalog_category_view.xml to define resources for specific (sorts) of pages.

For seperate simple products I need to have different XML files. It should be possible via attribute sets and I found this list of obsolete handles, but I can't find any list of what would work.

I've tried to add products to an attribute set (ID 9) and creating catalog_product_view_attribute_set_id_9.xml which loads a JS file with a console.log for testing purposes; no result.

Does anyone have any insight on which layout handles I could use to make differences between the same product type?


texts: No filters in facetedData after Upgrade 2.2

texts:
I have made a small extension with 2.1.* for

multiselect-filtering.

A part of the code is:

$productCollection = $this->getLayer()->getProductCollection();
...
$originalFacetedData = $productCollection->getFacetedData($attribute->getAttributeCode());

This returned the facetedData depending on the applied  filters. After the Upgrade to 2.2 it only returns the counts of all products per option and ignores the applied filters completely.

I doubled checked in debugging that the filters in the productCollection are really set.

How can I gain the former result? Any ideas?

Thanks in advance!


texts: Magento 2: Change the "URL Key" and save the category "The value specified in the URL Key field would generate a URL that already exists."

texts:
When change the "URL Key" and save the category then throw the below error.
This store Migrate Magento 1.9 to Magento 2.3.5-p1 and used multi store view.
Error:
The value specified in the URL Key field would generate a URL that already exists.
To resolve this conflict, you can either change the value of the URL Key field (located in the Search Engine Optimization section) to a unique value, or change the Request Path fields in all locations listed below:

- fitness-equipment/strength/kettlebells.html

- fitness-equipment/strength/dumbbells.html

- fitness-equipment/strongman/hammer.html

I have try below solution but not fixed the issue:
Solution 1)
    - Truncate the url_rewrite table.
    - Generate category url via https://github.com/olegkoval/magento2-regenerate_url_rewrites module
    - use command for genrate the category url: php bin/magento ok:urlrewrites:regenerate --entity-type=category

Solution 2)
https://magento.stackexchange.com/questions/259845/migration-tool-causing-url-rewrite-duplicates-in-magento-2-leading-to-missing-ca

Solution 3)
- Install module for remove duplicate: https://github.com/cadencelabs/urldedup
    - Generate category url via https://github.com/olegkoval/magento2-regenerate_url_rewrites module
- use command for genrate the category url: php bin/magento ok:urlrewrites:regenerate --entity-type=category

Solution 4)
- When save edit "URL Key" and save the category then show the error list url.
- I have open that all error url in separate window and delete it.
- Then Generate category url via https://github.com/olegkoval/magento2-regenerate_url_rewrites module
- use command for genrate the category url: php bin/magento ok:urlrewrites:regenerate --entity-type=category

But still getting same error after implement above four solution. If any have idea about this critical issue then let me know.
Any help would be appreciated. Thanks!


texts: How to add new customer in magento 2 admin

texts:
I'm trying to add a new customer in magento admin, after creating the credentials I can't seem to log in as per there is no password field upon creating.

Can anybody tell me how to add a new customer in magento 2 either via mysql or in magento admin.

Thanks


texts: Magento2 commands for PWA to see Output on same URL

texts:
Magento2 I have installed Venia storefront for PWA. I have a question after changing data in Magento Admin which commands to run so that data gets displayed on same URL

https://magento-venia-concept-4xkkb.local.pwadev:10001/

Currently after making changes in admin, I am running following commands which changes URL everytime
yarn run watch:venia
yarn run watch:all
yarn run build && yarn run stage:venia


texts: Magento 2 error : Uncaught TypeError: Cannot read property 'quoteData' of undefined

texts:
In my magento 2 Onestep Checkout page in not displayed because of error. I am not recognizing the cause.
file path is pub/static/frontend/Vendor/mobile/en_US/Magento_Checkout/js/model/quote.js

Can I get Help? Thank you in advance


texts:
I have made a checkout button in magento 1.7:

onclick="billing.save(); shipping.save(); checkout.save(); return false;"

This passes all the billing information except for Telephone.

I presume Telephone is part of billing, and does not have to be passed separately to billing.save();    Where can I find what billing.save(); should be passing?  How do I add components, specifically telephone, to this function?