texts: PayPal Redirect Fails and Cart Is Cleared - Intermittent IE Issue

texts:
We seem to be having an issue similar to this one: Redirect to Paypal emptying shopping cart

However I have been in touch with the poster and discussed the fix (involving the X-UA-Compatible tag) and this doesn't apply to our site.

Essentially, the customer adds items to their basket, goes through the OPC process and then clicks "Place Order". Using SagePay or gift voucher, the order proceeds as expected. Using PayPal however, around 1 time in 100 (estimated) the button greys out for 10 seconds and then the page refreshes, showing an empty basket.

This seems to have started recently (approx 1 month) and is happening intermittently. We managed to reproduce the bug once, and then cleared the cache and the complaints stopped for a few weeks. Clearing the cache regularly seems to mitigate the issue, however this is far from ideal. The bug is intermittent and as far as we can get information from the customers, is only affecting Internet Explorer.

If there is any more info that would be helpful I would be more than happy to supply it. Magento version is 1.7.0.0 and we are using PayPal Website Payments Standard. I'm aware that our version of Magento is slightly outdated and we do have plans to upgrade, however the upgrade is still a way off and we could really do with a fix for this issue now. The website address is http://www.woolwarehouse.co.uk.

Many Thanks.


texts:
So I wanna add a Link with Icon and the text that says "Contact Us" beside "Mina sidor" in the header. So when u click on Contact Us u are directed to a different page with all contact information.

I have been adding this line of code to my Magento_Theme/layout/default.xml file and after that clearing the cache but nothing happens. I've been looking around but I doesn't seem to find where "Mina sidor" and "Varukorg" are made.
Am I looking in the wrong place?
<referenceBlock name="header.links">
    <block class="Magento\Framework\View\Element\Html\Link" name="new.link" after="register-link">
        <arguments>
            <argument name="label" xsi:type="string" translate="false">New Link</argument>
            <argument name="path" xsi:type="string" translate="false">newlink</argument>
        </arguments>
    </block>
</referenceBlock>

How can I add icons in Magento Homepage header?

How to add or remove header.links in magento2?

https://aureatelabs.com/magento-2/how-to-add-custom-link-in-header-links-and-top-links-in-magento-2/

https://community.magento.com/t5/Magento-2-x-Technical-Issues/How-to-add-Header-links-to-category-section/td-p/133946


texts:
I just recently realized that some countries aren't charged tax in my webshop. I found out this was caused by the fact that some tax zones werent created.

Upon finding out, I went to Sales -> TAX -> Mange TAX zones & Rates and started setting up the correct tax rates for each country that we ship to. In this menu, I realized that all countries that are already setup are created 6 times, with the same name and settings. Why could this be?

Also, when creating a new tax rule for a country it doesn't seem to kick through. I have emptied cache and refreshed indexes multiple times, but it doesn't change anything.

Do I need to set additional settings somewhere else?


texts: Telephone Number is required field error message on Magento2 checkout page

texts:
I have developed a Magento 2 site in which i am facing an issue some times not all the times. On checkout page once all process is don i face this issue.

if i check the checkbox of My Billing and shipping address are the same, the telephone number disapear below United Kingdom. Don't know what is the problem.


texts: How do I add stickers or labels to my product image?

texts:
How do I add stickers or labels or watermark to my product image?
Does anyone know any good module for adding stickers to the products?


texts: How can I hide directory listing for hacker

texts:
My site build with Magento 1.9.3.4.
someone sends me a mail with an attached image which is my listed directory. My question is how they fetch this. Did any setting to avoid this type of access.


texts: Magento 2 : How to set secure cookie OR HTTP ONLY FLAG SET

texts:
As per my security checking and testing in Magento 2, I see that secure cookie or HTTP only flag not set on the Magento 2.

For the security reason, we need the cookie to be secure. Can someone please help me on this.


texts: Memcached not being cleared by Magento "Flush Cache Storage"

texts:
I have a site that doesn't seem to be flushing memcached when the cache is flushed via the button "Flush Cache Storage".  I have to manually log into the daemon by telnet and run flush_all to flush the cache

Am I misunderstanding something or is there some issue?  I did check to make sure SELinux wasn't the culprit and it doesn't seem to be

Magento Enterprise 1.12.0.2 and my config is below.

