texts: Shipment emails not sent for new orders after upgrade to 2.3.5 - can still send for old orders without errors

texts:
When I press "Send tracking information" in Magento admin panel for a shipment there is no email sent and Magento displays the tracking info in the browser. For old orders were shipments were created before I migrated to Magento 2.3.5, the emails are sent and I'm redirected to the shipment page itself.

Usually, tracking emails should be sent once the warehouse ships the packages and notifies Magento through an integration of the tracking number, but this doesn't happen either.

For old orders (created before upgrade, and where I'm resending the tracking email already sent) there is no error showing in the logs. For new orders, I get below error.

apache error_log
[Tue May 26 08:09:00.291522 2020] [ssl:error] [pid 4089:tid 140002679666432] [client x.x.x.x:35142] AH02031: Hostname magentodomain.com provided via SNI, but no hostname provided in HTTP request
[Tue May 26 08:09:00.379189 2020] [proxy_fcgi:error] [pid 4089:tid 140002721629952] [client y.y.y.y:16567] AH01071:
Got error 'PHP message: PHP Fatal error:  Uncaught Error: Call to a member function getUrl() on null in /opt/bitnami/apps/magento/htdocs/vendor/magento/module-sales/view/frontend/templates/email/shipment/track.phtml:28\n
Stack trace:\n#0
/opt/bitnami/apps/magento/htdocs/vendor/magento/framework/View/TemplateEngine/Php.php(59): include()\n#1
/opt/bitnami/apps/magento/htdocs/vendor/magento/framework/Interception/Interceptor.php(58): Magento\\Framework\\View\\TemplateEngine\\Php->render(Object(Magento\\Framework\\View\\Element\\Template), '/opt/bitnami/ap...', Array)\n#2
/opt/bitnami/apps/magento/htdocs/vendor/magento/framework/Interception/Interceptor.php(138): Magento\\Framework\\View\\TemplateEngine\\Php\\Interceptor->___callParent('render', Array)\n#3
/opt/bitnami/apps/magento/htdocs/vendor/magento/framework/Interception/Interceptor.php(153): Magento\\Framework\\View\\TemplateEngine\\Php\\Interceptor->Magento\\Framework\\Interception\\{closure}(Object(Magento\\Framework\\View\\Element\\Template), '/opt/bitnami/ap...', Array)\n#4
/opt/bitnami/apps...', referer: https://magentodomain.com/admin/admin/order_shipment/view/shipment_id/_someid_/key/___somekey___/
[Tue May 26 08:09:00.686832 2020] [ssl:error] [pid 20812:tid 140002830735104] [client z.z.z.z:41152] AH02031: Hostname magentodomain.com provided via SNI, but no hostname provided in HTTP request

Bitnami Magento stack
MagePlaza SMTP extension v 1.3.1.
Used MagePal GmailSmtpApp previously, but with the upgrade it is disabled and shows as a disbaled modules when using magento cli interface and command module:status.
Multiple store and websites : tried to send shipment emails for order from different websites without success
SMTP provider doesn't show any signs of the emails that are not being sent.
Cron logs shows no issues.
Order confirmation emails are sent.

All help to resolve this issue is highly appreciated.


texts: Get Products list with all product attributes in Magento

texts:
I have a statement

$collection = Mage::getResourceModel('catalog/product_collection');

in file app/code/core/Mage/Catalog/Block/Product/New.php in protected function _getProductCollection().

It gives me list of common attributes when I check by

print_r($collection->getData());

Here I need additional attribute value for attribute 'color'

Some products contain attribute color and some not. When I use the statement $collection->addAttributeToSelect('color', 'color'); it gives me only product with attribute color

I need all products + products with attribute color

please help me.


texts:
I tried,

class Download extends \Magento\Framework\App\Action\Action
{
protected $directory_list;
protected $fileFactory;

public function __construct(
\Magento\Framework\App\Action\Context $context,
DirectoryList $directory_list,
\Magento\Framework\App\Response\Http\FileFactory $fileFactory) {
    $this->directory_list = $directory_list;
    $this->fileFactory = $fileFactory;
    parent::__construct($context);
}

public function execute()
{
  //echo "pdf"; exit;
    //$file = $this->getRequest()->getParam('file');
    $file = "brochures";

    if(isset($file) && !empty($file))
    {
        $pdf = \Zend_Pdf::load($this->directory_list->getPath(DirectoryList::MEDIA) . DIRECTORY_SEPARATOR . $file);
        $fileName = 'test.pdf';
        $this->fileFactory->create(
        $fileName,
        str_replace('/Annot /Subtype /Link', '/Annot /Subtype /Link /Border[0 0 0]', $pdf->render()),
        \Magento\Framework\App\Filesystem\DirectoryList::VAR_DIR,
        'application/pdf'
          );
       }
     }

Getting error -

  error occured while '/var/www/html/test/pub/media/brochures' file reading.";i:1;s:9285:"#0 /var/www/html/test/vendor/magento/zendframework1/library/Zend/Pdf.php(329): Zend_Pdf_Parser->__construct('/var/www/html/h...', Object(Zend_Pdf_ElementFactory_Proxy), true)


texts: Could not Add customer address using customer id using Magento-2 REST API

texts:
I am facing one issue while adding new address of a existing customer using its id. I am explaining my code below.

 <?php
include('db.php');
$response=array();
$adminUrl='http://magento-148486-425775.cloudwaysapps.com/index.php/rest/V1/integration/admin/token';
$ch = curl_init();
$data = array("username" => "raj", "password" => "raj@0987.");

$data_string = json_encode($data);
$ch = curl_init($adminUrl);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_POSTFIELDS, $data_string);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
    'Content-Type: application/json',
    'Content-Length: ' . strlen($data_string))
);
$token = curl_exec($ch);
$email=$_POST['email'];
$company=$_POST['company'];
$first_name=$_POST['first_name'];
$last_name=$_POST['last_name'];
$mobile=$_POST['mobile'];
$street=$_POST['street'];
$city=$_POST['city'];
$state=$_POST['state'];
$pin=$_POST['pin'];
$country_id=$_POST['country_id'];
$user_id=$_POST['user_id'];
//echo $user_id;exit;
$sql=mysqli_query($conn,"select * from mobusers where id='".$user_id."'");
if(mysqli_num_rows($sql)){
    $row=mysqli_fetch_array($sql);
    $ent_id=$row['entity_id'];//customer's id
    $customerData = [
        'customer' => [
            'addresses' => [
                [
                    "id"=>$ent_id,
                    "firstname"=> $first_name,
                    "lastname"=> $last_name,
                    "company"=> $company,
                    "street"=> [
                    $street
                    ],
                    "city"=> $city,
                    "postcode"=> $pin,
                    "country_id"=> $country_id,
                    "telephone"=> $mobile
                ]
            ]
        ]
    ];
    $requestUrl='http://magento-148486-425775.cloudwaysapps.com/index.php/rest/V1/customers/'.$ent_id;
    //echo $requestUrl;exit;
    $ch = curl_init();
    $ch = curl_init($requestUrl);
    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($customerData));
    curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: application/json", "Authorization: Bearer " . json_decode($token)));
    $result = curl_exec($ch);

    $result = json_decode($result, 1);
    print_r($result);exit;
    if(!isset($result['message']) && $result > 0){
        $response['status']="Success";
        $response['msg']="Your addresse has been updated successfully.";
    }else{
        $response['status']="Error";
        $response['msg']="Failed!";
    }
    echo json_encode($response);
}
?>

Here I have already one existing customer and while registered he does not add any address. I have already the customer's id(i.e-$ent_id(entity_id of customer entity table)) which will be the parent ID of the address table. Using this ID I want to add this new address to address table. But in my case I am getting the following error.

Array
(
    [message] => Request does not match any route.
    [trace] =>
)

Here I need to add this address using this customer id.Please help me.


texts:
I was trying to understand what's the best way to read incoming IPN messages from PayPal. This need comes from the order workflow we implemented in our website. For example: when a payment is authorized, I would like the order to be set to a particular status. Then, when a payment is captured, I would like the order to be set to another specific status. I believe that IPN is the tool to use when you need the most accurate information about the transaction result, but apparently in Magento 2 it is not easy to reach that message.

So I made a module that extends \Magento\Paypal\Model\Ipn, working with the Magento DI preference way. The module I made resulted in a big copy-paste of a public method and 4 protected methods just to customize 2 of those methods. It is far from ideal. Also, the preference approach can lead to the good old rewrite conflicts.

The plugin approach is not an option, because the methods I needed to intercept are not public.

What I feel is missing here, is some event dispatching. I will open a github issue.

Anyone can suggest some other approach to read the IPN messages?


texts: How Count & Display the number of items to frontend? What PHP code is needed?


texts: Magento 2 add Block Template in php (not XML)

texts:
In Magento 2 one can do with XML :

<referenceContainer name="content.bottom">
    <block class="My\Module\Block\Index\Index" name="my.block" template="My_Module::test.phtml" />
</referenceContainer>

How One can Achieve same result in php ? :
I've tried something like this:

$block = $resultPage->getLayout()->createBlock(
'\Magento\Framework\View\Element\Template',
'my.block',
 array('template' => 'My_Module/test.phtml')
);
$resultPage->getLayout()->getBlock('content.bottom')->append($block);

BUT it isn't working it gives the error:

Fatal error: Uncaught Error: Call to a member function append() on boolean.

Any Ideas.Thanks.


texts: How to add custom fields to magento cms page's Page Information tab?

texts: I need to add some extra field to "Page Information" tab in cms->pages. How can i add custom fields from getDefaultEntities() function of my Setup.php file.Can anyone help me ?


texts: How to write inner join query in collection method (magento2)?

texts:
How to write this query in magento2 collection method?

SELECT o.increment_id , h.status, h.created_at
FROM sales_order AS o
INNER JOIN sales_order_status_history AS h ON h.parent_id = o.entity_id
WHERE o.entity_id = 530 AND h.status = 'processing_closed';

I have this function filter records/reports of sales, I want to change condition and defined above query here in collection method :

public function applyBaseFilters($collection)
    {
        $collection->getSelect()
            ->reset(\Zend_Db_Select::COLUMNS)
            ->columns([
                'period' =>'DAYNAME(created_at)',
                'total_orders' => 'COUNT(entity_id)',
                'total_items' => 'SUM(total_item_count)',
                'subtotal' => 'SUM(base_subtotal)',
                'tax' => 'SUM(base_tax_amount)',
                'status' => 'status',
                'shipping' => 'SUM(base_shipping_amount)',
                'discounts' => 'SUM(base_discount_amount)',
                'total' => 'SUM(base_grand_total)',
                'invoiced' => 'SUM(base_total_invoiced)',
                'refunded' => 'SUM(base_total_refunded)',
                'entity_id' => 'CONCAT(entity_id,\''.$this->createUniqueEntity().'\')'
            ])
        ;

         $collection->addFieldToFilter('status', 'processing_closed');
    }

