texts:
I have a Magento 1.9 site that I have created 4 websites (UK, USA, etc..) in admin.

I have products added to only a certain website.

How can I get website code by product SKU programmatically? So I can see which website that a product is associated to?

Is it possible with product model?

$products = Mage::getModel('catalog/product')


texts: Magento 2 - Clean SEO URL with attribute

texts:
We run Magento 2 - 2.1.6

Question:

If I create a link based on layered navigation attributes (storeurl: /clothes?cat=1029&gender=124) for example.

We get a lot of errors regarding Google Search Console.

I've tried to create a redirect but this doesn't work.

I would like to see something like this (storeurl: /clothes/rsl/ladies)

I know this is possible I just don't know how?
Can someone please help me with my problem?


texts: How to add new tab after storefront properties in product attribute Magento 2?

texts:
I want to create a new tab and some options in the product attribute.

So, how can I add that tab with options, please give me some ideas or any reference?
Thanks


texts: remove href functionality from category in magento

texts:
I have category and sub category in top menu, i want href functionality to be disabled for category, so when i click on category it should not do any thing.
Just like we have in backend magento admin panel, second tab sales, nothing happens on clicking on sales, on hover it shows subcategories.


texts: Cart total doesn't update after adding an item to the cart (using API) using Magento 1.9 CE

texts:
I'm using Magento 1.9 CE and am using XML RPC to connect to Magento's API and after I add an item to the cart, the "totals" do not update.

Here's the order of operation:

login to api
cart.create - create an empty cart
cart_customer.set - set a "guest" user
cart_customer.addresses - set "guest" user address
cart_product.add - add a product to the cart
At this point we have a cart with 1 item in it. I can then verify that the cart looks ok with cart_product.list which returns the following:

 [
  [
   {"product_id":"10",
   "sku":"159996",
   "name":"Redwood Turtle",
   "set":"9",
   "type":"simple",
   "category_ids":["2","7"],
   "website_ids":["1"]}
  ]
 ]

cart.totals - Now when I try to get the totals for the cart, it is null/empty! Here's what I get back:

 [
   [
     {"title":"Subtotal",
      "amount":null},
     {"title":"Grand Total",
      "amount":null}
   ]
 ]

What method do I call to populate the totals for the cart?


texts: Magento2: how to display 4 digit prices and tier prices in the admin > catalog?

texts: How to modify Magento 2 in order to be able to show 4 digit prices and tier prices in the admin catalog? I can save 4 digit prices and they go in the database, even when I load a product edit form in the admin I can see a JSON on the source of the page which contains my 4 digit prices, but in the form itself the prices are all rounded to 2 digits. How can I get the form to show my 4 digit prices without rounding them down to 2 digits?


texts: Magento2.3- Remove vat if vat number is present on checkout

texts:
I want to remove vat from checkout on run-time, If vat number field has some value.

I am able to validate vat number on run-time on checkout (via this link Programmatically check VAT number is valid in checkout page magento 2.3.X? ) but didn't know how to remove vat from order total and shipping.
Also I know Magento provides vat validation and removal from configuration but that only works for logged in customers.

Screenshot: https://nimb.ws/8ZEyVB


texts: I would like to add the checkbox newsletter in the billing form when the user choose to register directly in the checkout process.. How can I do that?


texts: How to update custom price for product in magento2

texts:
I want to set different prices for different customers. Can anyone tell me which are the correct events(Observers) to update price for the customer after he/she logged in?

1) Want to show custom price for him/her

2) If customer added product to cart and then he/she logged in then want update quote items prices.


texts: Magento Order Email Notification not sent to admin sometimes

texts: I used magento application. Here sometimes order email sent to admin sometimes and sometimes not sending. I want to solve this issue.


texts: Invalid template file: 'switch/languages.phtml' in module Magento2

texts:
1 exception(s): Exception #0
  (Magento\Framework\Exception\ValidatorException): Invalid template
  file: 'switch/languages.phtml' in module: 'Epoint_SwisspostApi'
  block's name: 'store_language'

In the given below i add all xml

module.xml in the given below

events.xml in the given below

Email_template in the given below

di.xml in the given below

                Epoint\SwisspostApi\Console\Command\ConnectCommand


texts: Magento 1.9 : Additional Dropdown in Massaction

texts:
How to Add Additional Drop-down in Mass-action.

Example if I select Delete in Mass-action it also Ask Reason in another Drop-down for Delete.


texts: Magento 2.2.6. How to show custom text after tabs section in product page?

texts:
I want to show custom content on product page below the tabs section.

Basically I moved tabs and related product section in product info main area (right side) and now I want to add a custom content after tabs.

How to create a new .phtml file and call after tabs?
Thanks

Edit

<body>
     <referenceBlock name="product.price.final" remove="true"/>
     <move element="product.info.stock.sku" destination="product.info.main" before="page.main.title" />
     <move element="breadcrumbs" destination="product.info.stock.sku" before="-" />
     <move element="product.info.social" destination="product.info.media" after="-" />
    <move element="product.info.details" destination="product.info.main" after="product_options_wrapper_bottom"/>
    <move element="catalog.product.related" destination="product.info.main" after="product_options_wrapper_bottom"/>
<referenceContainer name="product.info.main">
        <block class="Magento\Catalog\Block\Product\View" name="custom" after="product.info.details" template="product/view/giftitems.phtml"/>
    </referenceContainer>
</body>


texts: Next days without weekends and holidays in magento 2

texts:
I am trying to get next days with skip of weekends and holidays.
I tried this code:
$holidays = array('01-01', '05-31','07-05','09-06','11-25','11-26','12-24');
        $weekend = array('Sun','Sat');
        $date = $orderDate;
        $nextDay = clone $date;
        $i = 0;
        $nextDate = array();
        $nextDate[] = $nextDay->format('Y-m-d');

        while ($i < 1)
        {
            $nextDay->add(new DateInterval('P1D'));
            if (in_array($nextDay->format('m-d'), $holidays)) continue;
            if (in_array($nextDay->format('D'), $weekend)) continue;
             $nextDates[] = $nextDay->format('Y-m-d');
             $logger->info('nextdate: '.$nextDay->format('Y-m-d'));
            $i++;
        }
        return $nextDate;

This is working correctly in Core php but not working in magento. Any suggestion for this?


texts: Magento Patches vanished magento website design

texts:
This my website www.boonfair.lk . I have patched magento latest patches last night now site design is vanished !! you guys have any experience like this ??

If you guys know something please share knowledge with us.

Thanks


texts:
My current understanding of defining layout blocks is that if I do:

<block type="core/template" name="a.b" as="aB" template="some.phtml">
    <block type="x/y" name="c.d" as="cD" />
</block>

then I've added c.d as a child block of a.b, and from within some.phtml I can call $this->getChildHtml('cD'); to ask c.d to render its output at that position in the template.

I was looking around in catalog.xml, and I've just come across the syntax:

<action method="append"><block>block.name</block></action>

so I followed it to see what's different from the previous method:

public function append($block, $alias = '')
{
    $this->insert($block, '', true, $alias);
    return $this;
}

....

public function insert($block, $siblingName = '', $after = false, $alias = '')

append implies ordering the child block at the end of the parent block, but I could have easily done that with an after="-" parameter in the first method.

So, what's the difference between these two methods of adding a child block to a parent block?


texts: Get lifetime sales of a website using soap API

texts: How to get lifetime sales value and orders of a website via soap API v2?


texts: Problem with magento 2 price point and video

texts:
Have a problem with the magento price point.
When look price on store all its ok but when click on product first time show currect example 4 050Euro but after few second price show like a 40 50 euro.
On link can look problem.
Any have idea how to fix this ?
https://www.youtube.com/watch?v=DljzvQwOitA
Good day


texts: How to Dynamically set a CMS Block's Title?

texts:
We have a custom CMS type page that is added from the Category settings.
Created at /neon-signs/custom-neon-signs.html

Under that category setting, we set the URL Key and then also assign a CMS Block to show at that URL.

Now under our CMS Block settings we have...

{{block type="core/template" template="avenirgallery/custon_neon_sign_form.phtml"}}

This lets us build our CMS page from this .phtml file

Now we are facing a new challenge.  In this page we will have a keyword like Custom,  Personalized,  etc...

What we would like to do is replace this keyword everywhere in the page, based on the URL.  So we can send traffic to different versions of the page and that keyword will be replaced.

Now I am able to do this with a URL like this with no problem...
/neon-signs/custom-neon-signs.html?keyword=Custom and then I can replace the keyword in the document using $_GET['keyword']

Now our issue is the Page Title.  Right now our CMS Block has a title set like this
Custom Neon Signs

Since the Title is set in the Admin Panel for the CMS Block, there is no way for me to change it to be the value set in the URL /neon-signs/custom-neon-signs.html?keyword=Custom

So that is where my real question is... How can I Dynamically set the CMS Block's Title from code and have it over-ride the admin Panel setting for the CMS Block Title?

I hope there is a way?

Another bonus question would be, is there any way to have a more pretty URL to utilize our keyword  in the URL?  I am thinking, since the URL key is set in the Category setting, that it would be hard to change the URL's and I am better off just using my current method for now?

Thanks for any help in the matter.  I really need to be able to dynamicly set the CMS Block Title from my .phtml file or some other way to have it take in the value from $_GET['keyword'] and apply it to part of the title?


texts:
I'm sorry if this is a bleedingly obvious question. I think I am going crazy.

I have code that I know is stopping at a specific point. The file I am looking at is app/code/core/Mage/Downloadable/Helper/Download.php (NB. yes, I totally understand and agree that I should not be fiddling with core, but this is just my playing around in a locally installed Magento, and going to be reverted back afterwards)

The line that the code is breaking at is:

if (!isset($urlProp['scheme']) || strtolower($urlProp['scheme'] != 'http')) {
    Mage::throwException(Mage::helper('downloadable')->__('Invalid download URL scheme.'));
}

It is not getting past the Mage::throwException line. I know this because I am logging comments (to my own custom log file) before and after that line, and only the comments before that line are being logged.

My question is not why I am getting this specific error for this specific bit of code - but why I am not seeing the Invalid download URL scheme. error ANYWHERE. It is not appearing in my browser when the code is run, and it is not appearing in exception.log (that file actually does not exist in var/log - nor does system.log). Am I right in thinking that I should be seeing that error somewhere? It is making debugging very difficult!

Here's what I've done to try and get errors showing:

In System/Configuration/Advanced/Developer/Log Settings - Set "Enabled" to "Yes".
In index.php, I have got Mage::setIsDeveloperMode(true);
In index.php, I have got ini_set('display_errors', 1); I know this is working because if I force a syntax error, I get an error in browser.
In /errors, I have renamed local.xml.sample to local.xml (not sure what this one does but have seen it in a couple of articles to do with exception printing).
I have checked that var/log is writable. I know this is working because there is another custom log file that I am writing to successfully with Mage::log