<config>
    <global>
        <cache>
        <backend>memcached</backend>
        <memcached>
            <servers>
                <server>
                    <host><![CDATA[127.0.0.1]]></host>
                    <port><![CDATA[11211]]></port>
                    <persistent><![CDATA[1]]></persistent>
                </server>
            </servers>
            <compression><![CDATA[0]]></compression>
            <cache_dir><![CDATA[]]></cache_dir>
            <hashed_directory_level><![CDATA[]]></hashed_directory_level>
            <hashed_directory_umask><![CDATA[]]></hashed_directory_umask>
            <file_name_prefix><![CDATA[]]></file_name_prefix>
        </memcached>
        </cache>
        <install>
            <date><![CDATA[Tue, 05 Feb 2013 21:48:55 +0000]]></date>
        </install>
        <crypt>
            <key><![CDATA[######################]]></key>
        </crypt>
        <disable_local_modules>false</disable_local_modules>
        <resources>
            <db>
                <table_prefix><![CDATA[]]></table_prefix>
            </db>
            <default_setup>
                <connection>
                    <host><![CDATA[localhost]]></host>
                    <username><![CDATA[root]]></username>
                    <password><![CDATA[]]></password>
                    <dbname><![CDATA[magento]]></dbname>
                    <initStatements><![CDATA[SET NAMES utf8]]></initStatements>
                    <model><![CDATA[mysql4]]></model>
                    <type><![CDATA[pdo_mysql]]></type>
                    <pdoType><![CDATA[]]></pdoType>
                    <active>1</active>
                </connection>
            </default_setup>
        </resources>
        <session_save><![CDATA[files]]></session_save>
    </global>
    <admin>
        <routers>
            <adminhtml>
                <args>
                    <frontName><![CDATA[development]]></frontName>
                </args>
            </adminhtml>
        </routers>
    </admin>
</config>


texts: Ajax Cart showing configurable product image instead of simple product

texts:
I am using ajax cart and minicart shows configurable image instead of simple image.

Already Set Product Thumbnail in

Stores -> Configuration -> Sales -> Checkout -> Shopping Cart -> Configurable Product Image


texts: Is there any way to make send to a friend form in popup box in product view page i have tried with the default template code in "template/sendfriend/send.phtml" by directly copy in to a popup box but its seems to be error can anyone help me to do this


texts: Magento 2: Order Success Page Not Loading for custom payment method

texts:
I am using Webkul Ccavenue extension for Magento 2.1.4. On successful payment, a success response is sent to Magento, after which it should redirect to order success page(checkout/onepage/success), but it redirects to cart page, while the order gets successfully placed.

Any help would be appreciated.


texts: magento change base_url with subdirectories

texts:
I have 2 websites - main www.mainwebsite.com with product presentation
and shop based on magento, url - shop.mainwebsite.com.
now I need to change shops url to www.mainwebsite.com/shop/.
but after changing magento base_url to www.mainwebsite.com/shop/ I always get 404, because it searching site resources into shop directory which is not exists.

So do I need to change something else in magento or look inside apache configs?


texts: Klarna checkout HTTP ERROR 405 in magento 2

texts:
I am using Klarna checkout, and getting this type of error on front-end  HTTP ERROR 405.

I am using klarna/module-kco module (installed module via composer) in magento 2.3.1, added test credential in back-end and enabled Klarna Checkout.

In front-end flow added product in cart and checkout,
showing klarna payment form , so filled that form, when i submit that form
that time giving error "HTTP ERROR 405".

Any help appreciated!

Thanks,


texts: Customize links on top header personal area dropdown menu - Smartwave Porto Theme - Magento 2

texts:
I'm working on a Magento 2.3.5 website with Smartwave Porto theme installed and I need to customize the top header menù that give access to the personal area. I need to customize the links in the dropdown menù displayed once you log-in to the website.
I've already found a similar question here:
Magento2.2.5 change create account link in top right header
But the answer is not right for me since I don't need to create new custom inline links but just add or modify links present in the dropdown menù. Here is a snapshot of the personal area menù with the dropdown in action:

I've tried modifyng the file Magento_customer/layout/default.xml in my porto-child theme but with no success
    <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
  <body>
    <referenceBlock name="header.links">
      <block class="Magento\Customer\Block\Account\Customer" name="customer" template="account/customer.phtml" before="-">
            <arguments>
                <argument name="label" xsi:type="string" translate="true">My orders</argument>
                <argument name="path" xsi:type="string" translate="true">sales/order/history/</argument>
            </arguments>
      </block>
      <block class="Magento\Customer\Block\Account\AuthorizationLink" name="authorization-link-login" template="account/link/authorization.phtml"/>
    </referenceBlock>
    <block class="Magento\Theme\Block\Html\Header" name="header" as="header">
      <arguments>
        <argument name="show_part" xsi:type="string">welcome</argument>
      </arguments>
    </block>
    <move element="header" destination="header.links" before="-"/>
    <move element="register-link" destination="header.links"/>
    <move element="top.links" destination="customer"/>
    <move element="authorization-link" destination="top.links" after="-"/>
  </body>
</page>

Hope to be clear, any help would be appreciated!


texts: Prevent admin from making orders for out of stock Products

texts:
In version 2.2, the admin can create orders at backend for products that are out of stock or disabled. It tells the admin that this product you choose is out of stock but allows him to complete the order. How can i prevent this order from being made if the admin choose an out of stock product in the order or ordered a quantity for a product that doesnt have enough quantity. I hope someone can help me.

In Catalog>Inventory i set to hide products that are out of stock and set backorder to NO. but this only applied at frontend only not at the backend.


texts:
I have a little question regarding bundle products, but I don't know how to achieve this custom scenario...
in a magento 1.9.3.4 Shop which sales juice boxes:
A juice box contains six juices(not more and not less).
The customer can choose between 10 different juices (there will come more) to fill each of the six slots in the juice box.

Is it the best way to add 6 options (juice box slot 1 to 6) to a bundle product and each one contains all different juices?

It feels a bit cumbersome because if there is a new juice I have to add it to each of the six options.

Any suggestions on how to solve this problem with best practices are welcome :-)


texts: Magento 2 :Share Customer Login and Cart Between 2 Stores in Website

texts:
I have two stores in website. The store switching is working fine. But when I login in Store1 and switching to Store2, I need to login again separately in store2.

My stores are using different domain like womenmysite.com and menmysite.com . Both have two separate store views also. In Store -> Configuration I have changed Share Customer Accounts to Global under the store view Default Config.

I don't know how to give cookie domain for my stores. I have given cookie path as '/' for the store views. I also need to share cart between these stores.


texts: Hide Price and Add To Cart button based on product attribute

texts:
I have two types of products (Product Type A (available for sale) and Product Type B (not available for sale)) and I created an attribute for each to differentiate.

I am trying to write a conditional in price.html to exclude the price and add to cart button on the catalog pages.

I have the following code that's working fine on the product page, but it's not working on the catalog page.  Don't think it's picking up product attributes. Any help is much appreciated!

<?php $product_type = $_product->getAttributeText('product_type'); ?>
<?
if ($product_type == "Product Type A") {
    do something;
} else {
    do something else";
}
?>


texts:
I am getting the following error : while running : bin/magento indexer:reindex

Catalog Rule Product indexer process unknown error:
Table status for `catalogrule_rule_cl` is incorrect. Can`t fetch version id.

Also tried this but didn't work out. Can someone explain ?


texts:
We recently setup CDN for the static assets. As an old discussion on the github indicates, advanced JS bundling and CDN don't go together. What is happening is explained below.
require.js is trying to load:
https://sdev.perfectmakeupmirrors.com/version1593534261/frontend/Perfectmakeupmirrors/argento-luxury-custom/en_US/Magento_Catalog/template/product/list/listing.html.js

with an additional .js extension instead of
https://sdev.perfectmakeupmirrors.com/version1593534261/frontend/Perfectmakeupmirrors/argento-luxury-custom/en_US/Magento_Catalog/template/product/list/listing.html

since advanced JS bundling and CDN don't work together yet.
I seek help in creating a symlink so that the correct file ending only with .html is accessed by the browser.


texts:
Some days before my Magento community edition 1.8.1 site is hacked, because we are late to apply the patch. we found certain files were changed those are

index.php [hackers added some code to it].
get.php
js/index.php
js/lib/ccard.js
lib/Varien/Autoload.php

And they also installed module called Magpleasure file system

But after applying the patch, and removing all the stuff what hackers added in our application problem is not solved.

hackers eventually changing 3 files

get.php
js/index.php
js/lib/ccard.js

Is there anything that we are missing?

How to prevent them by attacking our files?

Is patch is working or not? How should I check that?


texts: Remove block using admin Custom Layout Update xml?

texts:
I want to remove a block on specific CMS pages and categories that can be accessed via the admin - rather than trying to figure out handles that will cover all of the pages I want to modify.

I want to remove the sidebar block on the page, however it will only accept the <referenceContainer>... not <referenceBlock name="sidebar" remove="true"/>

Any ideas? I'm sure I have done this before.


texts: How to add a custom button to Magento 2 product page

texts: I want to add a custom button beside the "Add to Cart" button in product page, the button I can add custom link, any help or suggestions would be greatly appreciated!


texts: magento 1.X show cms block depends on language

texts:
In default RWD theme, it uses the following code for showing company footer

<default>
    <reference name="footer">
        <block type="cms/block" name="cms_footer_links" before="footer_links">
            <!--
                The content of this block is taken from the database by its block_id.
                You can manage it in admin CMS -> Static Blocks
            -->
            <action method="setBlockId"><block_id>footer_links_company</block_id></action>
        </block>
        <block type="cms/block" name="cms_footer_links_sm" after="footer_links2">
            <!--
                The content of this block is taken from the database by its block_id.
                You can manage it in admin CMS -> Static Blocks
            -->
            <action method="setBlockId"><block_id>footer_links_sm</block_id></action>
        </block>
    </reference>
</default>

The problem is the block will not change according to different store view, so how can I change it to support multiple languages?


texts: Magento 2 add product price with tax included

texts: How can I add the product price with tax already included?


texts: onepage checkout doesn't works fine when Full Page Cache enable

texts:
When I checkout in Magento 2 from one-page checkout first time order placed successfully but the second time the order goes failure. but when I disable Full Page Cache it working fine.

Without disabling entire FPC, please tell me if there is any way to solve this issue?


texts:
I'm kinda new to front-end magento, and this is probably asked alot, but I can't figure it out.

I'm trying to add a slider to my homepage, just below the header and just before the content starts.

I figured the best way to do this is by edditing local.xml (right?)

<cms_index_index>
  <reference name="root">
    <block type="core/template" name="slider" after="header" template="page/index/slider.phtml" before="-" />
  </reference>
</cms_index_index>

page/index/slider.phtml echo's a test, which unfortunately doesn't show up. Does anyone know what I'm doing wrong? Thanks in advance!


texts: Magento2 - Custom module with tinymce does not show the image source correctly?

texts:
I have added tinymce on my magento2 custom module but the image on front end  doesn't show. On inspect element the source of image is like this

src="{{media url="wysiwyg/10ux0018sa.jpg"}}"

If I use static url it works, but i don't know if that is the best solutions.


texts: 301 redirect some products, categories and cms pages from old domain to new domain

texts:
I have this situation:

  Site1.com (3 store views: en, it and de)
  Site2.com (1 store view)

I need to redirect everything from site1.com (only en store view which is default) to site2.com. The other 2 store views that should remain on site1.com are separated like this:

  Site1.com/it
  Site1.com/de

Any help would be welcomed, thanks!

Is possible using Magento URL Management to redirect links to external site? All I could find was how to redirect inside the same domain name.

I think I found it myself how to do it with .htaccess:

RewriteCond $1 !^it
RewriteCond $1 !^de
RewriteRule (.*) http://www.site2.com/$1 [R=301,L]


texts: how to fix issue sometims load page get error js?

texts:
I have installed magento 2.1.7 version. Now I get error sometime I reload page get error

sometimes get another js error and sometime is good. I have tried deploy but not change. so pls let me how to fix this.

Note: In backend panel I had set merge and Minify JavaScript Files.

Thank advance!


texts: Pass Bearer Token from Postman and fetch it value in Magento 2 model

texts: I am passing Authorization Bearer Token from postman. i want to fetch that token in magento model.i don't know how to do it ? can anybody help me out ?


texts: How to get all parent category using category Id?

texts:
I want all parent category name using category Id

Main Category

Sub Category 1

Sub Category 3
Sub Category 4

Sub Category 2

Sub Category 5
Sub Category 6

Now I have id of this category Sub Category 6 Now i want all parent category name means i want this two name Sub Category 2,Main Category in frontend How to get all parent category name


texts: Currency "EUR" not found - Store is down!

texts:
I get this error every day once or twice.
We Need to clear the Cache via FTP - after this the shop works again.
We have no idea why - we cannot reproduce the error.
Sometimes it´s presented at night - sometimes in the morning or during the day.

Here is a screenshot of the error - i need help - PLS!

http://www.pic-upload.de/view-30115556/image.png.html

Thank you so much


texts: how to append variable in LIKE in SQL Query

texts:
I have a SQL query where I want to append $customerID, how to achieve that?

>    SELECT `e`.*, `at_assigned_campus_manager`.`value` AS
> `assigned_campus_manager`, `at_physical_verify`.`value` AS
> `physical_verify` FROM `customer_entity` AS `e` INNER JOIN
> `customer_entity_varchar` AS `at_assigned_campus_manager` ON
> (`at_assigned_campus_manager`.`entity_id` = `e`.`entity_id`) AND
> (`at_assigned_campus_manager`.`attribute_id` = '183') LEFT JOIN
> `customer_entity_int` AS `at_physical_verify` ON
> (`at_physical_verify`.`entity_id` = `e`.`entity_id`) AND
> (`at_physical_verify`.`attribute_id` = '209') WHERE
> (`e`.`entity_type_id` = '1') AND (at_assigned_campus_manager.value
> **LIKE '"$customerId/%"' )** AND (at_physical_verify.value IS NULL) AND
> (`e`.`group_id` IN(4, 5, 6)) LIMIT ".$page." 50 "
>
>
> getting error Parse error: syntax error, unexpected '$customerId'
> (T_VARIABLE)

Here is the collection  Mage::getModel("customer/customer")->getCollection()
                                                                      ->addAttributeToSelect('firstname, entity_id')
                                                                      ->addFieldToFilter('assigned_campus_manager',array('like' => $customerId . '/%'))
                                                                      ->addAttributeToFilter('physical_verify', array('null' => true),'left')
                                                                      ->addFieldToFilter('group_id', array('in' => array(4,5,6)))
                                                                      ->setPage($page,50)


texts:
Sometimes I receive such Store Debug Information.
URL, Error and Trace are all empty.
Any ideas what is this?

URL:
IP Address: 80.000.00.000
Time: 2016-08-10 22:30:58 GMT
Error:

Trace:


texts: I have Problems when uploaded the image on my product in backend magento 2.3.2

texts:
today when try to upload the image on my product, magento show me this error

firts time magento show me this error becauses, before i edited all my products, and now magento show me this.


texts: Is Magento is right platform for beauty product website?

texts: Today there are many eCommerce platforms are available such as Shopify, BigCommerce, WooCommerce but I want to know about how to Magento is best to compare to other E-Commerce platforms. Last Week I have seen one blog of Top 5 Best eCommerce Platforms for small business - this blog provides great information but I want to know about Magento eCommerce platform, please give me answer about benefit and features of Magento.


texts:
I have an all.phtml page that I listed all products in here.

This code can get all products info but I want to list by attribute (like search)

$_productCollection=$this->getLoadedProductCollection();
$_helper = $this->helper('catalog/output');
$fancybox = MAGE::helper('ThemeOptions')->getThemeOptions('fancybox' );
$grid = MAGE::helper('ThemeOptions')->getThemeOptions('grid' );

How can I do that?


texts: Very long time for Mage_Core_Model_Session_Abstract_Varien::start

texts:
We are using Magento EE 1.14.1.0 and are seeing very long times for  Mage_Core_Model_Session_Abstract_Varien::start method. We tried using Memcached and Redis for session storage both with the same result.

Is this normal? Is this a New Relic problem? Any ideas how to fix it?

Screenshots below:

I will be very grateful for any suggestion.


texts: Custom EAV admin form enabled websites in Magento 2

texts:
I'm dealing with a custom EAV, I build all the admin part (grid and form), but now I would to implement the website abilitation like in products entity, like the following screenshot.

Someone can give me some hint to reproduce this feature?


texts: Magento 2 : How to get Order completed time?

texts:
I am able to get order details by Order ID, but it is giving created_time and updated_time.
Is there anyway to get order complete time?


texts:
I have a static page in which I call a dynamic block:

{{block type="custommodule/search" name="custommodule_search" template="custommodule/search.phtml" }}

In the layout file of my custom module I'm adding two children of my custommodule_search block:

<layout>
<default module="custommodule">
    <reference name="custommodule_search">
        <block type="custommodule/search_bysize" name="search_by_size" template="custommodule/search/by-size.phtml" />
        <block type="custommodule/search_byvehicle" name="search_by_vehicle" template="custommodule/search/by-vehicle.phtml" />
    </reference>
</default>

All I want is to be able to call these two blocks with this:

$this->getChildHtml('search_by_size')

or this:

$this->getChildHtml('search_by_vehicle')

anywhere in the template of the main dynamic block.

The problem is that they are shown only if the reference is not to "custommodule" but to "content", but this way they are showing in the beginning of the "content" block, not where I want....


texts:
How to Create My theme in Magento2 Stable version
Any one have idea ?


texts:
There are some containers in Luma theme, how can I get their names?

I want to move the container that has the search bar below the container that has the main menu. Thanks.


texts: Magento 2 product quantity increasing automatically

texts: I have Magento 2.2.7, the issue is when I update product quantity to zero "0", it automatically increments the quantity after some time. I tried on 3 products and each products increment was different. I checked in logs, none were generated, checked product update time, that too also isn't changing after the automatic increment. Any guesses, how can resolve it?


texts:
I want to add the warehouse location (Custom attribute) as a column in each product in the PDF Invoice. I googled and i found exactly what i was looking for here! I think that the code its pretty outdated as it is from 2011 and maybe magento changed from then. I noticed that those files are now not located in /Model/Order/Pdf/... but in /Sales/Model/Order/Pdf/...
My magento setup is some years old and i made some more changed in the PDF Invoice in the past so maybe that cause the problem.
Anyway when trying to use this code and Print the invoice i receive the following error and i don't really get it. Can you please point me out?

Cannot send headers; headers already sent in /home/xxxxx/public_html/app/code/local/xxxxxx/WarehouseLocationToInvoice/Sales/Model/Order/Pdf/Invoice.php, line 1

Trace:
#0 /home/.../public_html/lib/Zend/Controller/Response/Abstract.php(115): Zend_Controller_Response_Abstract->canSendHeaders(true)
#1 /home/.../public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(1065): Zend_Controller_Response_Abstract->setHeader('Pragma', 'public', true)
#2 /home/.../public_html/app/code/core/Mage/Adminhtml/Controller/Sales/Invoice.php(121): Mage_Core_Controller_Varien_Action->_prepareDownloadResponse('invoice2015-10-...', '%PDF-1.4\n%\xE2\xE3\xCF\xD3\n...', 'application/pdf')
#3 /home/.../public_html/app/code/core/Mage/Adminhtml/controllers/Sales/Order/InvoiceController.php(489): Mage_Adminhtml_Controller_Sales_Invoice->printAction()
#4 /home/.../public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Adminhtml_Sales_Order_InvoiceController->printAction()
#5 /home/.../public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('print')
#6 /home/.../public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#7 /home/.../public_html/app/code/core/Mage/Core/Model/App.php(365): Mage_Core_Controller_Varien_Front->dispatch()
#8 /home/.../public_html/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#9 /home/.../public_html/index.php(83): Mage::run('', 'store')
#10 {main}


texts: add 2 more attribute values to the magento order view page section

texts:
in the magento admin panel, if we go for Orders section

and if we click on one order, we can see the Product name and sku at the bottom.

i want to add 2 more attributes to the order section.

please help me to find solution.

thanks in advance.


texts: magento 2 upgraded issue while runing setup upgrade command Magento_Sales. Original exception message: Warning: Illegal string offsetQ

texts:
Unable to apply data patch

Magento\Sales\Setup\Patch\Data\ConvertSerializedDataToJson for module Magento_Sales. Original exception message: Warning: Illegal string offset 'option_type' in [Site Path]/vendor/magento/module-sales/Setup/SerializedDataConverter.php on line 33

anyone can help to get a solution to this above error while running upgrade command. I have upgraded my Magento from 2.2 to 2.3.X.after upgraded I am facing this issue.


texts: Import Export is not working in magento 1.7

texts:
Trying to export Magento single products but only a blank page is appearing. could not export any products either from System ->Import/Export->Export or from System->Import/Export/Dataflow-profile.

when trying to import just five products from System ->Import/Export->Import and by choosing a file to import when I click on "check data" button, file is just loading but it doesn't respond any thing, neither it generate any error/warning nor Import button is appearing.

I checked log file to see the error I got

  2014-05-08T09:33:05+00:00 ERR (3): Notice: Undefined offset: 58233  in /var/www/vhosts/Outletzon.secureserver.net/httpdocs/testdocs/app/code/core/Mage/ImportExport/Model/Export/Entity/Product.php on line 873

 2014-05-08T09:47:41+00:00 ERR (3): Warning: simplexml_load_string():     </catalog_product_view>  in /var/www/vhosts/Outletzon.secureserver.net/httpdocs/testdocs/app/code/core/Mage/Core/Model/Layout/Update.php on line 444
 2014-05-08T09:47:41+00:00 ERR (3): Warning: simplexml_load_string():                            ^  in /var/www/vhosts/Outletzon.secureserver.net/httpdocs/testdocs/app/code/core/Mage/Core/Model/Layout/Update.php on line 444
  2014-05-08T09:47:41+00:00 ERR (3): Warning: simplexml_load_string(): Entity: line 104: parser error : Extra content at the end of the document  in /var/www/vhosts/Outletzon.secureserver.net/httpdocs/testdocs/app/code/core/Mage/Core/Model/Layout/Update.php on line 444
  2014-05-08T09:47:41+00:00 ERR (3): Warning: simplexml_load_string():     <catalog_category_default>  in /var/www/vhosts/Outletzon.secureserver.net/httpdocs/testdocs/app/code/core/Mage/Core/Model/Layout/Update.php on line 444
  2014-05-08T09:47:41+00:00 ERR (3): Warning:      ^  in /var/www/vhosts/Outletzon.secureserver.net/httpdocs/testdocs/app/code/core/Mage/Core/Model/Layout/Update.php on line 444

I don't know what's going wrong suddenly..it was working before. I have imported around 50 k products by same way. but now its not working at all.
 Please someone help me to get me out of this problem.


texts:
Magento: 2.3.1

There are 2 buttons at checkout. I want to display only 1 button.

How can I?


texts: Add categories automatically - Unique constraint violation found

texts:
I added two categories with sub-categories from my ERP with an integration.

When I want to edit a category, I have an error "Unique constraint violation found".

Do you know how I can resolve this issue?

Log:

  [code][2018-02-20 14:05:21] main.CRITICAL: Unique constraint violation
  found {"exception":"[object]
  (Magento\Framework\Exception\AlreadyExistsException(code: 0):
  Unique constraint violation found at
  /home/magento/www/vendor/magento/framework/EntityManager/Operation/Update.php:121,
  Magento\Framework\DB\Adapter\DuplicateException(code: 1062):
  SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry
  'infusion-low-temp-curing/Rubber.html-1' for key
  'URL_REWRITE_REQUEST_PATH_STORE_ID', query was: INSERT INTO
  url_rewrite (`redirect_ty.. [/code]


texts: New products 404 after Store view delete

texts:
Magento 2.3.3

We were using 2 storeviews and now have deleted the extra one we added for testing. Now we have 1 store view and adding new products results in 404 page for the new product added. We have the below error in system.log

main.ERROR: The store that was requested wasn't found. Verify the store and try again. [] []

Does anyone have experience with this issue?

Thanks


texts: How to remove add to compare in catalog search result page?

texts: Actually I want to remove add to compare in catalog search result page


texts:
I have done the following to add slick slider autoplay in magento 2..
 In my custom module requirejs-config.js

var config = {
    map: {
       '*': {
           slick: 'xxx_yyy/js/slick.min',
           slickSlider: 'xxx_yyy/js/slick-slider'
       }
   },
   shim: {
        slick: {
            deps: ['jquery']
        }
   },
};

My slick-slider.js for slider autoplay is

require([
    'jquery',
    'slick'
], function ($) {
    // $(document).ready(function () {
        $(".slider-gallery").slick({
            autoplay: true,
            dots: true,
            responsive: [{
                breakpoint: 500,
                settings: {
                    dots: false,
                    arrows: false,
                    infinite: false,
                    slidesToShow: 2,
                    slidesToScroll: 2
                }
            }]

        });
    // });
});

and i have initiated slick-slider.js in my template as

slide 1

slide 2

slide 3

slide 4

slide 5

but it is not working. Can anyone tell me how to add slick slider in magento 2?


texts: what is reference name="right"? how many types? how to add custom reference name="test"?

texts: What is reference name="right", how many types, how to add custom reference name="test"?


texts:
I have installed a a fresh Magento community 1.9.1.1, with no extensions, and no customization to the theme, on a 2 core VPS. I have created about 20 Categories / sub-category names, and only added one configurable product, with 3 simple products attached to it. I am not using any 3rd party cache system. I am utilizing the rwd theme.  It's really slow on the main landing page.  And even slower moving from one category to another!

I am wondering what would happen to it, if I add 30,000 products?  Why is it so slow?  Any recommendation on how to speed this thing up.  It's crazy.

Note to people who placed this question on hold:
I am being told to be more specific about the question, the question is too broad. The question is being placed on hold!!!
Believe me if could be more specific about what’s wrong, I would have solved the problem and fixed it myself, and not be here, or if I could afford to hire an expert, I would have done so and not be here again to seek help from experts.

It is a simple question and I don’t know how to get more specific about it?  Brand new installation of Magento, rwd theme, with ZERO products added, on a VPS server, with 2 core processor and 4 gig of ram. Regardless of how many sites are on the server, Magento should not crawl like it does.

Basic guide line topics should be:
-   What can be done on Back-end on the Magento side?  What extension could be added? What can be optimized? …
-   What can be done on a server? Add more ram? Add more processors? Add server side caching modules? …

Regarding VPS vs dedicated servers. If you read the following comments, some people are stating that, they have hundreds of Magento sites running on VPS!  How are they doing it?

So Fabian, Amit, liyakat, Keyul  & Marius.  I don’t know how to get more specific?  I need help from experts like you to lead and teach how things are done.

That’s why people come to stackexchange!


texts: In magento 2 how can i programatically get customer full addresses?

texts:
In the Magento 2, how can I programmatically get customers full addresses as a string? I want to modify this code:

public function Address()
{
     $customerId = "42";
     $customer = $this->customerRepository->getById($customerId);
     $addresses = $customer->getAddresses();
     $billingAddress = $customer->getDefaultBilling();
     $shippingAddress = $customer->getDefaultShipping();

     return  $billingAddress;
}


texts: Edit HTML just before being sent to frontend

texts:
I need to edit the HTML of product and catalog pages, at this moment I'm using:  core_block_abstract_to_html_after and then I check if it is a instanceof Mage_Catalog_Block_Product_View or Mage_Catalog_Block_Category_View.Unfortunately it is called to many times for the same request (at least 3-4 times).
Reading some answers on this site it looks like this is the last event that is fired before serving page is: controller_front_send_response_after, but I'm not able to distinguish between the two blocks...
So my question is if exists an event which is called just one time before the server sends the page, allow me to identify if it is a product or category page and edit the html?


texts: Importing orders, how to applay discount amount

texts:
I have made a script for migration orders from prestashop to magento 1.8.1.0. All orders were imported successfully. I have just one problem. I don't know how to apply discount amount on order and how to show discount amount and description in customer order history list.

I tried to create cart price rule and apply it on quote with this tutorial but without success.

    ...
    $quote = Mage::getModel('sales/quote')->load($order_no);
$quote->getShippingAddress()->setCollectShippingRates(false);
    $quote->collectTotals();
    $quote->setCouponCode('my_discount_code')
    $quote->save();
    ....

I tried to apply discount amount on order object with bellow code:

...
$order->setDiscount($total_discount);
...

Does anyone have any experiences with importing orders in magento and how to apply discount?


texts: How to disable external call to newsletter subscribtion module

texts: Lately, I am getting calls to the newsletter subscribe module from outside servers. Is there any way to stop it or force Magento to validate the call is from the server?


texts: Once the order is placed using “Cheque/ Money Order” option, please change the order status labelling as “Outstanding” instead of Pending which is the default Magento status?


texts:
As you know Gregorian is default calendar in Magento, but in some countries like China, Japan, India, Iran and Arabian countries there are different calendars. I searched Magento backend and I didn’t find any options to select and change calendar.

I want use "Jalali" calendar, Persian original calendar. Now I need install new calendar.

If I know correctly there are 2 type calendar used in Magento.

  Zend framework PHP calendar
  Mihai Bazon Java Calendar

For first type I found that, there is an extension for Zend_Date called Zend_Calendar that it can convert important world calendars, such as Persian Jalali (hijri shamsi) calendar, Japanese Calendar, Hebrew Calendar, Chinese Calendar, Islamic Calendar and etc. Please see below link for more details: http://framework.zend.com/wiki/display/ZFPROP/Zend_Calendar+-+Thomas+Weidner
My problem is that I don't know how can use this Zend calendar converter. or what files must be edited in Magento?

And for second type calendar I have an open source Persian jalali version of Mihai Bazon calendar wrote by Ali Farhadi in this link: http://farhadi.ir/works/jalalijscalendar I attached this Java calendar, if need.

I put this Java calendar in Magento and I replaced it with default Java calendar. But anything didn't change. Then I edited some files in Magento core. And I saw that when I click on calendar icon, pop up calendar didn’t appear.

Please help me to change my store default calendar to Jalali, and to other word people to have their own default calendars.

I think it will be very powerful and helpful if someone can solve this problem for Magento. Not just for Persian, yea all different calendar supported by Zend, or more.

It can be good idea for Magento team that they can use all Zend abilities in their powerful software program. It can be a drop down list in Magento installation progress in where we chose country, time zone and currency.


texts: Remove the required conditions from registration

texts: I want to remove required condition on Prename and Surname and only want to use the company name. How can I do this?


texts: Magento 2 : Guest Add to cart items not showing

texts:
I am creating a cart as a guest cart via magento API and adding items via magento APIs to it and its working fine and the API is showing items in the guest cart in POSTMAN.
The issue is that the items are not showing in the browser on the cart page which is '/checkout/cart/' URL.
How can I be able to see the items of the guest cart in the browser?
Note: I am using the default Luma theme.


texts: Magento1 site mobile friendly test error

texts:
When i test my site in mobile friendly test suggested google it gives error.

Page cannot be reached
This could be because the page is unavailable or blocked by robots.txt

I tried many different things but not able to solve. Any help will be highly appreciated. Thanks


texts:
I want to remove header for particular catagory and I need to add custom header

<reference name="root">
    <remove name="header"/>
</reference>
</reference name="root">
<additem name="/path of header">
</reference>

Can i use the above code to remove the header and add new header in particulat catagory


texts: Display filter by price on layered navigation

texts: I have a problem with Magento. Probably I have misconfigured it. The price filter on layered navegation doesn't show. In Configuration → Catalog → Catalog → Layered Navigation i have Display Product Count → ON and Price Navigation Step Calculation → Automatic (equalize price ranges). Do I need anything else to configure or what?


texts: How to solve render-blocking JavaScript and css

texts:
I have tried all the step suggested in the all the links found not of them talking about the specifics of the below js and css file. My Question is how can one load these file asynchronously in magento. The google page speed test shows these are blocking the page load. Please don't add this question as duplicate as none of them has answered this.

magestore/bannerslider/jquery-1.7.min.js
magestore/bannerslider/jquery.flexslider.js

magestore/bannerslider/flexslider.css

I really appreciate the expert to look into this. I have seen many such questions unanswered. I am using magento 1.9.2 and the above js is not a part of page.xml file.

Please provide your expertise suggestion. Thanks


texts: Magento 2: How to solve the error 503 in the Component Manager page?

texts:
I'm trying to install an extension using the Setup Wizard that can be accessed using the route System > Tools > Web Setup Wizard, but just the Component Manager page it's not working, after a long period loading I received this page below:

Further information

In the System Upgrade screen, all the checkpoints are ok.
My System Configurations page is configured right, using my keys.
I'm not receiving any error message related to max_execution_time
I've tried to access the URL mystore.com/setup/index.php/componentGrid/components but I receive the same error 503.

I've tried these two solutions before:

I have 500 Internal Server Error in Component Manager

Magento 2: How to solve the error 500 in Web Setup Wizard when installing Amazon Pay?

Do you have some idea to try?


texts: Help creating a product download PDF - requiring customer details

texts:
We'd like to have a PDF download as a product on our website, one that is actually a free project - but we want customers to have to enter their data to receive it. Is there a way I can handle this in a totally automated way within magento or do I need to set up the product as something they buy and then manually email them the pdf afterwards? Any help gratefully received,
thank you.


texts: How to edit module/extensions code directly from Magento 2 admin dashboard as we can edit plugins in wordpress?

texts:
Is it possible to edit Extensions in Magento 2 admin dashboard as we can edit plugins in Wordpress?

Like in Wordpress:   Is there any option in Magento 2 admin dashboard ?


texts: Magento 2: how to set Can Show Price Attribute - $product->getCanShowPrice()?

texts: How to set Can Show Price Attribute - $product->getCanShowPrice()? There is a config for product or admin?


texts: How to change number of products per row. I have been google but all the examples reflecting the way in magento 1.*


texts: How to get layout tab ajax request parameter in block?

texts:
I want to send productId when vendor tab is clicked .
vendor_section current ajax url is :- dailydealadmin/index/vendor.
But I want this url like this :- dailydealadmin/index/vendor/productId/5.

    <?xml version="1.0" encoding="UTF-8"?>
    <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="admin-2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
        <head>
            <title>Daily Deal</title>
        </head>
        <body>
            <referenceBlock name="menu">
                <action method="setActive">
                    <argument name="itemId" xsi:type="string">RB_Dailydeal::dailydeal</argument>
                </action>
            </referenceBlock>
            <referenceContainer name="page.main.actions">
                <block class="Magento\Backend\Block\Store\Switcher" name="store_switcher">
                    <action method="setUseConfirm">
                        <argument name="params" xsi:type="string">0</argument>
                    </action>
                </block>
            </referenceContainer>
            <referenceContainer name="content">
                <block class="RB\Dailydeal\Block\Adminhtml\Deal\Edit" name="deal_edit"/>
            </referenceContainer>
            <referenceContainer name="left">
                <block class="RB\Dailydeal\Block\Adminhtml\Deal\Edit\Tabs" name="deal_edit_tabs">
                    <block class="RB\Dailydeal\Block\Adminhtml\Deal\Edit\Tab\Deal" name="deal_edit_tab_form"/>
                    <action method="addTab">
                        <argument name="name" xsi:type="string">main_section</argument>
                        <argument name="block" xsi:type="string">deal_edit_tab_form</argument>
                    </action>
                    <action method="addTab">
                        <argument name="name" xsi:type="string">product_section</argument>
                        <argument name="tab" xsi:type="array">
                            <item name="label" xsi:type="string">Product</item>
                            <item name="title" xsi:type="string">Product</item>
                            <item name="actionPath" xsi:type="string">dailydealadmin/index/product</item>
                            <item name="class" xsi:type="string">ajax</item>
                        </argument>
                    </action>
                    <action method="addTab">
                        <argument name="name" xsi:type="string">vendor_section</argument>
                        <argument name="tab" xsi:type="array">
                            <item name="label" xsi:type="string">Vendor</item>
                            <item name="title" xsi:type="string">Vendor</item>
                            <item name="actionPath" xsi:type="string">dailydealadmin/index/vendor</item>
                            <item name="class" xsi:type="string">ajax</item>
                        </argument>
                    </action>
                </block>
            </referenceContainer>
        </body>
    </page>


texts: Displaying wrong price filter in layered navigation when applied plugin for custom product collection on category page Magento 2

texts:
I have used Magento Plugin concept for custom collection on the category page. Everything is working fine except price filter in layered navigation.

Below code of di.xml

<type name="Magento\Catalog\Block\Product\ListProduct">
    <plugin name="mynamespace-mymodule-block-product-list"
            type="Mynamespace\Mymodule\Plugin\ProductList"
            sortOrder="10" />
</type>

Below code of ProductList.php

<?php
public function beforeToHtml(\Magento\Catalog\Block\Product\ListProduct $subject )
{
    $skus = array('sku1','sku2');

    $layer = $subject->getLayer();

    $pcollection = $layer->getProductCollection()->clear()->addAttributeToFilter('sku', array('in' => $skus));
    $pcollection->applyFrontendPriceLimitations();
    $pcollection->getSize();
    $subject->setCollection($pcollection);

    $layer->setProductCollection($pcollection);

}
?>


texts:
One of My client has requirement to change product price daily
ie- he fill the product price for all month at once when month start
eg- day1:$10, day2:$15, day3:$12, day4:$11 and so on to last date
my idea is create 31 products attributes to fill price & run a cron job daily to set product price according to date like if date is 1st set price of attribute day1 & if date is 2nd set price of attribute day2 & so on
but I didn't have any idea about how to run cron job as per my requirement , can anyone guide me how to use cron job as per requirement or any other best idea to fulfil the above requirement

Thanks in advance for help


texts:
By using the following code
Get Bundle product ids

$productIDs = $product->getTypeInstance(true)->getChildrenIds($product->getId(), false)

Mage::log($productIDs);

using above retrive multi-dimensional array..

Array
(
[0] => Array
    (
        [21] => 21
        [25] => 25
    )

[1] => Array
    (
        [28] => 28
    )
)

in my case i have a bundle with three product... i just need product ids(21, 25 and 28)
i try a lot but unable figure out. any help would be greatly appreciated


texts: Web server very slow for serving images of Magento

texts:
I have a very strange issue with Apache and Magento.
Apache is very slow when serving images, but only for images in a particular folder of Magento theme.

Isn't an Apache issue because in the other 15 site hosted we haven't this issue.

Has you can see in the following image, the first image of 179kb in the directory www.site.com/img/ is downloaded in  115ms

The others images in www.site.com/skin/frontend/ultimo/default/images/ of 100-200kb, are downloaded in 1-1.5 seconds.

This makes the whole site very slow.

Where can be the issue?


texts: How can i add my copyright in the footer?

texts:
The copyright is removed in the footer. In which file can i recover it and which text to add?
So now there is not copyright rule displayed at all. Maybe this file something wrong?


texts: Why is var customer.email not being populated in my Transactional Emails?

texts:
Simple question. I am adding the email address to the "New Order" template, but nothing is being populated. Why?

I am simply passing Login: {{var customer.email}}

I am passing in several other parameters which populate normally (order number, address, payment amount, etc).


texts: Magento multi-site data migration. While merging new store needs to keep live existing stores/sites

texts:
I am working on Magento enterprise edition. In which, two sites are already set up and working. Both of them are setup and configured by us. Now as per requirement client wants to add one more site in current environment but the tweak is we are not suppose to shut down existing site. Earlier while migration we used to close the stores.

Merging or Migration new site:
Following points are key areas

Migrate customer data -- No Issue
Migrate product data -- No Issue
Migrate reviews and rating -- No Issue
Configuration part -- No Issue
Migrate old site's orders -- Critical

We are finding solution for the 5th point. We have no issue with the coding part. We are using custom script and some configuration changes in the payment files so when orders create system do not deduct any amount from the customer's paypal or authorized account. Hence, no matter of what site is running or not payment process will not work while the Order Migration process is in progress. Our coding scenario is conflicting with client business perspective because they want site up and running 24x7 while migration process.

We are working on to resolve our conflicts in which we found two architectures which are suitable:

Master-Master
Master-Slave

We are not sure for following things:

Which approach or architecture is suitable for us?
What are the best practices for magento data migration?
How many more sites i can configured in single magento enterprise edition environment? Is there any limit?

Any new suggestion or approaches are welcome. Thanks in advance.

NOTE: Server is very highly configured. So environment setup is not an issue.


texts:
> npm install -D load-grunt-config
npm WARN deprecated coffee-script@1.12.7: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
npm ERR! Linux 4.15.0-52-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "-D" "load-grunt-config"
npm ERR! node v8.10.0
npm ERR! npm  v3.5.2
npm ERR! code EMISSINGARG

npm ERR! typeerror Error: Missing required argument #1
npm ERR! typeerror     at andLogAndFinish (/usr/share/npm/lib/fetch-package-metadata.js:31:3)
npm ERR! typeerror     at fetchPackageMetadata (/usr/share/npm/lib/fetch-package-metadata.js:51:22)
npm ERR! typeerror     at resolveWithNewModule (/usr/share/npm/lib/install/deps.js:456:12)
npm ERR! typeerror     at /usr/share/npm/lib/install/deps.js:457:7
npm ERR! typeerror     at /usr/share/npm/node_modules/iferr/index.js:13:50
npm ERR! typeerror     at /usr/share/npm/lib/fetch-package-metadata.js:37:12
npm ERR! typeerror     at addRequestedAndFinish (/usr/share/npm/lib/fetch-package-metadata.js:82:5)
npm ERR! typeerror     at returnAndAddMetadata (/usr/share/npm/lib/fetch-package-metadata.js:117:7)
npm ERR! typeerror     at pickVersionFromRegistryDocument (/usr/share/npm/lib/fetch-package-metadata.js:134:20)
npm ERR! typeerror     at /usr/share/npm/node_modules/iferr/index.js:13:50
npm ERR! typeerror This is an error with npm itself. Please report this error at:
npm ERR! typeerror     <http://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     /var/www/html/hosemart-web/npm-debug.log


texts:
I have enabled the secure URL option in magento for both frontend and for admin. After that the admin keyword pages without the admin after index.php in the URL are redirecting to 404 page. the pages that are without admin keyword are the extension pages that i have installed .

Any help to resolve this problem?


texts:
How to stop customers changing password

I curently have a b2b site where I set the same password for each store. I'd like to disable "Change Password" on the account page so no one can change the password.

  Magento 2.3.2 CE

  Cheers.


texts: Deleted orders are not removed from grid

texts:
When I delete an order, it is still listed in orders grid. When I attempt to open it, I get the message

  This order no longer exists.

This behaviour was seemingly introduced by a Magento update: I downloaded the latest version of Magento and overrode the existing files.

Why do the orders still show up in the grid and how can I adjust this?


texts: How can i solve 500 Internal Server Error during only product export

texts:
I try to export my whole products, i get  500 Internal Server Error during only  product export.

Export :

Export Error :

Note :  When i try to export minimum of products like 100's of products, my export working and bulk export only not working.


texts: How can i remove the dropdown option in country in checkout page in magento? I need to put only one country

texts:
From the following files :

  /app/design/frontend/base/default/template/customer/form/register.phtml
  /app/design/frontend/base/default/template/customer/form/address.phtml
  /app/design/frontend/base/default/template/checkout/onepage/billing.phtml
  and
  /app/design/frontend/base/default/template/checkout/onepage/shipping.phtml

i did this trick converting php line

<?php echo $this->getCountryHtmlSelect() ?>

to html line

<select name="country_id" id="country" title="<?php echo $this->__('Country') ?>" class="validate-select">
    <option value="IN" selected="selected">India</option>
</select>

but not worked. In site showing one blank line and other line India.

I need only one line India or remove dropdown.


texts: Magento 1.4 wishlist - where is additional configuration data stored?

texts:
I found the following code for adding an item to a wishlist with configuration

$wishlist = Mage::getModel('wishlist/wishlist')->loadByCustomer($customerId, true);
$product = Mage::getModel('catalog/product')->load($productId);

//NOTE! I'm not sure this array format is correct so that may be the problem
$buyRequest = new Varien_Object(array('color'=>'blue','size'=>'large')); // any possible options that are configurable and you want to save with the product

$result = $wishlist->addNewItem($product, $buyRequest);
$wishlist->save();

The add to wishlist works successfully, except that either a) the color and size configuration are not stored anywhere, b) they're stored somewhere I don't know or c) they're not correct in syntax.  Can someone please narrow this down and clarify?