Please guide I am a beginner, thanks.

edit

I think I am so closely with the query but now I am facing this error on the screen using this query.

$collection->getSelect()->join(
    'sales_order_status_history',
// note this join clause!
    'main_table.entity_id = sales_order_status_history.parent_id',
    array('created_at')
)
->where("sales_order_status_history.status = 'processing_closed'");

  Error :
  SQLSTATE[23000]: Integrity constraint violation: 1052 Column 'created_at' in group statement is ambiguous, query was: SELECT main_table.*, sales_order_status_history.created_at FROM sales_order AS main_table
   INNER JOIN sales_order_status_history ON main_table.entity_id = sales_order_status_history.parent_id WHERE (sales_order_status_history.status = 'processing_closed') AND (main_table.created_at >= '2018-04-05 19:00:00') AND (main_table.created_at <= '2018-04-13 18:59:59') GROUP BY DAYNAME(created_at)
  Exception #1 (PDOException): SQLSTATE[23000]: Integrity constraint violation: 1052 Column 'created_at' in group statement is ambiguous


texts:
How can I install sample-module-payment-gateway (https://github.com/magento/magento2-samples/tree/master/sample-module-payment-gateway) using composer?

I'm getting error "Your requirements could not be resolved to an installable set of packages.", apparently the package name is not recognised.

The documentation only says, that the component should be included in composer, but the how-to is missing?

To clarify: I'm not interested in sample data, but a sample module.


texts:
Hi whenever i try to save product at admin product page in different websites it gives me this error
SQLSTATE[42S02]: Base table or view not found: 1146 Table '_mg_v2.catalogsearch_fulltext_cl' doesn't exist, query was: INSERT INTO catalog_product_website (product_id,website_id) VALUES (?, ?)


texts: Can't write in Memcache using Magento Core Cache

texts:
I have a class that loads the Mage::app()->getCache(), and call the cache methods.

Well this is working very well for Files. I can load and read. But when I switch to Memcached in local.xml, the cache stops working. And I have no errors, no warnings. But updating Zend_Cache_Core::_options['logging'] to true, I see this message:

WARN (4): Zend_Cache_Core::save() / write_control : written and read data do not match

IMPORTANT: Frontend and Session cache works like a charm. What could be happening?

EDIT:
I was logging Zend_Cache_Backend_Memcached and discovered that when I call my save method...

$cache = Mage::app()->getCache();
$cache->save('my_value', 'my_id', array(), 3600);

...the last one Lifetime was being converted to string. I don't know when it happens in ZF but omitting Lifetime solved my problem:

$cache->save('my_value', 'my_id', array());


texts: EAV load collection issue (High Load Time)

texts: We have an eCommerce platform. The issue is that when we increased the products to ~3000, the EAV:load_collection is taking a lot of time(~20 sec) and eventually slowing the site. If I remove the products from the database, the site loads faster. Any inputs on reducing the time taken by EAV:load_collection would be highly appreciated


texts: How to disable email to seller on custom payment module (on place order)

texts:
I am a new magento developer and i am currently working on creating a new custom payment module.

My module redirects the user to a 3rd party payment provider to complete the payment. Once the response from that provider is received and is successful the order is being considered as completed.

My issue is, when the user presses the 'Place order' button an email to the seller of the product is being sent. I would like to disable that, because the user is first redirected to the payment provider and there is the possibility of cancelling the order (or fail with it / provide false credit card info). And because of that a seller might get notified with email, but in reality the order can be invalid/not fully completed.

So to summarize, is there a way to disable that programmatically??


texts: Product Image does not show on magento backend while upload

texts: I try to upload product  image in magento backend but it does not upload  and not show in backend and frontend i try to php bin/magento setup:static-content:deploy  but not work can any one tell me how solve


texts: How to solve this Fatal error: Interface 'Magento\Framework\Event\ObserverInterface' not found in magento 2.1?

texts:
When I go to Magento admin,it shows fatal error. This is the
  screenshot of my error

Please guide me how to get rid of this.


texts: What happens on redeployment process when we remove a user from magento cloud?

texts: What happens on redeployment process when we remove a user from magento cloud environment? Does it do a redeployment with composer install?


texts: Send email to admin during extension installation?

texts:
I want to send an email to admin (website owner) to notify that our extension has been installed in your web store. For that, I have developing an extension but not getting any way to shoot the email using InstallSchema and InstallData setup scripts.

is there any specific way or setup script or event that can help me to send notification first time only?


texts: Magento 2: Custom function – best place to put it?

texts:
I've created a little function for one of my template (.phtml) files which I'd like to re-use in a few other template files. All the function does is concatenate a couple of strings together and trim them – its use / function is not relevant. I'm guessing you could call it a utility function.

As it'd like to re-use the function in a few template files, where would the best place for me to place the function so it's available to all templates? I would like to define the function in one place, so I can update / amend / expand upon it in the future – wihtout having to go into every file it's being used in... (DRY!)

I'm guessing it should be placed in a Class and turned into a method? If so, which Class and why?


texts: Change display options on multiple products

texts:
I've been doing a lot of digging around to see if I could do this without using an extension without any luck.

Almost all of my products that have a product option live inside of 'container2' which is "Block after info column" but I want them to be in 'container1' which is "Product info column".

How do I change all of the products to be in "Product info column" without going through every single product or using an extension?


texts: Magento 2 : How to implement Multi Select Category Filter?

texts: I Have a category filter in my side bar , i managed to apply category filter using layred Navigation (using cat=11 in URL using a get method form) , now i want to add another category to the filter how will i modify my existing collecting and add that additional category filter


texts: XML configuration getting cached somewhere

texts:
TL;DR

Moving an XML configuration block from one module to another seems that the old one is cached somewhere (not in the Magento cache silly!!).

How and why?

I've just encountered a strange problem while testing our changes for the SUPEE 6788 patch. Here's the scenario:

We used to have a local module which was old and had a bunch of dodgy stuff in it. We also have another local module which is for the same area but newer and safe.

While fixing routes and doing all that fun stuff, I moved a Product_List block from Namespace_OldModule to Namespace_NewModule, and took the rewrite configuration from the old config.xml to the new one.

No problems until we deployed this to test in an environment using Redis for cache and Akamai for frontend CDN - the category lists were all blank (no products) and a PHP error was in the source code:

Fatal error: Call to a member function getLoadedProductCollection() on a non-object in /.../app/code/core/Enterprise/GoogleAnalyticsUniversal/Block/List/Json.php on line 130

Debugging that method, the method $this->getListBlock() returns bool false. I then noticed that an exception in the logs said the following:

2015-11-09T20:27:20+00:00 ERR (3):
exception 'Mage_Core_Exception' with message 'Invalid block type: Namespace_OldModule_Block_Product_List' in /.../app/Mage.php:595
Stack trace:
#0 /.../app/code/core/Mage/Core/Model/Layout.php(495): Mage::throwException('Invalid block t...')
#1 /.../app/code/core/Mage/Core/Model/Layout.php(437): Mage_Core_Model_Layout->_getBlockInstance('catalog/product...', Array)
#2 /.../app/code/core/Mage/Core/Model/Layout.php(472): Mage_Core_Model_Layout->createBlock('catalog/product...', 'product_list')
#3 /.../app/code/core/Mage/Core/Model/Layout.php(239): Mage_Core_Model_Layout->addBlock('catalog/product...', 'product_list')

So I checked the changes to the XML, and this component:

<global>
    <blocks>
        <catalog>
            <rewrite>
                <product_list>Namespace_NewModule_Block_Product_List</product_list>
            </rewrite>
        </catalog>
    </blocks>
</global>

... had been moved from Namespace/OldModule/etc/config.xml to Namespace/NewModule/etc/config.xml - the only difference being the contents of the tag where the module name changed.

This must have been cached somewhere, because if I add a shortcut class back in place of where it's looking to extend the new one - no problem. The old module isn't referenced anywhere, I've checked. Also the cache has been cleared many times, php-fpm and nginx restarted (hard restart, not just gracefully) and cache busting etc.

# File: app/code/local/Namespace/OldModule/Block/Product/List.php
<?php
class Namespace_OldModule_Block_Product_List extends Namespace_NewModule_Block_Product_List
{
}

Can anyone explain to me why this might be happening?


texts:
I am adding my custom block in product view page

xml

<referenceBlock name="product.info.options.wrapper">
    <block class="Company\Example\Block\Product\View\Type\Example" name="product.info.class.session"  before="-" template="product/view/type/options/example.phtml" />
</referenceBlock>

I am trying to disable cache add cacheable="false" in xml its not working

than add this code in __construct

 $this->addData(
            [
                'cache_lifetime' => false
            ]
        );

this is also not working

than add this in __construct

$this->_isScopePrivate = true;

this is also not working.

how to disable cache is there any other way to disable cache for my custom block?


texts: Unhappy Problem with Price Rules magento 1.8 and 1.9

texts: When I cancel and create a new price rules with the same parameters, it happens sometimes after 24h a problem once the problem occurs only after three days. The problem I have at the other two sites just as it comes magento ver. 1.8.


texts:
Getting this error on manage products page of Magento 2 version 2.2.6 after uploading an image:

  Notice: Undefined index: media_type in
  vendor/magento/module-product-video/Model/Plugin/Catalog/Product/Gallery/ReadHandler.php
  on line 60

That is in developer mode.
In Production mode the site give a general 503 error.

Another error in php 7.0 on content > design configuration > edit is a spinning wheel and in chrome console this:

  dynamic-rows.js:1035 Uncaught TypeError:
  this.getChildItems(...).forEach is not a function

  file-uploader.js:74 Uncaught TypeError: value.map is not a function


texts: How to add a js file at pub\static\frontend\vendorname\themename\en_US level

texts:
How to add a js file at pub\static\frontend\vendorname\themename\en_US?
Where should I place the js in my theme in the theme folder at the design directory?
And how can I include the js file?


texts: Magento2 : I want to use admin theme from magento custom module controller

texts:
How can I use this url as examplhttp//localhost/m2/seller/account/dashboard (which is from my custom module route/controller/action ) to access admin like dashboard.

i.e : I want to use admin theme in frontend.


texts: I have a custom theme which inherits from blank and I would like to override navigation-menu.js options how would I do that?


texts: Magento 2 - Every module as Git Repository, bad?

texts:
Our online business operates on a Magento 2.4.x installation which now has nearly 100 in-house modules that deliver features and functionality specific to our business. Every module has its own Git repository (we use BitBucket for our repositories and Satis to drive our private package server).
During development, we simply used dev-master for all modules which made pushing updates very quick and easy (either with composer or git pull origin master in the module's directory under vendor/mybusiness). The decision to put every Module into its own repo, and version it by itself was deliberate: we felt that there we advantages to this approach, especially when making changes to the public API for one of many modules. So long we followed SEMVER appropriately, we would be immediately aware of when a change we've introduced may cause issues with one of our other modules that maybe has not been worked on in a while.
While this example scenario is true, we're now realizing the downsides of having such a massive web of dependencies e.g. a change to one module might require a handful of other git operations and file changes across many other modules. This does not "feel" right to our development staff.
We are discussing moving all of our modules into the app/code directory, and using Composer only to manage 3rd party modules, essentially treating our collection of modules as a single application. Since our development team is small and in-house, we feel that it is totally manageable for us to handle the occasional merge if two developers just-so-happen to modify the same file in their bug/feature branch and introduce a merge conflict (this problem would not be unique to this proposed change, either).
We do maintain our own repository for the Magento 2 files and folder structure so that we can (for example) version control our own error pages, .htaccess files, etc. This repository contains little more than these sorts of files/folders and the composer.json file that is exactly what ships with Magento 2, with all of our in-house modules and a select few 3rd party modules included. Therefore, we have an "easy" means of moving our modules from being managed by Composer and simply versioning them altogether, but that also has some sort of weird feeling to it.
I would love to hear some input from other devs who maintain a large number of in-house modules for their business's Magneto 2 installation.


texts: Get my custom variable into an email template

texts:
We currently use a plugin for gaining points when ordering items.

I want to display the users points balance inside various emails, now the plugin company gave me the code to echo out the current users balance however I am having a hard time figuring out where I can put this so that the variable will be available for me to use in my email templates.

$pointsBalance = Mage::getModel('rewards/customer')->load($customerId)->getUsablePoints();
echo $pointsBalance[1];

Can anyone advise me how I get a PHP variable like this in the right place so I can use it in my email templates like {{points.balance}}?


texts:
How get list of customer which bought just once (in the last x month) in Magento?

Like:

bought once in last 12 months

bought once in last 9 months

bought once in last 20 months

bought once in last 36 months


texts: Magento 2 : Load Roboto font in custom email template

texts:
I want to load Roboto font in the custom email template.If load fonts from admin transactional email styles it displays properly in preview but can not load in an email.

Import code : @import url('https://fonts.googleapis.com/css?family=Roboto');

Please help me if anyone knows the issue.

Thanks.


texts:
I have created another website name called submainwebsite in admin side. i have configured all those.

Then i had created a folder within root folder ex: www.example.com/store
Inside that i have created index.php and .htaccess file.

when i run the site means i am getting like this https://prnt.sc/pgcvhg.

can anyone help this.

Thanks in advance.


texts: Custom csv import using data flow profile not working in magento-1.9.3.1

texts:
I want to custom import csv in a model using data flow profile. For that i have followed below steps :

1) Created a customimport.csv under var/import

2) Under admin > system >Import/Export > Dataflow - Advanced Profile, create new profile with Profile Actions XML

