texts: Magento 1.9 Save action for Catalog Product custom tab

texts:
I created the custom tab in Catalog Product.
It is my layout/labels.xml

<adminhtml_catalog_product_edit>
    <reference name="product_tabs">
         <action method="addTab"><name>labels</name><block>productlabels/adminhtml_products_edit_tabs_labels</block></action>
    </reference>
</adminhtml_catalog_product_edit>

And Tab.

class Vendor_ModuleName_Block_Adminhtml_Products_Edit_Tabs_Labels
extends Mage_Adminhtml_Block_Widget_Form implements
Mage_Adminhtml_Block_Widget_Tab_Interface
{
protected function _prepareForm()
{
    //$model = Mage::registry('product_labels');
    $model = Mage::getModel('productlabels/block')->getCollection()->addFieldToFilter('product_page_image', ["notnull" => 'product_page_image'])->getData();
    $form = new Varien_Data_Form();
    $fieldset = $form->addFieldSet('label_form', array(
        'legent' => Mage::helper('productlabels')->__('Labels'),));

    foreach ($model as $value) {
        $fieldset->addField('label_' . $value['id_label'], 'checkbox', array(
            'label' => $value['title'],
            'name' => $value['id_label'],
            'value' => 1,
            'after_element_html' => '

',
        ));
    }

    $form->setValues($model);
    $this->setForm($form);
    return parent::_prepareForm();
}

public function canShowTab()
{
    return true;
}

public function getTabLabel()
{
    return $this->__('Product Labels');
}

public function getTabTitle()
{
    return $this->__('Product Labels');
}

public function isHidden()
{
    return false;
}

How can i save data from this tab in DB?. I try create in Namespace/Module/controllers/Catalog/ProductController.php saveAction(), but it remove native action.


texts: Magento 2: move shipping method list to new custom step

texts:
I have created custom step to checkout page between shipping and payment step

I want to move shipping method step to my custom step

how can I move this to new custom step. any help would be greatly appreciated.


texts: magento 2 widget layout update : specified pages section not showing all cms pages

texts:
I have created widget that i want to show on sidebar of about us and our company page, but in widget layout update >> specified pages section i can not find any option to see any option of My Cms About us and CMS Company page ,

Is there any fix to it


texts: Magento2 : How can to get product collection by sorting with stock status i.e Asc,Decs

texts: I have all product collection but I want it sort/order_by by Stock Status.for out-of-stock.


texts: Magento 2.3: Unable to see the My account page for the customer who logged in via google

texts:
I have installed Amasty Social Login extension on our Magento 2 site. After installing the extension, I have logged in to the site using Google login. However, In the frontend, it shows like I didn't log in and can't able to see the My account page. But in the admin panel, I can see the customer details who logged in via google or other type social logins.

In order to make this work, what I have to do?

Any help will be appreciated!

Thanks in advance..!


texts: adding 2nd set of params to grid action column

texts:
i working in my admin form grid page. i want to add a 2nd set of params to my grid action column
this is what i tried

$this->addColumn('action', array(
    'header' =>  Mage::helper('testmodule')->__('Action'),
    'width' => '50px',
    'type' => 'action',
     'actions'   => array(
            array(
                    'caption'   => Mage::helper('testmodule')->__('Edit'),
                    'url'       => array('base'=> '*/*/edit','test' => 1),
                    'field'     => 'id'
            )
    ),

you will notice taht i am trying to add the 2nd set of params to the URL:

'test' => 1

however, it was not added. any advice would be appreciated.


texts: Magento 2: Nginx pub/static not autogenerating, only works with command line static-content:deploy

texts:
I have tried many of the solutions from: Local installation of Magento 2 doest not generate files in the pub/static folder and similar posts:

I am in developer mode (verified in command line, and I can see error messages on the page for php). I am running Nginx with php-fpm from a 16.04 Ubuntu in vmware.

So far I've tried:

chmod -R 777 on the var and pub folders
chown -R www-data:www-data on the var and pub folders, I've also tried them as owned by root with 777 perms.
tried the suggestion about changing from Symlink to Copy in app/etc/di.xml file
pub/static.php and pub/static/.htaccess I can verify exist and are correct

So I go to the browser (and my browser has cache disabled in network tab) and load a frontend or admin page and none of the pub/static file stuff is generated, the page loads but with no css, js, etc.

If I delete the pub/static I can re-generate them with php bin/magento setup:static-content:deploy and that works fine, but the issue is that anytime I make a change to a template file or js file, I have to delete pub/static and run that command which is very slow and not practical for development. So my questions are:

Any suggestions?
Could this have to do with how I have the owner and group of the Magento files? I am not sure how that should be. It seems like php-fpm runs as www-data but I'm not 100% sure about that, I am not good with linux.
Could it have to be with the user that I use when running php bin/magento setup:static-content:deploy? Which user should that be in command line? Usually I run it as root. But as I mentioned, I've manually changed the pub and var folders and files to www-data but it doesn't help.
Or maybe it has to do with how I have the Mage Root set? I'm using the default nginx.conf file included, and have mage root set like: set $MAGE_ROOT /var/www/html/magento2; (my magento 2 files and folders are in that directory)


texts: I want to add a product to cart programatically to cart when a product has custom option

texts:
I want to add a custom product(eg :cooler) to cart programmatically to cart when a product has custom option(as ice packing) or the cart items have custom option(as ice packing) and update the quantity of the custom added product  if the total quantity of the products that have custom option  is greater than some limit.

In my case if a product has ice packing  as custom option and if the product as added to cart and add a product cooler to the cart and if the quantity is less than 12 then add 12 pint cooler and id it is greater then 12  then add 24 pint cooler .if it is greater than 24 the add a 12 and 24 pint cooler(ie 2 products) to cart, if greater than 36 remove 12 pintcooler and update the 24 pint cooler quantity  to 2 and if greater than 48 tha add one 12 pint to the 24 pint cooler(2 qty) and so on..

Please help me to do this  and please provide the code if you can.


texts: Unique constraint violation found - if clicking all cms pages

texts:
I have an issue regarding all of my cms pages.
When I click the link it throws the following message: "Unique constraint violation found".
After looking into my url_rewrite table, I can see a lot of entries for this pages, where target_path is NULL.
If I delete them manually, it works. After some time, entries are still there.
Any ideas, where the issue comes from?
I am using M2.3.


texts: Change the White Background color to another color in magento 2.3.0

texts:
I want to change the white background color to any color in magento2.3.0.

The screenshot is below.

https://prnt.sc/lyuj14


texts: Magento2 - Searching and filtering products in admin panel, horrifically poor performance. Does this not get Indexed?

texts:
In the admin panel product tab, is their anyway to increase the performance of searching and filtering?  I have a huge number of products, and it takes at least 45 seconds minimum to get any response.

Does that even get indexed? I have ElasticSearch 5 configured, shouldn't that make this at least usable?


texts: Magento links missing index.php and are showing 404 error

texts:
i'm having some problems with my website. when i try to access a different page like a product page, i get a 404 error, but when i add index.php in the link it works. i've tried to update the database table core_config_data for the web/unsecure/base_url and web/secure/base_url so that they include the index.php but then for some reason my theme isn't applied and the whole layout of the website is messed up as no styling is applied. Is there anyway i could include the index.php so that it is included in all url links as without it my pages show 404 errors.

Any help is much appreciated


texts: IF Manage Stock is No, then show always show "in stock"

texts:
I have this code for the Stock status on the product page, so that if stock is less that 1 is shows as out of stock.

 <?php if ($_product->getStockItem()->getQty() < 1): ?>
            <?php echo $this->__('Availability:') ?> <?php echo $this->__('Out of stock') ?>
        <?php else: ?>
            <?php echo $this->__('Availability:') ?> <?php echo $this->__('In stock') ?>
        <?php endif; ?>

I want to add to it so that if stock is < 1 and Manage Stock is yes then, show "out of stock",

So basicly if Manage is no, its always showing in stock.


texts: Magento 2 : How to make product image zoom on mouse over

texts:
I want to zoom product gallery image on mouse over in magento 2.

How to do that.

Thanks.


texts: Quick way to show the full catalog in front-end layered navigation grid

texts:
In the base layout/catalog.xml, there's the 'catalog_category_layered' handle:

<catalog_category_layered translate="label">
    Catalog Category (Anchor)
    <reference name="left">
        <block type="catalog/layer_view" name="catalog.leftnav" after="currency" template="catalog/layer/view.phtml"/>
    </reference>
    <reference name="content">
        <block type="catalog/category_view" name="category.products" template="catalog/category/view.phtml">
            <block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml">

                <block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml">
                    <block type="page/html_pager" name="product_list_toolbar_pager"/>

                </block>
                <action method="addColumnCountLayoutDepend"><layout>empty</layout><count>6</count></action>
                <action method="addColumnCountLayoutDepend"><layout>one_column</layout><count>5</count></action>
                <action method="addColumnCountLayoutDepend"><layout>two_columns_left</layout><count>4</count></action>
                <action method="addColumnCountLayoutDepend"><layout>two_columns_right</layout><count>4</count></action>
                <action method="addColumnCountLayoutDepend"><layout>three_columns</layout><count>3</count></action>
                <action method="setToolbarBlockName"><name>product_list_toolbar</name></action>
            </block>
        </block>
    </reference>
</catalog_category_layered>

which eventually filters the product list by category id. Is there a simple way to avoid filtering by category, and list all the products in the store catalog, i.e, a product collection without any filters (except, optionally, store id)?


texts: Should sales/order/create/data.phtml have output the order_item_extra_info child?

texts:
I think I may have stumbled across a core defect, but not 100% sure.

Exhibit A:

<!-- adminhtml/default/default/layout/sales.xml -->
<block type="adminhtml/sales_order_create_data" template="sales/order/create/data.phtml" name="data">
    ...
    <block type="core/text_list" name="order_item_extra_info"></block>
</block>

Exhibit B:

<!-- adminhtml/default/default/template/sales/order/create/data.phtml -->
No reference to order_item_extra_info to be found

What I'm trying to do in my particular case is to inject a template into this text list in order to inject some javascript that will run after the shipping address loads in the backend order creation routine.

So I've simply added <?php echo $this->getChildHtml('order_item_extra_info') ?> to data.phtml but wanted to make sure this was a core fix and not a core hack.


texts: How to sort associated products in a grouped product

texts:
I have an issue which I'm not able to find a solution here and is how to sort all the associated products of a grouped product automatically for every grouped product in the store?

I have 1850 grouped products with their associates but I want to sort these associated products by price from the cheapest to the most expensive. (Up to down)

Anyone know how to do this?


texts: How to add custom block in admin order create form in magento 2.2.5

texts: I need to add custom block after order comment section in admin order create form using version(magento2.2.5)


texts: how to setup Table Rate Shipping $1 for every 1KG extra

texts: I'm trying to use Table Rate Shipping. My shipping rate are from 0KG to 15KG is $30 and I add $1 for every 1KG but in Table Rate Shipping do I have to add manually. Is there any way to make this dynamic?


texts:
It appears that our website is infected with the Credit Card Hijack malware. We ran scans on magereport.com, webscan.foregenix.com, and quttera.com, and they all say that our /js/prototype/prototype.js file is infected.

Foregenix specifically says the malware definition is MW:JS:GEN2?malware.magento shoplift.002.02. The details mention the line of script:

if((new RegExp('onepage|checkout|onestep|payment|transaction','gi'))
.test(window.location))

Quttera mentions the following threat dump code:

[[var Prototype = {
    Version: '1.7',
    Browser: (function(){
        var ua = navigator.userAgent;
        var isOpera = Object.prototype.toString.call(window.opera) == '[object Opera]';
        return {   IE: !!window.attachEvent %26%26 !isOpera,
           Opera: isOpera,
           WebKit: ua.indexOf('AppleWebKit/') > -1,
           Gecko: ua.indexOf('Gecko') > -1 %26%26 ua.indexOf('KHTML') === -1,
           MobileSafari: /Apple.*Mobile/.test(ua)
        }
    })(),
    BrowserFeatures: {
        XPath: !!document.evaluate,
        SelectorsAPI: !!document.querySelector,
        ElementExtensions: (function() {
            var constructor = window.Element || window.HTMLElement;
            return !!(constructor %26%26 constructor.prototype);
        })(),
       SpecificElementExtensions: (function() {
          if (typeof window.HTMLDivElement !== 'undefined')
               return true;
          var div = document.createElement('div'),
          form = document.createElement('form'),
          isSupported = false;
          if (div['__proto__'] %26%26 (div['__proto__'] !== form['__proto__'])) {
              isSupported = true;
          }
          div = form = null;

We previously had this same malware detection and had our developer go in and remove the malware and any related files. Following his work, the website was showing as clean when scanned with the aforementioned scanners. He performed this last Wednesday, but upon scanning today, it looks like it is all back.

What steps do you suggest I take to remove and protect against this? We are looking at Sucuri or Customer Paradigm as options, yet would like to explore additional options as those two companies come with a steep price tag. Thank you for your help!


texts:
Anybody know a fix for that error? Never saw this one!

  Fatal error: Call to a member function extend() on a non-object in /var/www/..../..../lib/Varien/Simplexml/Config.php on line 600


texts:
I am in the process of implementing google certified shops on our magento CE site in the UK.

I have completed most of the testing but am struggling with the order confirmation module. I have sorted the following code from another stack over flow tutorial (really sorry but I cannot remember which otherwise I would link and give credit)

<?php
    $orderId = $this->getOrderId();
    $order = Mage::getModel('sales/order')->loadByIncrementId($orderId);
    $customer = Mage::getModel('customer/customer')->load($order->getCustomerId());
    $address = $order->getShippingAddress();
    $backorder = false; // some backorder logic
    $download = false; // some download logic
    $shipDate = new Zend_Date(); // some logic to determine ship date
?>

<?php echo $orderId; ?>
{www.ourwebaddress.com}
<?php echo htmlentities($customer->getEmail()); ?>
<GB>
GBP
<?php echo $order->getGrandTotal(); ?>
-<?php echo $order->getDiscountAmount(); ?>
<?php echo $order->getShippingAmount(); ?>
<?php echo $order->getTaxAmount(); ?>
<?php echo $shipDate->toString('yyyy-MM-dd'); ?>
<N>
<N>

<?php foreach ($order->getAllItems() as $item): ?>

<?php echo htmlentities($item->getName()); ?>
<?php echo $item->getBasePrice(); ?>
<?php echo (int)$item->getQtyOrdered(); ?>
US
en

<?php endforeach; ?>

And have placed it on the app/design/frontend/{your}/{theme}/template/checkout/success.phtml
page.

Could anyone provide any advice as to why it is not working?

Thanks in advance


texts:
I have a running store on Magento 2 which has multiple websites that I can access in the front end without any problems, for example:

https://siteone.mymagestore.com
https://sitetwo.mymagestore.com
https://sitethree.mymagestore.com
.
.
.

But when I try to access the admin panel in the same way it redirects me to the main store URL, for example:

https://siteone.mymagestore.com/admin -> Redirects to https://www.mymagestore.com/admin

How can I allow accessing the Magento admin panel on URLs like https://siteone.mymagestore.com/admin as well?

I have tried many aspects to solve the problem but nothing seems to help. Any help on it would be highly appreciated.


texts: Trying to install an extension via Magento Connect Manager: Extension dependencies

texts:
I'm not an expert with Magento, but I'm trying to install an extension via Magento Connect Manager using the key, but when I click on "Install" after few seconds appears the message "Extension dependencies". I think I miss something, but I don't really know what.

Can someone explain to me what to do?


texts: Is there a way to create a login portal to access a specific store (set as a subdomain)?

texts:
I have created subdomains in my Magento main installation, such as:
- companyA.mydomain.com
- companyB.mydomain.com
- companyC.mydomain.com
- ...

Here are my needs:

I would like that employees of companyA have unique access to the webstore companyA.mydomain.com, so I think about a kind of portal access from where they can login. For instance, even if he knows that companyA.mydomain.com exists, another customer can only login to the webstore mydomain.com (I will remove the option "order as a guest" for both webstores company.mydomain.com)
Employees of companyA could also visit mydomain.com but they must not have access to companyB.mydomain.com and companyC.mydomain.com.
The webstores are both pointing at the same categories and products. Only the prices will change.

Could you help about the best method to get this kind of structure?
Is there any Magento extensions I could use?

Thanks for your help.


texts: How to change radion button and checkbox in magento 1.9.2.1 - with images, and the use of :checked or :visited

texts:
Im trying to change the radio buttons, so different <label for=""> display an image. I would also like it to change the image with a new image, when the radio or check-box has been selected or checked.

The hover is working, and the boxes are marked as selected or checked. But I can't get the :checked working on me label.
From the form i'm using i'm not able to put in a class in the Labels, so it has to be the Label id (For="") as ref. for different  labels.

I'm using the standard style.css and a custom.css to override the buttons.

Here is my custom.css code

    label[for=options_2_3]{background-image:url(http://i.imgur.com/lXzJ1eB.png);}

span.label input:active +label[for=options_2_3]{opacity: .9;}
span.label input:checked +label[for=options_2_3]{
    -webkit-filter: none;
       -moz-filter: none;
            filter: none;
}
label{
    cursor:pointer;
    background-size:contain;
    background-repeat:no-repeat;
    display:inline-block;
    width:100px;height:70px;
    -webkit-transition: all 100ms ease-in;
       -moz-transition: all 100ms ease-in;
            transition: all 100ms ease-in;
    -webkit-filter: brightness(1.8) grayscale(1) opacity(.7);
       -moz-filter: brightness(1.8) grayscale(1) opacity(.7);
            filter: brightness(1.8) grayscale(1) opacity(.7);
}
label:hover{
    -webkit-filter: brightness(1.2) grayscale(.5) opacity(.9);
       -moz-filter: brightness(1.2) grayscale(.5) opacity(.9);
            filter: brightness(1.2) grayscale(.5) opacity(.9);
}

/* Extras */
a:visited{color:#888}
a{color:#444;text-decoration:none;}
p{margin-bottom:.3em;}

What Im trying to do exactly this from this Fiddle example:
Fiddle http://jsfiddle.net/BRoesink/875eqmn3/


texts: I added a category named "Home". Can i change the link in the original homepage?

texts:
For example:
The category link is www.mypage.com/index.php/home
and the homepage is www.mypage.com/index.php.

What i want is: When i click on the category button Home. I want to be redirected to the home page.

how can i fix this?

thank you.


texts: Magento 2 getting Error override resource model

texts:
I have facing Below error when I override resource model

Fatal error: Call to undefined method Magento\ConfigurableProduct\Model\ResourceModel\Product\Type\Configurable\Interceptor::getAttributeId() in /home/XXXXXX/Extendfiles/Plugin/Model/ResourceModel/Product/Type/Configurable.php on line 262

i have us this code

public function afterGetAttributeOptions($superAttribute, $productId)
{
$scope = $this->getScopeResolver()->getScope();
$select = $this->getConnection()->select()->from(
['super_attribute' => $this->getTable('catalog_product_super_attribute')],
[
'sku' => 'entity.sku',
'product_id' => 'product_entity.entity_id',
'attribute_code' => 'attribute.attribute_code',
'value_index' => 'entity_value.value',
'option_title' => $this->getConnection()->getIfNullSql(
'option_value.value',
'default_option_value.value'
),
'default_title' => 'default_option_value.value',
]
)->joinInner(
['product_entity' => $this->getTable('catalog_product_entity')],
"product_entity.{$this->getProductEntityLinkField()} = super_attribute.product_id",
[]
)->joinInner(
['product_link' => $this->getTable('catalog_product_super_link')],
'product_link.parent_id = super_attribute.product_id',
[]
)->joinInner(
['attribute' => $this->getTable('eav_attribute')],
'attribute.attribute_id = super_attribute.attribute_id',
[]
)->joinInner(
['entity' => $this->getTable('catalog_product_entity')],
'entity.entity_id = product_link.product_id',
[]
)->joinInner(
['entity_value' => $superAttribute->getBackendTable()],
implode(
' AND ',
[
'entity_value.attribute_id = super_attribute.attribute_id',
'entity_value.store_id = 0',
"entity_value.{$this->getProductEntityLinkField()} = "
. "entity.{$this->getProductEntityLinkField()}",
]
),
[]
)->joinLeft(
['option_value' => $this->getTable('eav_attribute_option_value')],
implode(
' AND ',
[
'option_value.option_id = entity_value.value',
'option_value.store_id = ' . $scope->getId(),
]
),
[]
)->joinLeft(
['default_option_value' => $this->getTable('eav_attribute_option_value')],
implode(
' AND ',
[
'default_option_value.option_id = entity_value.value',
'default_option_value.store_id = ' . \Magento\Store\Model\Store::DEFAULT_STORE_ID,
]
),
[]
)->where(
'super_attribute.product_id = ?',
$productId
)->where(
'option_value.value != "N/A"',
$productId
)->where(
'attribute.attribute_id = ?',
$superAttribute->getAttributeId()
);

return $this->getConnection()->fetchAll($select);
}
i have just add my code at bottom of this function
->where(
'option_value.value != "N/A"',
$productId
)

Di.xml

<type name="Magento\ConfigurableProduct\Model\ResourceModel\Product\Type\Configurable">
<plugin name="ptgConfigurableProduct" type="Modulename\Extendfiles\Plugin\Model\ResourceModel\Product\Type\Configurable" sortOrder="1" />
</type>

If anyone facing and get solution please  reply me.


texts: Reload Onepage Checkout to specific step

texts:
I have a payment module for Magento that redirects to an external site to collect the payment info, then upon success it redirects back to the Magento one page checkout page.

Right now when it redirects back to the page it is using some javascript to insert the html input for the payment method and calling payment.save() to get to the review step.

What I want to know is there a better way to reload the one page checkout page and have it go directly to a specific step, in this case the review step?

The way it is now seems like its hacked together and there must be a better way.

Thanks!


texts:
Hi I am using magento enterprise. I am working in wishlist page and my url is:

http://myweburl/en/wishlist/index/share/wishlist_id/6/

How can I get wishlist id from URL?

Right now, I am trying to get id like this:

$wishlistId = $this->getRequest()->getParam('wishlist_id');

But its giving me:

  NULL

Why its giving me null instead of giving me 6?


texts: Magento 1.9 custom module 404 error after IP change

texts:
I have created custom module for my application the urls for which were working correctly.

Due to some issue with the server the IP had to be changed after which all the extension URLS have stopped working even the installed ones.

I have tried removing cache folder, setting up website again, even creating the module again as well.

But the frontend urls are still throwing the 404 error.

Please help with the above issue.

Thanks


texts:
I successfully hiden categories without any products from the navigation bar by following this helpful source http://prattski.com/2011/10/06/magento-module-hide-empty-categories/ and made a minor tweak inside Observer.php (as the solution of Prattski doesn't cover anchored categories and for my application I use image selection/presence to keep track of visibility of a product).

Anyways my question is this is slow: how do I optimize it?

=== STATISTICS ===

Page load time without cache without category filter = 3 secs
Page load time without cache with category filter = 9 secs
Page load time with cache with category filter = 6 secs

=== CODE CHANGE ===

public function _removeHiddenCollectionItems($collection)
{
    // Loop through each category or product
    foreach ($collection as $key => $item)
    {
        // If it is a category
        if ($item->getEntityTypeId() == 3) {

            $category = Mage::getModel('catalog/category')->load($item->getId());
            $products = Mage::getResourceModel('catalog/product_collection')
            ->addCategoryFilter($category)
            ->addAttributeToFilter('image', array('neq' => 'no_selection'));

            $prodcount = $products->count();

            /*if ($item->getProductCount() < 1) {
                $collection->removeItemByKey($key);
            }*/

            if ($prodcount < 1){
                $collection->removeItemByKey($key);
            }
        }
    }
}

This code will work for anyone looking to remove the "No product in your selection" issue (only if you are not dealing with 25k+ products)... Hopefully someone out there could perfect it by optimizing the code to work faster!

Thanks


texts:
I would like to apply special template file following an admin product configuration, for example, I have a dropdown product configuration list named layout which have two options: total and normal,
When the user chooses total in catalog_product_view.xml layout I will have a template A,
When the user chooses normal in catalog_product_view.xml layout I will have a template B.


texts: Unable to retrieve a value of custom added column in tier prices?

texts:
I have added a new column 'tier_type' in table catalog_product_entity_tier_price i am able to save and edit it's value but this value is not getting retrieved in both the admin panel and front end.

Files content :

Config.xml

<config>

    <modules>
       <Companyname_Catalog>
     <version>0.1.0</version>
       </Companyname_Catalog>
    </modules>
    <global>
    <models>
        <catalog>
            <rewrite>
                <product_type_price>Companyname_Catalog_Model_Product_Type_Price</product_type_price>
                <product_attribute_backend_tierprice>Companyname_Catalog_Model_Product_Attribute_Backend_Tierprice</product_attribute_backend_tierprice>
            </rewrite>
        </catalog>
        <catalog_resource>
            <rewrite>
                <product_attribute_backend_tierprice>Companyname_Catalog_Model_Resource_Eav_Mysql4_Product_Attribute_Backend_Tierprice</product_attribute_backend_tierprice>
            </rewrite>
        </catalog_resource>
    </models>
    </global>

</config>

In app/code/local/Companyname/Catalog/Model/Resource/Eav/Mysql4/Product/Attribute/Backend/Tierprice.php

<?php

class Companyname_Catalog_Model_Resource_Eav_Mysql4_Product_Attribute_Backend_Tierprice extends Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Attribute_Backend_Tierprice

{

public function loadProductPrices($product, $attribute)
    {
    //add new column name to the sql
    $select = $this->_getReadAdapter()->select()
        ->from($this>getMainTable(), array(
            'website_id', 'all_groups', 'cust_group' => 'customer_group_id',
            'price_qty' => 'qty', 'price' => 'value', 'tier_type',
        ))
        ->where('entity_id=?', $product->getId())
        ->order('qty');
    if ($attribute->isScopeGlobal()) {
        $select->where('website_id=?', 0);
    }
    else {
        if ($storeId = $product->getStoreId()) {
            $select->where('website_id IN (?)', array(0, Mage::app()->getStore($storeId)->getWebsiteId()));
        }
    }
    return $this->_getReadAdapter()->fetchAll($select);
    }
}

?>

Please answer if any one have been through this problem.

Thanks in advance.


texts: How do I create a module that utilizes a custom DB table?

texts:
I am interested in extending the functionality of a site with a few custom modules (e.g. custom registration form - not a newsletter). I know how I would create these tables in MySQL and then reference them in PHP but I would like to keep things cohesive and use the Mage method of pulling and viewing that data correctly with the intended purpose of viewing these registrations in the admin section. I've found one tutorial that goes through the process using the "Module Creator" on Magento's site but I was hoping for something a bit more organic that doesn't involve using his tool.

Reference: http://www.magentocommerce.com/wiki/5_-_modules_and_development/0_-_module_development_in_magento/custom_module_with_custom_database_table

Thank you.


texts: Magento 2: Cannot access admin panel: Front controller reached 100 router match iterations

texts:
I've searched the site for any answers relating to this with Magento2 but cannot find anything which works.

My website works fine on the front end but if I try to access the admin page at /admin the site throws an exception, the exception file contains the error:

Front controller reached 100 router match iterations.

I've not added any custom routes or anything like that.  All I was doing prior to this was adding SSL which seemed to work fine for a while then once I edited a base URL (then changed it back) I've started having these issues.

Hopefully someone can shed some light as I've exhausted nearly all options now bar paying someone to take a look at it.  I've added screenshots of some  core_config_data rows which may be of use.

Also, if I change the web/secure/use_in_adminhtml from 1 to 0.  I get a different error: Too many redirects.  The url seems to keep switching from www. to non-www.

Thanks.


texts: Overriding module-checkout > view > frontend > layout > default.xml

texts:
I am trying to move the minicart from the header into the header panel. To do this, I need to update the default.xml file located here:

vendor/magento/module-checkout/view/frontend/layout/default.xml

I believe this is done by copying this file to my local theme directory, here:

app/design/frontend/myvendor/mytheme/Magento_Checkout/layout/default.xml

However, when making this copy (and no code changes), I am seeing errors related to knockoutjs and the minicart modal no longer renders correctly when the cart is clicked.

That said, changes to this overriding file do correctly render, e.g. renaming the reference container to header.panel does move the minicart icon.

What am I doing wrong?


texts: Magento 2: How can i check if field has data while Viewing the form(Ui component) data in backend

texts:
I created form using ui-component. after filling the data i display the data into backend.
I want to display those field who has data in View action.
EX. i want to remove company label if it's blank/null.
Please Help.


texts: Dashboard chart - show last seven days by default

texts:
Magento admin dashboard chart shows last 24 hours stats by default.

How to show last 7 days by default instead?

Is this possible without overriding core files?


texts: Magento2 apply custom discount fully working with tax calculation

texts: I want to apply custom discount on cart items and my product price is tax included and I have used some references and in all the custom discount applied successfully but  after custom discount apply the tax calculation not working properly so I need custom discount working properly with tax calculation.


texts: Magento2: Change layout of the Customer Registration page to 2columns-left

texts:
I want to change to 2columns-left layout for the customer registration page. By updating customer_account_create. xml not solve my problem

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">


texts:
I want to give customer a discount of $5 on 3, $10 on 6, $15 on 9 and so on product of a particular category.

I tried as describe in this link but no success.

How can I achieve this.


texts: Different titles for a table rate shipping module

texts:
Is there a pretty way to override table rates shipping method title for order confirmation email and order details page (customer account) based on shipping address country?

So far I see cloning an entire shipping method wich allowed countries restriction and using WebShopApps MatrixRate extension as alternatives but I'm not happy with those options.


texts: how to get the count of product review in magento 2

texts:
I want the count of product reviews from collection for login customer.
based on either customer id or product id.


texts: Payment options are not disyplaying at checkout page

texts:
The payment options are not disyplaying at checkout page if I chose a another country then Germany:

But if I chose Germany it looks fine:

I don't know were the problem is, because no error log will be generated and the settings for paypal as example looks like:

but if I chose Italy for example the payments options not showing up :(.


texts: Magento 2, issue with forgotpassword.phtml template override

texts:
In my custom module I have created app/code/myVendor/myModule/view/frontend/layout/customer_account_forgotpassword.xml . With below content I can see title is changing but form gets disappear instead of displaying the content in forgotpassword.phtml

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<head>
    <title>From my module</title>
</head>
<body>
    <referenceContainer name="content">
        <block class="Magento\Customer\Block\Account\Forgotpassword" name="forgotPassword" template="myVendor_myModule::form/forgotpassword.phtml">
            <container name="form.additional.info" as="form_additional_info"/>
        </block>
    </referenceContainer>
</body>
</page>

I have done upgrading, compiling, deploying and emptied the cache.


texts: Magento 2 - Add text before description in product details tab

texts:
I want to add the values of some custom attributes to the contents of the Details tab on the frontend Product page (where the Description is displayed). These values would be placed above the description.

I am not talking about adding a new tab. I want to simply add additional attribute values to an existing tab.

I have added a simple 'echo "TEST"' to THEME/Magento_Catalog/templates/product/view/description.phtml just to try and change the tab contents, but it had no effect. I am pretty new to Magento, so there may be an obvious answer, but I can't seem to figure it out. What am I missing?


texts: How can we move current filter (Not whole layered navigation)?


texts:
I'm trying to change the top links "Compare Products My Account Create an Account Sign In". This a child theme. I've attempted to change both the default.xml and layout.xml in my layout directory. Nothing works.

Shouldn't I be able to do this through admin?

this is 2.0.13 running locally on a mac


texts: Magento : Not Getting Order Email Notification

texts:
https://ramfootballshop.com/

I am not getting order email notification and Customer also not receiving mail when order completed. I tried all the ways. I dont know what should I do.

Simon


texts: Display simple products of group as a grid/list view similar to category

texts:
I need to use grouped products because the products are vehicles and they have lots of sub models.

For example Citroen Berlingo (grouped product) has sub models like:

panel van
crew cab
8 seater

However, I find that the default grouped product page is not suitable for this purpose (the table with a list of names and quantity boxes). What want to do is show the different models in a grid/list looking the same as a category page.

I have not tried anything much yet, can't seem to locate any extensions that do this - this guy comes a little close with his question How to display simple product descriptions on a grouped product page? but I really want to show a grid - I am not a coder but I know how to edit stuff in magento code. So maybe what I want is something in the view.phtml... IF its a grouped product show the simple products as a grid (perhaps using some code from list.phtml) ? -


texts: Invalid webservice adapter specified REST API

texts:
I have configured the rest api in my localhost magento. When I Hit this url, http://localhost/magento/api/rest/products

The error is:

  Invalid webservice adapter specified.


texts: Keep getting backorders for certain products even when turned off

texts:
My client keeps getting over orders but only for certain products on her Magento store. For example she has one scarf in the stock with the qty set to 1. When purchased All of the settings are set to No Backorders so I cannot understand why this would be happening. I was wondering if anyone has come across this problem before and what they have done to solve this issue.

I am editing this post to add more detail to the problem.

There is only one of this product it has been purchased, after which it is purchased again by someone else and both of the orders go through. The settings are set to no backorders. I do not understand why it is not immediatly going out of stock when it is purchased the first time but will when purchased the second time. The quantity was 100% set to 1 and to go out of stock when at 0. This is happening often on mulitple products but not every time.  Very strange.


texts: Magento 2.1.1 Missing tables in Database

texts:
I am working on a fresh install of Magento 2.1 and lately updated to 2.1.1 and I am having problems getting Magento to send emails. Order confirmations emails... Searching online I found that I should look into my cron jobs and everything seems to work as supposed. Then I went to look into the database for the related tables and all "core_email_queue" tables are missing.

What should I do? The Magento installation was done by Nexcess (turnkey hosting). I have heard of Magento database repair tool but found nothing for Magento 2.

Any idea?

Thanks for your help.


texts: Does Magento 2 run it's cron jobs in parallel?

texts:
A simple question: I've got a cron that executes every 5 minutes, and the job itself also runs for some 5 minutes.

Do all the other cron tasks wait for this job to finish? Or does Magento 2 run crons in parallel?


texts: 403 error from external request to magento 1.9 folders

texts:
I have magento connected with with a 3rd API, I receive a webhook notification response from the api but it cannot process any file and generate this 403 Forbidden error regarding some access rights. I've changed the magento folder to read and write access but the issue still the same.

<title>403 Forbidden</title>

Forbidden

You don't have permission to access /magento1.9/app/code/local/Ns/Thorleif/Helper/Data.php
on this server.


texts: SSH “Could not open input file: bin/magento” Magento2

texts:
I'm trying to reindexing my Magento 2
I have done these steps in putty

can anyone tell me what did I do wrong?
I'm new in using SSH that's why

thank you so much.


texts:
Is there an option to reorder a guest order?

For example: a customer returns his order, and wants to change the size of the t-shirt. As long as he has an account, i can use the "reorder button" and just replace the product size, but since alot of users checkout as "guests" there is no "reorder" button, so i have to make a new order and copy paste all of their details.

There must be an easier way, i just haven't find it out.


texts: Prevent Spam registrations with input validation

texts:
I have a Magento2 webshop (2.3.5-p1) which gets tons of spam registrations. I have already installed https://github.com/samsteele/spam-registration-blocker which blocks 99 % of all spam registrations. However if you get hundrets or thousand spambot registration tries per day, there still remains a lot of of bots who made it through.
They seem to be easy to detect as they all put URLs in their name fields.
I checked Magento input validation https://github.com/magento/magento2/blob/2.4/app/code/Magento/Ui/view/base/web/js/lib/validation/rules.js and there are url filters, but nothing I can use in a way like "if the input field contains http or www, reject the registration".
Any idea how to set this up?
No, I do not want to use Google Captcha due to privacy reasons.


texts: What would be best dedicated server for my Magento 1.9.3.x

texts:
I need your EXPERT advise on purchasing a linux debian server -   as DEDICATE SERVER,

i am currently  using the debian server for my magento 1.9.3.x  store  which has about 2000 users daily  visitors on the website...

my current specifications are : 64 GB DDR4 RAM , 500 GB  NVMe  SSD disk ,  Intel® Core™ i7-6700 Quad-Core

i wont to migrate to all the same specification only  procesor will be better:  AMD Ryzen 7 3700X Octa-Core

will there be a any higly noticable speed in my website opening and speed ?  if i change to this better procesor  maybe boost in my mysql ?

please give me your honest advise  this server is 1x more expensiver for me is it worth the money to invest ?  ore should i stay where i am....

thanks  for your time & help  i apriciate it.


texts:
I have created one event listing page, I am trying to when I click any event from event list it will redirect to appropriate event detail page.

I can able to done by using ajax method, but I am looking for magento way to done this.

I have a plan to collect appropriate event details by using event name and date, but I don't know how to pass the value using get or post in magento 2 when click event.

I hope I am clear, still need any additional notes please mention in comment.

Thanks


texts: New account confirmation e-mail not being sent

texts: When user create a new account the confirmation e-mail sent successfully. But the confirmation e-mail not being sent for particular e-mail addresses. Why was that?


texts: Magento2: Catalog PDF generator out of stock products

texts:
We use free extension pdf catalog generator.
  https://snm-portal.com/pdfpublication-templates

  But this extension generated all products also out of stock. Code is
  full open source.

  Any one help how can we change to generate products only in stock?

  Here is extension files


texts: magento 2 online customer data not showing

texts: In my instance when I try to check the now online customers the customerid, email and names columns are not showing. Can anyone help me with this


texts: I have a script from Magento 1 that I ned to convert to Magento 2. The script uses Varien_File_Csv that I can't find in Magento 2, and so can't the Magento 2. Where is this file in Magento 2 found? Or, if it doesn't exist, what would be its substitute in Magento 2?


texts: How to get the correct Final Price for Product on Listing?

texts:
I'm trying to show a discount in my products, so I created a Helper to get the price and the FinalPrice. With those values I suppose to get the discount but I realized the Price and FinalPrice of my products are the same value. Ex:

$originalPrice = $product->getPrice();  //200
$finalPrice = $product->getFinalPrice(); //200
$specialPrice = $product->getSpecialPrice(); //0 or X value when the product has special price config in Products
$RefinalPrice = $product->getPriceModel()->getFinalPrice(1,$product);// Final Price including Catalog Price Rules

am I missing something here? Is there a better way to get those values?


texts: SQL export of products and associated image gallery files

texts:
I need to list all product entity_id, SKU and associated images from the value field of catalog_product_entity_media_gallery.

I need the output to be CSV based, so all images of each product will be listed in their relevant columns as shown below:

entity_id,sku,image1,image2,image3,image4
23321,prod1,/d/d/dsc_dasda.jpg,/d/d/dsc_d56.jpg,/d/d/dsc_d56.jpg,/d/d/dsc_542.jpg
32132,product2,/d/d/dsc_dsss.jpg,/d/d/dsc_d34s.jpg,/d/d/dsc_d432s.jpg,,

Not all products have the same number of associated images and I am not sure what the maximum is within the catalogue so the 4 images in the headers above is just an example.

Can anyone please help? I can't figure out the joins needed in the SQL but I imagine it is pretty simple if you know how.

I have tried the Magento export options and none can give the result I need.

Magento version 1.9.0.1


texts: Is there a way to use a default handle that all the controllers using a particular layout.xml file use that handle?

texts:
I was creating 4-5 controllers, all of which would use the same template-block files

so, was wondering if there was a way to assign same template-block without changing the the handles, i.e without copy pasting the same thing for all the handles..


texts: PayPal Instant Payment Notification Disabled

texts:
I got the following message from paypal saying:

  Please check your server that handles PayPal Instant Payment
  Notification (IPN) messages. Messages sent to the following URL(s) are
  not being received: https://www.MYSITE.com/paypal/ipn/ If you do not
  recognize this URL, you may be using a service provider that is using
  IPN on your behalf. Please contact your service provider with the
  above information. Once you or your service provider fix this problem,
  you or your service provider can resend the failed messages from the
  IPN History page. If this problem continues, PayPal may disable the
  IPN feature for your account. Thank you for your prompt attention to
  this issue.
  Thanks, PayPal

My version of Magento is 1.6.0.0 and I am using Paypal Express checkout. Furthermore, this url is possibly working (as it doesnot take you to 404, rather gives me a blank page).

Secondly, I looked into the code (app\code\core\mage\Paypal\Model\Express.php) and I see the following line: ->setNotifyUrl(Mage::getUrl('paypal/ipn/'))

Hence, it looks like a valid url. The only thing left is to add \index.php\ to it.

So can you please tell me:

Is this a valid url for my version of magento and paypal?
How to be sure if its working? I did sandbox testing and all was working well. The orders were marked as Processing with paypal info received (including Transaction ID) from paypal... I hope it didnt come from PDT (Payment Data Transfer) instead of IPN.

Here is more:
The original email says:

  Once you or your service provider fix this problem, you or your
  service provider can resend the failed messages from the IPN History
  page

However, I just checked on paypal.com and there are no failed IPN messages... all messages were sent successfully.


texts: I want Customization option as specific as mentioned in the link below - Please help

texts:
https://www.romaniabathtubs.com/make-your-own-bathtub/serena.html

Can anyone help me build this customization option in Magento?

I don't know how would I add the custom checkbox that updates live on selecting and changes the product image simultaneously.


texts: Show out of stock simple products swatches in configurable (M2.2.4)

texts:
I want to show out of stock simple products swatches in configurable product (M2.2.4) to show size etc is available but Out of Stock.

I thought M2 did this with "Display Out of Stock Products" but doesn't seem to work.


texts:
When I check the orders were placed on our site in the Magento admin panel, some of the order numbers are missing or we can say there's no sequence in order number.

Example: Magento was at number 100034468 and the next order number that came in was 100034470. The number 100034469 is missing.

So I don't know what happened to that missing order number. I have read some of the posts in Magento community, they are all saying that this can happen If there is session error or the transaction was declined to the order. Because of this, the order number will not be used again.

Unfortunately, there's no payment log under the var folder in order to check about the failed transaction.  I want to know what happened to the missing order number.

I hope that I will get a satisfied answer from you. Looking forward to your comment. Thanks.


texts: Magento2: Payment method is not showing on checkout page

texts:
The payment method is not showing on the checkout page.

console error:

Uncaught Error: Script error for: Magento_Checkout/js/model/place-order
b2aee5ee1e36f296863f6f91b53a4ae9.min.js:16 Uncaught Error: Script error for: Magento_Checkout/js/model/place-order
http://requirejs.org/docs/errors.html#scripterror
    at makeError (b2aee5ee1e36f296863f6f91b53a4ae9.min.js:16)
    at HTMLScriptElement.onScriptError (b2aee5ee1e36f296863f6f91b53a4ae9.min.js:112)

Please help me.


texts:
Hi recently I have create a dropdown attribute,now client need to change the title of attribute I have tried to change title from catalog->manage Attribute->Manage Attribute->Manage Label/options->In Manage Title

But my changed title is not reflecting in front end.

Can you please let me know how I can do this from admin section?


texts: How to create front-end form that is unrelated to contact form

texts: I am interested in creating a submission form that allows users to submit ideas related to new products. It has nothing to do with the sales or order functionality of Magento. I just need it to be a simple form on a CMS page that is logged into the database and made viewable in the admin section. I have come across several tutorials that allow you to extend a basic contact form but that will not work in this instance. Any general guidance would be appreciated.


texts: Magento 2 How to show multiple Or category wise Layered Navigation on home page?

texts:
I want to show multiple Layered Navigation on Home Page.

I want to show multiple Layered Navigation category wise on Home Page.

I refer this Magento 2 How to show Layered Navigation on home page? article.


texts: Magento2 - How to override this file Magento\Bundle\Block\Catalog\Product\View\Type\Bundle\Options.php

texts:
How to override this file in Magento2

Magento\Bundle\Block\Catalog\Product\View\Type\Bundle\Options

This code is in my di.xml

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<preference for="Magento\Bundle\Block\Catalog\Product\View\Type\Bundle\Options" type="Magentoo\Bundle\Block\Catalog\Product\View\Type\Bundle\Option" />
</config>


texts: Hole punching full page cache on magento 2

texts:
I'm working in Magento 2 industry as a developer. I'm in a situation that i need to make a hole punching for a specific block.
The block contains the reviews got from Trustpilot. I use curl to call Trustpilot API. The thing is my review list on product page and the star for each product on category page are cached by full page cache. How can I make it isn't cached?
I read this article about creating a hole punching by using identities https://trellis.co/blog/magento2-fpc-hole-punching/. But my Trustpilot extension didn't use model to store the reviews (Every time I called API directly to fetch new review)
Does anyone have any advice for my situation? Should I keep fetching the reviews directly by using Trustpilot API? Or I should I do it another way?
Thanks


texts: Magento 1.9 stops and doesn't import entire CSV. And don't set stock

texts:
I'm trying to import a huge CSV with simples and configurable products to Magento 1.9.2.3 but it import only first 80 records/products. And without set product qty and is_in_stock columns. CSV runs perfect on Magento 1.8 release.

Some new features I don't know?

csv scope

sku, **_type**, status, **visibility**, qty, **is_in_stock**
001, **configurable**, 1, **4**, 0, **1**

sku, **_type**, status, **visibility**, qty, **is_in_stock**
002, **simple**, 1, **1**, 14, **1**


texts: How do I add customer attributes in Magento 2 CE?

texts:
In Magento 2 CE we have to add new attributes with Coding? It's not provided by default?

I have looked in to http://www.extensions.sashas.org/blog/magento-2-make-customer-attribute.html

I would like to add custom customer attribute called "passport" in Magento 2 CE.

I also like to apply validation of that on both side client & server. Through jQuery regexp we can achieve this. But the main concern is where to add/in which file so it will not affect other things


texts:
I have the below observer event in my REST API .

        Mage::dispatchEvent('salesrule_validator_process', array(
            'rule'    => $rule,
            'item'    => $item,
            'address' => $address,
            'quote'   => $quote,
            'qty'     => $qty,
            'result'  => $result,
        ));

But this event handler is not triggering while  I executing through REST API in our module.

Please let me know how to call this observer in API. what are the configuration to be made in config.xml

Awaiting for your response.


texts: How to show newsletter form in account create page?

texts:
We have removed the default newsletter form and created a custom form for newsletter. I can see that it only display in the home page.

How can I show it on account create page?


texts: Magento 2.2 - Put a Website under maintanence

texts:
I would like to have multiple website in my Magento Server. But I need to put only one website under maintanence not the entire server.

http://devdocs.magento.com/guides/v2.2/install-gde/install/cli/install-cli-subcommands-maint.html

The commands in the above link is turning the entire server to maintanence mode. But, I need to turn only a particular website to Maintanence mode and also I should access the REST API's during the maintanence period.


texts: Magento_Catalog Custom Gallery customization event

texts:
What event do I have to listen for in Javascript to detect that the user has changed the customization in a customizable product?

I am working on a custom gallery for my product page, but i am stumped by how fotorama (the default gallery) is able to change images automatically when there is a change in a customization product, it doesn't seem to auto-re-render the gallery when there is a change in customization.


texts: Magento 1.9.3.4 Symlinks are enabled warning message

texts:
I manage my Magento modules with modman which requires symlinks in Magento to be enabled.

After upgrading to Magento CE 1.9.3.4 I see the following message when I log into admin

  Symlinks are enabled. This may expose security risks. We strongly recommend to disable them.

I accept the risks associated with symlinks being enabled and would like to remove the admin message as it may cause confusion for other admin users.

What is the best way to remove the symlinks enabled warning?


texts:
We are trying to filter out of stock products in the backend product grid.

If you add it to columns, 'in stock' shows while any products out of stock are blank.

This works as is.

If you try to sort (by clicking 'quantity') be either asc/desc you get a 'something went wrong' message then infinite loading icon.

If you try to filter by quantity and choose 'in stock' this works. If you change filter to 'out of stock' no items are shown.

Looking through the list manually there are no out of stock notices, only blank. I am assuming the lack of correct value e.g out of stock is causing the issue.

But I can't figure out why it's blank when set to out of stock, instead of the text.

Running 2.2.7


texts: Magento 1.9 Custom Category Attribute exists in EAV_Attribute but not showing in backend

texts:
I have been trying to add a custom category attribute to our Magento 1.9.4.2 site using this tutorial:

https://www.atwix.com/magento/add-category-attribute/

The module installs and successfully adds the new attribute to the eav_attribute table however I cannot get it to show on the edit categories page.

Ive logged in and out, flushed the cache and reindexed many times now, also truncated all the flat category tables and reindexed again after that but it just wont show up.

The module appears in the core_resource_table so it looks like the module is doing what it should but for some reason its not showing the new attribute for editing.

I used the same tutorial a couple of years ago for one of our other sites and it all seemed to work perfectly. I tried copying the exact entries out of the other sites database into the new one but again this seemed to do nothing.

Is there any differences in the way Magento 1.9.4.2 handles attributes in the eav_attribute table compared to previous Magento versions.

Here are the entries in my eav_attribute table:

entity_type_id: 3
attribute_code: top_description
attribute_model: NULL
backend_model: NULL
backend_type: text
backend_table: NULL
frontend_model: NULL
frontend_input: textarea
frontend_label: Top Description
frontend_class: NULL
source_model:
is_required: 0
is_user_defined: 0
default_value:
is_unique: 0
note:

Can anyone see any problems with those entries or have any idea why its not showing?

Thanks


texts: After magento upgrade from 1.7 to 1.9 Order email custom variables are not showing in order emails

texts:
After magento upgrade from 1.7.0.2 to 1.9.4.5 Order email custom variables are not showing in order emails anymore. Actually /app/code/core/Mage/Sales/Model/Order.php is extended on website and 'public function sendNewOrderEmail()' is overwritten in extended file app/code/local/XXXXX/Sales/Model/Order.php and passed some custom variables to the order email as shown here https://snipboard.io/s7dXet.jpg .
This file was working on old magento version 1.7.0.2.
After upgrade to 1.9.4.5 magento don't call that extended file when anyone order from frontend. I tried to print a log (https://snipboard.io/5r7jGh.jpg) but that is also not working. Seems that file is not called.
But If i send same order email from magento backend order page (https://prnt.sc/ugv1bm) then it works fine i.e print log and pass custom variables to order emails.
Note : I can't see any errors in magento log files.
Please help me .
Thanks in advance.


texts: Orders Not Showing Under Customer's "My Orders" Tab

texts:
Some Customers are able to see their past orders under the "My Orders" Tab and some are not. I was able to narrow it down to just customers who have a custom attribute attached to their account but I am unsure why just they would be able to see their order history.

If you are signed in under customers who cannot see their past orders it does show "recently ordered" in the bottom left corner but will not give them the full total and order, only allow them to check the boxes next to the items to order again.

Have anyone else seen this happen?


texts: Proper way to call a model constant in Magento 1

texts:
I have the class below:

class Company_Module_Model_Somemodel extends Mage_Core_Model_Abstract
{
    const SOME_CONST = 'constant_text';
}

What is the proper and correct way to call the constant in another class?
Like this:

$class = Mage::getModel('company_model/somemodel');
echo $class::SOME_CONST;

Or like this:

echo Company_Module_Model_Somemodel::SOME_CONST;

Can you explain why is the one better than other? Thanks!


texts: I have enabled flat categories, and after doing this some of my categories are not showing there related products?

texts: I have enabled flat categories, and after doing this some of my categories are not showing there related products, infact when i click to the specific category it redirects me to the same page (category listing)? Is there anything which i can do for this issue


texts: Are here any Magento 2 boilerplate themes out there ? I am looking for some starter themes which have the basic structuring and extended files in place.


texts:
In the backend under System->Configuration->General->Imprint I would like to change the variable "SWIFT" to "BIC".

Is there a way to do that ?

EDIT: screenshots


texts: Can someone explain on how to integrate a custom payment gateway. I have no clue on what has to be done. The payment gateway is set in tomcat server running in another port. what should i do ?


texts: Can I update order status directly in database

texts:
We have imported a lot of orders to magento store, but almost all of them are 'pending' I need those to be completed, but I don't know which is the best way to do it.

Can I update all orders in database only changing the status id or something like that ?


texts: How to convert all custom option of simple product to configurable product in magento1

texts: I want to create the simple product from custom option which is already assigned to several simple products and there are the bunch of products so is there any code available who create the simple product from custom option?


texts: Call Mage::getModel within jquery script

texts:
Looking for some direction as to how I can call

  Mage::getModel('eav/config')->getAttribute('catalog_product',
  'color')->getId()

from within a jquery script like swatches-list.js. Maybe someone has an easy solution? Thanks for any help.


texts: Invoice Increment ID adjustment for API in Magento 2

texts:
I would like to change the increment_id for invoices. I tried this by running the following query:

ALTER TABLE sequence_invoice_1 AUTO_INCREMENT = 504;

This works for the invoice id but it does not work when working through the rest API because the API uses the entity_id column from sales_order table. For some bookkeeping implementation I need to change the entity_id above 500 through the rest API.

How to accomplish to change the value for the next entity_id?


texts: Mini cart should open automatically and close after few seconds when product is added in Magento 1

texts:
I am working on magento1 project. I want a solution to below mentioned problem.

When we add product to the basket, the mini cart should automatically open up and then close after few seconds(5 seconds).

How to do that?

please help me.


texts: Reindex from bash: The encoded file ... is not permissioned for this server

texts:
From a bash script I run reindex:

php -f shell/indexer.php reindexall;

and get this error The encoded file ... is not permissioned for this server. Reindexing from web interface works fine.

Looks like the file is protected with ioncube.

Anyway I can still reindex from bash?


texts:
Is it possible to create listing-grid without use of Database table? I want to create/get data into my model/collection manually.

How to start this in "proper" way?


texts: Magento2 throws 500 internal server error

texts:
I installed Magento2.2. After installing when I visit the site, it shows

  500 Internal Server Error

The same for admin section as well.

I removed my .htaccess from root folder and tried. This time around front end loads without css and js, but admin section shows

  404 Not Found

Can someone help?

I referred below but no luck.

Css and admin panel not working in Magento 2 Community Edition

My Apache error log says

  [Sun Jan 21 16:40:19.568718 2018] [core:alert] [pid 12172:tid 1100] [client ::1:56158] D:/wamp/www/anto/certification/magento2/.htaccess: Invalid command IfVersion, perhaps misspelled or defined by a module not included in the server configuration,


texts:
I need to know is there any way, i can migrate data from magento 1 to magento 2, I have already did this before, but it was about few months back, now my M1 site has some new data, which i need in M2.

Is there any way, so that i can only get that data which is not present in M2 from M1.


texts: How to show our cost on front-end for Admin accounts?

texts:
Wondering how to show cost on the front end for Admin accounts (when signed in of course). This is so reps viewing the website can see price we sell for as well as our cost. Has anyone done anything like this? Any insight would be appreciated - thanks!

http://ledt8bulb.com/keystone-direct-drive-4-foot-15w-t8-led-tube-4000k.html


texts: How to overwrite a core file for certain form when its used on multiple form?

texts:
Is there anyway for overwrite a core file for certain page ? what i mean is i want to customize below given core file for certain form but it will be applied everywhere wherever its use.

i.e its used on billing, shipping, registration etc. i want to customize its & remove its validation for billing section on checkout. but now validation is removed from all these forms.

app\design\frontend\base\default\template\customer\widget\name.phtml


texts: Offering a free gift with purchase of a particular product type like (Buy X products Get Y Free)

texts:
We need to the ability to provide customers who purchase a particular product type (attribute type) a free type of gift with that product.

The products offered as a free gift are associate products of a configurable product. They need to be linked so that when this free gift is selected, it deducts from this SKU's quantity in inventory.

There are about 100 of these types of products that will be offered as a free gift - so ideally presenting the options in a dropdown menu would be preferred.

We've checked out about 10 'free gift extensions' now for Magento (and can't find any more) and none of them can do what we want or are wrote appallingly. They mostly auto add products at cart based on a rule like total amount. They're all limited in functionality and offer mininal to no flexibility.

I'm unable to add this as a configurable option due to the setup.

I can create them as a custom option but then they do not link up with the actual product SKU's and deduct from quantity in inventory.

Can anyone advise of an extension that can do this or the best way to implement this ability? It's looking more and more likely that we'll have to write our own extension to do this but find it hard to believe there would not be something out there that does this already.


texts: I have multistore website in which whenever physical quantity changes its effect salable quantity and salable quantity show five time more than physical quantity


texts: Can we use virtualType in programmatically in layererd navigation filter?

texts:
Just wanted to know, how can we use virtualType programmatically in magento 2 custom script file ?

Actually I am building api for layered navigation and I am getting following error.

Fatal error: Uncaught Error: Cannot instantiate interface Magento\Catalog\Model\Layer\FilterableAttributeListInterface in /var/www/html/eoutlet/public_html/lib/internal/Magento/Framework/ObjectManager/Factory/AbstractFactory.php:111 Stack trace: #0 /var/www/html/eoutlet/public_html/lib/internal/Magento/Framework/ObjectManager/Factory/Compiled.php(108): Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject('Magento\\Catalog...', Array) #1 /var/www/html/eoutlet/public_html/lib/internal/Magento/Framework/ObjectManager/Factory/Compiled.php(150): Magento\Framework\ObjectManager\Factory\Compiled->create('Magento\\Catalog...') #2 /var/www/html/eoutlet/public_html/lib/internal/Magento/Framework/ObjectManager/Factory/Compiled.php(79): Magento\Framework\ObjectManager\Factory\Compiled->get('Magento\\Catalog...') #3 /var/www/html/eoutlet/public_html/lib/internal/Magento/Framework/ObjectManager/ObjectManager.php(70): Magento\Framework\ObjectManager\Factory\Compiled->create('Amasty\\Shopby\\M...') #4 /var/www/html/eoutl in /var/www/html/eoutlet/public_html/lib/internal/Magento/Framework/ObjectManager/Factory/AbstractFactory.php on line 111

FYI - I am using amasty shopby extension and found that, it is using virtualType in di.xml file.

<virtualType name="categoryFilterList" type="Amasty\Shopby\Model\Layer\FilterList">
 <arguments>
        <argument name="filters" xsi:type="array">
            <item name="attribute" xsi:type="string">Amasty\Shopby\Model\Layer\Filter\Attribute</item>
            <item name="price" xsi:type="string">Amasty\Shopby\Model\Layer\Filter\Price</item>
            <item name="decimal" xsi:type="string">Amasty\Shopby\Model\Layer\Filter\Decimal</item>
            <item name="category" xsi:type="string">Amasty\Shopby\Model\Layer\Filter\Category</item>
        </argument>
        <argument name="place" xsi:type="string">sidebar</argument>
    </arguments>
</virtualType>

I am implementing following code to get the result, but getting above error

$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$filterableAttributes = $objectManager->create('\Magento\Catalog\Model\Layer\Category\FilterableAttributeList'::class);
$filterTypes = [
            'attribute'=>\Amasty\Shopby\Model\Layer\Filter\Attribute::class,
            'category'=>\Amasty\Shopby\Model\Layer\Filter\Category::class,
            'decimal'=>\Amasty\Shopby\Model\Layer\Filter\Decimal::class,
            'price'=>\Amasty\Shopby\Model\Layer\Filter\Price::class
        ];

$layerResolver = $objectManager->get('\Amasty\Shopby\Model\Resolver'::class);
$filterList = $objectManager->get(
'\Amasty\Shopby\Model\Layer\FilterList'::class,
    [
       'filterableAttributes' => $filterableAttributes,
       'filters'=>$filterTypes
    ]
);

Any help would be appriciated. Thanks in advance.


texts: Magento 2 : Error 'The Option Type to Get Group Instance is Incorrect'

texts:
I have created a custom input type for customizable options. Despite it rendering a fairly complex UI element for the user to interact with, all it actually submits when you click "add to cart" is a hidden text field that it populates via JS.

It appears in the "add to cart" form as expected, but when I try to add the product to the cart I receive following error:

"The option type to get group instance is incorrect"

I've searched Google and the only references to this error I can find are in the Magento 2 source code.

I believe it's something to do with Option.php or Options.php, but can anyone point me in the right direction?


texts:
I want to give certain admin user to ability to login using a direct link. The main admin will send a link in a email to sub admin users. The sub users will click on the link and they will directly login (without entering the Username and Password) on some page.

Is there a way to do this in Magento 2 or do i need something to do this feature?


texts: How can I have a Configurable attribute populated from a source

texts:
I have a product attribute, which is populated by a source model which is extended from AbstractSource. Because of this the attribute is not set with 'is_user_defined' = 1 and therefore I am not able to use this attribute as a configurable option.

So my question is... How can I create an attribute that can be used as a configurable option whilst being populated from the database?

Thanks.


texts:
I have gone through this tutorial on youtube
Quick start to magento customization - part 1
As I don't have knowledge on php, I understood only the configuration layout part.
The video says that if we type localhost/magento/requestflowtest, we will see a page saying Helloworld. but I am getting error "404 not found".
What I have done by going through the tutorial is as follows:

In app/code/local  --> created a folder name "Practice" (case sensitive)
In app/code/local/Practice --> created a new folder name "ControllerTest"
In app/code/local/Practice/ControllerTest/ --> created a new folder name "etc"
In app/code/local/Practice/ControllerTest/etc  --> created a xml file "config.xml" . The content in it is as follows:

config.xml:
<?xml version="1.0."?>
<config>
    <modules>
        <Practice_ControllerTest>
            <version>0.0.1</version>
        </Practice_ControllerTest>
    </modules>
    <frontend>
        <routers>
            <test_controller>
                <use>standard</use>
                <args>
                    <module>Practice_ControllerTest</module>
                    <frontName>requestflowtest</frontName>
                </args>
            </test_controller>
        </routers>
    </frontend>
</config>

Then in app/etc/modules --> Created a new xml file with name "Practice_ControllerTest.xml" and added the following content:

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

Then in app/code/local/Practice/ControllerTest --> added a new folder "controllers"
In app/code/local/Practice/ControllerTest/controllers --> added a new php file with name "IndexController.php" and added the following content to it:

IndexController.php
<?php
class Practice_ControllerTest_IndexController
extends Mage_Core_Controller_Front_Action
{
    /*
     * General report action
     */
    public function indexAction(){
        echo "
Hello World!!
";
    }
}

What could I have been doing wrong here?


texts: Difference when to declare an object via Magento\Framework\ObjectManagerInterface and inject via the constructor

texts:
I'm initializing an object \Magento\Framework\Registry via a function create() of Magento\Framework\ObjectManagerInterface in Controller. After, I try to register a value to Registry Class.

$registry = $this->_objectManager->create('Magento\Framework\Registry');
$registry->register('test', '123456');

I try to get this value in Block. However, it return null.

$registry->registry('test'); //return null

If I inject \Magento\Framework\Registry to the constructor, it working normally.

public function __construct(
    Magento\Framework\App\Action\Context $context,
    \Magento\Framework\Registry $registry
) {
    parent::__construct($context);
    $this->registry = $registry;
}

  My question: Why this two ways different initialization?

Any help is appreciated.


texts:
I have created a custom module for magento. I was doing one by one. Created config file and done few changes and it was working. After running the store i have made few changes to config.xml file inside etc folder like layout insertion and through the layout i have included one js file with addJs..But its not getting included in my front end.
I have tried clearing cache also.Nothing happened.

<?xml version="1.0"?>

<config>
    <modules>
        <Custom_OTP>
            <version>1.0</version>
        </Custom_OTP>
    </modules>
    <global>
        <helpers>
            <customotp>
                <class>Custom_OTP_Helper</class>
            </customotp>
        </helpers>
        <blocks>
          <payment>
            <rewrite>
              <cashondelivery>Custom_OTP_Block_Payment_Form_Cashondelivery</cashondelivery>
            </rewrite>
          </payment>
        </blocks>
    </global>
    <frontend>
        <routers>
            <customotp>
                <use>standard</use>
                <args>
                    <module>Custom_OTP</module>
                    <frontName>customotp</frontName>
                </args>
            </customotp>
        </routers>
        <layout>
            <updates>
                <customotp>
                    <file>customotp.xml</file>
                </customotp>
            </updates>
        </layout>
    </frontend>
</config>

customotp.xml

<default>
    <reference name="head">
        <action method="addJs"><script>customotp.js</script></action>
    </reference>
</default>


texts: Update qty in shopping cart bounces/redirects to main site

texts:
Within the shopping cart, when I update qty and click update cart. This results in a bounce/redirection to main page/landing site. This also occurs when I calculate shipping rate within the shopping cart one page checkout.

My Shopping cart setting:

System > Configuration > Checkout > Shopping Cart > After Adding a Product Redirect to Shopping Cart = No.

If set to = yes, that would take the customer to shopping cart every time they add a product to the shopping cart. I don't want that. Am I missing out something?


texts:
im have no idea if im doing it right or not, and also i cant it put it work, im tyring to make a ajax call to get some information from a API and then present in the html, but first i need to check of X shipping method is selected, and if it is, than get the postcode data to insert in the API, how can i get this information?

Here is my code:
js:

define([
    'jquery',
    'uiComponent',
], function ($,Component) {
    'use strict';

    return Component.extend({
        defaults: {
            template: 'CloudJam_Vkios/checkout/shipping/pickup-points'
        },
        getKiosPoints: function () {
            var postalCode = "4433-137"
              $.ajax
                ({
                    type: "POST",
                    beforeSend: function (xhr) {
                    xhr.setRequestHeader('Authorization', 'Bearer eyJhbGciOiJodHRwOi8vd3d3LnczLm9yZy8yMDAxLzA0L3h');
                    },
                    url: '...API/GetServiceDeliveryPoints',
                    dataType: 'json',
                    contentType: 'application/json',

                    async: true,
                    //json object to sent to the authentication url
                    data: JSON.stringify({
                     "PostalCodeOrLocality": postalCode,
                     "Latitude": 0,
                     "Longitude": 0,
                     "SortOrder": 0
                    }),
                    success: function (data) {
                        if(data.statusCode == 200){

                            var locations = data.response;

                            return locations;
                        }
                    },
                    error: function( jqXhr, textStatus, errorThrown ){
                        return errorThrown;
                    }
                 })

        }
    });
});

HTML:

Localizações


texts: Magento 1.9 Category wise shipping charges

texts:
For my Magento 1.9 website I want to set a feature to add specific Flat rate postage and packaging for categories.

I have check in the Magento backend  but there is flat table rates setting available only for weight, price, no. of items against destinations.

I have also googled and check in Magento marketplace but I didn’t find any solution/extension to set category wise shipping rate.

Can anyone please let me know how to achieve this functionality. Thanks in advance!


texts: How to add products in Magento 2 using Magento 2 REST API?

texts:
How to add products in Magento 2 using Magento 2 REST API.
I am using http://127.0.0.1/mag/rest/default/V1/products this url in postman but it gives me this error:
{
        "message": "The consumer isn't authorized to access %resources.",
        "parameters": {
            "resources": "Magento_Catalog::products"
        },
        "trace": "#0 /var/www/html/reg-dealers/vendor/magento/module-webapi/Controller/Rest/RequestValidator.php(68): Magento\\Webapi\\Controller\\Rest\\RequestValidator->checkPermissions()\n#1 /var/www/html/reg-dealers/vendor/magento/module-webapi/Controller/Rest/InputParamsResolver.php(79): Magento\\Webapi\\Controller\\Rest\\RequestValidator->validate()\n#2 /var/www/html/reg-dealers/vendor/magento/framework/Interception/Interceptor.php(58): Magento\\Webapi\\Controller\\Rest\\InputParamsResolver->resolve()\n#3 /var/www/html/reg-dealers/vendor/magento/framework/Interception/Interceptor.php(138): Magento\\Webapi\\Controller\\Rest\\InputParamsResolver\\Interceptor->___callParent('resolve', Array)\n#4 /var/www/html/reg-dealers/vendor/magento/framework/Interception/Interceptor.php(153): Magento\\Webapi\\Controller\\Rest\\InputParamsResolver\\Interceptor->Magento\\Framework\\Interception\\{closure}()\n#5 /var/www/html/reg-dealers/generated/code/Magento/Webapi/Controller/Rest/InputParamsResolver/Interceptor.php(26): Magento\\Webapi\\Controller\\Rest\\InputParamsResolver\\Interceptor->___callPlugins('resolve', Array, Array)\n#6 /var/www/html/reg-dealers/vendor/magento/module-webapi/Controller/Rest/SynchronousRequestProcessor.php(85): Magento\\Webapi\\Controller\\Rest\\InputParamsResolver\\Interceptor->resolve()\n#7 /var/www/html/reg-dealers/vendor/magento/module-webapi/Controller/Rest.php(188): Magento\\Webapi\\Controller\\Rest\\SynchronousRequestProcessor->process(Object(Magento\\Framework\\Webapi\\Rest\\Request\\Proxy))\n#8 /var/www/html/reg-dealers/vendor/magento/framework/Interception/Interceptor.php(58): Magento\\Webapi\\Controller\\Rest->dispatch(Object(Magento\\Framework\\App\\Request\\Http))\n#9 /var/www/html/reg-dealers/vendor/magento/framework/Interception/Interceptor.php(138): Magento\\Webapi\\Controller\\Rest\\Interceptor->___callParent('dispatch', Array)\n#10 /var/www/html/reg-dealers/vendor/magento/framework/Interception/Interceptor.php(153): Magento\\Webapi\\Controller\\Rest\\Interceptor->Magento\\Framework\\Interception\\{closure}(Object(Magento\\Framework\\App\\Request\\Http))\n#11 /var/www/html/reg-dealers/generated/code/Magento/Webapi/Controller/Rest/Interceptor.php(26): Magento\\Webapi\\Controller\\Rest\\Interceptor->___callPlugins('dispatch', Array, Array)\n#12 /var/www/html/reg-dealers/vendor/magento/framework/App/Http.php(116): Magento\\Webapi\\Controller\\Rest\\Interceptor->dispatch(Object(Magento\\Framework\\App\\Request\\Http))\n#13 /var/www/html/reg-dealers/vendor/magento/framework/App/Bootstrap.php(263): Magento\\Framework\\App\\Http->launch()\n#14 /var/www/html/reg-dealers/index.php(42): Magento\\Framework\\App\\Bootstrap->run(Object(Magento\\Framework\\App\\Http\\Interceptor))\n#15 {main}"
    }

So how will i add product using rest api as any user.


texts: Cannot add products in admin panel. "Permission denied" exception error message

texts:
I've recently setup and installed Magento 2, but am having issues adding products to the site. when I click to add a product I get the following exception error:

  Exception #0 (RuntimeException): Can't create directory
  /var/www/html/gdprmk.co.uk/generated/code/Magento/Catalog/Model/Product/Attribute/Backend/Tierprice/.
  Class
  Magento\Catalog\Model\Product\Attribute\Backend\Tierprice\Interceptor
  generation error: The requested class did not generate properly,
  because the 'generated' directory permission is read-only. If ---
  after running the 'bin/magento setup:di:compile' CLI command when the
  'generated' directory permission is set to write --- the requested
  class did not generate properly, then you must add the generated class
  object to the signature of the related construct method, only.

I tried to manually create the Tierprice folder with 755 permissions but then I get the following error message:

  Exception #0 (RuntimeException): The specified
  "/var/www/html/gdprmk.co.uk/generated/code/Magento/Catalog/Model/Product/Attribute/Backend/Tierprice/Interceptor.php.9261"
  file couldn't be written.
  Warning!file_put_contents(/var/www/html/gdprmk.co.uk/generated/code/Magento/Catalog/Model/Product/Attribute/Backend/Tierprice/Interceptor.php.9261):
  failed to open stream: Permission denied Class
  Magento\Catalog\Model\Product\Attribute\Backend\Tierprice\Interceptor
  generation error: The requested class did not generate properly,
  because the 'generated' directory permission is read-only. If ---
  after running the 'bin/magento setup:di:compile' CLI command when the
  'generated' directory permission is set to write --- the requested
  class did not generate

The folder had 755 permissions if that helps! Does anyone know how to solve this issue?


texts: How to create varien object in magento 2?

texts:
In magento 1 we can create varien object like this

$collection = new Varien_Data_Collection();
$varienObject = new Varien_Object();
$varienObject->setData($data);
$varienObject->setItem($item);
$collection->addItem($varienObject);

How to create object in magento 2?


texts: Why are custom error messages not used for Mage_Core_Exception

texts:
Referring to the example code below, in the case of Mage_Core_Exception why is the error message from the exception being used directly $e->getMessage() rather than a custom message like  $result['error_msg'] = $this->__('There was an error processing ...')

Doesn't this represent a security risk where the error message from the exception might be something like "unknown table user_password in the database" and this gets sent to the frontend via AJAX or other means?

Path: app/code/core/Mage/Authorizenet/controllers/Directpost/PaymentController.php

public function responseAction()
{
    $data = $this->getRequest()->getPost();
    /* @var $paymentMethod Mage_Authorizenet_Model_DirectPost */
    $paymentMethod = Mage::getModel('authorizenet/directpost');

    $result = array();
    if (!empty($data['x_invoice_num'])) {
        $result['x_invoice_num'] = $data['x_invoice_num'];
    }

    try {
        if (!empty($data['store_id'])) {
            $paymentMethod->setStore($data['store_id']);
        }
        $paymentMethod->process($data);
        $result['success'] = 1;
    }
    catch (Mage_Core_Exception $e) {
        Mage::logException($e);
        $result['success'] = 0;
        $result['error_msg'] = $e->getMessage();
    }
    catch (Exception $e) {
        Mage::logException($e);
        $result['success'] = 0;
        $result['error_msg'] = $this->__('There was an error processing your order. Please contact us or try again later.');
    }

    if (!empty($data['controller_action_name'])) {
        if (!empty($data['key'])) {
            $result['key'] = $data['key'];
        }
        $result['controller_action_name'] = $data['controller_action_name'];
        $result['is_secure'] = isset($data['is_secure']) ? $data['is_secure'] : false;
        $params['redirect'] = Mage::helper('authorizenet')->getRedirectIframeUrl($result);
    }
    $block = $this->_getIframeBlock()->setParams($params);
    $this->getResponse()->setBody($block->toHtml());
}


texts: How to used brands attribute set on top reating product on show home page? used to brands attribute set and refelect all top product show on home page .


texts: Import/Export cannot be used with directory

texts:
We recently upgraded our website to Magento 2.4, but we have run into an issue with trying to import products using the import tool. When we upload a csv that has errors in it, we want to download the error report to see what those issues are. However, when we try to click on the download button the following error appears in the exception log.
[2020-10-01 14:44:43] main.CRITICAL: Path "/var/www/production/var/importexport//0ioMiFS6xCv06A0XOyQQSxGMKhKTAMcr.csv" cannot be used with directory "/var/www/production/pub/media/" {"exception":"[object] (Magento\\Framework\\Exception\\ValidatorException(code: 0): Path \"/var/www/production/var/importexport//0ioMiFS6xCv06A0XOyQQSxGMKhKTAMcr.csv\" cannot be used with directory \"/var/www/production/pub/media/\" at /var/www/production/vendor/magento/framework/Filesystem/Directory/PathValidator.php:63)"} []


texts: M2 Composer Update Abandoned Projects // " Package XX is abandoned, you should avoid using it"

texts:
So when running composer update we are seeing more and more of "abandoned" projects. However we did not manually add this code in composer, it is often a dependency of some other program.
Question:

How can we find out which extension this package depends on?
Would we be able to update to the suggested packages for example container-interop/container-interop to psr/container manually or is this too risky?

    Package container-interop/container-interop is abandoned, you should avoid using it. Use psr/container instead.
    Package facebook/webdriver is abandoned, you should avoid using it. Use php-webdriver/webdriver instead.
    Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested.
    Package phpunit/phpunit-mock-objects is abandoned, you should avoid using it. No replacement was suggested.
    Package sebastian/finder-facade is abandoned, you should avoid using it. No replacement was suggested.
    Package setasign/fpdi-fpdf is abandoned, you should avoid using it. No replacement was suggested.


texts: Magento 1 - How can I use customer data in a Magento CMS page?

texts:
We have a link in our footer that goes to a page with an embedded Formstack form. I understand how to pre-populate the form by editing the URL, but I'm unsure how to get the respective fields from Magento.

If the user is logged in to Magento, I would like to use their First Name, Last Name, and email address to pre-populate the respective fields in the formstack form.

In the end I need something like this

?firstname=John&lastname=Doe&email=jd@example.com

with the actual customer data. How can I retrieve this data within a CMS page?


texts:
What are the best events to observe? When

A cart is created
Updates a cart
A cart is deleted


texts:
I found an extension for Magento from roshanlal here:
http://www.magentocommerce.com/boards/viewthr...%20erection%20problems[/url/viewthread/28679/P135/

Download Link:
http://www.magentocommerce.com/forum/?ACT=25&fid=85&aid=35543_FhuQMJcvHa6Ep3jVugtE&board_id=1

This is what I would exactly what I need, but I tried installing it on Magento 1.7.0.2 and I'm getting the following errors:

a:5:{i:0;s:125:"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'db1183792-demo.enterprise_customer_sales_flat_order' doesn't exist";i:1;s:2431:"#0 /is/htdocs/XYZ/www/demo/lib/Varien/Db/Statement/Pdo/Mysql.php(110): Zend_Db_Statement_Pdo->_execute(Array)
#1 /is/htdocs/XYZ/www/demo/lib/Zend/Db/Statement.php(300): Varien_Db_Statement_Pdo_Mysql->_execute(Array)
#2 /is/htdocs/XYZ/www/demo/lib/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Statement->execute(Array)
#3 /is/htdocs/XYZ/www/demo/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT customer...', Array)
#4 /is/htdocs/XYZ/www/demo/lib/Varien/Db/Adapter/Pdo/Mysql.php(419): Zend_Db_Adapter_Pdo_Abstract->query('SELECT customer...', Array)
#5 /is/htdocs/XYZ/www/demo/lib/Zend/Db/Adapter/Abstract.php(825): Varien_Db_Adapter_Pdo_Mysql->query('SELECT customer...', Array)
#6 /is/htdocs/XYZ/www/demo/app/code/local/Rsoft/Ordercsv/Model/Export/Abstract.php(174): Zend_Db_Adapter_Abstract->fetchOne('SELECT customer...')
#7 /is/htdocs/XYZ/www/demo/app/code/local/Rsoft/Ordercsv/Model/Export/Xml.php(72): Rsoft_Ordercsv_Model_Export_Abstract->getCivilId(Object(Magestore_Simisalestrackingapi_Model_Bestsellers_Order))
#8 /is/htdocs/XYZ/www/demo/app/code/local/Rsoft/Ordercsv/Model/Export/Xml.php(17): Rsoft_Ordercsv_Model_Export_Xml->getCommonOrderValues(Object(Magestore_Simisalestrackingapi_Model_Bestsellers_Order))
#9 /is/htdocs/XYZ/www/demo/app/code/local/Rsoft/Ordercsv/controllers/Export/OrderController.php(21): Rsoft_Ordercsv_Model_Export_Xml->exportOrders(Array)
#10 /is/htdocs/XYZ/www/demo/app/code/core/Mage/Core/Controller/Varien/Action.php(419): Rsoft_Ordercsv_Export_OrderController->xmlexportAction()
#11 /is/htdocs/XYZ/www/demo/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('xmlexport')
#12 /is/htdocs/XYZ/www/demo/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#13 /is/htdocs/XYZ/www/demo/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#14 /is/htdocs/XYZ/www/demo/app/Mage.php(683): Mage_Core_Model_App->run(Array)
#15 /is/htdocs/XYZ/www/demo/index.php(87): Mage::run('', 'store')
#16 {main}";s:3:"url";s:43:"/index.php/ordercsv/export_order/xmlexport/";s:11:"script_name";s:10:"/index.php";s:4:"skin";s:5:"admin";}

Would be great if someone could help me on this as I really need this extension working as this is exactly the way I would like an order xml export to work.
Thanks.


texts: Don't ask why but my client doesn't want all order emails being send. Is there an easy way to stop this? He wants to send these mails himself. So all automatic outgoing emails (order) needs to be stopped. When there is a new order don't send any email and also on the other order mails after that (status/updates etc).


texts: How to get the custom attribute of products from the cart?

texts:
There is an attribute in the product AllowSameDayDelivery how can I get it out of the product?

I got the products ids from the cart, But how do I get the attribute now?

<?php

namespace Ronis\SameDayDelivery\Observer;

use Magento\Framework\Event\ObserverInterface;
use \Magento\Catalog\Model\ResourceModel\Product\CollectionFactory;

class DayDelivery implements ObserverInterface
{
    protected $resultPageFactory;

    /**
     * @var \Magento\Checkout\Model\Cart
     */
    protected $_cart;
    protected $_productCollectionFactory;

    /**
     * [__construct description]
     * @param \Magento\Framework\App\Action\Context $context [description]
     * @param \Magento\Framework\View\Result\PageFactory $resultPageFactory [description]
     * @param \Magento\Checkout\Model\Cart $cart [description]
     */
    public function __construct(
        \Magento\Framework\App\Action\Context $context,
        \Magento\Framework\View\Result\PageFactory $resultPageFactory,
        \Magento\Checkout\Model\Cart $cart,
        CollectionFactory $productCollectionFactory
    ) {
        $this->resultPageFactory = $resultPageFactory;
        $this->_cart = $cart;
        $this->_productCollectionFactory = $productCollectionFactory;
    }

    public function execute(\Magento\Framework\Event\Observer $observer)
    {
        $writer = new \Zend\Log\Writer\Stream(BP . '/var/log/delivery.log');
        $logger = new \Zend\Log\Logger();
        $logger->addWriter($writer);

        $cartProductIds = $this->_cart->getQuoteProductIds();
        $productCollection = $this->_productCollectionFactory->create();
        $productCollection->addFieldToFilter('entity_id', ['in' => [$cartProductIds]]);
        foreach ($productCollection as $item){
            var_dump ($item->getAllowSameDayDelivery());die;
        }
    }
}

  now it always returns null even though it is in this product.


texts: Magento 2 save all Exception in db using one class

texts:
I want to store all exception log in db using one class, observer or plugin.
Any help would be appreciated


texts: Decoding special characters in cart (custom options message)

texts:
Customers can enter their own custom message that will be added to the product. Everything works fine, except the special characters are encoded in the cart. I can't seem to find a way to fix this (where to put the decode) so any help is very welcome!

The url called to add product to the cart: /checkout/cart/add/product/ + url with parameters

Thanks!
Klemen


texts: I am using magento 2.0.2. while compiling i got the error as attached screenshot. Please help me to fix it.


texts: fotorama breakpoints not working for nav

texts:
I have the breakpoint set to use dots for nav on mobile but they are not working. The nav stays as thumbs. Any suggestions?

<var name="breakpoints">
        <var name="mobile">
            <var name="conditions">
                <var name="max-width">767px</var>
            </var>
            <var name="options">
                <var name="options">
                    <var name="navigation">dots</var>
                </var>
            </var>
        </var>
    </var>


texts: Move Newsletter Subscription form before footer Magento 2

texts:
I'm using magento 2, and I'm building a theme with the blank theme parent. What I'm trying to do is to move the subscription form, from the footer, before the footer, so it's not into the footer container. I have tryed several codes like:

<move element="form.subscribe" destination="content" before="page-footer" />
    <move element="form.subscribe" destination="footer" before="content"/>

    <move element="form.subscribe" destination="body" before="footer"/>

into the default_head_blocks.xml

but nothing to do.. any idea?


texts: Test configuration pages with AbstractBackendController: testAclNoAccess fails

texts:
I'm writing an integration test for a configuration section and encountered the following failure from the default test cases:

My\Module\ConfigTest::testAclNoAccess
Failed asserting that 302 is identical to 403

As far as I see, everything works as it should, but Magento sends a redirect response instead of "Forbidden" when access is denied on a config section.

Does it make sense to change the test to expect a 302 status code? I would rather not remove that test case as it already helped me catching a wrong resource identifier.

This is the relevant code:

namespace My\Module;

use Magento\TestFramework\TestCase\AbstractBackendController;

class ConfigTest extends AbstractBackendController
{

    protected function setUp()
    {
        parent::setUp();
        $this->uri = 'backend/admin/system_config/edit';
        $this->resource = 'My_Module::config_my_module';
        $this->getRequest()->setParam('section', 'my_module');
    }

    // [other tests]
}