texts: All my products show a special price based on a shopping cart rule that no longer exists

texts:
I am very new to Magento.  Running version 1.702.  I was trying to implement a shopping cart rule.  Basically if the customer purchased more than 1 product, there is a $50 discount on the second product.  I tested with 1 single SKU.

It did not work, so I deleted the rule.  Now ALL my products are showing up with a SPECIAL PRICE.  The SPECIAL PRICE is a discount of $50 on the regular price.

... frustrated new user.

Thanks in advance to anyone who helps me out.

J.Ribeiro
Toronto, Canada


texts:
My objective is to send an order to our backend system when a order is placed within our Magento 2 instance.

The code to send the order object is working.  My question is what is the optimum approach to retrieve item data (e.g. price, subtotal, total, sku, etc.).

I'm using the following to retreive the order and items.

$orderId = $this->_order->load($order);
$billing = $orderId->getBillingAddress();
$items = $orderId->getAllItems();
foreach ($items as $item) {
        $itemPrice = $item->getPrice();
        $itemSku = $item->getSku();
}

Is iterating through $items to get price, sku, etc. the best way or is there a Magento2 collection/method I should be using?

Thanks


texts: Catalog price is not being updated after changes of customer group from admin

texts:
If I am logged in the front area and my

customer group is :-  [general]