<action type="dataflow/convert_adapter_io" method="load">
    <var name="type">file</var>
    <var name="path">var/import</var>
    <var name="filename"><![CDATA[customimport.csv]]></var>
    <var name="format"><![CDATA[csv]]></var>
</action>

<action type="dataflow/convert_parser_csv" method="parse">
    <var name="delimiter"><![CDATA[,]]></var>
    <var name="enclose"><![CDATA["]]></var>
    <var name="fieldnames">false</var>
    <var name="number_of_records">1</var>
    <var name="adapter">mymodule/convert_adapter_customimport</var>
    <var name="method">saveRow</var>
</action>

3) created a module : app/etc/modules/Bv_Mymodule.xml

<?xml version="1.0"?>
<config>
    <modules>
        <Bv_Mymodule>
            <active>true</active>
            <codePool>local</codePool>
        </Bv_Mymodule>
    </modules>
</config>

4) app/code/local/Bv/Mymodule/etc/config.xml

<?xml version="1.0"?>
<config>
    <modules>
        <Bv_Mymodule>
            <version>0.1.0</version>
        </Bv_Mymodule>
    </modules>
    <global>
        <helpers>
            <mymodule>
                <class>Bv_Mymodule_Helper</class>
            </mymodule>
        </helpers>
        <models>
            <catalog>
                <rewrite>
                    <convert_adapter_customimport>Bv_Mymodule_Model_Convert_Adapter_Customimport</convert_adapter_customimport>
                </rewrite>
            </catalog>
        </models>
  </global>
</config>

5) app/code/local/Bv/Mymodule/Helper

<?php
class Bv_Mymodule_Helper_Data extends Mage_Core_Helper_Abstract
{

}

6) app/code/local/Bv/Mymodule/Model/Convert/Adapter/Customimport.php

<?php

class Bv_Mymodule_Model_Convert_Adapter_Customimport extends Mage_Dataflow_Model_Convert_Adapter_Abstract
{
    public function load() {
    }

    public function save() {
    }
     public function parse()
    {
        $batchModel = Mage::getSingleton('dataflow/batch');
        $batchImportModel = $batchModel->getBatchImportModel();
        $importIds = $batchImportModel->getIdCollection();
        foreach ($importIds as $importId){
            $batchImportModel->load($importId);
            $importData = $batchImportModel->getBatchData();
            $this->saveRow($importData);
        }
    }
    public function saveRow(array $importData)
    {
        echo "<pre>";print_r($importData);exit;
    }
}

7) Now when i run the profile in popup, i get the error :

  Method "saveRow" not defined in adapter dataprofile/convert_adapter_customimport.

I dnt understand what i'm missing. If anyone can point out.?
TIA.


texts: How to add a php file to Magento and do some operations and redirect to home page?

texts:
I want to add a custom page to magento and this page will be passed with some information (related to user login info and other details) based on the data it will do the operatations and redirect to the home page.

My requirement was to make the entry for user to login to magento without entering any data. I have pre stored some data which are used to verify the login. So I thought I will make a php page and will push the data to that php and it will login the user there and redirect to home page.

If there is any other better way to do it please advice?

What I need to do is I am trying to give a entry through mobile app (webview). So when user logging in from mobile I don't want user to reenter the login credentials. So I have stored the user email Id and a secret key (not password because of sync issue might face). So when user open the app - I am planning to hit this php page and login him automatically(by verifiying) and redirect to home page of magento.


texts: Edit account page without changing the base files

texts:
I want to edit sidebar in account page and remove recently product viewed and recently product compare. I do this with editing the base files: app\design\frontend\base\default\layout\customer.xml, I add these line in the customer.xml:

<customer_account translate="label">
    <label>Customer My Account (All Pages)</label>
    <remove name="right.reports.product.viewed"/>
    <remove name="right.reports.product.compared"/>
</customer_account>

But I want to do this without changing in the base files. How can I do this?


texts:
I'm currently in the process of moving my website to Magento (and I'm new to it -- my apologies.)
On our current site we offer two or more formats of the same book at different prices.
Book A might be $18 for the paperback and $45 for the hardcover
Book B might be $20 for the paperback and $30 for the hardcover.
It's not an attribute add-on where I could add $10 to the paperback to get the price of the hardcover. I've found that absolute pricing works best.
So my questions:

Should the hardcover and paperback be the same SKU?
How do I identify the two prices for the two formats? I'm assuming it's attribute pricing, but I've not yet found a way to do it.
Can the two formats share one product page?

Thanks so much!!
Jeff


texts:
I was able to install magento extensions but it is not working from 2-3 days. I am getting following error for all extension install. It seems extension server config issue, I sent out mail to magento support but no reply. Please guide on this

community/pagayo_pt002: Failed to connect to connect20.magentocommerce.com port 443: Connection timed out

Fatal error: Uncaught exception 'PDOException' with message
'SQLSTATE[HY000]: General error: 2006 MySQL server has gone away'
in /home/myhome/public_html/magento/lib/Zend/Db/Statement/Pdo.php:228
Stack trace:
#0 /home/myhome/public_html/magento/lib/Zend/Db/Statement/Pdo.php(228): PDOStatement->execute(Array)
#1 /home/myhome/public_html/magento/lib/Varien/Db/Statement/Pdo/Mysql.php(110): Zend_Db_Statement_Pdo->_execute(Array)
#2 /home/myhome/public_html/magento/app/code/core/Zend/Db/Statement.php(291): Varien_Db_Statement_Pdo_Mysql->_execute(Array)
#3 /home/myhome/public_html/magento/lib/Zend/Db/Adapter/Abstract.php(480): Zend_Db_Statement->execute(Array)
#4 /home/myhome/public_html/magento/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT mgbc_co...', Array)
#5 /home/myhome/public_html/magento/lib/Varien/Db/Adapter/Pdo/Mysql.php(504): Zend_Db_Adapter_Pdo_Abstract->query('SELECTmgbc_co...', Array)
#6 /home/myhome/public_html/magento/lib/Zend/Db/Adapter/Abstract.php(828): in /home/myhome/public_html/magento/lib/Zend/Db/Statement/Pdo.php on line 235


texts: Want to show the Stores based on countries

texts:
I need to show the stores name like saudi / oman / dubai. Each stores have two store views (Arbic & English).   I want to display these Stores according to their countries.
For Example Saudi Store will open on saudi with its two store views.

I had tried with GeoIP .htaccess file redirection like below,

GeoIPEnable On

RewriteEngine On
RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^SA$
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]

It is going to the Redirection Loop. I had also tried this Geo Switch Module  It makes redirection but not allowing another Store view. Also website staring time loading is very slow. I had also tried Amasty Geo IP Extension. It does not supports varnish enabled sites.

I hope .htaccess file is the Best way to redirect the sites.

Please Anyone Guide me for this requirement That will be highly Appreciated.


texts: Can someone help me, in version 2.3.5 of magento I can't see the reviews, and also put it in a tabs


texts: Easylife Switcher throws CloudZoom.quickStart() not defined

texts:
I am using ultimo for a client and Easylife Switcher.

Main image changes on clicking from color options [easylife switcher for showing images instead of colors]. However, when mouse is hovered instead of new image, the old image zooms.

After reading through I have done following but problem persists.
product.js was updated to following:

    configureForValues: function($super){
    this.fullLoad = true;
    $super();
    this.fullLoad = true;
},
getOptionLabel : function($super, option, price) {
    if (this.getConfigValue(this.config, 'show_added_prices', false)) {
        return $super(option, price);
    }
    return option.label;
}});

In JS callback, I have added CloudZoom.quickStart();

In console I can see error:

ReferenceError: CloudZoom is not defined


texts: Magento 1.9.3.6 duplicated url rewrites after each reindex

texts:
In my Magento 1.9.3.6 installation I have a duplicate url problem.
At every reindex, all the url rewrites are regenerated like magento didn't read that they were already created.
Regenerating the indexes 4 times, I get 4 clones of ALL url rewrite.