Any ideas greatly welcomed! What should Mage::throwException actually be doing - printing in browser, or in exception.log, or both?

I am using Magento CE 1.9.0.1 on localhost (using a Mac with MAMP).


texts: Magento 2: Get total weight of cart products

texts:
I need to get the total weight of products which are added to cart in magento2.

How can We achieve this?


texts:
I am trying to log an array in an observer

If I do

Mage::log('prefix '.$orders,null);

I get the following in the system.log

2014-10-02T07:38:10+00:00 DEBUG (7): prefix Array

However if I try an log out the array with

Mage::log('prefix '. print_r($orders,true), null, 'logfile1.log', true);

The log file doesn't even get created. If I do

Mage::log($orders, null, 'logfile1.log', true);

Then a log file is created but it is completely empty. Can anyone advise in where I am going wrong. All I want to do is simply log out the contents of the array


texts: Magento2: what is the difference between referenceContainer and referenceBlock

texts:
Both referenceBlock and referenceContainer entities are used in layout in magento2.
What is the main difference between them and how can I relate these entities to magento1.*.


texts: Magento 2 replace dotmailer/dotmailer-magento2-extension errors with compiler error

texts:
We have added the following to composer json in M 2.3.5
    "replace": {
    "dotmailer/dotmailer-magento2-extension": "*",

Then we run php bin/magento setup:di:compile
And are presented with this error
Repositories code generation... 1/8 [===>------------------------]  12% 1 sec 88.5 MiB
PHP Fatal error:  Interface 'Dotdigitalgroup\Email\Block\Adminhtml\EngagementCloudEmbedInterface'
not found in /var/www/html/m2/m2_dev/vendor/dotmailer/dotmailer-magento2-extension-chat/Block/Adminhtml/StudioChatWidget.php on line 13

Question: Is there more we need to do to disable Dotdigital?


texts: how can i get the custom email template name(label) by passing its template id?

texts:
I have created a custom select field in system->configuration->sales->payment method to select the custom email template.I got its id=20 by using this code

 $storeId = Mage::app()->getStore()->getId();
 $text_field_value=Mage::getStoreConfig('payment/wirpayment/email_template2',$storeId);

but I need its template name from this template id.How can i get it?


texts:
I have two problem with Magento.

I can't upload image in to magento. The image upload button does not work.

And I also have problem with the exception buttons in system/configuration/design/themes. I try to put the mobile theme codes in exception. But the exception button does not work.

please can anybody help me?

Thanks
Mark.D


texts: Magento1: Reindexing since one month Catalog URL Rewrite

texts:
in my magento 1.9.3.6 website one indexing is not done since last 45 days and still processing.
And i am also unable to update and save product from admin panel.

Please suggest me any solution.


texts: How to use dispatch function in controller Magento2?

texts:
I want to use dispatch function in our controller I want to secure my Url when customer purchase a product then they are able to use the URL other wise URL is redirect

My Code is

namespace StackExchange\Customer\Controller\Index;
use Magento\Framework\App\Filesystem\DirectoryList;
use Magento\Framework\Controller\ResultFactory;

class Index extends \Magento\Framework\App\Action\Action
{
    protected $messageManager;

    public function dispatch()
    {
       echo "hiii";
    }

    public function execute()
    {

    }

And the error is

Fatal error: Declaration of StackExchange\Customer\Controller\Index\Index::dispatch() must be compatible with Magento\Framework\App\Action\AbstractAction::dispatch(Magento\Framework\App\RequestInterface $request) in /home/magento2marketplace/app/code/StackExchange/Customer/Controller/Index/Index.php on line 96


texts: Magento 2.2.8 - Change page title for Newsletter Management page

texts: I am trying to change the title of the /newsletter/manage/ page. Can anyone guide me?


texts: Magento2 How to copy product attributes and attribute sets from one website to another website?

texts:
I have one magento2 web site , and I will build anthor site.
I want to copy product attributes and attbute sets to new web.
What should I to do with mysql ?
May be I can juse copy some table to new web's databases?


texts: Get Cross sell items in cart page Programmatically in magento2

texts:
I am trying to get cross sell products in cart page programmatically.

Below code i have used in layout/checkout_cart_index.xml

   <referenceContainer name="content">
        <block class="Vendor\Module\Block\Customcross" name="cross.custom.details" after="-" template="Vendor_Module::cart/cart_products.phtml"/>
    </referenceContainer>

So I need to write one function in my Block file that should return cross sell items.

Right now i am using like below in block file.

 namespace Vendor\Module\Block;
 use Magento\Catalog\Api\ProductRepositoryInterface;
 use \Magento\Catalog\Block\Product\AbstractProduct;
 class Customcross extends \Magento\Framework\View\Element\Template
{
protected $_storeManager;
protected $_productCollectionFactory;
protected $_coreRegistry;
protected $_urlInterface;
protected $_productloader;
protected $_productRepository;
protected $_productData;
protected $_itemCollection;
protected $_catalogConfig;

public function __construct(
    \Magento\Backend\Block\Template\Context $context,
    \Magento\Catalog\Model\ResourceModel\Product\CollectionFactory $productCollectionFactory,
    \Magento\Store\Model\StoreManagerInterface $storeManager,
    \Magento\Framework\Registry $coreRegistry,
    \Magento\Framework\UrlInterface $urlInterface,
    \Magento\Catalog\Model\ProductFactory $_productloader,
    ProductRepositoryInterface $productRepository,
    \Magento\Catalog\Model\Product $productData,
    \Magento\Catalog\Model\Config $catalogConfig
)
{
    $this->_productCollectionFactory = $productCollectionFactory;
    $this->_storeManager = $storeManager;
    $this->_coreRegistry = $coreRegistry;
    $this->_urlInterface = $urlInterface;
    $this->_productloader = $_productloader;
    $this->_productRepository = $productRepository;
    $this->_productData = $productData;
    $this->_catalogConfig = $catalogConfig;
    parent::__construct($context);
}

public function getCurrencySymbol() {
    return $this->_storeManager->getStore()->getBaseCurrency()->getCurrencySymbol();
}

public function getBasetUrl() {
   return $this->_storeManager->getStore()->getBaseUrl();
}

public function getCurrentUrl() {

return $this->_urlInterface->getCurrentUrl();
}

public function getStore()
{
    return $this->_storeManager->getStore();
}

public function getProductData($productId)
{
    $productObj = $this->_productData->load($productId);
    return $productObj;

}
protected function _prepareData()
{
    $product = $this->_coreRegistry->registry('product');
    /* @var $product \Magento\Catalog\Model\Product */

    $this->_itemCollection = $product->getCrossSellProductCollection()->addAttributeToSelect(
        $this->_catalogConfig->getProductAttributes()
    )->setPositionOrder()->addStoreFilter();

    $this->_itemCollection->load();

    foreach ($this->_itemCollection as $product) {
        $product->setDoNotUseCategoryId(true);
    }

    return $this;
}
 public function getItems()
 {
     return $this->_itemCollection;
 }
}

Anyone help me. How to get the cross sell items like this.


texts: Magento 2 : Error While Preview Email Template From Admin

texts:
Getting this error while preview newly created sales email template. Admin panel => Marketing => Email Templates - magento 2.1.1

Error filtering template: Warning: Missing argument 1 for Magento\Framework\View\Element\Template::setTemplate() in vendor/magento/framework/View/Element/Template.php on line 187


texts: Magento 2 - Add date range (from and to) in tier price in admin module

texts:
Hello I am working in Magento 2. I need to add two column in tier price "Date from" and "Date to" so that tier price will allow withing that date range.
How to add those filed in tier price row ?
Thanks in advance.


texts:
I have this following ko template

<select name="payment[fabinst_tenor]"
                        class="select select-tenor"
                        data-bind="
                attr: {id: getCode() + '_tenor', name: 'payment[' + getTransportName() + ']',
                'data-validate': JSON.stringify({required:true})},
                options: getTenors(),
                optionsValue: 'term',
                optionsText: 'text',
                optionsCaption: '',
                optionsAfterRender: optionsAfterRender,
                value: selectedTenorTerm">
                </select>

and the related JS code is

            optionsAfterRender: function(option, item) {
            if(typeof item !== 'undefined') {
                if('disabled' in item && item.disabled) { // default output from PHP
                    option.disabled = true;
                    option.text = option.text + ' (' + $t('Minimum payment is') + ' ' + utils.formatPrice(item.min_total,window.checkoutConfig.priceFormat ) + ')';
                } else {
                    var monthlyPrice = quote.totals()['base_grand_total'] / item.term;
                    option.text = option.text + ' x ' + utils.formatPrice(monthlyPrice,window.checkoutConfig.priceFormat );
                }
            }
        },

How to re-render the options when quote.totals() is changed upon an ajax call?


texts: Shipping methods issue. Free delivery and standard delivery. When it's "free" I want "standard delivery" to be disabled

texts:
Is there a setting I could use to disable all the other shipping methods when free delivery shipping method kicks in? I have set an amount for free delivery to kick in and it's just stupid to display standard delivery method when free is available.

I have checked the standard delivery table rates, but it goes by the weight and not order amount. I have also tried to specify price vs. destination. But that option is not working well for me since my delivery partner ships product by weight.


texts: files saved from custom options 'file' delete after x days

texts:
I have products where the custom option 'file' is selected'

all those files are saved in the folder "pub/media/custom_options/quote/x/x"

the names are difficult to track:
1VbvhQMwivy8Crdf3kc26dsrlkLBMUNP

the files should only be there for max 30 days. Is there a way to set this?


texts: Import CSS and JS theme files to a controller page

texts:
Let's say that we have this controller :

<?php
class Hello_World_IndexController extends Mage_Core_Controller_Front_Action
{
    public function indexAction()
    {
        echo 'Hello Stackers !' ;
    }
}

Obviously, when triggering this controller, we will have a black message Hello Stackers !, and the controller page is not having/importing any theme (JS, CSS) files even in the default (rwd) Magento theme .

How can we import theme in controllers pages ?


texts: Search by product name only Magento ver. 1.9.2.4

texts: How to get search by product name only magento.


texts:
I have created a module magento admin... But i found a problem..

My magento print the text, but don't fill in value, and when im post it, the multiselect return a empty array.

The multiselect:

The value:

My form:

protected function _prepareForm() {
    $form = new Varien_Data_Form();

    $this->setForm($form);

    $fieldset = $form->addFieldset('associar_form', array (
        'legend' => 'Informações do ramo'
    ));

    $fieldset->addField('name', 'text', array(
            'name' => 'name',
            'label' => 'Ramo de Atividade',
            'class' => 'required-entry',
            'required' => true,
    ));
    $fieldset->addField('id_erp', 'text', array(
        'name' => 'id_erp',
        'label' => 'ID ERP',
        'class' => 'required-entry',
        'required' => true,
    ));

    $fieldset->addField('website_id','select', array (
        'name' => 'website_id',
        'label' => 'Web Site',
        'class' => 'required-entry',
        'required' => true,
        'values' => Mage::getSingleton('core/resource_website_collection')->toOptionArray(),
    ));
    $fieldset->addField('entity_id', 'multiselect', array (
        'name' => 'entity_id[]',
        'label' => 'Entity Id',
        'title' => 'Entity Id',
        'index' => 'entityid',
        'class' => 'required-entry',
        'required' => true,
        'values' => Mage::getSingleton('integravet_ramo/resource_ramo_collection')->toOptionArray()
    ));

    if(Mage::registry('associar_data')) {
        $form->setValues(Mage::registry('associar_data')->getData());
    }

    return parent::_prepareForm();
}

}

Collection:

class Integravet_Ramo_Model_Resource_Ramo_Collection extends Mage_Core_Model_Resource_Db_Collection_Abstract {
public function _construct() {
    parent::_construct();
    $this->_init('integravet_ramo/ramo');
}

}

Resource/Ramo:

<?php
class Integravet_Ramo_Model_Resource_Ramo extends Mage_Core_Model_Resource_Db_Abstract {
    public function _construct() {
        $this->_init('integravet_ramo/ramos', 'entity_id');
    }
}

Model

<?php
class Integravet_Ramo_Model_Ramo extends Mage_Core_Model_Abstract {
    public function _construct()
    {
        parent::_construct();
        $this->_init('integravet_ramo/ramo');
    }
}


texts: Magento 1.9 Increase the image size automatically

texts:
When I upload the image in magento slider if image size is 150kb & When I inspect the image & download the image size will be changed to 400kb

Let me know what was the issue.


texts:
please can you help to add a custom variable in the ajax popup cart?

I want  to show a custom text under "Your product is added to the cart"

example: your product price is 45€, if you buy another item your shipping it will be free !

i tried to add a variable in cartcontroller.php but doesn't work,...what can I do?

thanks in advance

Alberto

Update

if (!$this->_getSession()->getNoCartRedirect(true)) {
                if (!$cart->getQuote()->getHasError()){
                    $message = $this->__( $this->__('%s was added to your shopping cart.') .'

 <button class="button" onclick="setLocation(\''.Mage::getUrl('checkout/cart').'\');">'. $this->__('View Cart') .'</button><button class="button" onclick="setLocation(\''.Mage::helper('checkout/url')->getCheckoutUrl().'\');">'. $this->__('Checkout') .'</button>', Mage::helper('core')->escapeHtml($product->getName()));
                    $response['status'] = 'SUCCESS';
                    $response['message'] = $message;

                    $this->loadLayout();

this is the original part of cartcontroller.php,in this part of code after "%s was added to your shopping cart" i want to add a variable with the text inside.

i tried

$message = $this->__( $this->__('%s was added to your shopping cart.') echo"text";

or simply

    $mytext="mytext";
$message = $this->__('%s was added to your shopping cart.'); echo $mytext;


texts: How can I automatically collect new translations without overriding already translated strings?

texts:
As far as I understand, there are three steps to adding translations:

collect phrases (bin/magento i18n:collect-phrases ...) to a CSV file that has two columns, e.g., "order","order"
replace the second column with the desired translations (e.g., for German "order","bestellen")
rename the file to e.g., de_DE.csv and put it in the i18n folder of my theme or module

Now, if my module/theme gets updated and new strings are added that I would like to translate, how do I proceed? If I repeat step 1. and collect phrases into the same file, my existing translations will be overwritten.

For WordPress, Poedit allows me to add new translations from a POT file without overwriting previous ones. For Magento, I am not aware of such a tool.

I could of course write a parser that only extracts strings without a translation and adds those to de_DE.csv, but that seems a bit cumbersome - is there a best practices on how to update translation files?

I am aware of question 148062, but I don't find the answer particulary helpful.


texts: Magento 2: Missing entity types in CSV import

texts:
I have a fresh instance of Magento 2.2. In the Import tab, there are only "Products" entity types. Should I enable anywhere rest? Like e.g "advanced pricing"?

Edit. SOLVED -> Module "Magento_AdvancedPricingImportExport" was disabled in Magento options


texts: Why after successful ajax call , it does not return to success function

texts:
Ajax call

var wishlistForm = new VarienForm('product_addtocart_form');
wishlistForm.submitAjaxWishlist = function(button, url,id){
    if(this.validator) {
        var nv = Validation.methods;
        delete Validation.methods['required-entry'];
        delete Validation.methods['validate-one-required'];
        delete Validation.methods['validate-one-required-by-name'];
        if (this.validator.validate()) {
            url = url.replace("wishlist/index","inquiry/index/index");
            var data = jQuery('#product_addtocart_form').serialize();
            data += '&isAjax=1';
            jQuery.ajax( {
                url : url,
                dataType : 'json',
                type : 'post',
                data : data,
                success : function(data) {

                    if(data.status == 'ERROR'){
                        alert(data.message);
                    }else{
                        alert(data.message);
                        window.location = '<?php echo Mage::getBaseUrl().'inquiry/index/index'; ?>';

                      /*  alert(data.message);
                        if(jQuery('.block-wishlist').length){
                            jQuery('.block-wishlist').replaceWith(data.sidebar);
                        }else{
                            if(jQuery('.col-right').length){
                                jQuery('.col-right').prepend(data.sidebar);
                            }
                        }
                        if(jQuery('.header .links').length){
                            jQuery('.header .links').replaceWith(data.toplink);
                        }*/
                    }
                }
            });
        }
        Object.extend(Validation.methods, nv);
    }
}.bind(wishlistForm);
</script>

Function called

 public function indexAction()
    {
        if($this->getRequest()->getParam("isAjax")){

        $customer = Mage::getSingleton('customer/session')->getCustomer();
        $wishlist = Mage::getModel('wishlist/wishlist')->loadByCustomer($customer, true);

                /*echo "<pre>";print_r($this->getRequest()->getParams());die;*/
            $product = Mage::getModel('catalog/product')->load($this->getRequest()->getParam("product"));
            $buyRequest = new Varien_Object($this->getRequest()->getParam("options"));
            $result = $wishlist->addNewItem($product, $buyRequest);
            $wishlist->save();
            return;
        }

}


texts:
I have Find_Feed module in my 1.9 Magento store.

What is this module for? i can't understand
Is there a Magento2 version for this module? Examples ?

Could you answer me ?!


texts: I currently have back orders enabled and I am attempting to set up my magento 1.9 store to be similar to my set up offline to avoid any processing issues/double charging.  Right now my magento is set to charge up front for full order, regardless of backordered items or not. I want to be able to process orders as they are shipped.  If ie: 2 shipments, 2 seperate charges.


texts: Exclude current day from collection filtered by current week (date product attributes)

texts:
I have a product collection from Monday to Sunday (using attributes date_from and date_to). I want to show products from current week but I need to exculde the current date products.

I have

->addFieldToFilter('date_from',array('gteq',$thisweekmonday))
->addFieldToFilter('date_to',array('lteq',$nextsunday));

In this collection I want to exclude the current day, how can I do it?


texts: GPay Magento 2 Extension installation procedure

texts:
How do I install this? Please help me with procedure. I dont want to break my setup
I am confused with where should I put all those files. I am working on local XAMPP environment for learning purpose then I will upload it to EC2.


texts: Fatal error: Call to a member function setData() on a non-object

texts:
I keep getting the error mentioned in the title when trying to submit a form that contains a customer message. It is a form that when submitted is supposed to save the info in the database. Here is the function

public function formPostAction()
{
    if (!$this->_validateFormKey()) {
        return $this->_redirect('*/*/');
    }
    // Save data
    if ($this->getRequest()->isPost()) {
        $data = $this->getRequest()->getPost();
        $customerId = $this->_getSession()->getCustomer()->getId();

        $message = Mage::getModel('hwcustomer/message')
            ->setData($data)
            ->setMessage($data['message'])
            ->setSubject($data['subject'])
            ->setParentId($customerId);

        $messageId = $this->getRequest()->getParam('id');

        $message->setId(null);
        if ($messageId) {
            $customerMessage = Mage::getModel('hwcustomer/message')->load($messageId);
            if ($customerMessage->getId() && $customerMessage->getCustomerId() == $this->_getSession()->getCustomerId()) {
                $message->setId($messageId);
            }
        }
        try {
            $messageValidation = $message->validateMessage($data);
            if (empty($messageValidation)) {
                $message->save();
                $this->_getSession()->addSuccess($this->__('The message was successfully saved'));
                $this->_redirectSuccess(Mage::getUrl('customer/messages', array('_secure'=>true)));

                return;
            } else {
                if (is_array($messageValidation)) {
                    foreach ($messageValidation as $errorMessage) {
                        $this->_getSession()->addError($errorMessage);
                    }
                } else {
                    $this->_getSession()->addError($this->__('Can\'t save message'));
                }
            }
        }
    }
}


texts: Magento 2 - Which event is triggered when payment failed on checkout page?

texts:
I tried using two events 1st order_cancel_after and 2nd
sales_model_service_quote_submit_failure event when payment failed on the checkout page.

But none of them seems working. 2nd event is working in case i cancel order from Sales > Orders.

So my question is which event should I use if payment gets failed on the checkout page.

Thanks.


texts: Magento 2.4.2: How to disable inventory_in_store_pickup_sales_send_order_notified_emails?

texts: As I work to improve my site's performance, I would like to disable inventory_in_store_pickup_sales_send_order_notified_emails. Please let me know how to disable it?


texts:
I want to add the following link in the head tag, but its returning 404 error. Can anyone help me on this?

<script  type="text/javascript"  src="https://www.google.com/recaptcha/api.js"></script>


texts: Magento 2 How to Remove the Checkout Login Popup?

texts: Is there a way of removing the checkout login popup via the layout? So the customer can use the auto login email form.


texts: we update from magento 1.7.0.2 to magento 1.8.0.0 and are missing all cart rules discounts. We have full price without discount only. We are stuck and dont understand why.


texts: Using Javascript to validate response in the text box

texts:
I am new to Magento. I have the following requirements.

A page has a text box where the customer enters an id. Once the id is entered, I need to check whether this id is available in the OMS using a OMS webservice call. And if the id is valid, I need to enable the submit button in the page. If the id is invalid I need to disable the submit button.
Could someone give me some direction on this.

Thanks

Update:
I tried to do this using the following code,
Javascript: The function will called on click of the submit button

                   submit.onclick = function()
                    {
                        $.ajax
                        ({
                            url: "<?php echo $this->getUrl('checkout/OnepageController/checkid')?>",
                            type: "POST",
                            data: {id: '2345'},
                            dataType: json,
                            success: function(data) {
                                status = data;
                            }
                        });
                    if (status=='invalid')
                        {
                            alert('id function was not hit');

                            return false; // cancel submission
                        }
                    else if (status=='valid')
                        {
                        alert('id function was hit');
                        return true;
                        }
                    }

Php: Magento Controller

public function checkidAction()
{
    $id = $_POST['id'];
    if ($id=='1234')
    {
    $status = "valid";
    }
    else
    {
        $status ="invalid";
    }

    echo json_encode($status);
}

Could you please tell me if something is wrong here. I am not able to get the status information back to the ajax call. Thanks


texts: Magento2 : Multi language store with diffrent url

texts:
I am trying to create multiple store for multiple language.
like

www.domain.com/no
wwww.domain.com/en

But I am unable to create these type URLs. With basic step of Magento store creation. Please help me with working example.


texts: Product prices only updating after pressing F5

texts:
We have a webshop with different customer groups. Depending on what group the customer is in, prices vary. When the logged in customer(customer group with cheaper prices) go's to 'Basket overview' the prices are not correct, when the customer hits F5 the prices are updated to the correct price. The problem could be a cache problem since its updated after a page refresh. After some looking up i added 'ExpiresActive On' in the .htaccess file with the following code but without succes:

LoadModule expires_module modules/mod_expires.so
LoadModule headers_module modules/mod_headers.so

# Turn on Expires and set default to 0
ExpiresActive On
ExpiresDefault A0

# Set up caching on media files for 1 month
<filesMatch "\.(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav)$">
ExpiresDefault A2592000
Header append Cache-Control "public"
</filesMatch>

# Set up caching on media files for 1 week
<filesMatch "\.(gif|jpg|jpeg|png|swf)$">
ExpiresDefault A604800
Header append Cache-Control "public"
</filesMatch>

# Set up 2 Hour caching on commonly updated files
<filesMatch "\.(xml|txt|js|css)$">
ExpiresDefault A7200
Header append Cache-Control "proxy-revalidate"
</filesMatch>

# Force no caching for dynamic files
<filesMatch "\.(php|cgi|pl|htm|html)$">
ExpiresActive Off
Header set Cache-Control "private, no-cache, no-store, proxy-revalidate, no-transform"
Header set Pragma "no-cache"

Any help would be appreciated.


texts: I want to add a "see more" button at category list page that will load rest of products of category to the same page

texts: i need to create a ajax load button for catalog category view ( Product Listing page ) for loading more products in same listing page


texts: Can anyone share the demo link of Magento 2.3.0 PWA Studio?

texts:
I'm not able to install PWA studio in my localhost wamp server.
So, I want to test Magento 2.3.0 PWA studio.
If anyone knows the demo link of Magento 2.3.0 PWA Studio, Please share the link.


texts: How to get rid of this URLs for product page?

texts:
Currently, I am working on site, where I am facing following issue related URLs.

when I open a product page, In the browser, following URL gets displayed:

https://zitomer-upgrade.aastaging.us/catalog/product/view/id/5388/s/ot-mens-coarse-and-fine-tooth-comb/category/60/

But, I want the URL in the following format instead of above URL format:

https://zitomer-upgrade.aastaging.us/[category-of-product]/[product-url-key]

Is there any configuration required in the backend (admin site)? or any other way is there?

I am using Magento 2.1.9

I have done following:

  Store --> Configuration --> Catalog --> Catalog --> Search Engine
  Optimization --> Use Categories Path for Product URLs --> 'No'

still it is not working

Can anyone guide on this?


texts: How to we can set discount for specific Payment Card like Visa Or Master in Magento 2.4.0?

texts:
I want add discount on specific Card or bank account ( If customer have Visa Card or have account in ABC Bank ) Then 25% off on all products when he'll place order.
How to we can do this ? There is any solution or extension is available for this issue ?
I am using M2.4.0.
Kind Regards,


texts: Change the telephone field from 'Telephone' to only 'Mobile Number' at Checkout

texts: I want to change the telephone field from 'Telephone' to only 'Mobile Number' when a customer fills in their details


texts: Installing Magento 2 Installation Problem in Magento_ConfigurableSampleData

texts:
we download magento 2 and start the setup process.we configure the database,php and all.At the end of the  Install process it stops at 67%.There is no error found in log.we wait more than 2 hours but there is no change in the installation progress.

The installation stuck the module :Magento_ConfigurableSampleData

Could you please help us,


texts: Magento2: Service Temporarily Unavailable

texts:
In Magento 1 when there is a 503 error,[.maintenance.flag] file gets created in root Magento directory and deleting it brings the website back to its normal stage.

In Magento 2 when there is a 503 error, [.maintenance.flag] is neither present in root nor in var. Where it's present?


texts:
working in Magento 1.9
I want to remove the "orders and returns" from the footer

went into the sales.xml file and commented out

<!--<reference name="footer_links2">
<block type="sales/guest_links" name="return_link"/>
<action method="addLinkBlock"><blockName>return_link</blockName></action>
</reference>-->

but now the orders and returns link appears when the user is as a guest and disappears when he is logged in

I also tried to search multiple files for the keyword "orders and return" but in vain.

Any suggestions, please?


texts: Trying to get the add to cart url but is encoded

texts: I was trying to get the correct add-to-cart url but when I try to decode the uenc nothing happend


texts: Magento 2.1.2 Issue with getting current website

texts:
$currentWebsite = $block->getCurrentWebsite(); is returning NULL even when the website has been well configured.

Where should I check in the databases or at the backend, in order to solve for this issue?


texts: how to add custom block to specific product type view pages in magento2?

texts:
I have created custom block.
I want to show this block only in grouped product pages.

any one have idea the syntax for magento2?


texts: Add simple product to configurable product in Magento 2 by SOAP API

texts:
I am tried "configurableProductLinkManagementV1" to add simple product to configurable product.

$result = $soapClient->configurableProductLinkManagementV1addChild(
array('sku' => 'sampleconfigurable','childsku'=>'samplesimpleproduct'));

But, I am getting

  PHP Fatal error: Uncaught SoapFault exception: [Sender] SOAP-ERROR: Encoding: object has no 'childSku' property in
  vendor/zendframework/zend-soap/src/Client.php:1116

=========================================================

<?php
require('vendor/zendframework/zend-server/src/Client.php');
require('vendor/zendframework/zend-soap/src/Client.php');
require('vendor/zendframework/zend-soap/src/Client/Common.php');
$token = 'udctff3sq02h1d90e44xr3nk282khabt';
$wsdlUrl = 'http://127.0.0.1/magento2/soap/default?wsdl&services=configurableProductLinkManagementV1';
$opts = ['http'=> ['header' => "Authorization: Bearer " .$token]];
$context = stream_context_create($opts);
$soapClient  = new \Zend\Soap\Client($wsdlUrl);
$soapClient->setSoapVersion(SOAP_1_2);
$soapClient->setStreamContext($context);
$result = $soapClient->configurableProductLinkManagementV1addChild(array('sku' => 'sampleconfigurable','childsku'=>'samplesimpleproduct'));
?>


texts: Magento 2.0: Online Customer URL and IP Not showing

texts:
So I am having issues with locating .

Where I can turn On the online customers IP and URL both are not showing on my platform.?

I know on the last one I was able to fix it by going into the Logs and enabling it but seems this is more advanced.


texts:
We would like to disable the magento 1 frontend to the public.

The magento application is only availible for the suppliers and as an inventory management tool.

The data feeds need to be accessed.

How do I disable only the frontend?


texts:
I want to round the magento tax price but I want to round the total tax amount instead rounding separately.

Something like :

Total Tax = Product tax amount + shipping Tax amount

Total Tax = round(Total Tax, 2);

How can i achieve this ?
I don't need a tax values separately, only Total Tax amount should be round off then add to grand total and insert in database.


texts: I am using Magento 1.9 in my website. I try to send order cancel mail to customer but it's not working i came across may solution but none of the thing is not working can you please any one suggest for solution on this?


texts:
I have problem with magento2 FilterGroupBuilder. I need to set filter where active_until date is between today and March 3 OR active_until before January 5. My code looks like:

public function dot4()
{
    $filter[] = $this->filterBuilder
        ->setConditionType('gteq')
        ->setField('active_until')
        ->setValue(date("Y-m-d H:i:s"))
        ->create();
    $filter[] = $this->filterBuilder
        ->setConditionType('lteq')
        ->setField('active_until')
        ->setValue(date("Y-m-d H:i:s", strtotime('March 3')))
        ->create();
    $filter[] = $this->filterBuilder
        ->setConditionType('lt')
        ->setField('active_until')
        ->setValue(date("Y-m-d H:i:s", strtotime('January 5')))
        ->create();

    $filter_group = [
        $this->filterGroupBuilder
            ->addFilter($filter[0])
            ->create(),
        $this->filterGroupBuilder
            ->addFilter($filter[1])
            ->create(),
        $this->filterGroupBuilder
            ->addFilter($filter[2])
            ->create(),
    ];

    $this->searchCriteriaBuilder->setFilterGroups($filter_group);

    $list = $this->vendorInterface->getList(
        $this->searchCriteriaBuilder->create()
    )->getItems();

    return $list;
}

And MySQL query shows:

'SELECT `main_table`.* FROM `Training5_VendorRepository` AS `main_table` WHERE ((`active_until` >= '2016-01-29 12:06:25')) AND ((`active_until` <= '2016-03-03 00:00:00')) AND ((`active_until` < '2016-01-05 00:00:00'))' (length=216)

If i change $filter_group to that structure:

    $filter_group = [
        $this->filterGroupBuilder
            ->addFilter($filter[0])
            ->addFilter($filter[1])
            ->create(),
        $this->filterGroupBuilder
            ->addFilter($filter[2])
            ->create(),
    ];

Query:

SELECT `main_table`.* FROM `Training5_VendorRepository` AS `main_table` WHERE ((`active_until` >= '2016-01-29 12:13:38') OR (`active_until` <= '2016-03-03 00:00:00')) AND ((`active_until` < '2016-01-05 00:00:00'))

But still it's not a solution...
So how to group filters to show query like this:

SELECT `main_table`.* FROM `Training5_VendorRepository` AS `main_table` WHERE ((`active_until` >= '2016-01-29 12:13:38') AND (`active_until` <= '2016-03-03 00:00:00')) OR ((`active_until` < '2016-01-05 00:00:00'))


texts: How to configure Magento 1.8 with TLS1.2?

texts:
From somedays in my website UPS rates are not working fine. I found on google that I need to configure my Magento with TSL1.2.

My current Magento version is 1.8. Can anyone tell me how to configure Magento 1.8 with TSL1.2.


texts:
I'm writing a Magento 2 module that after successfully placing an order the order is stored in our backend system as well. The module sends the Magento order via a REST API. The API returns back our backend order id (e.g. external_order_id).

I need to store external_order_id in magento. My question is what is considered the "correct" approach in Magento 2?

Create a new custom flat table that would hold external_order_id (I would also store Magento's order Id)
I see a field in sales_order called extOrderId and wondering if better to us this field to store external_order_id
neither 1 or 2 and use?

If recommended to use #2, what method do I call to update extOrderId?


texts:
I'm able to fetch the single items, or the whole tables via the $modelFactory->create()->load(ID) or $modelFactory->create()->getCollection()

Using the $modelFactory, how can I delete all the data fetched?

---- UPDATE ----

The code I'm using at the moment is the following one. I guess it's running a query per item, instead of doing one query for all the items, so I'm looking for a way to do it in one single shot.

$cleanup = $this->myModelFactory->create()->getCollection();
foreach($cleanup as $item) {
   $item->delete();
}


texts: How do I change position of place order button on checkout payment page to leave comments in magento 2.1?

texts: I am trying to change the postion of place order button from check/money order payment method to leave comments how to do that in magento 2.1?


texts:
I am integrating zoom meeting into magento 2.3.
I have added following code in requirejs-config.js to import/include the 3rd party js files :
var config = {
map: {
    '*': {
        react: 'https://source.zoom.us/1.8.6/lib/vendor/react.min.js',
        reactDom: 'https://source.zoom.us/1.8.6/lib/vendor/react-dom.min.js',
        redux: 'https://source.zoom.us/1.8.6/lib/vendor/redux.min.js',
        reduxThunk: 'https://source.zoom.us/1.8.6/lib/vendor/redux-thunk.min.js',
        loadSh: 'https://source.zoom.us/1.8.6/lib/vendor/lodash.min.js',
        meeting: 'https://source.zoom.us/zoom-meeting-1.8.6.min.js'
    }
},
shim: {
    'react': {
        'deps': ["jquery"]
    },
    'reactDom': {
        'deps': ["react","jquery"]
    },
    'meeting': {
        'deps': ["react", "reactDom","redux","reduxThunk","loadSh","jquery"]
    }
},
deps :['domReady!']

};
But it gives me an error in browser console. Can anyone help me out from this error?
Uncaught ReferenceError: React is not defined
    at Object.<anonymous> (zoom-meeting-1.8.6.min.js:2)


texts: Magento 2 lazy load for product price and add to cart button

texts:
I want to load the web page in step by step, for example when i login as customer to the homepage, the web will load the structure (like product name first) and as time flow the price will loaded, product image loaded, and add to cart button will appear (depend on product stock).
I could do that for the image with lazy loader extension that i got from store, but how can i do it for the other (price and getting stock for button)?


texts: Magento2: Show custom message after shipping method

texts:
I want to show custom message under each shipping method as shown in the screenshot.
For this I have created a message field in admin configuration and I want to show that message under respective shipping message.

How can I do this?
Can anyone help me on this.
thanks in advance.


texts:
require(
        [
            'jquery',
            'Magento_Ui/js/modal/modal'
        ],
        function(
            $,
            modal
        ) {
            var options = {
                type: 'popup',
                responsive: true,
                innerScroll: true,
                title: 'Title',
                buttons: [{
                    text: $.mage.__('Proceed'),
                    class: '',
                    click: function () {
                        /* some stuff */
                        this.closeModal();
                    }
                }]
            };
            var popup = modal(options,$('#popup-modal'));
            $('#popup-modal').modal('openModal');
        }
    );

Popup works fine but I want to execute some code when the popup closes.

Thanks for the answers,

Popup can be closed by clicking x button or escape key.

But I don't think adding multiple events for click and keypress is a good idea.


texts: I need to sort Questions and Answers by Thumbs Up minus Thumbs down

texts:
I need to sort questions and answers in this module:
https://drive.google.com/open?id=1dq0LzO6yVt_FHVvavGL74U1d1WEDzlrC

according to Thumbs UP - (minus) Thumbs Down key, so when question/answer has 5 ups and 3 downs, it will be taken as 2, so 3 ups and 0 ups will be first (3-0=3 is higher than 2).


texts: How to add CMS Static block above product Description Section

texts: I want to add cms block above description, how to do in custom theme?


texts: Magento 2.2.5: _init() return error " Allowed memory size of 792723456 bytes exhausted"

texts:
I'm doing "Banner Slider", and I'm following module-catalog/category.
So when i trying to copy this file:

  C:\xampp\htdocs\magento\vendor\magento\module-catalog\Model\ResourceModel\Product\Collection.php

I found that class was extends this class \Magento\Eav\Model\Entity\Collection\AbstractCollection. I know we should extends \Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection.

But when i try to follow them, it throw an error of memory when i using the init() function like this:

protected function _construct()
{
    $this->_init(\Aht\BannerSlider\Model\Slide::class, \Aht\BannerSlider\Model\ResourceModel\Slide::class);
}

Here is my

  C:\xampp\htdocs\magento\app\code\Aht\BannerSlider\Model\ResourceModel\Slide\Collection.php

<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 13/07/2018
 * Time: 3:31 CH
 */

namespace Aht\BannerSlider\Model\ResourceModel\Slide;

// extends \Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection \Magento\Eav\Model\Entity\Collection\AbstractCollection
class Collection extends \Aht\BannerSlider\Model\ResourceModel\Collection\AbstractCollection
{
protected $_idFieldName = 'id';

/**
 * Define resource model
 *
 * @return void
 */
protected function _construct()
{
    $this->_init(\Aht\BannerSlider\Model\Slide::class, \Aht\BannerSlider\Model\ResourceModel\Slide::class);
}

public function addAttributeToSelect($attribute, $joinType = false)
{
    return parent::addAttributeToSelect($attribute, $joinType);
}
}

Here is my

  C:\xampp\htdocs\magento\app\code\Aht\BannerSlider\Model\ResourceModel\Collection\AbstractCollection.php

<?php
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
namespace Aht\BannerSlider\Model\ResourceModel\Collection;

/**
 * Catalog EAV collection resource abstract model
 * Implement using different stores for retrieve attribute values
 *
 * @api
 * @author      Magento Core Team <core@magentocommerce.com>
 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
 * @since 100.0.2
 */
class AbstractCollection extends \Magento\Eav\Model\Entity\Collection\AbstractCollection
{
    public function __construct(
        \Magento\Framework\Data\Collection\EntityFactory $entityFactory,
        \Psr\Log\LoggerInterface $logger,
        \Magento\Framework\Data\Collection\Db\FetchStrategyInterface $fetchStrategy,
        \Magento\Framework\Event\ManagerInterface $eventManager,
        \Magento\Eav\Model\Config $eavConfig,
        \Magento\Framework\App\ResourceConnection $resource,
        \Magento\Eav\Model\EntityFactory $eavEntityFactory,
        \Magento\Eav\Model\ResourceModel\Helper $resourceHelper,
        \Magento\Framework\Validator\UniversalFactory $universalFactory,
        \Magento\Framework\DB\Adapter\AdapterInterface $connection = null
    ) {
        parent::__construct(
            $entityFactory,
            $logger,
            $fetchStrategy,
            $eventManager,
            $eavConfig,
            $resource,
            $eavEntityFactory,
            $resourceHelper,
            $universalFactory,
            $connection
        );
    }
}


texts: Empty shoping cart every night magento2.3 automatically

texts: I want to clear shopping cart of all customer every night 00:00. Mean that in advanced reporting and abandoned product in cart and mini cart and cart page and checkout, every thing will disappear on 00:00 and customer should add them again in their cart  if they need products


texts: Magento 2 : Join customer collection with custom collection

texts:
\Block\Account\Message\Message.php

public function getAffiliateCustomerCollection()
        {
            $customerId = $this->customerSession->getCustomer()->getId();
            $affiliatecustomer = $this->_affiliateFactory->create();
            $customer = $this->_customerFactory->create()->getCollection();
            $collection = $affiliatecustomer ->getCollection();

        $joinConditions = 'customer_entity.entity_id = affiliate.customer_id';

        $collection->getSelect()->join(
            ['affiliate' => $collection->getTable('affiliate_account')],
            $joinConditions,
            []
        );

          $collection ->addFieldToFilter('customer_id',  $customerId);

         return $collection;
    }

This function not join the customer collection with affiliate customer collection and cannot identify the issue with joining these two collections


texts:
I have added a custom field(price) to magento dropdown attribute(see image).

I also added a new column to eav_attribute_option table and I can pull down the prices I have added manually. As I am new to Magento, how do I go about saving this price to the eav_attribute_option table? any help is greatly appreciated.


texts: Magento PopUpAjaxCart Does Not Show the Options For Configurable Products

texts:
Attached is the picture of what my problem is. I have configurable products that i want the end user to select options from. While the popup with the id popUpAjaxCart appears, but there are no options available to select.

Things i have tried: 1. Fixing the configurable swatches 2. Trying to edit the phtml file 3. Trying to edit the js file at public_html/theme/js/magiccart/ajaxcart.js

Note: I have a theme so magiccart is the name of the theme folder.

Please tell me what to do.


texts: How to fix wrong 404 for product pages in Magento 1.9.1.0 for recently viewed products

texts:
I experienced 404 pages for products after user session expiration. You can read the steps to reproduce the bug here:

http://www.magentocommerce.com/bug-tracking/issue/index/id/541

What is the fix for that?


texts: Alter configurable product programmatically

texts:
I need to add additional attribute to a configurable product (Super attribute).
As seen in

  Magento\ConfigurableProduct\Block\Adminhtml\Product\Edit\Tab\Variations\Config\Matrix

Data is generated based on input and send to post parameter.
Is there a possibility to do it programmatically to alter super attributes?

Like this for example there is a configurable product with super attributes size, color. But the need is to add another attribute width and do it in bulk using migration script (with possibility to alter generated product matrix before building it).


texts: Search not only by product name / description

texts:
I want to show product that the category name is "Watches", but the only result I have is the product with "watches" in the name or description.

How do I show product that the category is "Watches"?


texts: Magento 2: Set Custom product attribute value programmatically on product save

texts:
How to set a product's custom attribute on save?
I have used the event/observer way but nothing works.


texts: Shipping Address Missing on Payment Page Refresh

texts:
Has this happened to anyone?

When you get to the payment page in checkout and refresh the page, it removes your shipping address with the exception of the zip code and country.


texts:
I want to get the store URL in cms page when I tried this

{{store url='abc/efg/xxx/yyyy'}}

It does not return the given URL. Its give output like this

http://domain.com

but I need to get like this

http://domain.com/abc/efg/xxx/yyyy

Help to fix this.
I don't know how to concatenate in CMS page


texts: Get stores countries and Languages REST API

texts:
Is there is a built in rest API to get :

Stores Countries.
Stores Languages.

Please help.


texts: Products not visible on Frontend after Import via AvS_FastSimpleImport (based on Magento_ImportExport):

texts:
I import products via AvS_FastSimpleImport (an import module based on Mage_ImportExport) into a store view. They look fine in the backend but are not visible in the specific frontend categories.

When I just open a single product and hit save in the backend, the appear.

Cleaning caches / rebuilding all indices (as far as possible in EE 1.13) does not help.

Is this a known issue? How can I debug this?

I am on Magento EE 1.13.0.1 and wondering if this might be a problem with the new indexing.


texts: Magento 1.9.2.4 not exporting simple products

texts:
I've run into a weird issue where my Magento site (1.9.2.4) isn't exporting all my products.  It successfully exports all my configurables, but that's it - none of the simple products contained within/associated to them.  Even when I change the export variables in Dataflow - Profiles to narrow it down to only the simple products (which I have set to not display individually), it doesn't export any of them.

In my searching I eventually came across this and tried running it, but it also didn't work:

<?php require_once('app/Mage.php');
Mage::app();

$data=array();
$data['entity'] = 'catalog_product';
$data['file_format'] = 'csv';
$data['form_key'] =Mage::getSingleton('core/session')->getFormKey();
$data['export_filter']=array();

$model = Mage::getModel('importexport/export');
$model->setData($data);

$model->export();
$model->getContentType();

?>

That spit out the following error:

Fatal error: Call to undefined method Mage_Catalog_Model_Resource_Product_Flat::getType() in /home/xxxxxx/public_html/app/code/core/Mage/Eav/Model/Entity/Collection/Abstract.php on line 1086

Any ideas or insight?  I'd hate to have to consider pulling it out of MySQL, that would be a massive bummer.


texts: memory issue for export sales report in csv

texts:
i am using magento 2.1.5, i created one module to export all order detail in csv.

but i am getting this issue:

Fatal error: Allowed memory size of 805306368 bytes exhausted (tried to allocate 16384 bytes) in /var/www/html/XXXXX/public_html/XXXXX/vendor/magento/zendframework1/library/Zend/Db/Statement/Pdo.php on line 228

Code for export sales Data:

function execute()
{

    if (!file_exists($this->_directoryList->getRoot().'/pub/media/OrderExport')) {
        mkdir($this->_directoryList->getRoot().'/pub/media/OrderExport', 0777, true);
    }

    $todayDate = date('Y_m_d_H_i_s', time());
    $fileName = $this->_directoryList->getRoot().'/pub/media/OrderExport/OrderExport'.$todayDate.'.csv';

    $fp = fopen($fileName, 'w');
    $this->writeHeadRow($fp);
    $collection = $this->collectionFactory->create()->addFieldToFilter('store_id', 6);//->getCollection();
    $countOrderExport = 0;
    //$j = 0;
    foreach ($collection->getItems() as $_order) {
        //if($j++ > 5000)

            //break;
      $orderId = $_order->getId();
      if ($orderId) {
        $order = $this->orderModel->load($_order->getId());
        $this->writeOrder($order, $fp);
        $incId = $order->getIncrementId();
        $countOrderExport++;
      }
    }
    fclose($fp);

    $this->downloadCsv($fileName);
    $this->messageManager->addSuccess(__('We Exported %1 order(s).', $countOrderExport));

    //$resultRedirect = $this->resultRedirectFactory->create();
    //$resultRedirect->setPath('sales/*/');
    //return $resultRedirect;
}

i tried with increse mamory limit, maximum execution time, but still i am not able to export full report.

How to fix this issue?


texts: JavaScript not able to Manipulate value and expiry date of cookie

texts:
I have to set a cookie in magento, say current_city in OPC. I have set the same via Magento in built cookie function.

Mage::getModel('core/cookie')->set('current_city',$city);

I wanted to modify the value and expiry of the cookie in front end when the city value is changed from a dropdown.

I tried to use following magento js function to update the cookie.

Mage.Cookies.set('current_city',city,365*24*3600*1000);

But the cookie is not getting updated or deleted.

What might be the issue?

Thanks.!


texts:
I've created an assigned-to select function in my adminhtml form with usernames, ofcourse it doesn't save the name to the database, but the ID. I want to show the assigned-to in grid.php, but instead of showing its ID I want to show the name.

ie I want to find the user by ID. However, I can't seem to be able to figure out how. Without edits, this is my grid.php:

    /**
     * @return Topper_ProductQA_Block_Adminhtml_Question_Grid
     */
    protected function _prepareCollection()
    {
        $collection = Mage::getModel('topperproductqa/question')->getCollection();
        $this->setCollection($collection);

        return parent::_prepareCollection();
    }

where

$this->addColumn(
            'assigned_to',
            array(
                'header' => $helper->__('Assigned To'),
                'index' => 'assigned_to',
            )
        );

is currently showing my ID. Here I found

$collection->getSelect()->join(array())

but I can't seem to figure out what join exactly does or means. I haven't gotten it working till now. Googling finds me loads of different possible solutions, but no explanations whatsoever.

==========================EDIT==========================

Databasescript:

->addColumn(
        $installer->getTable('topperproductqa/question'),
        'assigned_to',
        Varien_Db_Ddl_Table::TYPE_TEXT,
        null,
        array(
            'nullable' => true,
        ),
        'Assigned to'
    );

Form:

$fieldset->addField(
            'assigned_to',
            'select',
            array(
                'label' => Mage::helper('topperproductqa')->__('Toewijzen aan'),
                'class' => 'required-entry',
                'style' => 'width:500px;',
                'values' => Mage::getModel('topperproductqa/adminhtml_system_config_source_userlist')->toOptionArray(),
                'name' => 'assigned_to',
            )
        );


texts:
We are looking for the official Magento 2 certification.

When you guys are going to have a Magento 2 certification program?


texts: How to disable single product using id in sql?

texts: How can I disable or enable a product using it id in sql or model method. Can some on help me with it.


texts: Magento2 Custom shipping method, select service

texts:
I'm creating a custom shipping method on Magento2. I got the admin working ok. There are 3 different services it choose from, lets say "14hrs", 24hrs and Economy.

The problems comes in the front end, checkout page. I can see my Method, but I can't figure out how to display the select for the services. I've read several shipping method module tutorials, but none talks about this.

Currently this is my CustomShipping.php:

namespace TCK\ASM\Model\Carrier;

use Magento\Quote\Model\Quote\Address\RateRequest;
use Magento\Shipping\Model\Rate\Result;
use Magento\Checkout\Model\Cart;
use TCK\ASM\Model\Source\Method;
class ASMShipping extends \Magento\Shipping\Model\Carrier\AbstractCarrier implements
    \Magento\Shipping\Model\Carrier\CarrierInterface
{
    /**
     * @var string
     */
    protected $_code = 'ASMShipping';

    /**
     * @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig
     * @param \Magento\Quote\Model\Quote\Address\RateResult\ErrorFactory $rateErrorFactory
     * @param \Psr\Log\LoggerInterface $logger
     * @param \Magento\Shipping\Model\Rate\ResultFactory $rateResultFactory
     * @param \Magento\Quote\Model\Quote\Address\RateResult\MethodFactory $rateMethodFactory
     * @param array $data
     */
    public function __construct(
        \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig,
        \Magento\Quote\Model\Quote\Address\RateResult\ErrorFactory $rateErrorFactory,
        \Psr\Log\LoggerInterface $logger,
        \Magento\Shipping\Model\Rate\ResultFactory $rateResultFactory,
        \Magento\Quote\Model\Quote\Address\RateResult\MethodFactory $rateMethodFactory,
        \Magento\Checkout\Model\Cart $cart,
        \TCK\ASM\Model\Source\MethodFactory $metodoFactory,
        array $data = []
    ) {
        $this->_rateResultFactory = $rateResultFactory;
        $this->_rateMethodFactory = $rateMethodFactory;
        $this->_metodoFactory = $metodoFactory;
        parent::__construct($scopeConfig, $rateErrorFactory, $logger, $data);
        $this->cart = $cart;
    }

    /**
     * @return array
     */
    public function getAllowedMethods()
    {
        return ['ASMShipping' => $this->getConfigData('name')];
    }

    /**
     * @param RateRequest $request
     * @return bool|Result
     */
    public function collectRates(RateRequest $request)
    {
        if (!$this->getConfigFlag('active')) {
            return false;
        }

        $err = null;
        $envio = array();
        //Mage2
         /** @var \Magento\Shipping\Model\Rate\Result $result */
        $result = $this->_rateResultFactory->create();
        /** @var \Magento\Quote\Model\Quote\Address\RateResult\Method $method */
        $method = $this->_rateMethodFactory->create();
        $method->setCarrier('ASMShipping');
        $method->setCarrierTitle($this->getConfigData('title'));
        $method->setMethod('ASMShipping');
        $method->setMethodTitle($this->getConfigData('name'));
        /*you can fetch shipping price from different sources over some APIs, we used price from config.xml - xml node price*/
        //$amount = $this->getConfigData('handling_fee');
        $amount=0;

        $envio["cpOrg"]=$request->_data['postcode'];
        $envio["codPaisOrg"] = '34';
        $envio["cpDst"] = $request->_data['dest_postcode'];
        $envio["peso"] = $request->_data['package_weight'];
        $envio["bultos"] = 1;
        $envio["precioProducto"] = $request->_data['package_value'];

        $amount=$request->_data['package_value'];
        $method->setPrice($amount);
        $method->setCost($amount);

        $result->append($method);

        $items=$this->cart->getQuote()->getAllVisibleItems();

        return $result;

    /** end func **/
    }
}


texts: Cannot rewrite ConfigurablePriceResolver in Magento 2

texts:
I try to rewrite the ConfigurablePriceResolver in Magento 2, but without success. In my di.xml I have the following:

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">

    <preference for="Magento\ConfigurableProduct\Pricing\Price\ConfigurablePriceResolver"
        type="Vendor\Module\Rewrite\Magento\ConfigurableProduct\Pricing\Price\ConfigurablePriceResolver"/>
</config>

But my class doesn't seem to get picked up. Anyone knows what might be going wrong here? I try to create a temporary fix for my client for https://github.com/magento/magento2/issues/4314.

I can rewrite other classes like this, but for some reason this doesn't work.


texts: How to get data from sales_order_item table in magento 2

texts:
I am new to Magento 2 and
I want to get all data from sales_order_item table in Magento 2.

How to get that can anyone answer?


texts: Product options not displaying on product page

texts:
I've inherited a Magento site from a client to work on as a complete Magento novice.

One of their requirements is to add in an additional option to one of the products for "installation". I have set this up in the Magento back end:

The issue occurs now is that the purchase button and option button is now missing from the product page. Only an "add to wishlist" and "add to compare" link. From the template (addto.phtml) is :

<?php $_product = $this->getProduct() ?>

<?php if ($this->helper('wishlist')->isAllow()) : ?>

<a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>"><?php echo $this->__('Add to Wishlist') ?>

<?php endif; ?>
<?php if($_compareUrl=$this->helper('catalog/product_compare')->getAddUrl($_product) ): ?>

| <a href="<?php echo $_compareUrl ?>"><?php echo $this->__('Add to Compare') ?>

<?php endif; ?>

I've compared this with the equivalent in 'base' but it doesn't appear to do anything different in there either.

When I remove the option, the order button is reinstated.

How do I get the option and order button to appear?

Thanks

(I have cleared all caches)


texts: Delete item in cart after customer logged in

texts:
I need to delete an item in cart after customer loggend in a scratch like this:

foreach($items as $item){
   if(condition == true){
    $item->delete();
   }
}

the problem is i don't know which event will trigger the observer, and get cart items and delete it from observer


texts: Migrate from Magento Commerce 1.14.2.2 to Magento Open Source 2.3.3

texts:
I want to migrate from Magento Commerce 1.14.2.2 to Magento Open Source 2.3.3

I already read Migrate Magento EE 1.14.3.1 to Magento CE 2.1.7 but it is not sufficient to achieve goal

As per my finding in above solution, we can create another folder commerce-to-opensource in migration tool by copying commerce-to-commerce folder and adjust config.xml, map.xml etc.

I tried above solution but:

- category is migrated but without category name and URL,
- order is not migrated
- product is migrated but not opening in Admin and giving error `this product does not exist`

Another solution is to first downgrade from magento Commerce 1.14.2.2 to Magento Open Source  1.9.4.3 and then migrate from Open Source to Open Source

Any help Or suggestion is appreciated


texts: ultimo theme is not rendering IE stylesheet in IE 8

texts:
There are styles-ie8.css & styles-ie7.css in ultimo theme under skin folder. I have used developer tool in IE8 and there are all the css files used by the page. You can see in img 1.

img 2 shows the source code which has all the required files. I have tried to move the styles-ie7.css in the base theme. It is also showing in the view source correctly, but IE is not rendering any of the CSS.

What may be the problem?


texts: Programatically put meta description in Magento cms Pages

texts:
I have more than 500 cms pages in my Magento store, and i want to change all meta descriptions based on a CSV file. There are two columns in my csv file:

Cms Page identifier
Meta description


texts: How to add column for total orders in customer grid in magento and filter it?

texts:
I am trying to add a total orders of particular customer column in customer grid. It is added successfully but How can I filter it?

Code is :

protected function _prepareCollection()
    {
        $collection = Mage::getResourceModel('customer/customer_collection')
            ->addNameToSelect()
            ->addAttributeToSelect('email')
            ->addAttributeToSelect('created_at')
            ->addAttributeToSelect('group_id')
            ->joinAttribute('billing_postcode', 'customer_address/postcode', 'default_billing', null, 'left')
            ->joinAttribute('billing_city', 'customer_address/city', 'default_billing', null, 'left')
            ->joinAttribute('billing_telephone', 'customer_address/telephone', 'default_billing', null, 'left')
            ->joinAttribute('billing_region', 'customer_address/region', 'default_billing', null, 'left')
            ->joinAttribute('billing_country_id', 'customer_address/country_id', 'default_billing', null, 'left');

        $sql ='SELECT COUNT(*)'
        . ' FROM ' . Mage::getSingleton('core/resource')->getTableName('sales/order') . ' AS o'
        . ' WHERE o.customer_id = e.entity_id GROUP BY e.entity_id';
        $expr = new Zend_Db_Expr('(' . $sql . ')');

        $collection->getSelect()->from(null, array('orders_count'=>$expr));
        echo $collection->getSelect();die;
        $this->setCollection($collection);

        return parent::_prepareCollection();
    }

    protected function _addColumnFilterToCollection($column)
    {

        if ($column->getId() == 'orders_count') {

            if (!$value = $column->getFilter()->getValue()) {
                return $this;
            }
            if (!empty($value)) {
                $from = $value['from'];
                $to = $value['to'];
                $this->getCollection()->getSelect()->where(
                     "orders_count >= $from AND orders_count <= $to");
            }
            return $this;

        } else {
            parent::_addColumnFilterToCollection($column);
        }
        return $this;
    }
protected function _prepareColumns()
    {
        $this->addColumn('orders_count', array(
            'header'    => Mage::helper('customer')->__('Total Orders'),
            'align'     => 'left',
            'width'     => '40px',
            'index'     => 'orders_count',
            'type'  => 'number',
            'sortable' => true,
        ));
...}


texts: What's the difference between voiding and canceling an order?

texts:
What is the difference between voiding and canceling an order? What are the reasons to perform one over the other?

When looking at an Order where the credit card has been captured online in the administrative dashboard, I have both the option to Cancel or to Void the order.

Both payment controllers fire the function that voids transactions with the payment gateway.


texts: Magento1.9: How to add video in product page?

texts:
How to add product video to product detailed page?

We want to show that video based on creating new attribute then want to show that there.


texts: How can i set every street filed on checkout not required? Magento 2

texts: Admin configuration is able to set it in range 1-4


texts: Magento 2.3 unable to send email server configuration

texts:
I am using Magento 2.3 , I try to send a mail but unfortunately, I am not able to send any mail I got error

  Unable to send mail: Unknown error at
  /home/public_html/proj/vendor/zendframework/zend-mail/src/Transport/Sendmail.php:305)"}
  []

then I am using Hostgator Server is there anything configured from server side because I tried mageplaza smtp module it says mail sent successfully but I didn't get any mail

how do i fix this ?


texts: Why Magento ask First Name and Last Name?

texts:
As store owner, the two name field data (First name and last name) is very inconvenience while running store.

Most of shipping carrier I use ask only one full name data when I import shipping address. I have to merge both first and last name data as one after export shipping address. (Even a payment company ask only one full name data)
It cause some issue when I manage or search customers with name
I tired to get only one name data, but I got problems since magento use first name and last name differently on many ways (even in welcome message) so I give up
As customer's view, it looks inconvenience too. Type first name and click other field and type last name instead of just type full name. (checkout is important since its related conversion rate)

I hope Magento get only one name data as store owner (I believe Magento is made for store owner too)

Can I know at least the reason why Magento ask two name field as developer's view? Is there any benefit?

e.g.) Top e-commerce company Amazon and ebay ask only one

This is Amazon New address form - Only one name field

eBay New address form - only one name field


texts: How to hide Cash payment option on onclick of Store Credit payment option?


texts: Multi-shipping depending on specific product attribute

texts:
I have been struggling hard from a few days to find out a way for multi shipping of products depending on product type (type is not magento's type where as it is custom attribute i.e type can be grocery, non-grocery)

so, let me explain my problem:

I have two types of items in my store, one are grocery and other are non-grocery. When a user add these items to cart, I need to show him two groups of products(grocery, non-grocery). The grocery items can be shipped in one hour while others cannot be. So I need to show user separate shipping methods available for both the groups i.e user can have options as MethodA, MethodB, MethodC for grocery-group and MethodB, MethodC, MethodD for non-grocery-group.

Note: The products as grocery, non-grocery are separated on the basis of some flag in product attributes, moreover the address will be the same for each group.

I didn't find any extension which can do so, from where should I start? should I override the functionality of Multi-shipping? Please suggest me the ways to get it done!


texts: How to do selected single product should be purchase alone?

texts:
I have one restricted product, here how to do selected single product should be purchased alone? No other products are eligible to add add-to-cart if this product available in the add-to-cart, same if other products available in add-to-cart this product not eligible to add add-to-cart.

Workout->  https://gist.github.com/ZusZus/d68943de1e0b0def488bddcdf4ada4c9 not working.


texts: Show cash on delivery option to registered users only?

texts:
i want to show cash on delivery method during checkout, only for registered users.
if user is logged in show cash on delivery method otherwise not.

Please suggest in which file should i make the edit


texts: Magento 2 : How To Add Custom Images To More Views of Product in Frontend

texts:
I am working on custom extension, and need to override more views section of the product. By overriding this block I need to add some additional images with product default images in more views.

How can I do this? Any Example?
Thanks in advance.


texts: I would like to pull all attribute data from a specific category, using SQL or a PHP script

texts:
I figured I could do a simple SQL query since this is on my development environment:

SELECT * FROM catalog_category_product WHERE category_id = 116

It looks like it returned the correct amount of products, but only with category_id, product_id, position.

So, I'm thinking I'll have to do a join with the cataloginventory/stock_item table. Is that right? Any help would be appreciated.

Or if that's a lot simpler: all I really need is the SKU number and quantity from that specific category 116.


texts: Magento1 : How to add content near image in product view page using XML?

texts:
I want to add content after the image, but i cant, i tried:

<block class="Magento\Catalog\Block\Product\View" name="product.media.preview2" template="product/view/preview_image.phtml" before="product.info.media" />...
<block class="Magento\Catalog\Block\Product\View" name="product.media.preview2" template="product/view/preview_image.phtml" before="product.media" />...

and i tried it in some different contents:

<referenceContainer name="main">
<referenceContainer name="content">
<referenceContainer name="product.info.main">

But nothing works, and i know the xml works.

any ideas?


texts: View Magento's Rest API generated guest-cart in Store Website using URL with guest-cart id

texts:
I have a requirement to show guest-cart items(created and items added using Magento rest API) on the Magento store website to initiate checkout from the website.

I tried http://storeurl.com/checkout/?cartId=asdfasdf with the guest-cart id that
I generated using Rest API. But this doesn't work, It shows an empty cart.

Can anyone help me with this? Or at least I want to know, whether this could be possible or not?


texts: How CSS loads partially or not at all in Magento 1?

texts:
I have an extremely weird problem that I face for the first time.

From time to time (it's really absolutely random), the CSS of a Magento 1.9.3.10 store is not fully loaded. It can happen on a product page or catalog page, and even home page.

Basically, on every 100~ requests (refreshes), the CSS does not load fully. The weird part is that in the console I see that the response is 200, the CSS is loaded but it's 6kb when the full file is 80kb~. When I open the CSS file, I see that it is interrupted but it's in a weird place and where there are no special signs or anything. If I click refresh, it loads it correctly.

The same behavior goes for the whole website and the team is totally out of ideas.

There are no registered errors on the server, nor the console. Everything returns 200, everything is loaded and yet - the CSS file is interrupted. Also, every time the file is interrupted in a different place, so even this happens at random.

The team considers that this is a server issue, but there are no errors or anything on the server (nor a serious load). Our current setup is in AWS (been there for a year) and we never faced such problems.

All that happen after we switch to a new theme with bootstrap (because the previous one wasn't) and we installed a new slider (revolution).

Also, this happens only when the CSS is merged if we don't combine the CSS files, everything loads flawlessly.

Can anyone assist me with that or has anyone see such a thing?


texts:
Tell me how I can do the following: I need to make a drop-down list on the orders page with the order quantity limitations. Now the last 10 orders are displayed by default. I have recently been working with MAGENTO and I can not find where I need to complete the code for my task.
Here's what I found: file

\src\app\code\local\My_Project\Sales\Block\Order\History.php

class Eurosouvenir_Sales_Block_Order_History extends Mage_Sales_Block_Order_History
{
    public function __construct()
    {
        parent::__construct();
        $this->getOrders()->addFieldToFilter('store_id', Mage::app()->getStore()->getId());
    }
}

but any attempts to add a limit here either do not give anything or lead to an error of 500


texts: Newsletter Subscriber Block on CMS Page not working

texts:
The CMS Page, content is :

{{block type="core/template" template="newsletter/subscribe.phtml"}}

Its show the newsletter subscribe box, if add the email will not add to the database.


texts: Error reindex catalog_product_attribute magento 2

texts: After running reindex catalog_product_attribute, I get an error - (General error: 1114 The table 'catalog_product_index_eav_temp' is full, query was: INSERT IGNORE INTO catalog_product_index_eav_temp SELECTtransit_catalog_product_index_eav_tempde__freq_emp`de_preduct_emalog FR_tem_ealog_em_FRM_em_freem_freem__falog_pre__talog_preem_`)


texts:
I have created module referring below blog post https://www.codilar.com/blog/how-to-create-a-hello-world-module-in-magento-2/ and its working fine.. hello world print on homepage.

Now i need to use this module as a widget . Then we can use this module anywhere we need.(in CMS pages)

Is there anyone have and idea how to achieve this


texts: Magento 1.8.1 - Remove other shipping methods if free shipping is active on Estimate Shipping Block

texts:
I have an eshop developed using Magento 1.8.1.

I managed to remove other shipping methods if free shipping is active on my order page adding this code

<?php if ( array_key_exists('freeshipping', $_shippingRateGroups )) { $_shippingRateGroups = array('freeshipping' => $_shippingRateGroups['freeshipping']);}?>

on app/design/frontend/default/YOURTEMPLATE/template checkout/onepage/shipping_method/available.phtml

My problem though is that all shipping methods still appear on "Estimate Shipping Block"

So what i need is when free shipping is activated, other shipping options to be hidden on Estimate Shipping Block


texts: How do I change the font family (at a theme level) to Helvetica in Magento 2.


texts: Magento 2.3 re-index failing for sales rule index

texts:
When I trying to re-index salesrule_rule index, It gives me bellow error and the sales rule grid is not loading in magento admin. Please advice.
Item (Magento\SalesRule\Model\Rule\Interceptor) with the same ID "165" already exists.
Attached is the MySQL result when I run query to see all the rules having 165 as rule_id


texts: How to change SUMMARY title of cart page in Magento 2?

texts: I need to change text SUMMARY to BASKET SUMMARY. Please help!


texts: How to add acl in custom module in magento

texts:
I created custom module in magento. I created that menu under customer menu. I need to add  acl for custom module. I need to know that how to create acl in custom module i m giving here my config.xml...

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

    <modules>
        <Webcreon_Seller>
            <version>1.0.0</version>
        </Webcreon_Seller>
    </modules>

    <frontend>
        <routers>
            <seller>
                <use>standard</use>
                <args>
                    <module>Webcreon_Seller</module>
                    <frontName>seller</frontName>
                </args>
            </seller>
        </routers>
     <layout>
            <updates>
                <seller>
                      <file>sellerform.xml</file>
                </seller>
            </updates>
       </layout>
    </frontend>
    <admin>
     <routers>
         <seller>
            <use>admin</use>
            <args>
               <module>Webcreon_Seller</module>
               <frontName>adminseller</frontName>
            </args>
         </seller>
      </routers>
 </admin>
 <adminhtml>
   <layout>
      <updates>
          <seller>
              <file>sellerform.xml</file>
           </seller>
      </updates>
   </layout>
   <menu>
      <customer translate="title" module="adminhtml">

         <sort_order>100</sort_order>
         <children>
             <set_time>
                   <title>Seller List</title>
                   <action>adminseller/adminhtml_index</action>
              </set_time>
          </children>
       </customer>
    </menu>
</adminhtml>

    <global>
        <blocks>
            <seller>
                <class>Webcreon_Seller_Block</class>
            </seller>
         </blocks>
         <helpers>
            <seller>
                <class>Webcreon_Seller_Helper</class>
            </seller>
        </helpers>
              <models>
          <seller>
                <class>Webcreon_Seller_Model</class>
                 <resourceModel>seller_mysql4</resourceModel>
            </seller>
            <seller_mysql4>
             <class>Webcreon_Seller_Model_Mysql4</class>
             <entities>
                 <seller>

db_vendor

                 </seller>
              </entities>
          </seller_mysql4>
        </models>
        <resources>

        <seller_write>
            <connection>
                <use>core_write</use>
            </connection>
        </seller_write>

       <seller_read>
          <connection>
             <use>core_read</use>
          </connection>
       </seller_read>
       <webcreon_seller_setup>
            <setup>
                <module>Webcreon_Seller</module>
            </setup>
        </webcreon_seller_setup>
</resources>
<rewrite>
    <sellercreate>
         <from><![CDATA[#^/seller[\/]?$#]]></from>
         <to><![CDATA[/seller/seller/sellercreate/$1]]></to>
         <complete>1</complete>
      </sellercreate>
</rewrite>
</global>

</config>


texts: Magento 2: Admin panel 3 level menu structure not working

texts:
I am trying to add a menu for my module in the admin panel. I want to add it like Grand Parent > Parent > Child structure.
I have used below code in my menu.xml

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Backend:etc/menu.xsd">
    <menu>
        <add id="Vendor_Module::jsutariya" title="Grand Parent" module="Vendor_Module" sortOrder="100" resource="Vendor_Module::jsutariya" />
        <add id="Vendor_Module::listgallery" title="Parent" module="Vendor_Module" sortOrder="10" resource="Vendor_Module::listgallery" parent="Vendor_Module::jsutariya" />
        <add id="Vendor_Module::settings" title="Child" module="Vendor_Module"
             sortOrder="40" action="adminhtml/system_config/edit/section/list_gallery"
             resource="Vendor_Module::settings" parent="Vendor_Module::listgallery"/>
    </menu>
</config>

But I can only see Grand parent and child menus. Please check below screenshot.


texts: How to get Invoice collection magento 2?

texts:
i want to get all invoice collection?
Here below is my code but not working

class Grid extends \Magento\Backend\Block\Widget\Grid\Extended
{
    /**
     * @var \Magento\Framework\Module\Manager
     */
    protected $moduleManager;

    /**
     * @var \Vendor\Module\Model\shippingchargesFactory
     */
    protected $invoice_collection;

    /**
     * @var \Vendor\Module\Model\Status
     */
    protected $_status;

    /**
     * @param \Magento\Backend\Block\Template\Context $context
     * @param \Magento\Backend\Helper\Data $backendHelper
     * @param \Vendor\Module\Model\shippingchargesFactory $shippingchargesFactory
     * @param \Vendor\Module\Model\Status $status
     * @param \Magento\Framework\Module\Manager $moduleManager
     * @param array $data
     *
     * @SuppressWarnings(PHPMD.ExcessiveParameterList)
     */
    public function __construct(
        \Magento\Backend\Block\Template\Context $context,
        \Magento\Backend\Helper\Data $backendHelper,
        \Magento\Sales\Model\Order\InvoiceRepository $invoice_collection,
        \Magento\Framework\Module\Manager $moduleManager,
        array $data = []
    ) {

        error_reporting(E_ALL);
        $this->invoice_collection = $invoice_collection;
        $this->moduleManager = $moduleManager;
        parent::__construct($context, $backendHelper, $data);
    }

    /**
     * @return $this
     */
    protected function _prepareCollection()
    {
        $collection = $this->invoice_collection->create()->getList();
        $this->setCollection($collection);
        parent::_prepareCollection();
        return $this;
    }
}


texts:
I added a custom customer attribute to the customer_grid and now it displays following error:

  Something went wrong with processing the default view and we have
  restored the filter to its original state.

How can I fix that?

exception.log shows following error:

  LIMIT 20 {"exception":"[object] (Zend_Db_Statement_Exception(code: 42): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'mediabasenummer' in 'order clause', query was: SELECT `main_table`.* FROM `customer_grid_flat` AS `main_table` WHERE (MATCH(`main_table`.name,`main_table`.email,`main_table`.created_in,`main_table`.taxvat,`main_table`.shipping_full,`main_table`.billing_full,`main_table`.billing_firstname,`main_table`.billing_lastname,`main_table`.billing_telephone,`main_table`.billing_postcode,`main_table`.billing_region,`main_table`.billing_city,`main_table`.billing_fax,`main_table`.billing_company) AGAINST('Leon')) ORDER BY mediabasenummer ASC


texts: Category Filter Block duplicates itself when resizing from responsive to normal view RWD theme

texts:
I am having a problem when re-sizing a page from normal size to responsive size, the category filter block will duplicate itself and cause visual bugs with the page. Here is an image of what it looks like:

I have looked in left.phtml, and that is the block that seems to be called over and over that is causing the problem. The offending code looks like it comes from app.js. Has anyone dealt with anything like this before and have a solution?

Thanks


texts: I can't add products to cart using safari

texts:
When I use safari, the products aren't added to cart. I dont see errors in the console or logs.

It works in localhost, but not in live server.

EDIT:

I realized that when I add the product the first time, it works, but if I remove it and try to add it again I can`t any more