After that, I create a new customer group [vendor] and create new catalog price rule for vendor type customer and assign 10% discount to vendor group customer.

Now if I change my customer group from admin  general to vendor then I am unable to find 10% discount on product price.

I did this action to find the effect:- flush/indexer/clear.


texts: SQLSTATE[23000]: `catalog_product_option`, CONSTRAINT `CAT_PRD_OPT_PRD_ID_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY

texts: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`db_name`.`catalog_product_option`, CONSTRAINT `CAT_PRD_OPT_PRD_ID_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`product_id`) REFERENCES `catalog_product_entity` (`entity_id`) ON DELETE CASCADE), query was: INSERT INTO `catalog_product_option` (`type`, `is_require`, `sku`, `sort_order`) VALUES (?, ?, ?, ?)


texts:
In a project im working on it is crucial to be able to set a price per specific store view. I have already tried BSS Commerce extension. but it is not working that well and is badly supported.

In magento1 i just set the attribute in the database to storeview and worked fine. But in Magento2 it does not work that way.
Does anyone have any experience in this?


texts: Help with 2 sets of prices for single product

texts:
I am opening my eshop and need a little help with product pricing what I dont understand is:

I have products and they come in different standards and 6 different prices.

For example: Product lamp comes in standards DN5, DN6, DN7, DN8 and every standard has 2 prices, DN5 for example has 2 prices 100.00 and 200.00 and so on...