I tried different solutions, the truncate of the table, the application of some patches etc.. but Magento continues to generate only duplicates.

Going to change a category url key or a product url key, Magento doesn't create the redirect from the old url to the new url but will simply create the link from the new url to the parametric target id (catalog / product / view / 50 /)

I clarify that the duplicate url are all always like url key -> parameter url. Never in the old form url -> new url.
This ISN'T the problem of the numeric parameters inserted in the suffix of the url, but something else.
Is it some known bug?

What's the class or function that allows Magento to check if an url rewrites exists?


texts: How can i submit my form data in custom table magento2

texts:
my custom_tab1.phtml

my custom form is here please help me how to submit form data in custom table in magento2.3 without using objectmanager


texts: How do I add personalized field to products?

texts: I would like to add some text fields , like attached.


texts: Magento Product Collection query is running multiple times

texts:
I am making use of 3rd party free extension for displaying top seller block.

Code is very simple to understand, but when i use getSelect() method to display SQL query i found same query being displayed multiple times instead of once.

I am not sure why its happening.

Here is the below _getProductCollection() function

 protected function _getProductCollection()
    {
        parent::__construct();
        $storeId    = Mage::app()->getStore()->getId();
        $todayDate  = Mage::app()->getLocale()->date()->toString(Varien_Date::DATETIME_INTERNAL_FORMAT);

        $products = Mage::getModel('catalog/product')->getCollection()
            ->addAttributeToSelect('*')
            ->addAttributeToSort("entity_id","DESC")
            ->addAttributeToSelect(array('name', 'price', 'small_image'))
            ->setVisibility(Mage::getSingleton('catalog/product_visibility')->getVisibleInSiteIds())
            ->setOrder($this->get_order(), $this->get_order_dir());
        echo $products->getSelect()."<br>";
        if(Mage::getStoreConfig('catalogextensions/config4/max_product'))
        {
            $products->setPageSize(Mage::getStoreConfig('catalogextensions/config4/max_product'));
        }

        Mage::getSingleton('catalog/product_status')->addVisibleFilterToCollection($products);
        Mage::getSingleton('catalog/product_visibility')->addVisibleInCatalogFilterToCollection($products);
        Mage::getSingleton('cataloginventory/stock')->addInStockFilterToCollection($products);

        $this->_productCollection = $products;

        return $this->_productCollection;
    }

And below is what i get

same query getting repeated multiple times .

Thank you.


texts: shopping cart rule for freeshipping not working with subtotal

texts: Could any one please help me to set up a shopping cart rule for freeshipping in magento for  all orders over AED - 1,850, USD - 500, GBP - 350, EUR -  450. I tried to set the option Subtotal  equals or greater than but its not working.


texts: Magento - Backend only shows empty screen, how to show error instead?

texts:
I am developing a extension, following the instructions of a magento developer book.

I get a blank screen after adding the file adminhtml.xml to the etc folder of my module.

<?xml version="1.0" encoding="UTF-8"?>
<config>
    <menu>
        <branches translate="title" module="branches">
            <title>Branches</title>
            <sort_order>90</sort_order>
        </branches>
        <children>
            <list translate="title" module="branches">
                <title>List</title>
                <action>branches/adminhtml_branches</action>
                <sort_order>10</sort_order>
            </list>
        </children>
    </menu>
    <acl>
        <resources>
            <admin>
                <children>
                    <branches>
                        <title>Branches</title>
                        <sort_order>90</sort_order>
                    </branches>
                    <children>
                        <list translate="title">
                            <title>List</title>
                            <sort_order>10</sort_order>
                        </list>
                    </children>
                </children>
            </admin>
        </resources>
    </acl>
</config>

They even mentioned in the book that an error will appear at this point, but my question is, why is there no error but just a blank screen? How can I tell magento to show me the error instead?

I already activated developer mode, by adding this code to my index.php:

$_SERVER['MAGE_IS_DEVELOPER_MODE'] = true;

if (isset($_SERVER['MAGE_IS_DEVELOPER_MODE'])) {
    include 'app/code/local/Debug/ChromePhp.php';
    ini_set('display_errors', 1);
    ini_set('display_startup_errors', 1);
    error_reporting(E_ALL);
}

But it made no difference.


texts: Magento 2 cloud: Copy file via ssh (locally)

texts:
Tryed to copy log file locally using scp.

scp XXXX@ssh.ap-3.magento.cloud:var/log/payment.log /var/www/some-folder/payment.log

Result:

Could not create directory '/app/.ssh'.
Warning: Permanently added 'ssh.ap-3.magento.cloud,52.65.30.37' (RSA) to the list of known hosts.
Permission denied (publickey).

magento-cloud repo:cat command returns only files from git.

Is there a way to copy a file locally from the cloud using console?

UPD:

At the moment, the problem is not observed.


texts: Is there a way to implement Cybersource as an Iframe in Magento 1?

texts:
I have a Magento 1, and we are using the official Magento 1 Cybersource extension

https://marketplace.magento.com/cybersource-cybersource-cybersource.html

We have set it up and successfully activated web/mobile (which redirects to an external form).

Because we are PCI compliant, we need this to be SAQ-A. The external form is actually SAQ-A. However, the business wants us to implement the payment in an iframe.

  I was digging into the Cybersource documentation and googling a lot,
  but I was not able to find an implementation of Cybersource with
  iframes.

Does anyone know anything about it?

Thanks!


texts: Magento 2 - Admin - Product Listing Grid

texts:
Requirement is - we have to change image of thumbnail in product listing of admin in magento 2. But we are not able to find how rendering is occurring. There is no template used for same we believe.

Can anyone suggest, what is the way of doing that ?

We would be very thankful to you :)

Regards,
Nid


texts:
I never used Magento and a client of mine asked me to remove an unwanted google adsense in his website.

While inspecting, I got this:

<link rel="preload" href="https://adservice.google.com.br/adsid/integrator.js?domain=www.mywebsite.com.br" as="script">
<script type="text/javascript" src="https://adservice.google.com.br/adsid/integrator.js?domain=www.mywebsite.com.br"></script>
<link rel="preload" href="https://adservice.google.com/adsid/integrator.js?domain=www.mywebsite.com.br" as="script">
<script type="text/javascript" src="https://adservice.google.com/adsid/integrator.js?domain=www.mywebsite.com.br"></script>
<link rel="prefetch" href="https://securepubads.g.doubleclick.net/static/3p_cookie.html">

I need to get rid of these things but I can't find where. Through searching I tried to find it in head.phtml and page.xml or local.xml but nothing there.

If you guys could help me, It'd be awesome.


texts:
Fatal error: Namespace declaration statement has to be the very first statement or after any declare call in the script in .../vendor/zendframework/zend-filter/src/AbstractFilter.php on line 10

what is the solution in this case?


texts: Add to Cart button not adding in cart Magento 2.3.3

texts:
I have setup magento 2.3.3 on server php 7.2.
All buttons working fine on product detail page but Add to Cart button not adding product in cart. Same is working fine on local pc xampp but not working on server.
I have removed all form var/cache, clear cache, setup:static-content:deploy etc but not fixed
Below is the url where i am getting error:
https://bigbest.in/index.php/airtel-4g-hotspot-e5573cs-609.html
Please help!
Thanks


texts: No ID parameter in model save controller when saving after edit

texts:
I've written a model object and I cannot edit and save an existing object, a new object is always created. I can create and delete, but editing doesn't work. I'm pretty sure that this is because the "profile_id" parameter isn't in the request when I save the object.

The interesting thing is that the "profile_id" parameter is in the request when I edit an object, it's just not getting passed to my save controller. $profile_id is always 0. Here's the code in my save controller.

$profileId = (int) $this->getRequest()->getParam('profile_id');
        $profile = $this->_profileFactory->create();
        if ($profileId) {
            $profile->load($profileId);
        }
        $this->_coreRegistry->register('profile', $profile);
        return $profile;


texts: I have custom classes 4 to 5 written in php.I want to move that to Magento as they are now.Can i do that ,And second thing how i will include if they are not in root folder ?


texts:
I want to get visitor Id in my custom block for getting product view history of non logged in customer

  public function __construct(
    \Magento\Customer\Model\Visitor $customerVisitor
   ){
     $this->_customerVisitor = $customerVisitor;
   }

    .....
    echo $visitorId = $this->_customerVisitor->getId();exit;
   ....

but i am not getting any value how to get visitor id?


texts:
I need to sent an coupon code while new user registration.
coupon code i based on category and its valid for one month. How to generate the coupon code in registration page.


texts: Display configurable product in a matrix table

texts:
Hi I am creating a magento website for a Timber company that sell their timber based on the section (width x height) and the length. The client wants the products to appear in a matrix table as opposed to the usual set of 2 drop down boxes.

Here is an image to show what I mean.

Does anyone know of an extension or could anyone put me on the right path as to where I would go to try and achieve this look?


texts:
Help me please . Disable My Account and show after login in Magento2.
i want to change top.link in magento2 .  it have [ My Account , My wish list , Create account  and sign in  ] but  i want hide btn {My Account}  and show it after customer login success. I see block and template  in Module Customer  but not understand. Please help me Plugin , override ,create block or something .


texts: product page image upload shows "Upload HTTP Error"

texts:
whenever i try to upload an image on product page it gives this error:

Upload HTTP Error

Given all permissions to all the required folders and cleared cache.

Any solution?


texts: what is the best way to compare the date?  for example i'd like to compare the hour of the day and if the time of day is a certain number execute a certain path.  How best to do this?


texts: Magento Enterprise Edition: Custom module not showing admin configuration

texts: I have developed a magento module. It works fine for community edition and enterprise edition in my local environment. After installed it in the live site it works fine for community edition, but not for enterprise edition. It is not showing any admin configuration in enterprise edition. Am I missing anything? Please guide me as soon as possible.


texts: When delivery radiobutton is checked the textarea is required

texts:
On my checkoutpage I have added a deliverydate textarea.
Some visitors don't fill the textarea which is a problem.

I need the textarea to be required when checking the Deliver radiobutton.
On default it is selected and required.
And when checking the Pickup radiobutton the textarea isn't required anymore. (its hidden with js see below)

I think I need to add required to the textarea and when checking radiobutton Pickup the required needs to be removed with javascript?

<textarea rows="4" name="shipping_arrival_comments" id="shipping_arrival_comments" required ></textarea>

Here below is how my (stripped) form looks like:
How can I do this?

<form id="co-shipping-method-form" action="">
    Pickup

    <input name="shipping_method" type="radio" value="freeshipping_freeshipping" id="s_method_freeshipping_freeshipping" class="radio" />

    Deliver

    <input name="shipping_method" type="radio" value="tablerate_bestway" id="s_method_tablerate_bestway" checked="checked" class="radio" />

        Deliver date

        <textarea rows="4" name="shipping_arrival_comments" id="shipping_arrival_comments"></textarea>