Notice: these prices mentioned are not to be added up for example base price + 100.00 when user selects an option, prices 100.00 and 200.00 in this case are complete prices.

My problem is what to use attributes or custom options and how to set them up.

Here is one page which has exactly what I need (not made by magento unfortunately),
it is good example (in tables on page are prices and variations of products and bellow is simple select product and thats it) : example link


texts: Magento 1.9.0.1- Sign up form not working

texts:
Hi guys I would really appreciate your response on this question or point me to a solution if there exist one already.

I have a sign up form on my magento site that i need customers to use but apparently the form isn't getting submitted to the database.

after clicking the submit button i get redirected to the very same page and no user accounts are created. On the other hand the registration form works fine during checkout process and user accounts get created successfully.

thanks.


texts: FollowSymLinks is enabled for  however Apache returns HTTP 403 for image request

texts:
It seems like I have some generic Apache configuration issue, but I cannot spot the problem.
I have Magento v2.2.7 installed to default Apache document root directory (/var/www/magento) under user magento (GID www-data). The corresponding Apache configuration is the following:

<Directory /var/www/magento>
    Options -Indexes +FollowSymLinks
    AllowOverride FileInfo Options=All,MultiViews AuthConfig Indexes
</Directory>

I haven't changed anything in .htaccess files – they are used as provided by Magento installation. For example, /var/www/magento/.htaccess contains the following:

    Options +FollowSymLinks
    RewriteEngine on