</form>

The "Submit button":

<button onclick="shippingMethod.save()" class="button" type="button">Next step</button>


texts:
We have a custom extension that adds fields for multiple vendors.
How can we override Magento Price logic to make calculations for price and special price according to that fields.

I have seen the Magento pricing library, but as a newbie to Magento2 I'm looking for some examples on how to override price and special price calculations process.

Thanks


texts:
When a bundle product is shown, I need to load specific attributes of the assigned bundle items (which are simple products of course).
Like this "https://nimbusweb.me/nimbus-screenshots/132ecd856443167593394428fbabfe25" on every assigned product to bundle items.
Please note I have tried it but it copies the attribute to the next product in which attribute is not added/selected.


texts: how can i check current page is grid admin panel

texts: How can i check that current page is grid programatically. I am trying to find solution but get no result yet. It have to general that current page is grid.


texts: Magento 2: How to get category product collection

texts:
I am trying to get category product collection if is_feature variable Yes. I went around the google, but unable to get the solution.

my code

use Magento\Catalog\Api\CategoryRepositoryInterface;

class FeaturedList extends \Magento\Catalog\Block\Product\ListProduct {

    /**
     * @var \Magento\Catalog\Model\ResourceModel\Product\Collection
     */
    protected $_collection;

    /**
     * @var \Magento\Catalog\Api\CategoryRepositoryInterface
     */
    protected $categoryRepository;

    /**
     * @var \Magento\Framework\App\ResourceConnection
     */
    protected $_resource;

    /**
     * @var \Magento\Catalog\Model\CategoryFactory
     */
    protected $categoryFactory;

    /**
     * @var \Magento\Catalog\Model\Product\Visibility
     */
    protected $catalogProductVisibility;

    /**
     * @param \Magento\Catalog\Block\Product\Context $context
     * @param \Magento\Framework\Data\Helper\PostHelper $postDataHelper
     * @param \Magento\Catalog\Model\Layer\Resolver $layerResolver
     * @param CategoryRepositoryInterface $categoryRepository
     * @param \Magento\Framework\Url\Helper\Data $urlHelper
     * @param \Magento\Catalog\Model\ResourceModel\Product\Collection $collection
     * @param \Magento\Framework\App\ResourceConnection $resource
     * @param \Magento\Catalog\Model\CategoryFactory $categoryFactory
     * @param \Magento\Catalog\Model\Product\Visibility $catalogProductVisibility
     * @param array $data
     */
    public function __construct(
            \Magento\Catalog\Block\Product\Context $context,
            \Magento\Framework\Data\Helper\PostHelper $postDataHelper,
            \Magento\Catalog\Model\Layer\Resolver $layerResolver,
            CategoryRepositoryInterface $categoryRepository,
            \Magento\Framework\Url\Helper\Data $urlHelper,
            \Magento\Catalog\Model\ResourceModel\Product\Collection $collection,
            \Magento\Framework\App\ResourceConnection $resource,
            \Magento\Catalog\Model\CategoryFactory $categoryFactory,
            \Magento\Catalog\Model\Product\Visibility $catalogProductVisibility,
            array $data = []
    ) {
        $this->categoryRepository = $categoryRepository;
        $this->categoryFactory = $categoryFactory;
        $this->catalogProductVisibility = $catalogProductVisibility;
        $this->_collection = $collection;
        $this->_resource = $resource;

        parent::__construct($context, $postDataHelper, $layerResolver, $categoryRepository, $urlHelper, $data);
    }

    public function getCategoryProductCollection()
    {
        $category = $this->categoryFactory->create()->load()->getProductCollection()->addAttributeToSelect('*')
            ->addAttributeToFilter('is_feature','1')->setPageSize(20)
            ->setOrder('position','asc');
        $category->setVisibility($this->catalogProductVisibility->getVisibleInCatalogIds());
        return $category;
    }

}

Any help/suggestions?


texts: "product-review-table" is not showing in review form

texts: After clicking on "Be the first to review this product", in review form the table to display the rating-box is missing (attached image) and it only displays the form-list's input fields like "Let us know your thoughts"...


texts:
I am trying to improve the performance of magento complying with the requirements of google page speed and I have come across this, I don't know if it is a bug, if I am missing something or what it is exactly.
The thing is, I have to add the critical inline css and defer the loading of the rest of the css to the bottom of the page.
I get to load the critical css inline using the native magento option.

The problem now comes when I use this option Magento by default copies the css that you have added in default_head_block.xml at the bottom of the page, but does not "delete" them from the header.
Moreover, the css files in the header add a preload tag,

I would like to know how they solved this, since I suppose it is a common problem in the rest of the websites.
Thank you very much for the help.


texts: All payment methods are not coming in Cart Price Rule

texts:
In Magento 2.3.1 I'm creating Cart Price Rule for Payment Methods. I have to create for Bank Transfer but there is Bank Transfer option not coming.

https://www.screencast.com/t/h4rc4PnQU


texts: Invalid parameter given. A valid $fileId[tmp_name] is expected. magento 2.4.1

texts:
While uploading a image getting error
Invalid parameter given. A valid $fileId[tmp_name] is expected.


texts: How to insert block from custom module into home page?

texts: How can I insert custom block into the Home Page using custom layout.xml ?


texts: Web Setup Wizard breaks after 2.2 update

texts: After running the latest upgrade to 2.2 via the Web Setup Wizard, it appears to successfully complete the installation. However, when I visit the Web Setup Wizard now, it displays a broken page. Click on the link display a 404.


texts: How to update table (adding new column) in Magento mysql4 setup script

texts:
Since couple of weeks I'm trying to understand Magento, it's structure, mechanisms and I'm stuck on scripts creating for example additional columns in tables.
In my config.xml script I have:

<?xml version="1.0"?>

<config >
< modules >
    < Inchoo_Orders >
        <version>0.0.0.3< /version>
    < /Inchoo_Orders>
< /modules>
<global>
    <models>
        <inchoo_orders>
            <class>Inchoo_Orders_Model</class>
enter preformatted text here
  <resourceModel>inchoo_orders_resource</resourceModel>
        </inchoo_orders>
    </models>
    <resources>
        <inchoo_orders_setup>
            <setup>
                <module>Inchoo_Orders</module>
                <class>Inchoo_Orders_Model_Mysql4_Setup</class>
            </setup>
        </inchoo_orders_setup>
    </resources>
   ......

My Sql script name is: mysql4-upgrade-0.0.0.2-0.0.0.3.php

But it won't update table. What I'm doing wrong ?
Getting error:

  Fatal error: Class 'Inchoo_Orders_Model_Mysql4_Setup' not found in
  /home/.../app/code/core/Mage/Core/Model/Resource/Setup.php
  on line 234

If I change class to Mage_Core_Model_Resource_Setup not giving me any errors but also I can't see it work.


texts: Magento2 update sales order grid attribute

texts:
I have created a custom sales order grid attribute, I need to update that when I programmattically update order status.
How can I get the sales order attribute & then update it accordingly.
This is the module used to create attribure
https://github.com/yereone/NewOrderAttribute


texts: Magento 2.3.2 Check Files For Modifications

texts:
Is there any way to check your install for core files that may have been modified, miss-copied, or just don't belong?

I have a bug that keeps rearing its head and I want to make sure that a "core" file of the stock magento component has not been accidentally modified or damaged. I know wordpress has functionality to this effect but I am struggling to find something for Magento 2.

Is there a tool to compare/inspect the files and look for anything out of place?

Kind Regards
James


texts: How can I add an active selector to this piece of code

texts:
Can anyone help me with adding an active selector so that when a link is clicked that link will receive a different color background or maybe just bold it?

Filename is section.html

      <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">

    {{breadcrumbs}}

  <svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 26">
    <path d="M20,18.9c1.6-2.1,2.4-4.6,2.4-7.2c0-6.4-5-11.7-11.2-11.7C5,0,0,5.3,0,11.7s5,11.7,11.2,11.7
          c2.5,0,5-0.9,6.9-2.5l4.6,4.8c0.3,0.3,0.6,0.4,0.9,0.4c0.3,0,0.7-0.1,0.9-0.4c0.5-0.6,0.5-1.4,0-2L20,18.9z M20,12
          c0,4.9-3.8,9-8.5,9s-9.1-4.1-9.1-9s4.4-9.5,9.1-9.5S20,7,20,12z"/>
  </svg>
  {{search instant=true placeholder=settings.search_placeholder}}

Support

Manuals

International

Tracking

Contacts

Security

Registration

Policy

Troubleshooting

Promotions

Shipping

Terms

Claim

{{section.name}}

  {{#each section.articles}}

      {{title}}

      {{body}}

  {{/each}}

      {{pagination}}


texts: Customer reports that he is not forwarded to PayPal

texts:
We are using PayPal express payments and the OneStepCheckout module.

A customer reported that he tried to make an order, but when clicking "buy" the waiting animation keeps being displayed and he is never be forwarded to the PayPal website.

When we tested this, we could not reproduce the problem.

After cleaning the Magento caches, the same customer was able to place an order (while it is not clear if this is related).

What can be the reasons for this? How can the problem be troubleshooted?


texts: Change default behaviour for address selection in checkout

texts:
When we define a default billing address and a default shipping address for a customer, the (onepage) checkout automatically selects "Ship to this address" while choosing the billing address.

Users obviously do not read this, proceed with the checkout and the default shipping address gets changed to the default billing address.

I thought, that the checkout would behave in a way that "Ship to a different address" would be selected if billing and shipping address were not the same.

Is this some backend misconfiguration or do I need to work on the checkout itself to check whether the addresses are the same or not and set the radio buttons regarding to this?


texts: Magento 1.9.3.2 Order Email sent 2 or 3 times but sometimes only

texts:
I got a strange issue with my site in Magento 1.9.3.2 and I can't understand the reason.

Sometimes I got sales order notification sent 2 or 3 times, sometimes even after a few hours away from the first email.

In core_email_queue_recipients I can see different message_id but same recipient_email but in core_email_queue table I can see the same entity_id and I can't figure why this happens.

Cron configuration is tested and work well I can't understand why this issue occurs.

Does anyone have any idea?

Thanks in advance


texts: Attribute update via CSV not reflected on Layered Navigation

texts:
I am trying to import updated attribute values (including multi-select) via csv. The import runs okay, and the record is updated correctly. But it is not reflected on the Layered Navigation.

I need to re-save the record via admin to get it to display correctly.

Would appreciate help on this.


texts: Magento 2 module to log failed login attempts, for Fail2ban

texts:
I want to log failed login attempts to the admin backend of Magento 2 to a simple text file, to later be consumed by Fail2ban easily.
E.g. for every failed login attempt, the module would add a line with remote IP addresses and time.
Is there such a module/plugin available already?


texts: Magento Search not working in Firefox Browser

texts: I have a site in Magento 1.7.0.2 and when i search for products from site frontend using name or SKU, in firefox, the search doesnt return any results. But the same term fetches result in Chrome browser. How can I fix this bug which occurs in firefox?


texts:
I created a full clone of a Magento shop (all files, complete database) because I am moving to another server. After everything is tested on the new server, what do I need to update the new version? On the old server customers have created new orders and new customers are added. I am not sure if someone also changed some products but no new modules have been added.

Of course I need the database. But do I need files, too? /mediamaybe?


texts: Configurable products not shown in search

texts:
I am in the process of grouping my products after colors in Magento. However, the configurable "parent" product is not showing when searching on the website.

Both the parent and child products are enabled for the page view, and the child products are set to not individually visible.

Why cant I find the parents in search?


texts: How to save product gallery image with param image is url, in Magento-2?

texts:
In Magento 2, I have created an extension, syncs products with another store. I have the  data image_url which is in the following format ,

["images" => ["0" => "http://image_url.jng", "1" => "http://image_url_1.jng"];

So how to save these as product gallery image in magento 2 with this data?


texts:
I need to translate some notification messages, but I can't find the correct string to translate... I've installed a extension for a dutch language pack, but where can I find the files where the translations are stored?

Regards,


texts: Passing sku code value to TrustPilot product review

texts:
hope someone can help.

I'm trying to set up a 3rd party review platform (TrustPilot) for our Magento 1.9 CE store, using Ultimo theme. There is a product review box which will display individual product reviews on product pages. The code to display this box looks pretty simple, but it requires us to add the variable for the product sku and product name.

Here's the code (I've added in capitals where the two bits of data need to go);

 Trustpilot

This code works fine if I hard code in the actual SKU (i.e. H12345). I was expecting to be able to replace the 'MY SKU CODE GOES HERE' with something like;

<?php echo $_product->getData('sku') ?>

...but that doesn't work.

I first tried this from the admin backend CMS in a custom block/tab - if I hard code sku, it works fine, if I try anything else, the code still works, but doesn't show any of the product related reviews/details which is should (i.e. it just looks like the product has no reviews).

I thought this might be something to do with custom blocks needing something else, so I tried it just on the main product description page (i.e. not in a custom block/tab) but still no joy.

I also tried creating a phtml file seperately, but couldn't get that to work either. Have looked through lots of posts about calling variables in other scenarios, here and elsewhere, but still no joy.

I'd really appreciate any suggestions.
Many thanks,
Bill


texts:
I'm sure this is simple, but I can't quite work it out.

My Magento website has several (duplicate) URL's:

http://www.example.com
http://www.example.com/index.php/
https://www.example.com/
https://www.example.com/index.php

I want them all linking to the https version of example.com

I tried adding the following in my htaccess root file:

RewriteEngine On
RewriteCond %{HTTPS} !^on$
RewriteRule (.*) https://www.example.com/$1 [R,L]

RewriteCond %{THE_REQUEST} ^.*/index.php
RewriteRule ^(.*)index.php$ https://www.example.com/$1 [R=301,L]

but it doesn't work (it means I can no longer access my www.example.com/admin site). Any ideas? I'm sure this must be a common thing with Magento?


texts: Magento2.3: How to customise the default search design in home page?

texts:
I want to customise the default search button in home page. We have the search as below screenshot and want to do that if we click the search icon it should open the input box below the search icon.

How can I do that?

Any help will be appreciated!


texts: Magento 1.9.2.4 PayPal order telephone number missing

texts: I have noticed that whenever a customer places an order with PayPal their telephone number does not appear in their order details. Also their name is blank in the Last 5 Orders in the dashboard?


texts: Remove region from address information in checkout

texts:
How can I remove the region (code is <!-- ko text: address().region -->) from the address field, if customer is logged in (see screenshot).

I have already removed {region} from the customer address template configuration and disabled region information


texts: Two-Factor Authentication Invalid in Magento 2 admin panel

texts:
My client enabled 2FA (Two-Factor Authentication) in the Magento 2 admin panel, but every time that I scan the code to have it configured in my Google Authenticator and try to enter the code, it's invalid.
I checked and it's using Google as a provider, so what I could do to be able to access the admin panel?
n98-magerun2.phar config:store:get %twofactorauth%


texts: According to GTmetrix, I have 18 static images on the homepage that are not loading via the CDN. I cannot figure out why. I've posted a screenshot of GTMetrix and the Magento backend. Any ideas?


texts:
Hi I added custom attribute to bundle product(For Chocolate Box(Yes/No)); I need change product tamplate(for custom tamplate) if "Yes"  is active!
Help me please!

Controller

class Chocolate_Box_IndexController extends Mage_Core_Controller_Front_Action
{

        public function indexAction()
        {
            $this->loadLayout();
            $this->renderLayout();
        }
}

config.xml

    <layout>
        <updates>
            <chocolatebox>
                <file>chocolatebox.xml</file>
            </chocolatebox>
        </updates>
    </layout>
</frontend>

layout

<PRODUCT_TYPE_bundle>
    <reference name="head">
        <action method="addItem"><type>skin_js</type><name>js/chocolatebox/chocolatebox.js</name></action>
        <action method="addItem"><type>js_css</type><stylesheet>chocolatebox/css/style.css</stylesheet></action>
    </reference>
    <reference name="product.info">
        <action method="setTemplate">
            <template>chocolatebox/chocolatebox.phtml</template>
        </action>
    </reference>
</PRODUCT_TYPE_bundle>


texts: Magento2.3: Display Custom text on Shipping Address

texts:
I would like to add custom text whenever shipping country is Sweden, Ive created Magento_Checkout module in my custom theme and added a phtml file

checkout_index_index.xml

<referenceBlock name="checkout.root">
            <arguments>
                <argument name="jsLayout" xsi:type="array">
                    <item name="components" xsi:type="array">
                        <item name="checkout" xsi:type="array">
                            <item name="children" xsi:type="array">
                                <item name="steps" xsi:type="array">
                                    <item name="children" xsi:type="array">
                                        <item name="shipping-step" xsi:type="array">
                                            <item name="children" xsi:type="array">
                                                <item name="shippingAddress" xsi:type="array">
                                                    <item name="children" xsi:type="array">
                                                        <item name="shippingAdditional" xsi:type="array">
                                                            <item name="component" xsi:type="string">uiComponent</item>
                                                            <item name="displayArea" xsi:type="string">shippingAdditional</item>
                                                            <item name="children" xsi:type="array">
                                                                <item name="shipping-info-wrapper" xsi:type="array">
                                                                    <item name="component" xsi:type="string">Magento_Checkout/js/view/country-component.js</item>
                                                                    <item name="provider" xsi:type="string">checkoutProvider</item>
                                                                    <item name="sortOrder" xsi:type="string">0</item>
                                                                </item>
                                                            </item>
                                                        </item>
                                                    </item>
                                                </item>
                                            </item>
                                        </item>
                                    </item>
                                </item>
                            </item>
                        </item>
                    </item>
                </argument>
            </arguments>
        </referenceBlock>

For js

;define([
    'uiComponent',
    'ko',

], function (Component, ko) {
    'use strict';

    return Component.extend({
        defaults: {
            template: 'Magento_Checkout/shipping-info'
        },

        initObservable: function () {
            var self = this._super();
            this.showShippingCountryInfo = ko.computed(function() {
                var method = country_id();

                if(method !== undefined) {
                    if(method === 'country_id_goes here') {
                        return true;
                    }
                }

                return false;

            }, this);

I would like to know if the js is correct.


texts: POST source-items for update returns 404

texts:
I am trying to update the quantity of products using the rest api call: {HostUrl}/rest/default/V1/inventory/source-items with the below data:
{
  "sourceItems": [
    {
      "sku": "EXAMPLE_SKU",
      "quantity": 4,
      "status": 1
    }
  ]
}

However, this is returning a 404 response saying that the route cannot be found. The route appears to be correct according to the Magento 2.4 static api documentation.
Other routes such as {HostUrl}/rest/V1/store/storeViews work without a problem and the permissions for modifying products/inventory have been given, so I'm at a dead end to understanding why this isn't working.
Any solution or advice will be massively appreciated :)


texts:
I'm trying to add a new container according to the Magento 2 documentation, but it isn't working.  Here is what I'm trying:

<container name="some.container" as="someContainer" label="Some Container" htmlTag="div" htmlClass="some-container" />

I'm not seeing the markup anywhere after I refresh.  Caching is off too.


texts: After enabling the SSL Magento gives 404 error to internal pages and to css and js

texts:
I am having a very irritating issue after i enabled the SSL in my website.
I changed the Base URL (Secure) from http to https and I set "Use Secure URLs on Storefront" to YES.
Then I regenerated static content via this command line -:
php bin/magento setup:static-content:deploy -f

And then i cleared my cache. When i see the website it is redirecting to https URL but CSS/JS are not loading and some images are not showing in the Home page.
And none of the links to internal pages are working. But same URL is working with http smoothly.

One more thing i noticed that https URLs are working but when i am adding /index.php after the website URL. This is really strange because all http URL works with URL re-write then why not https URL. To remove /index.php from all URLs i am using this .htaccess from the starts. I am still using .htaccess for that purpose.

RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

I tried every possible way which are available on the internet. But nothing helps.


texts:
In admin panel under Url options, I want to turn on Store codes on Url, since I want to visit my country-specific pages. I'm running locally (using WAMP) so my IP is 127.0.0.1:8888. I did set my host file so that magento.lan points to 127.0.0.1. Base url is set to magento.lan (but my store is still visited on magento.lan:8888).

The error I'm getting when trying to enable the store codes to url setting is:

Invalid domain name: The input appears to be a DNS hostname but cannot match TLD against known list; The input does not appear to be a valid URI hostname; The input does not appear to be a valid local network name


texts: How to delete custom options value of a product programatically without deleting the option

texts:
I want to delete custom options value of a product programatically without deleting the option.

How to do that?


texts: Magento 2: Why the product not show in category page (reindex)?

texts:
I have well mastered Magento 1.x, however, I'm starting on 2.1.7 and what caused me confusion is the index manager, since I created a product and after saving it does not appear on the page of the categories

I have the cron job well created:

*/5 * * * * /usr/bin/php7.0 /path/to/magento2/bin/magento cron:run

*/5 * * * * /usr/bin/php7.0 /path/to/magento2/update/cron.php

*/5 * * * * /usr/bin/php7.0 /path/to/magento2/bin/magento setup:cron:run

Now, I know that after creating the product I go to the console and run this command

php bin/magento indexer:reindex

Everything works, but the management of the store will be done by the end client, person without access to the server and without ssh knowledge and Linux commands.

I find it hard to believe that to publish a product in Magento 2 you have to forcefully run a command line

NOTE: how to work the "Update on save" mode, because away state in red color.

Thanks!


texts: Is that possible to make the Magento 2 website load their products catalog from an external API without breaking everything else?

texts:
I have a client with lots of physical stores, and a system that his managers uses to manage the products they sell, like prices, descriptions, etc.
He wants a Magento website to start selling his products online, they already have an API that provides all the products available, that they already use on the local POS systems.
My question is: Is that possible to make the Magento (v2) website load their products catalog from an external API without breaking everything else?
I know that is not a straight forward thing to do, but I'm wondering if is that even possible to do.
Thanks


texts: Magento2: How to limit maximum images per product?

texts: I want to limit 5 images per product at backend. So admin won't be able to upload more than 5 images. How can I achieve this, any idea?


texts: Magento 2.1 - How to resolve PHP Fatal error: Class 'Zend_Captcha_Image' not found issue?

texts:
I'm using Magento 2.1.I just updated my composer and after that When I run setup:upgrade it's showing me error
PHP Fatal error: Class 'Zend_Captcha_Image' not found in vendor/magento/module-captcha/Model/DefaultModel.php on line 13

How can I resolve this issue?
any help will be appreciated.
Thanks


texts: Why admin page Search terms redirect to login?

texts:
I'm using Magento 2.3 with ElasticSearch 6, I have 20k different searches per day.

I can see the top search terms in my Dashboard, but when I access the page Marketing > SEO & Search > Search Terms I'm redirected to the login page.

Stack trace

…lled at /app/mdhksik627pps/vendor/magento/framework/Session/
SessionManager.php (150)
in Magento\Framework\Session\SessionManager::writeClose called at ? (?)

MySQL Query

How could I solve it?


texts: core_config_data and core_url_rewrite table truncated

texts:
I have a Magento 1.9.2.3 website running in Nginx and MySQL . in which is core_config_data and core_url_rewrite table auto-truncated.

it is not happening a fixed time interval. sometimes its happening in the morning sometime in the evening and sometimes in the night. how to find the root cause of it. I have tried all the possible solution but no luck.


texts:
In magento 2, I want to do like this below way :

http://php722.local.com/m231/products/category1 => This is category url (Products is main category and category1 is sub-category of products)

Now, there are 2 tabs available in category1 category

video
photos

Expected Result :

Now, If I execute this below url then, it should not be return 404

http://php722.local.com/m231/products/category1/?tab=video

http://php722.local.com/m231/products/category1/?tab=photos

http://php722.local.com/m231/products/category1/video

http://php722.local.com/m231/products/category1/photos

If 1st url execute then, video tab should be active & if 2nd url
execute then, photos tab should be active.

Actual Result :

Right now, it's return 404. I think it's consider as action name and action will be not found so.

What should i need to do ? Is there any way to override url rewrite file or plugin ?

Any help would be appriciated.

Thanks.


texts: Front-end session timeout causes error on checkout and basket pages

texts:
When user adds an item(or items) to the cart, it behaves normally. but if user tried to goto either checkot page or basket page after a while, it shows an error page as follows,

Exception #0 (Magento\Framework\Exception\NoSuchEntityException): No such entity with cartId =
Exception #0 (Magento\Framework\Exception\NoSuchEntityException): No such entity with cartId =
#0 E:\xampp\htdocs\magento_projects\jestic\vendor\magento\module-quote\Model\QuoteRepository.php(197): Magento\Framework\Exception\NoSuchEntityException::singleField('cartId', NULL)
Exception #0 (Magento\Framework\Exception\NoSuchEntityException): No such entity with cartId =
#0C:xampp/htdocs/myProject/vendor/magento/module-quote/Model/QuoteRepository.php(197): Magento\Framework\Exception\NoSuchEntityException::singleField('cartId', NULL)
#1C:xampp/htdocs/myProject/vendor/magento/module-quote/Model/QuoteRepository.php(101): Magento\Quote\Model\QuoteRepository->loadQuote('load', 'cartId', NULL, Array)
#2C:xampp/htdocs/myProject/vendor/magento/module-quote/Model/QuoteRepository.php(127): Magento\Quote\Model\QuoteRepository->get(NULL, Array)
#3C:xampp/htdocs/myProject/var/generation/Magento/Quote/Model/QuoteRepository/Interceptor.php(24): Magento\Quote\Model\QuoteRepository->getActive(NULL, Array)
#4C:xampp/htdocs/myProject/vendor/magento/module-quote/Model/Quote/Item/Repository.php(69): Magento\Quote\Model\QuoteRepository\Interceptor->getActive(NULL)
#5C:xampp/htdocs/myProject/vendor/magento/module-checkout/Model/Cart/ImageProvider.php(44): Magento\Quote\Model\Quote\Item\Repository->getList(NULL)
#6C:xampp/htdocs/myProject/vendor/magento/module-checkout/Model/DefaultConfigProvider.php(278): Magento\Checkout\Model\Cart\ImageProvider->getImages(NULL)
#7C:xampp/htdocs/myProject/vendor/magento/framework/Interception/Interceptor.php(146): Magento\Checkout\Model\DefaultConfigProvider->getConfig()
#8C:xampp/htdocs/myProject/var/generation/Magento/Checkout/Model/DefaultConfigProvider/Interceptor.php(26): Magento\Checkout\Model\DefaultConfigProvider\Interceptor->___callPlugins('getConfig', Array, Array)
#9C:xampp/htdocs/myProject/vendor/magento/module-checkout/Model/CompositeConfigProvider.php(32): Magento\Checkout\Model\DefaultConfigProvider\Interceptor->getConfig()
#10C:xampp/htdocs/myProject/vendor/magento/module-checkout/Block/Cart/Shipping.php(54): Magento\Checkout\Model\CompositeConfigProvider->getConfig()

and so on..

This happens when user tries to click on minicart icon before site gets fully loaded. (icon is clickable before site gets fully loaded and it linked to http://localhost/myProject/checkout/cart/)

I think usually there should be some standard web page with error message rather than showing errors like this.

What is wrong here? How can I fix this? please help...


texts:
I've found this question and in the answer someone says to set the template as you can see here https://stackoverflow.com/questions/13035891/create-a-form-in-magento-admin-panel/16841794#16841794.

Where can I put my fileName.phtml ?

Really need help!


texts: Magento 2 : Change Admin grid column width

texts:
I have added an admin grid using UI component in my custom module. Now I want to change the column width of admin grid.

This is the code that I am using for adding column in admin grid :

 <column name="product_title">
    <argument name="data" xsi:type="array">
        <item name="config" xsi:type="array">
            <item name="editor" xsi:type="array">
                <item name="editorType" xsi:type="string">text</item>
                <item name="validation" xsi:type="array">
                    <item name="required-entry" xsi:type="boolean">true</item>
                </item>
            </item>
            <item name="filter" xsi:type="string">text</item>
            <item name="label" xsi:type="string" translate="true">Title</item>
            <item name="sortOrder" xsi:type="number">20</item>
        </item>
    </argument>
</column>

Please Help me


texts: Magento 2 Add product to cart programmatically returning to original price

texts:
I have a product of  $1, because I change the price later.
What I'm doing is that I send the price on an Ajax request to a Controller, just like this:
                  $.ajax({
                        url: 'http://baseurl/application/cart/application',
                        data: {product_id: '1',grand_total:120},
                        method: "POST"
                    }).done(function(response){
                        console.log('DONE');
                        console.log(response);
                        var sections = ['cart'];
                        customerData.invalidate(sections);
                        customerData.reload(sections, true);
                         window.location.href = "http://baseurl/checkout";
                    }).fail(function(jqXHR, textStatus){
                        console.log('FAILED');
                        console.log(jqXHR.responseText);
                        console.log(jqXHR);
                    });

Then in the controller I add the product to cart like this:
 public function execute(){
        //I'm using \Magento\Checkout\Model\Cart
        $request = $this->getRequest()->getPostValue();
        $product_id = $request['product_id'];
        $price = $request['grand_total'];
        $params = array(
            'formKey' => $this->formKey,
            'product_id' => $product_id,
            'qty' => 1
        );

        $productFactory = $this->product->create();
        try{
            $product = $productFactory->load($product_id);
            $product->setPrice($price);
            $this->cart->addProduct($product,$params);
            $this->cart->save();
        }
        catch(\Exception $e){
            return $request;
        }
    }

When I'm redirected to checkout by the promise, the new price is shown just for a second, then switch back to the original product's price ($1)
What am I doing wrong?
Thanks!


texts: Fatal error: Call to a member function load() on a non-object in IndexController.php

texts:
This Question is asked many times but still it's unresolved with definite solution. I am following this tutorial to implement the module http://devdocs.magento.com/guides/m1x/magefordev/mage-for-dev-5.html.

I am getting this error

  Fatal error: Call to a member function load() on a non-object in C:\wamp\www\magentoapp\app\code\local\Mudit\Weblog\controllers\IndexController.php on line 9

while trying to fetch the data from the database table in the IndexController.php while others get this error in core files of magento abstract.php

Please, check the code for the config.xml, Blogpost.php and IndexController.php.

Please, help I am stuck with this from last 2 hours.

etc/config.xml

<?xml version="1.0" encoding="UTF-8"?>

<modules>

    <Mudit_Weblog>

        <version>0.0.1</version>

    </Mudit_Weblog>

</modules>

<frontend>
    <routers>
        <weblog>
            <use>standard</use>
            <args>
                <module>Mudit_Weblog</module>
                <frontName>weblog</frontName>
            </args>
        </weblog>
    </routers>
</frontend>

<global>
    <models>

        <weblog>
            <class>Mudit_Weblog_Model</class>

            <resourceModel>weblog_resource</resourceModel>
        </weblog>

        <weblog_resource>
            <class>Mudit_Weblog_Model_Resource</class>
            <entities>
                <blogpost>

blog_posts

                </blogpost>
            </entities>
        </weblog_resource>

    </models>
</global>

Model/Blogpost.php

class Mudit_Weblog_Model_Blogpost extends Mage_Core_Model_Abstract
{
protected function _construct()
{
$this->_init('weblog/blogpost');
}
}

Model/Resource/Blogpost.php

    <?php class Mudit_Weblog_Model_Resource_Blogpost extends   Mage_Core_Model_Resource_Db_Abstract
{
    public function _construct()
    {
    $this->_init('weblog/blogpost', 'blogpost_id');
    }
    }
    ?>

Controllers/IndexController.php

<?php class Mudit_Weblog_IndexController extends Mage_Core_Controller_Front_Action
{

public function testModelAction()
{
    $params = $this->getRequest()->getParams();
    $blogpost = Mage::getModel('weblog/blogpost');
    echo("Loading the blogpost with an ID of ".$params['id']);
    $blogpost->load($params['id']);
    $data = $blogpost->getData();
    var_dump($data);
}
}
?>


texts: how to modify custom status text color in UI component grid magento 2?

texts:
I have created custom module and it has Ui component grid in admin side.. In that grid has status column based on different status color should be change.
Eg; if the status is 'approved' text color should be GREEN


texts: How to update a main menu in "neoshop" theme?

texts:
I would like to modify the frontend main manu in Magento 1.9.1.0 .
I'm using the theme neoshop if this info is useful.
I've not found menu components into the CMS -> static block nor pages with the main menu. The menu is contained here:

How to edit it ?

Thanks.

<?php $_menu = $this->getHtml('level-top') ?>
<?php if($_menu): ?>

    Menu

        <?php
            $homeUrl = Mage::helper('core/url')->getHomeUrl();
            $rootUrl = str_replace("index.php/","",$homeUrl);
            $currentUrl = Mage::helper('core/url')->getCurrentUrl();
            $currentUrl = explode("?",$currentUrl);
            $currentUrl = $currentUrl[0];
        ?>
        <?php if(Mage::getStoreConfig('themesettings/menu/homelink')) :?>
            <li class="home <?php if ($currentUrl === $homeUrl || $currentUrl == $rootUrl):?> active<?php endif;?>"><a class="level-top" href="<?php echo $this->getUrl('')?>"><?php echo $this->__('Home') ?>

        <?php endif ?>
        <?php echo $_menu ?>

<?php endif ?>


texts: Two products creating onclick button instead of one

texts:
Once guest user click on button we are creating Product Programtically  but issue is every time we click on button its creating 2 products instead of one.

form

 <form action="<?php echo $this->getUrl('example/amasty/createSimpleProductAndRedirect',
 array('_secure'=>(!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS']==='on'),
 'id' => Mage::registry('current_product')->getId())) ?>" id="ajaxlogin-login-form">

controllers

protected function _createProduct($type, $doSave=true, $originalProduct, $newImagePath="")
{
        $product = Mage::getModel('catalog/product');

        $product->setName($originalProduct->getName());
        $product->setDescription('what ever you need here');

        $customerId = Mage::getSingleton('customer/session')->getCustomerId();
        $product->setCreatedByCustomerId($customerId);

        if ($doSave)
            $product->save();

        return $product;
    }

full form code : http://pasted.co/d5b63b52

Edit

Once i removed this code from "form" : id="ajaxlogin-login-form , than its creating only one product, but after that once guest click on "save design" button, it will redirect to another page.


texts: Admin Panel crashing - after theme installation

texts:
I have downloaded and installed a magento2 theme. I enabled it under Stores>Configuration>Design.

As soon as I want to flush the cache it gives me the following error:

There has been an error processing your request

Exception printing is disabled by default for security reasons.

Error log record number: 1072691483201

And I can't log into the admin panel till I uninstall the files "theme.xml", "composer.json" and "registration.php" of the installed theme.
The store also gives the same error as soon as the theme is installed.

Does anyone know a solution for this?


texts: For some reason filters in Admin Panel are missed. I tried to debug it but it is without any result. Can someone say where this collection is prepared or maybe why is it happens?


texts: Override or Change Add to Card Button Text Without Backend Code (With Admin Panel)

texts:
I want to Override or Change the text of Add to cart Button, With my Admin Panel.

Don't Want to change in back end Code.
I find some method that add some xml code in particular page in content section and override the main code.
Like:-

referenceBlock name="footer_links" remove="true"/>

referenceBlock name="footer.col.title.1" remove="true"/> "

  So is it possible to change in Add to Cart Button text with some
  HTML code in my admin panel.


texts: Please enter a valid region error for regions with special characters

texts:
I'm trying to import customer addresses. If the region has a name with accents, Magento v2.3.6 won't recognize it.
Example:

Country code 'RO', region 'Timiș' - doesn't work
Country code 'RO', region 'Timis' - doesn't work
Country code 'RO', region 'Olt' - works
Country code 'RO', region 'Brașov' - doesn't work

In the DB, regions do have accents.
I can swear it used to work on a previous Magento version, but I'm not 100% sure.
Related question (did not help)


texts: How to show particular cms page for specific user group?

texts: I want to show different homepage for wholesale customer.


texts: Magento 2 Component manager (extension installation)

texts:
I'm developing an extension for Magento 2, and was wondering what are my options for the installation process for users.
I saw in the magento documentation that there supposed to be a component manager where you are supposed to be able to install extensions with.

http://devdocs.magento.com/guides/v2.0/comp-mgr/compman-start.html

When I try to acces this from the Admin I am routed to page that wants to start the Magento installation process from the start (Magento 2 is obviously already installed).

Is this not yet in the Beta version of Magento 2?
What are my other options?
Am I supposed to upload my extension to a composer repository?


texts:
The documentation for Magento 2 (http://devdocs.magento.com/guides/v2.0/config-guide/cli/config-cli-subcommands-cron.html) states that there should be three cron entries:

* * * * * /usr/bin/php /var/www/magento2/bin/magento cron:run | grep -v "Ran jobs by schedule" >> /var/www/magento2/var/log/magento.cron.log
* * * * * /usr/bin/php /var/www/magento2/update/cron.php >> /var/www/magento2/var/log/update.cron.log
* * * * * /usr/bin/php /var/www/magento2/bin/magento setup:cron:run >> /var/www/magento2/var/log/setup.cron.log

Magento state that the jobs do the following:

  The first command (magento cron:run) reindexes indexers, send automated e-mails, generates the sitemap, and so on. Usually it’s associated with the PHP command line .ini file. The other two commands are used by the Component Manager and System Upgrade.

I get the magento cron:run entry but can somebody please elaborate what the other two cron jobs do in more detail? Are these needed for a production store?

Thanks.


texts:
I want to limit cart items to be added in cart.
Limit Checkout Order or Add to Cart Limit to allow only 6 type of items.
These 6 items can have variable Qty value.
I have done the below code using Event/Observer but not working.
etc/events.xml
<?xml version="1.0" encoding="UTF-8"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
    <event name="controller_action_predispatch_checkout_cart_add">
        <observer name="ishaq_limit_items_in_cart_checkout_before" instance="Ishaq\LimitCartItems\Observer\Checkout\Cart\Add" />
    </event>
</config>

Observer/Checkout/Cart/Add.php
<?php

namespace Ishaq\LimitCartItems\Observer\Checkout\Cart;

use Magento\Checkout\Model\Session;
use Magento\Framework\App\ActionFlag;
use Magento\Framework\App\Response\RedirectInterface as ResponseRedirect;
use Magento\Framework\Event\Observer;
use Magento\Framework\Event\ObserverInterface;
use Magento\Framework\Message\ManagerInterface as MessageManager;

class Add implements ObserverInterface
{
    /** @var Session $session */
    private $session;

    /** @var ActionFlag $flag */
    private $flag;

    /** @var ResponseRedirect $redirect */
    private $redirect;

    /** @var MessageManager $messageManager */
    private $messageManager;

    /**
     * Add constructor.
     *
     * @param Session          $session
     * @param ActionFlag       $flag
     * @param ResponseRedirect $redirect
     * @param MessageManager   $messageManager
     */
    public function __construct(
        \Magento\Framework\App\RequestInterface $request,
        \Magento\Checkout\Model\Cart $cart,
        ResponseRedirect $redirect,
        MessageManager $messageManager
    ) {
        $this->_request        = $request;
        $this->_cart           = $cart;
        $this->redirect        = $redirect;
        $this->messageManager  = $messageManager;
    }

    /**
     * @param Observer $observer
     *
     * @return $this|void
     * @throws \Magento\Framework\Exception\LocalizedException
     * @throws \Magento\Framework\Exception\NoSuchEntityException
     */
    public function execute(Observer $observer)
    {
        $controller = $observer->getControllerAction();
        $postValues = $this->_request->getPostValue();
        $cartQuote = $this->_cart->getQuote()->getData();
        $cartItemsCount = $this->_cart->getQuote()->getItemsCount();
        $cartItemsAll = $this->_cart->getQuote()->getAllItems();

        if($cartItemsCount > 6)
        {
            $observer->getRequest()->setParam('product', false);
            $observer->getRequest()->setParam('return_url', $this->redirect->getRefererUrl());
            $observer->getRequest()->setParam('backUrl', $this->redirect->getRefererUrl());
            $this->messageManager->addErrorMessage(
                __('Only 6 types of products per purchase allowed. Please complete this order first and place another order afterwards.')
            );
        }
    }
}


texts: Home page content filtered by current location in magento 2

texts: Is there any possible to load home content based on current location in magento 2? for example deals, brands etc.


texts: Magento Select Items from cart before place order

texts:
I am trying to implement a module in Magento 1.9. And i want to enable the customer to select a specific items or all items from cart before place the order. For example customer add the item A, and item B in the cart. Then during checkout at first step he will decide for which items he want to place order

Option 1: Item A only. After place the order Item B will remain in cart

Option 2: Item B only. After place the order Item A will remain in cart

Option 3: Item A and B. After place the order cart will be empty.

Can you please let me know any idea how can i achieve the above explained functionality? Thank you very much.


texts: How can I programmatically create an api role (SOAP)

texts:
I would like to programmatically create an api role with the installation of a module. I have a data install script located at

namespace/module/data/namespace_module_setup/data-install-1.0.0.php

How should I go about doing this?

Something perhaps like?:

$apirole = Mage::getModel('api/role')->setData(array(''=>''));


texts:
I'm working on creating iframe in magento2.

Content of this iframe should be a custom form, which exists in one of templates.

I made following:

<iframe src="<?php echo $this->getUrl('module/iframe/show') ?>" frameborder="0" style="height:75px;"></iframe>

It means that my controller module/iframe/show should return me a content for this form, but I don't know what exactly should return/render/output my controller. Now I can receive only full rendered page in this iframe. It means that probably block side is working well and i need only proper controller code


texts: Magento: How to override vendor/magento/module-quote/Model/Quote.php?

texts:
How to override vendor/magento/module-quote/Model/Quote.php in Magento2.

Any help would be appreciated.


texts:
I am using a Theme for the magento shop. Is it possible to change only the product page to standard and use the Product page top area of the standard magento theme?

I am using a theme baught on themeforest. This theme has a product detail page different then the page of the standard Luma theme. I want to keep the theme as it is and want to use the luma theme for the product detail page.


texts: My Mini-Cart and Proceed to Checkout are not working

texts:
For a few days now I have encountered an issue on my website shorturl.at/gixLV
The Mini-Cart has stopped showing any number above zero despite items being within the cart. The Mini-Cart dropdown is also not working
When one goes to the cart page and would like to proceed to checkout that button/link has stopped working.
This was working fine a few days ago.