"Use Web Server Rewrites" option is enabled, and URL rewrites work appropriately. All resources (JS, CSS, fonts) are loaded correctly both in admin and store, except images that I have uploaded to Magento via admin interface, namely:

Site logo
Product images

For example when I request URI /magento/pub/media/logo/websites/1/logo.jpg, status HTTP 403 is returned with the following logged to Apache error log:

# root@server:~# tail -f /var/log/apache2/error.log
[Wed Feb 20 10:54:56.588137 2019] [rewrite:error] [pid 24674] [client 189.64.12.201:10934] AH00670: Options FollowSymLinks and SymLinksIfOwnerMatch are both off, so the RewriteRule directive is also forbidden due to its similar ability to circumvent directory restrictions : /var/www/magento/pub/media/logo/websites/1/logo.jpg, referer: https://www.server.com/magento/
[Wed Feb 20 11:25:24.497872 2019] [rewrite:error] [pid 24698] [client 189.64.12.201:10400] AH00670: Options FollowSymLinks and SymLinksIfOwnerMatch are both off, so the RewriteRule directive is also forbidden due to its similar ability to circumvent directory restrictions : /var/www/magento/pub/media/catalog/product/cache/aefcd4d8d5c59ba860378cf3cd2e94da/5/2/52681140.jpg, referer: https://www.server.com/magento/home.html

Here is the uploaded logo:

magento@server:/var/www/magento$ ls -ld pub pub/media pub/media/logo pub/media/logo/websites pub/media/logo/websites/1 pub/media/logo/web
sites/1/logo.jpg
drwxr-x--- 1 magento  www-data   176 Feb 17 23:37 pub
drwxrws--- 1 magento  www-data   160 Feb 20 08:57 pub/media
drwxrwsr-x 1 www-data www-data    30 Feb 20 09:03 pub/media/logo
drwxrwsr-x 1 www-data www-data     2 Feb 20 09:03 pub/media/logo/websites
drwxrwsr-x 1 www-data www-data    16 Feb 20 09:03 pub/media/logo/websites/1
-rw-rw-r-- 1 www-data www-data 40324 Feb 20 09:03 pub/media/logo/websites/1/logo.jpg

When I enable SymLinksIfOwnerMatch

<Directory /var/www/magento>
    Options -Indexes +FollowSymLinks +SymLinksIfOwnerMatch
    ...
</Directory>

then requests for images start to work, however once reindexing takes place, symlinks are created with www-data ownership and Apache refuses to follow them (hence everything breaks down):

[Mon Feb 18 11:27:06.360297 2019] [core:error] [pid 12079] [client 189.64.12.201:10400] AH00037: Symbolic link not allowed or link target not accessible: /var/www/magento/pub/static/adminhtml/Magento/backend/en_US/mage/requirejs/mixins.js, referer: https://www.server.com/magento/control/admin/system_config/index/key/2376d1328b68bd0679181a3c8e78f992e87a39157c80ffa0deadaaa617342843/

Site is in default mode:

magento@server:/var/www/magento$ ./bin/magento deploy:mode:show
Current application mode: default. (Note: Environment variables may override this value.)

Any suggestion about how to make images working without enabling SymLinksIfOwnerMatch are welcome.


texts:
I am currently running Magento 2.1.7 and imported data from Magento 1.8.0. The process went smoothly but after installing some extensions, it appears that some of the reindex tables have been deleted. This is the message I get when trying to reindex:

Table design_config_dummy_cl does not exist
Table customer_dummy_cl does not exist
Table catalog_category_product_cl does not exist
Table catalog_product_category_cl does not exist
Table catalog_product_price_cl does not exist
Table catalog_product_attribute_cl does not exist
Table cataloginventory_stock_cl does not exist
Table catalogrule_rule_cl does not exist
Table catalogrule_product_cl does not exist
Table catalogsearch_fulltext_cl does not exist
Search Spell-Correction index has been rebuilt successfully in 00:00:02

Even after using the reset function then reindexing, the process is stuck:

Design Config Grid index is locked by another reindex process. Skipping.
Customer Grid index is locked by another reindex process. Skipping.
Category Products index is locked by another reindex process. Skipping.
Product Categories index is locked by another reindex process. Skipping.
Product Price index is locked by another reindex process. Skipping.
Product EAV index is locked by another reindex process. Skipping.
Stock index is locked by another reindex process. Skipping.
Catalog Rule Product index is locked by another reindex process. Skipping.
Catalog Product Rule index is locked by another reindex process. Skipping.
Catalog Search index is locked by another reindex process. Skipping.
Search Spell-Correction index has been rebuilt successfully in 00:00:02

Is there a way to resolve this issue?


texts: Loop Magento Custom Attributes in Product View Description

texts:
I'm trying to figure out a way to best display custom attributes on the product view page.

Currently I'm doing something like this:

if (($_product->getCollectionName()) && ($_product->getResource()->getAttribute('collection_name')->getIsVisibleOnFront() == '1'))
{
     echo $_product->getResource()->getAttribute('collection_name')->getFrontendLabel() . ': ' . $_product->getCollectionName();
}

if (($_product->getColor()) && ($_product->getResource()->getAttribute('color')->getIsVisibleOnFront() == '1'))
{
     echo $_product->getResource()->getAttribute('color')->getFrontendLabel() . ': ' . $_product->getColor();
}

This continues for all 95 custom attributes.

Does Magento have any built-in functions to simplify this code? Is there a way to loop through all the attributes assign to the product?

A few things to keep in mind:

I need to check if the attribute is set to visible on the frontend
I need to show the attribute label only when the attribute has a value for the product
Attributes vary in type - text, multi-select, dropdown...


texts: How to assign a group to user based on their email id on registration

texts:
I am making a project In which I have to differentiate between the user who have registered I want that if some one registered with the id

  abc@gmail.com

He should be automatically assign to student group

and if user registered with the id other then this

  gmail.com

then He should be assign to a group say Guest

So can any one tell me. where I have to start for this as I search alot but can not get answer related to this


texts: How can I wrap the description in paragraph tags?

texts:
On my product page I am getting the description like this:

<?php echo $attribute_value = $_product->getResource()->getAttribute('my_description') ->getFrontend()->getValue($_product); ?>

The description is a multi-line attribute. How can I wrap each line of it in
 tags?

Example:

Description Attribute:
Apple
Orange
Pear

Output:

Apple

Orange

Pear


texts: Magento 2 add wishlist in add to cart block

texts:
Hi I used reference container on catalog_product_view.xml but it shows just on configurable products. I add another one without additional and just shows on simple products. Also used move command but still can't see in both simple and configurable product. What should I do? I am using Magento 2.1.8

        <referenceBlock name="product.info.addtocart">
            <block class="Magento\Catalog\Block\Product\View" name="product.info.addto" as="addto" template="Magento_Catalog::product/view/addto.phtml" before="-"/>
        </referenceBlock>
        <referenceBlock name="product.info.addtocart.additional">
            <block class="Magento\Catalog\Block\Product\View" name="product.info.addto" as="addto" template="Magento_Catalog::product/view/addto.phtml" before="-"/>
        </referenceBlock>


texts: Hide first 8 digits using substr() in Magento credit card information

texts:
how to hide first 8 digits in following code using substr():

$data[Mage::helper('payment')->__('Credit Card Number')] =
    sprintf('xxxx-%s', $this->getInfo()->getNumber());

As I'm new to JS, please edit the code and post here

Thanks a lot in advance


texts: Magento 2: difference between frontend/templates and frontend/web/templates?

texts:
So I recently noticed that in some Magento 2 modules, there are two different template folders:

the view/frontend/templates contains .phtml files and I know that this pretty much matches the M1 app/design/frontend/<package>/<theme>/templates folder for each module.
the view/frontend/web/template contains .html files

My questions are:

What is that second folder used for ?
And more specifically, why aren't those files in the first folder ?
Or, if I reword that, what is the reason why there are two different templates folders ?

This question is an overall architectural question. It is not regarding the specific content of a given theme.


texts: Magento2 - How to save dynamically created field in Admin?

texts:
I have created a menu in Magneto2 Back end and added some fields for add remove fields Like this.

How to save these data in Database custom table I have created a custom table using Setup Installschema.php.
But how to save dynamically created fields in Magneto2.
Any Help is appreciated!


texts:
We have face error while setup PWA in Magento 2.3.0 with YARN.

See screenshot for more detail

Magento Version 2.3.0
PHP version 7.2

This error is shown when i try to build using sudo yarn run build

I have refer What is Progressive Web Apps, or PWAs in Magento 2? and PWA Setup in Magento 2.3.0


texts:
I want to substring the query terms in my magento searches.

Example: the user type "dogs" in the magento search input and the results actually search for "dog".

Is there a way to change that?

Where should I put something really simple as:

$text = substr ( $text , ..., ...);

Which core code should I look for?

In addition, I prefer that the user will be able to see the whole text typed in the input field while displaying search results page...


texts: Add background image for template file in magento2

texts: I want to add background image for <li> element in template file. How to add background image in phtml file in magento2 ?


texts: I am a Front-End Developer whose duties have been expanded to cover our entire Magento installation.  We have catalog price rules that drop off at night.  Are there cron job tests we can run to verify functionality?  Other than the cron items that are in the root should I be checking elsewhere?


texts:
I'm on Magento 2.1, the header links are rendered with this structure:

...

...

  ...

I need to remove the class .header from
 tag and add another ones.

Also, I need to add some HTML inside
 tags.

How can do it?


texts: Is there any dependance between magento version and magento-cloud configuration?

texts:
This code in composer.json works for me:

"require": {
        "magento/product-enterprise-edition": "2.1.4", "magento/magento-cloud-configuration": "101.4.0-dev"
},

Should I care about magento-cloud-configuration property if I want to switch to magento 2.1.7 when it will be available and where to find the number of corresponding cloud configuration?


texts:
When attempting to change scope from "Store View" to "Global" of an attribute that's used as super attribute, I get this error message:

"Scope must not be changed, because the attribute is used in configurable products."

I know that probably there is a good reason, can somebody explain me the logic behind this?


texts: Left Menu keep sub-cateogries open when one selected

texts:
I have a left menu which displays on all of my Categroy List and Product Details pages.

I have tweaked it (based on another post in here) so that when a Category is selected the associated sub-categories display also.

What i currently can't get it to do is display the sub-categories when either one of them is selected (it just reverts back to showing the top level categories only) or when a product in one of those sub-categories is being display.

Below is my current code, what tweaks can I make to have the sub-categories main visible for a certain category when the sub-category or product is selected?

<?php $_categories = $this->getStoreCategories(); ?>
<?php $_count = is_array($_categories)?count($_categories):$_categories->count(); ?>
<?php $currentCategory = Mage::registry('current_category') ?>
<?php if($_count): ?>

          <?php foreach ($_categories as $_category): ?>
          <?php if ($_category->getIsActive()) : ?>

 <a href="<?php echo $this->getCategoryUrl($_category) ?>"<?php if ($this->isCategoryActive($_category)): ?> class="current"<?php endif; ?>><?php echo $this->htmlEscape($_category->getName()) ?> <?php echo $_category->getIncludeInMenu() ?>

            <?php if ($currentCategory && $currentCategory->getId() == $_category->getId()): ?>
            <?php $_subcategories = $_category->getChildrenCategories() ?>
            <?php if (count($_subcategories) > 0): ?>

              <?php foreach($_subcategories as $_subcategory): ?>

 <a href="<?php echo $this->getCategoryUrl($_subcategory) ?>"<?php if ($this->isCategoryActive($_subcategory)): ?> class="current"<?php endif; ?>><?php echo $this->htmlEscape($_subcategory->getName()) ?>

              <?php endforeach; ?>

            <?php endif; ?>
            <?php endif; ?>

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

<?php endif; ?>


texts: Join to get thumbnail from sales order item - add column to order grid

texts:
I'm trying to use an observer to add the thumbnail path to the sales order grid collection - the purpose of this is to add an extra column to the order grid which displays the sales item images. I've seen a few tutorials which call load() within the loop to get the product thumb, however this isn't great for performance. I think adding the thumbnail path to the collection is a cleaner way to do this, the problem I'm having is getting the db joins correct to get that data!

At the moment, I'm able to get the base product image URL added to the collection, but this obviously isn't ideal either as it means loading far higher resolution images than necessary. Below there's some commented out, failed, attempts at getting the thumbnail - if anyone can see where I'm going wrong that would be greatly appreciated.

$collection = $observer->getOrderGridCollection();
$select = $collection->getSelect();

$select->joinLeft(
    array('sfoi' => 'sales_flat_order_item'),
    'sfoi.order_id=`main_table`.entity_id',
    array('product_id')
);

$select->joinLeft(
    array('cpemg' => 'catalog_product_entity_media_gallery'),
    'sfoi.product_id = cpemg.entity_id',
    array('value_id', 'thumbnail' => 'value')
);
// The above adds the base product image URL to the collection, the below is what i've tried in order to try and get the thumb
/*
$select->joinInner(
    array('cpemgv' => 'catalog_product_entity_media_gallery_value'),
    'cpemg.value_id = cpemgv.value_id AND position = 3',
    array('value_id')
);

/*$select->joinLeft(
    array('ea' => 'eav_attribute'),
    'ea.attribute_id = catalog_product_entity_varchar.attribute_id AND attribute_code = "thumbnail"',
    array('value')
);*/


texts: Display thumbnail of child images in grouped product page

texts:
I created a grouped product, each child product has an image but they do not get displayed in on the front. No you only see the product name, price, quantity,...

Is there an easy way to do this? thanks.


texts:
What are the ideal settings (php.ini) for following in production mode Magento 2:

max_execution_time
memory_limit
post_max_size
upload_max_filesize


texts:
I import products from CSV file. I added base_image, small_image, thumnail_image, swatch_image and additional_image column. In backend it had been updated. But in front-end shows default magento icon.

Front end image link goes to cache folder eg.,( http://35.246.29.162/pub/media/catalog/product/cache/74c1057f7991b4edb2bc7bdaa94de933/T/rugs/flatweave/cottage/cottage-ct5191/cottage-blue/cottage-blue-zigzag-pattern-floor-rugs-blue-fullview-e-rugs.jpg )

Please let me know to fix this solution.


texts:
I'm having a problem with home page not showing up correctly on mobile, images don't scale down and the page looks messed up. However, this only happens when opening the site by typing the address or clicking on the logo. In both of those cases the page opens up with body class "cms-index-index cms-home".

If I go to the home page by clicking the HOME link, then it opens up with "cms-page-view cms-home" body class and images scale down on mobile view and all looks well.

I have a few questions

How come the first body class doesn't scale the images? I thought Magento was responsive.
When inspecting element, I don't understand how to tell which file I need to go to so I can edit the things shown on the left. Everything shown on the left is shown as INDEX under "sources" in "inspect element" view (or HOME, when opening it using the HOME link), and there are no files with those names. I also tried searching all files for "cms-page-view cms-home" and nothing comes up. How do I find the files that have the code shown on the left?
I want to change the class from "cms-index-index cms-home" to "cms-page-view cms-home". It solves the problem when I try changing it in the "inspect element" view. But is this the correct solution?

EDIT:
I tried the solution and it's not working, posting the details here because I can't format them in the comments

I followed the instructions here to override the block http://code.tutsplus.com/tutorials/understand-overriding-in-magento-blocks--cms-23325

here's my Boomie_All.xml

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

here's my Config.xml

    <?xml version="1.0"?>
<config>
  <modules>
    <Booomie_Page>
      <version>1.0</version>
    </Booomie_Page>
  </modules>
   <global>
    <blocks>
      <page>
        <rewrite>
          <html>Booomie_Page_Block_Html</html>
        </rewrite>
      </page>
    </blocks>
  </global>
</config>

and here's the Html.php (the code you gave with changed function names)

<?php
class Booomie_Page_Block_Html extends Mage_Page_Block_Html{

    public function getBodyClass()
    {
        /* detect current page is home and return
        * cms-page-view cms-home as body class
         */
        $action = Mage::app()->getFrontController()->getAction()
        if($action->getFullActionName()=='cms_index_index'):
            return 'cms-page-view cms-home';
        endif;
        return $this->_getData('body_class');
    }
}

Did i do this wrong?


texts: How to stop merging of non-loged-in cart items when customer logs-in?

texts:
I do not want to merge cart items if the user has items in cart and logs into the site.

Let's go through the scenario:

User logs in and adds one item to cart and logs out from a site.
Now as a guest user he adds 2 items to cart.
He logs in into the site again and sees 3 items.

What I am trying to achieve ?: What I want to do is, when he logs in to the site, item which was there in his cart before logging-in should not be merged and after logging in, he should see only 1 item in the cart.

I have observed sales_quote_merge_before event as given below and deleted the guest-user-quote, still, these items are visible in cart after loggin-in.

etc/frontend/events.xml

<?xml version="1.0" encoding="UTF-8"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
    <event name="sales_quote_merge_before">
        <observer name="validate_quote_befor_merge" instance="Vendor\Module\Observer\QuoteBeforeMerge" />
    </event>
</config>

QuoteBeforeMerge.php

<?php

namespace Vendor\Module\Observer;

use Magento\Framework\Event\Observer;
use Magento\Framework\Event\ObserverInterface;
use Magento\Quote\Model\QuoteRepository;

class QuoteBeforeMerge implements ObserverInterface
{

    /**
     * @var QuoteRepository
     */
    private $quoteRepository;

    public function __construct(
        QuoteRepository $quoteRepository
    )
    {
        $this->quoteRepository = $quoteRepository;
    }

    /**
     * @param Observer $observer
     * @return void
     */
    public function execute(Observer $observer)
    {
        if ($observer->getSource()->hasItems()) {
            $currentQuote = $observer->getSource();
            $quoteId = $currentQuote->getId();
            $quote = $this->quoteRepository->get($quoteId);
            $this->quoteRepository->delete($quote);
        }
    }
}


texts: Adding to cart breaks fotorama on page reload

texts:
Fotorama works normally until I click add to basket. After the page reloads this then shows collapsed (as per the image) and logs a couple of errors to console.

fotorama.js:99 Uncaught Fotorama requires jQuery 1.8 or later and will not run without it.Uncaught Fotorama requires jQuery 1.8 or later and will not run without it

gallery.js:290 Uncaught TypeError: settings.$elementF.fotorama is not a function


texts:
I have an ajax form I need to call before allowing user to continue to add a product to cart. I have the form popping up but I also need to validate the contents before it submits. However the validation has changed from M1 to M2.

Essentially I need to:

on form submit
validate the form
if validate then submit AJAX request
if not valid then show validation errors.

How do I catch the form submit after the validation has happened? As if I use a regular JS event then the validation hasn't happened yet

Hope that makes sense.


texts: magento 2.1.12 how to add custom attribute in address for rest api

texts: How to add custom attribute in address for rest api to set and get for view that attribute in magento 2.1.12 ?


texts: Global object in phtml or block - how does it work and how can i create one?

texts:
In the following file, I found this code:

<?php echo $countries->toHtmlOptions($data->getCountryId()) ?>

app/design/frontend/base/default/template/customer/form/address.phtml

$countries has not been instantiated in this phtml file and it kinds of looks like a global object. Typically, we just use $this-> to access methods and some other info in phtml files. I was also trying to find the related block for this global object($countries) and could not find it so easily. They also have few more variables in this template file.

How did they do it? May be, I can do something similar when it is necessary.


texts: How can I add loyalty / reward points for customers?

texts: How can i add Loyalty/Reward points to customer using soap API in “Magento Enterprise Edition”


texts: Can I make a good ecommerce website with magento with zero knowledge of coding

texts:
I want to build a best e-commerce website with magento.
I don't want to use wordpress.

I can learn anything, so please recommend me any website or tutorial place from where I can learn these magento basic things, or tell me a short-cut for this.

Thanks in advance


texts: How to show a category to a specific customer group magento 2?

texts:
Hi my question is how to show particular category products to particular customer group or Business customers. Actually I want to show additional products to only business customer when he gets logged in to his account.

I am usin Magento 2

I created a customer group.
And now I am working on customer group to show products.


texts: M2: How to redirect contact form page to CMS page

texts:
I tried to 301 redirect contact form page URL to custom cms page URL with Magento 2's rewrites, but it does not seem to redirect the URL for some reason.

Is there some special trick to be done with contact form redirection?


texts: Magento 2: How can I get the parent UI Element?

texts:
I have a UI Element that has children. Is it possible for one UI Element to get the instantiated parent element?

I know there is a property called parentName, but that simply returns a string.

Example code:

{
    "*": {
        "Magento_Ui/js/core/app": {
            "components": {
                "configurator": {
                    "component": "Vendor_Module/js/configurator",
                    "template": Vendor_Module/configurator",
                    "children" : {
                        "price": {
                            "component": "Vendor_Module/js/configurator/price",
                            "template": "Vendor_Module/configurator/price",
                            "displayArea": "price",
                            "price": <?php echo $block->getPrice(); ?>
                        }
                    }
                }
            }
        }
    }
}

Now my js/price.js has a this.parentName, but like I said, it's value is 'configurator'. How can I get the instance of the object so I can access it's properties?

I know traversing down the parent tree is bad design practice, so if anyone knows a different on how I can have multiple UI Components react with eachother, I'd be more than happy to hear them.


texts: where is the product alert link of a product grouped?

texts:
I just can see this link at simple products
I need this feature at grouped products


texts: Magento 2 reindex doesn't work after import

texts:
I have 1000 products with custom attributes and multiselect ittributes info.
start import it give me message "Import successfully done".
After my attributes doesn't work in frontend. I make commands:

php bin/magento indexer:reindex
php bin/magento cache:clean

Product EAV Index product EAV - not change.
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '48-152-1-62' for key 'PRIMARY', query was: INSERT INTO `catalog_product_index_eav_idx` (`entity_id`,`attribute_id`,`store_id`,`value`) VALUES (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?)

How correct to add costom attributes?
My products all simple. I put my all attributes to additional_attributes table slot:

material_table=wood|metall|plastic,color_table=red|green,p_table=8|16|32


texts: How to change admin login template in Magento 1.5 or 1.6

texts:
In magento 1.7.x and above login template is set in the layout xml file, so to change template is very easy.

How to achieve that in 1.5.x or 1.6.x where there are no layout xml and block and template is created on the fly in the controller?

See

class Mage_Adminhtml_IndexController extends Mage_Adminhtml_Controller_Action
{
    protected function _outTemplate($tplName, $data=array())
    {
        $this->_initLayoutMessages('adminhtml/session');
        $block = $this->getLayout()->createBlock('adminhtml/template')->setTemplate("$tplName.phtml");
        foreach ($data as $index=>$value) {
            $block->assign($index, $value);
        }
        $html = $block->toHtml();
        Mage::getSingleton('core/translate_inline')->processResponseBody($html);
        $this->getResponse()->setBody($html);
    }

    public function loginAction()
    {
        if (Mage::getSingleton('admin/session')->isLoggedIn()) {
            $this->_redirect('*');
            return;
        }
        $loginData = $this->getRequest()->getParam('login');
        $data = array();

        if( is_array($loginData) && array_key_exists('username', $loginData) ) {
            $data['username'] = $loginData['username'];
        } else {
            $data['username'] = null;
        }

        $this->_outTemplate('login', $data);
    }


texts: Is there any way to get all Applied Discount (for cart rules and coupons) line items in cart/order in Magento 2?

texts:
I need to show all cart/order discounts in the following manner:
Subtotal                              ----------- 100.00

CHRISTMAS10 (Christmas Sale 10 % off) ----------- -10.00
CHDLL1242DK (Coupon Redeemed)         ----------- -20.00

Grand Total                           -----------  70.00

Magento 2 store only the coupon_code and the applied_rule_ids, but not the discount amount for specific rule and discount description.
What would the best way to achieve this? (also if there is any module available, please suggest)


texts: Is it possible to handle success / error messages from within blocks?

texts:
In general, I handle exceptions and display success or error messages within controllers.  For example:

 Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('adminhtml')->__("The cache storage has been flushed."));

But in some cases I'd love to be able to render an error message from within a block.  For example, I have blocks within my page that are dependent upon some configuration which isn't set properly currently, so what I want to do is not render those blocks but still allow other blocks around them to render.

In some cases, the other elements on the page are necessary in order to fix the problem that's causing the exception in the first place.

But I think the messages block is initialized very early in the layout rendering process, so by the time you're in a block, if you try to set a message on the session, it won't display until next page load, which would be pretty confusing of course.

I searched the core and I don't see any instance of addError() within Mage/Adminhtml/Block/

I did stumble onto this little gem, but it doesn't seem to work as I'd expect:

$this->getLayout()->getMessagesBlock()->addError('oh what');


texts:
I need to remove tax from grand total in Magento.
Means I want only show Tax but not add grand total


texts: Magento 2 - Shipping rules for specific products?

texts:
This was possible in Magento 1.9 but it doesn't seem possible in Magento 2 table rates to apply rules to specific SKU etc.

Basically, we have products that need a different shipping rule than the rest of the store. The best option I can see is using an extension, the one I've found being: http://www.mageworx.com/magento-2-shipping-suite.html

Are there any suggestions for applying shipping rates per product?


texts:
I want to create a custom module for the following requirement

Purchase any product and get free products

Free products for a particular product will be assigned from admin side like related products.

Whenever customer going to buy this product, they shall be able to select the free products from the listing. System should allow the customer select the attributes like color and size of the Product.

Free product is a simple product which can be buy along with other products with normal price.

Whenever increase the product cart quantity, customer can add one more free products attached with the product

Thanks in advance


texts: How to override vendor theme in app/design folder magento 2?

texts:
We have one project which has a custom theme in vendor folder. Like vendor/{Vendor}/{custom-theme}/

  vendor/{vendorname}/custom-theme/registration.php

<?php

\Magento\Framework\Component\ComponentRegistrar::register(
    \Magento\Framework\Component\ComponentRegistrar::THEME,
    'frontend/Vendor/customtheme',
    __DIR__
);

Now I need to override some files from the custom theme. So I created theme folder in app/code/design as per registation.php

Override `vendor/{vendorname}/{custom-theme}/Magento_Catalog/templates/product/list.phtml

to

  app/code/design/Vendor/customtheme/Magento_Catalog/templates/product/list.phtml

But unfortunately, not working.

I know the one way to override vendor custom theme files, create and register new theme with a parent vendor custom theme to make this work.

But I would like to know if there is any other way to work this without creating another theme?

Note: the Custom theme is developed by previous company and they do not provide composer credentials to update custom theme from the composer. So we must override custom vendor theme to app/design/frontend


texts:
I have to debug some custom templates and find an error. What I have found now is that the function that lead to the error needs a Varien_Data_Tree_Node to work, but in some cases this function gets a Mage_Catalog_Model_Category.

Now my question is, can I somehow create a Varien_Data_Tree_Node out of a Mage_Catalog_Model_Category ?

Edit some code:

in some cases:

$obj = new Mage_Catalog_Block_Navigation();
$store_cats = $obj->getStoreCategories();
foreach ($store_cats as $_category){
  drawChildren($_category, 0, $path_ids);
}

while here is $_category from type: Varien_Data_Tree_Node. This works cause the function drawChildren needs a Varien_Data_Tree_Node.

In other cases the same function is called via:

$_category = Mage::getModel('catalog/category')->load($categoryId);
drawChildren($_category, 0, $path_ids);

while here is $_category from type: Mage_Catalog_Model_Category. And this does not work. So my idea is to create a Varien_Data_Tree_Node but not from the rootcategory, but from the category in Mage_Catalog_Model_Category as topcategory.

the function itself looks like this:

function drawChildren($category, $recLevel, $pathIds) {
    // small security measure in case looped categories are possible
    if ($recLevel > 5) {
        break;
    }

    $children = $category->getChildren();
    echo get_class($category);
    $childrenCount = $children->count();

    $_helper= Mage::helper('catalog/category');

    if ($childrenCount > 0) {

        foreach($children as $child) {

            // check if the current child has children on its own
            // call the function recursively if it does
            $grandchildren = $child->getChildren();
            $gCount = $grandchildren->count();

            if ($gCount > 0 && in_array($child->getId(), $pathIds)) {
                drawItem($_helper->getCategoryUrl($child), $child->getName(), $child->getId(), 0, $pathIds);
                echo '
';
                drawChildren($child, $recLevel + 1, $pathIds);
                echo '

';
            }
            else {
                drawItem($_helper->getCategoryUrl($child), $child->getName(), $child->getId(), 1, $pathIds);
            }
        }
    }
}


texts:
running bin/magento setup:di:compile hangs at 14% forever. Already allocated 1G RAM and incrased execution time 18000

running again with

bin/magento setup:di:compile -vvv

after 20 minutes

Compilation was started.
Proxies code generation... 0/7 [>---------------------------]   0% 1 sec 61.2
MiProxies code generation... 1/7 [====>-----------------------]  14% 2 mins 70.2 M
Repositories code generation... 1/7 [====>-----------------------]  14% 2 mins 70.2 MiB


texts:
Is there a way to "bound" two different attributes to the same attributes options?

I have two attributes with dropdowns, but I want them to share same options. Now every time I want to add a new option or edit existing one I have to do it twice.

Please let me know what is the best way to achieve such thing.


texts: What is Category Landing Page in MAGENTO ? Explain about it

texts: I have to create a category landing page in magento but i have no idea about what is about this page. Please explain about this .


texts: Overwritten Mage_Checkout controller method to a local module not calling

texts:
I am overwriting the Mage_Checkout addAction() controller to my local module.But my local module not called, only Mage_Checkout is calling.

My Code

config.xml

<config>
<!-- modules -->
<modules>
    <Manik_Checkout>
        <version>0.1.0</version>
    </Manik_Checkout>
</modules>

<frontend>
    <!-- overriding Mage_Checkout -->
    <routers>
    <checkout>
        <args>
            <modules>
                <Manik_Checkout before="Mage_Checkout">Manik_Checkout</Manik_Checkout>
            </modules>
        </args>
    </checkout>
    </routers>
</frontend>
</config>

IndexController.php

require_once 'Mage/Checkout/controllers/IndexController.php';
class Manik_Checkout_IndexController extends Mage_Checkout_IndexController
{
    function indexAction()
    {
        Mage::log("My Action..");
    }
}

So, how to solve my problem.How to overwrite core controllers to local module.


texts: Magento 2: After Customer Login Get Cart Information?

texts:
Customer has already Items in Cart. He is logout.

I'm using customer_login observer. It is correct?

How to get customers all cart information after his successfull login?

namespace Custom\Module\Observer;

use Magento\Framework\Event\Observer;
use Magento\Framework\Event\ObserverInterface;
use Magento\Framework\App\ObjectManager;

class CustomerLoginAfter implements ObserverInterface {

    protected $checkoutSession;
    protected $cart;

    public function __construct(\Magento\Checkout\Model\Session $checkoutSession, \Magento\Checkout\Model\Cart $cart) {
        $this->checkoutSession = $checkoutSession;
        $this->cart = $cart;
    }

    public function execute(Observer $observer) {

        $quoteItemsAll = $this->checkoutSession->getQuote()->getAllItems();
        echo count($quoteItemsAll);
        exit;
        return $this;
    }

}

It gives 0 count. While I already have 6 Items in Cart.

How to get customer's previous quote & it's items?