texts: Magento 2.3 Installation worked on Ubuntu 18.04, but after Ubuntu Restart Magento Page will not load any more. Any Ideas what could be the Problem?

texts:
I need your help. I am new to Magento 2.3 and first everything worked perfect after the Installation on my Ubuntu 18.04 Maschine, but after my first Ubuntu restart the Magento Shop Page and Admin Page arent loading any more.

My first thought was that Apache or SQL are not running, but i checked and they have the status active. But Apache2 throws some errors (you can find them in the screenshot). Could this errors be the problem and if so, how can i solve them?

If you dont think that this errors are the problem, do you have any other idea?

I would be very releaved if you could help me with this problem, because I already wasted to much time and effort with this Problem and a proper Magento 2.3 Installation. Thanks a lot!


texts:
I would like to override this file in my module but cannot find the reference name for

base/default/template/email/order/shipment/track.phtml

<layout version="0.1.0">
    <????>
        <reference name="????">
            <action method="setTemplate">
                <template>namespace/email/order/shipment/track.phtml</template>
           </action>
        </reference>
    </????>
</layout>

what should i be replacing the question marks with?


texts: can't install magento2 extension from backend. Why?

texts:
I have installed magento 2.2.2 successfully. Now I trying Installed some extension from magento admin panel using web setup wizard option. I Find my extension and proceed to install. But it's stop on third step. Display don't any error.

here is third step.

Now, magento stay here. Please let me know what I need to do now?
I am new In magento 2. Please help. Thanks in Advanced.


texts: Magento 2: Custom value save in sales_order_grid table

texts:
I have a custom column in the sales_order_grid table and want to save some custom values that are not in sales_order table.

Too many tutorials are there that populate sales_order table column into sales_order_grid table via di.xml but my requirement is a little bit different. I want to save some other data that is not in sales_order table.

am using observer sales_model_service_quote_submit_before and it fire when order place .

Now how can save value in custom attribute in sales_order_grid table using model


texts: How can I get latest products as a REST API to display in mobile application home screen ?


texts: Some product images are not displayed on home page

texts: On a home page, Banner images are not displayed and getting some kind of errors in the console.


texts: Order Status only showing "Processing" option and no other

texts:
Hi I found a strange error where under the order grid, I can only select "Processing" and not my other options, despite that I have at least 5 other optoins.  Here is a screen clip.

However I created a few options none of which are showing up.  Can anyone help?
Here are some of the order status options I have, all of which are not showing up except for Processing!


texts: how to customize product price display in product page magento 2

texts:
hi  I want to customize the price display in product details page Magento 2

  where I can customize the codes

  (path)

my goal:

1) I want to add a label near the First price .

2) How I can display a discount in percentages (%) .

Can anyone tell me where I can do this updates ?

Magento version 2.2.6.

amount/default.phtml

<?php /** @var \Magento\Framework\Pricing\Render\Amount $block */ ?>

<span class="price-container <?= /* @escapeNotVerified */ $block->getAdjustmentCssClasses() ?>"
        <?= $block->getSchema() ? ' itemprop="offers" itemscope itemtype="http://schema.org/Offer"' : '' ?>>
    <?php if ($block->getDisplayLabel()): ?>
        <?= /* @escapeNotVerified */ $block->getDisplayLabel() ?>
    <?php endif; ?>

Exclusive of Tax :
 <span <?php if ($block->getPriceId()): ?> id="<?= /* @escapeNotVerified */ $block->getPriceId() ?>"<?php endif;?>
        <?= ($block->getPriceDisplayLabel()) ? 'data-label="' . $block->getPriceDisplayLabel() . $block->getPriceDisplayInclExclTaxes() . '"' : '' ?>
        data-price-amount="<?= /* @escapeNotVerified */ $block->getDisplayValue() ?>"
        data-price-type="<?= /* @escapeNotVerified */ $block->getPriceType() ?>"
        class="price-wrapper <?= /* @escapeNotVerified */ $block->getPriceWrapperCss() ?>"
    ><?= /* @escapeNotVerified */ $block->formatCurrency($block->getDisplayValue(), (bool)$block->getIncludeContainer()) ?>
    <?php if ($block->hasAdjustmentsHtml()): ?>
        <?= $block->getAdjustmentsHtml() ?>
    <?php endif; ?>
    <?php if ($block->getSchema()): ?>
        <meta itemprop="price" content="<?= /* @escapeNotVerified */ $block->getDisplayValue() ?>" />
        <meta itemprop="priceCurrency" content="<?= /* @escapeNotVerified */ $block->getDisplayCurrencyCode() ?>" />
    <?php endif; ?>


texts:
We can pass a variable to a .phtml view file like this:

$currentTime = date("H:i", time());
$someValue = 123;

$this->loadLayout();

$this->getLayout()
    ->getBlock('newsletter_popup')
    ->assign('currentTime', $currentTime);

$this->renderLayout();

But how to pass multiple variables?

How can I pass $someValue too?

In Laravel it works like this:

return $view->with('currentTime', $currentTime)->with('someValue', $someValue);

Does it work like this in magento too?


texts: Magento 2.3 reindex design_config_grid stucks on processing

texts: design_config_grid and customer_grid stuck on processing when I use bin/magento indexer:reindex. Even after bin/magento indexer:reset and changing status to Invalid, when I reindex again, they stuck on processing and I get this message: State for the same view already exists.


texts:
I am working on MAGENTO 1.9.2.4 Emails are not going in it through zend mail and php mail function even testMail emails also are not going.I have then send mails through PHP Mailer and tested it,test mail working fine with it.

Installed SMTP Pro extension showing following error:

SMTP Pro Self Test Results
Sending test email to your contact form address: care@onestopretail.in from: care@onestopretail.in. Unable to send test email.
Your connection to the SMTP server timed out. Please check with your host that outbound SMTP connections are allowed as this error is most commonly caused when a host blocks outbound connections. This is probably not a bug, please do not email extension support until you have checked with your server admin or host.
Default templates exist.
Email communications are enabled.


texts: Magento2.3 Hide new address form button on checkout page based on customer groups

texts:
I want to hide this new address button based on customer group. I want to use conditions for hiding that button. If anyone knows please let me know.

Check this still loadind and console.


texts: magento 2.4.2 updated get The store will not work correctly in the case when cookies are disabled

texts: When I upgraded my webiste from M2.3.5 to M2.4.2, I get this notice "The store will not work correctly in the case when cookies are disabled." on top of head frontend for 3 seconds. But I installed a new M2.4.2 have not get that notice(Cookie Restriction Mode = No) . I found div id named "cookie status" The store will not work correctly in the case when cookies are disabled. but I can't find which file can control this. I don't need the notice display, so how to do that? Thanks


texts: Magento_CatalogUrlRewrite foreign key constraint error after OneStepCheckout Module install

texts:
Magento_CatalogUrlRewrite

SQLSTATE[HY000]: General error: 1823 Failed to add the foreign key constraint 'lampesecoenergie2/CAT_URL_REWRITE_PRD_CTGR_CTGR_ID_CAT_CTGR_ENTT_ENTT_ID' to system tables

After OneStepCheckout Module enable

And run the setup:upgrade php bin/magento setup:upgrade; got error

Now site is working but setup:upgrade php bin/magento setup:upgrade; run we got the error


texts: How reorder verifies guest and logged in user

texts:
When customer or guest uses "reorder" Magento2 somehow verifies, that user has access to order details (either logged in person owns order or guest verified that it is his order through /sales/guest/form/). I am trying to use the same mechanism to verify if the user can return an order, but I can't find out how Magento2 verifies the user. Does anyone know?
So far I have tried:

$this->_customerSession->authenticate($loginUrl) [doesn't work at
all with guest and doesn't verify if logged in user owns the order]
$this->_formKeyValidator->validate($this->getRequest()) [checks only
if the form was created by Magento and doesn't verify if the user owns the
order]

Thank you in advance for any hints!

Following @pmclain instructions, I have created the following code, which is working. Thank you!

public function __construct(
    \Magento\Framework\App\Action\Context $context,
    \Magento\Framework\App\Request\Http $request,
    \Magento\Sales\Api\Data\OrderInterface $order,
    \Magento\Sales\Controller\AbstractController\OrderViewAuthorization $loggedAuthorization,
    \Magento\Sales\Helper\Guest $guestAuthorization
){
    $this->_request = $request;
    $this->_order = $order;
    $this->_loggedAuthorization = $loggedAuthorization;
    $this->_guestAuthorization = $guestAuthorization;
    parent::__construct($context);
}

/**
 * @param string $type (guest || logged)
 * @param int $orderId Order Id
 * @return bool|resultRedirect
 */
private function _validate($type, $orderId)
{
    if($type === 'guest') {
        // TRUE if validated; resultRedirect Object if not
        $validated = $this->_guestAuthorization->loadValidOrder($this->_request);
    } else {
        //TRUE if validated; FALSE if not
        $validated = $this->_loggedAuthorization->canView($this->_order->load($orderId));
    }
    return $validated;
}


texts:
I upgrade my version of magento 2.1.6 to 2.3.2.
Now I have kind of problem with php bin/magento system:upgrade.
In file system cleanup the last line is :

  The directory '/var/www/MyWebSite/magento/generated/metadata/' doesn't
  exist - skipping cleanup

In Updating modules / schema post-updates :

  Notice: Undefined index: getUpdateOnlineCart in
  /var/www/MyWebSite/magento/vendor/magento/framework/Reflection/MethodsMap.php
  on line 81

I don't fully understand what is the problem; someone have an idea ?

PS: if you need more info or in case of minus please let me know like that I can update my post

EDIT
Actually I am using this extension https://www.magestore.com/catalog/product/view/_ignore_category/1/id/208/s/magento-pos-integration-extension#overview-box, it is not compatible with magento 2.3 ? because the problem look to come from here


texts: How to set a certain country as default in guest from and not select another one

texts:
i would like to set the country in guest checkout form for invoice und delivery adress hardcoded to default country x. And no other country should be able to getting selected.
How do i managed this?
Thanks already for support
Greetz


texts: Magento 2: How to set from admin to see all the routes of my web content?

texts:
I have seen people setting something in the Admin, to see all the files routes of all the content in the store, I just want to know how to do that set.

If someone can help, I would appreciate it.


texts:
Even when I navigate to a product without using search, the breadcrumb only shows home > product name.
How can I fix this? It's working correctly in development, but not my live site, which leads me to assume that I changed a setting somewhere, but I'm not sure where.
Thanks


texts: Magento 2: summary.phtml override not working

texts:
I am trying to override summary.phtml file so I can change the functionality of the review button which is below product title, ex:'3 reviews' & 'add new review'.

File: summary.phtml

File Path:

  Magento/module-review/view/frontend/templates/helper/summary.phtml

I already override form.phtml to customize my review form, so here is my xml.

File: default.xml

File Path:

  SimpleMagento/ReviewCustomer/view/frontend/layout/default.xml

<referenceContainer name="content">
   <referenceBlock name="product.review.form">
      <action method="setTemplate">
        <argument name="template" xsi:type="string">SimpleMagento_ReviewCustomer::form.phtml</argument>
      </action>
   </referenceBlock>
   <referenceBlock name="product.info.review" >
      <arguments>
          <argument name="template" xsi:type="string">SimpleMagento_ReviewCustomer::helper/summary.phtml</argument>
      </arguments>
   </referenceBlock>
</referenceContainer>

override summary.phtml File Path:

  SimpleMagento/ReviewCustomer/view/frontend/templates/helper/summary.phtml

after many try its still load core summary.phtml file, not mine.
What I am doing wrong? Thanks


texts: Magento 2 get CMS page url and output it to a html file

texts:
I have the following code in a html file.

<input type="checkbox" name="extra_fee_flag" class="checkbox" id="extra_fee_flag" value="1"/>

 &nbsp; +

in the A tag, I have a hardcoded link to the sales and condition page which is a CMS block. How can I get the url of this page dynamatically so even one day the url is change in the admin, this link will still be working?


texts: Need all attributes in specification tab to be in a 2 column

texts:
I use  magento 2.3.4 site which utilizes over 20 attributes but the issue is this that all the attributes are listed in a single column and make the product page lengthy when the attribute tab is selected.
I need the entire contents of the attributes tab of the product page in 2 columns. I am using Porto magento 2 theme and this is the demo of the page I am using - https://www.portotheme.com/magento2/porto/demo27_en/product-short-name-25.html


texts: How to change message position in magento 2

texts:
I want to show a message like error or success in below Login Button instead of page top in login page.

How to change message position in below Login Button in Magento 2?


texts: Add the CE module Mage_PageCache to an EE instance

texts:
I have a Varnish module that uses the interface provided by Mage_PageCache. Unfortunately, Mage_PageCache exists only in CE. The reason is probably that EE has its own PageCache module as a complete replacement (see: Mage_PageCache - External full page cache), but the Enterprise Full Page Cache does not provide an interface for external caches, so I cannot use it in the same way.

Now I want to use this Varnish module in a Magento Enterprise instance.

I could rewrite it to work as a standalone module (after all, Mage_PageCache doesn't do much on its own). But I would like to know if there are any known problems with Mage_PageCache and Magento EE, especially conflicts with the Enterprise_PageCache module:

Is is possible/safe to add Mage_PageCache to a Magento Enterprise installation?

Ideally, Enterprise FPC should still be active additionally.


texts: how to override Catalog\Category\Abstract.php

texts:
I want to override Catalog\Category\Abstract.php page. I have modified following things

config.xml

<global>
    <blocks>
        <adminhtml>
            <rewrite>
                <catalog_category_abstract>Customization_Adminhtml_Block_Catalog_Category_Abstract</catalog_category_abstract>
                <permissions_user_grid>Customization_Adminhtml_Block_Permissions_User_Grid</permissions_user_grid>
                <permissions_user_edit_tab_main>Customization_Adminhtml_Block_Permissions_User_Edit_Tab_Main</permissions_user_edit_tab_main>
            </rewrite>
        </adminhtml>
        <customization_adminhtml>
            <class>Customization_Adminhtml_Block</class>
        </customization_adminhtml>
    </blocks>
</global>

I have created Folder Structureapp\code\local\Customization\Adminhtml\Block\Catalog\Category
Catalog\Category\Abstract.php page

include "Mage\Adminhtml\Block\Catalog\Category\Abstract.php";
class Customization_Adminhtml_Block_Catalog_Category_Abstract extends
Mage_Adminhtml_Block_Catalog_Category_Abstract
{


texts:
We are working on Magento 1.7.0.2 (community). We have created multiple websites. Our query is, is there way to indexing on selected website or store? like website or store level configuration.

Consider the the scenario, we have 3 website (WEBSITE1, WEBSITE2, WEBSITE3) and 3 store (STORE1, STORE1, STORE1)
1. If we update WEBSITE1 and STORE1 then indexing will only for WEBSITE1 and STORE1.
2. If we update WEBSITE2 and STORE2 then indexing will only for WEBSITE2 and STORE2.
3. If we update WEBSITE3 and STORE3 then indexing will only for WEBSITE3 and STORE3.

Please help us.


texts:
when i open my site with https some js missing. If i open with http it's working fine. I have installed SSl after redirect to https. I have also check store->configuration->web->Secure url but it's all set. See below js files are missing

  sitepath/pub/static/frontend/emtheme/theme_name/en_CA/jquery/jquery-storageapi.js
  sitepath/pub/static/frontend/emtheme/theme_name/en_CA/dropdownDialog.js
  sitepath/pub/static/frontend/emtheme/theme_name/en_CA/equalElement.js
  sitepath/pub/static/frontend/emtheme/theme_name/en_CA/domReady.js
  sitepath/pub/static/frontend/emtheme/theme_name/en_CA/modal.js

Also same issue arrive in checkout page.


texts: Get order Details from Magento 2 Observer

texts:
I am trying to build a Magento 2 Order Observer in which I am trying to get the Product Details such as Product ID, Product Name, Product SKU, Product Quantity and Customer Details such as Customer ID, Customer Name, Shipping Address & Phone Number.

Below is my Observer.php

<?php

namespace My\Plugin\Observer;

use Magento\Framework\Event\ObserverInterface;

class LogAddMessage implements ObserverInterface {

protected $_logger;

public function __construct(
\Psr\Log\LoggerInterface $logger, array $data = []
) {
    $this->_logger = $logger;
}

public function execute(\Magento\Framework\Event\Observer $observer) {
    $order = $observer->getEvent()->getOrder();
    $order_id = $order->getID();
    $order_number = $order->getIncrementId();
    foreach ($order->getAllItems() as $item) {
            $ProdustIds[] = $item->getProductId();
            $ProdustSku[] = $item->getSku();
            $proName[] = $item->getName(); //product name
            $this->_logger->addDebug('Item Name: ' . $item->getName() . 'Item ID: ' . $item->getProductId());
        }
        $proName = json_encode($proName);
        $ProdustSku = json_encode($ProdustSku);
        $customerId = $order->getCustomerId();
        $objectManager = \Magento\Framework\App\ObjectManager::getInstance();
        $customer = $objectManager->create('Magento\Customer\Model\Customer')->load($customer);
        $address = $observer->getShippingAddress();
        $address = json_encode($address);
        $name = $customer->getName(); //customer name
        $this->_logger->addDebug('Order ID: ' . $order_id . ', Products: ' . $proName . ', SKU: ' . $ProdustSku . ', Customer ID: ' . $customerId . ', Customer Name: ' . $name . 'Address: ' . $address);
    }

}

On clicking Place Order in Multi Store Magento Website, magento_website_url/rest/store_code/V1/guest-carts/cart_id/payment-information gives a 500 Internal Server Error


texts: Why can't I call custom if-check on product view?

texts:
I've got a (custom) module which allows me to add YouTube video's to a product. I call that module in my local.xml like such:

<block type="mymod_catalog/video" name="video" template="catalog/product/view/video.phtml" />

I call the block in my catalog/product/view.phtml like so:

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

And in the included template file video.phtml it has a check like this:

<?php if($this->getProductVideo()): ?>

But if I use that if-check in my view.phtml it doesn't work (it's always false). I can't figure out why, though. Can anybody tell me what I'm missing?


texts:
I am facing a very big problem in magento regarding cache, I am using 1.7 version of magento and I have a file where I am checking page title but result is correct only on first hit.And after that the old cache result.
How do I resolve it?


texts:
Magento offers support for different database back-end.

I wonder which one of the OpenSource DB Backend (like MySQL or MariaDB ...) has better performance with  Magento architecture.

I know that Magento workload is more cpu/cache oriented however it still has 250+ tables and an EAV model.


texts: Learn zend, magento modules and magento API

texts: I can already use magento and I have some php basics. Now I would like to deepen zend, magento modules and magento API. You could link me all the best resources to learn this?


texts:
We have two instances of Magento 2.2.4:

Site 1
With porto theme and a lot of customisation.

Site 2
No theme installed.

We have purchased porto theme once again for the second site.
Is there a way to get all the customisation from site 1 to site 2 easily?

Thanks!


texts: Session validation failure in Magento 1 EE v 1.14.3.x (and CE 1.9.3.x)

texts:
I'm looking after a Magento shop with 400-500 visitors and 40-50 orders per day.
Recently system was upgraded from Magento EE 1.14.2.4 to Magento EE 1.14.3.2 and I noticed some strange exceptions in logs:

exception 'Mage_Core_Model_Session_Exception' in
/var/www/.../app/code/core/Mage/Core/Model/Session/Abstract/Varien.php:418

I was chasing that exception and I do know that it is being fired because the following session validation code fails to validate the session:

class Mage_Core_Model_Session_Abstract_Varien extends Varien_Object
{
// ...
    protected function _validate()
    {
//    ...
        if ($this->useValidateSessionExpire()
            && isset($sessionData[self::VALIDATOR_SESSION_EXPIRE_TIMESTAMP])
            && $sessionData[self::VALIDATOR_SESSION_EXPIRE_TIMESTAMP] < time() ) {

This if-block was added to the file with latest release from Magento. And this is a braking change apparently, see more details below.

The exception is happening quite often, like a dozen times per day. but I'm not able to recreate conditions which lead to the exception, unless I literally put true in the condition above. The
exceptions most often occurs on product detail pages and on the last step of one page checkout. The shop is a b2b shop, the user must be logged in to see product page or to be able to checkout, means user is redirected to login pages when session is invalidated/expired. At the moment it is more important for me to fix this problem during checkout.

What happens from user perspective:
User fills the cart, proceeds to checkout and reaches last step, then he/she hits the "submit the order" button and nothing happens. Behind the scenes Magento's JS performs an AJAX request and JS expects to receive JSON back, but if this error happens the HTML of login page is returned, which can not be parsed by JavaScript and it just does nothing. That is super confusing for users.

Well, that is not complete user scenario, we contacted users and they told us that they waited for few days between filling the cart and submitting the order, what that exactly means is hard to figure out, because people simply don't remember that.

PHP session lifetime - 350000 (~4 days in seconds)
Cookie lifetime - 345600 (4 days)

Here is the actual question:
how can I find out what sort of user behavior lead to the exception?

UPDATE
So far I know that exception happens in following classes according to the request made, to me that means nothing unfortunately.

/catalogsearch/result/?q=…    Mage_Core_Model_Session
/checkout/cart/               Mage_Core_Model_Session
/checkout/onepage/saveOrder/… Mage_Rss_Model_Session
/customer/account/loginPost/  Mage_Core_Model_Session
/customer/account/loginPost/  Mage_Reports_Model_Session
/customer/account/logout/     Mage_Reports_Model_Session
/catalog/product/view/…       Mage_Reports_Model_Session
/catalog/product/view/…       Mage_Tag_Model_Session

UPDATE 2: sessions are stored in files and cleaned up by PHP session garbage collector, whether this is a good choice or not is out of the scope of this question.


texts: Magento 1.9.2 wysiwyg editors not showing in CMS page

texts: Editors are not showing in content area, Need a help. Can any help me? It's badly needed help.


texts: Removing HTML Escape on history item comment

texts:
My theme has a file:

app/design/{theme}/default/template/sales/order/view.phtml

Around line 78:

<?php if (count($_history)): ?>

<?php echo $this->__('About Your Order') ?>

        <?php foreach ($_history as $_historyItem): ?>

<?php echo $this->formatDate($_historyItem->getCreatedAtStoreDate(), 'medium', true) ?>

<?php echo $this->escapeHtml($_historyItem->getComment()) ?>

        <?php endforeach; ?>

<?php endif; ?>

Our comments include HTML tags. Is it safe for me to remove the $this->escapeHtml() method so that the HTML is rendered on this page on the frontend?


texts: How to sort and Filter the products in magento Soap Api

texts:
I am developing an android eCommerce application where I have to add Sort and filter option in my app. Here is my code of sort.php but its not working please help in this php script.

<?php
require_once('../app/Mage.php'); //Path to Magento umask(0);

if(isset($_GET["sort"])){

$sort=$_GET["sort"];

  $ids = array();
  Mage::app();

     // Code to Search Product by $sort and get Product IDs
     $product_collection = Mage::getResourceModel('catalog/product_collection')->addAttributeToSelect('*')->addAttributeToFilter('name', array('like' => '%'.$sort.'%'))->load();

     foreach ($product_collection as $product) {
        $product2 = Mage::getModel('catalog/product')->load($product->getId());
        $productMediaConfig = Mage::getModel('catalog/product_media_config');
        $price=0;
        $price2=0;
        $price=$product->getData('price');
        $price2=$product2->getFinalPrice();

           $desc=$product2->getDescription();
           if($desc==""){
            $desc="blank";
           }
           $baseImageUrl = $productMediaConfig->getMediaUrl($product2->getImage());
           if($baseImageUrl=="http://prashant.com/media/catalog/product/"){
            $baseImageUrl="http://prashant.com/customApi/icon.png";
           }

         $ids[] = array(
                'productId' => $product->getId(),
                'price'      => $price,
        'name'       => $product->getData('name'),
        'imageurl'  => $baseImageUrl,
        'desc'       => $desc,
        'spprice'    => $price2,
        );
     }

    echo json_encode($ids);
    exit();
}else{
    echo "error";
    exit();
}


texts: How can I display a custom attribute for upselling products?

texts:
I want to add the following custom attribute to my upsell block:

So I tried

        <?php $_link->getBasePriceAmount(); ?>

and

        <?php $_link->getAttributeText('base_price_amount'); ?>

but both don't work.


texts: Magento 1.9 Default Product Sorting on category pages

texts:
We are on Magento 1.9.3.9 and have run into a problem with the order of our products on the category pages.

The default display was always set to BEST VALUE or POSITION ORDER and then we determined the order the products would display using in the DISPLAY SETTINGS of the category. But they are now displaying in random order and I have tried everything to fix it.

I have attached a couple of screenshots.

Any suggestions would be greatly appreciated. Thanks

https://imgur.com/a/g1WcO7q


texts: Magento 2 Reset order increment id after deleting test orders

texts:
I've cleaned my db from the test orders, following this instructions here

https://stackoverflow.com/questions/37861046/how-to-remove-test-orders-from-magento2

But the order increment id, still remains the same.

Which table do I to alter to reset the order increment id?
I see the sequence is incremented in sequence_order_1 table but I'm not sure if this would be the correct place


texts:
i am using magnto 2.3.x,
how can i call the customer group Name in phtml
not a customer group ID.
Thanks for help


texts:
I want to override customer/address/edit.phtml and customer/form/address.phtml files for my module, In my module layout.xml I used the code below for edit.phtml but didn't override:

<customer_address_form translate="label">
    <reference name="customer.address.edit">
        <action method="setTemplate">
            <template>mycompany/mymodule/customer/address/edit.phtml</template>
        </action>
    </reference>
</customer_address_form>


texts: Magento 2 - How to create post form in admin?

texts:
I want to create a post form by using UI component, it has 2 selectbox, 1 submit button and URL to submit.

Currently, I use .xml layout and template .phtml to render html but I want use UI component because it look beautiful and professional.

What can I do? Thanks,


texts: Order / Invoice - Prefix "16-" NOT POSSIBLE?

texts:
I need to customize my prefix for the order / invoice ID´s.
So my order number should look like this: 16-0001
I need the year as prefix with an "-". But when I try this:

UPDATE eav_entity_store SET increment_prefix = 16-, increment_last_id = '16-00000' WHERE store_id = 1 AND entity_type_id = 5; # orders

I get an mysql error. So can anybody say how i do this or it is not possible?


texts: Magento/Argento Theme - Move Categories above Compare Products

texts:
I have the Argento theme and I am trying to move the "Navigation" (categories list) above the "Compare Products" block in the left sidebar / left nav.  I am currently using the mall theme and have tried to modify the code in the following locations:

  app/design/frontend/argento/mall/layout/local.xml
  app/design/frontend/argento/default/layout/argento.xml
  app/design/frontend/base/default/layout/catalog.xml
  app/design/frontend/base/default/template/tm/navigationpro/sidebar.phtml

None of these contain blocks which can be reordered or contain "before" or "after" tags in blocks or references.

Does anyone have experience with modifying the order of elements with the Argento Mall theme?  Can you direct me to the right file?  Thanks in advance!


texts: How to control Position of Product Attribute in Grids

texts:
I have created a Product Attribute called Local Price in Attribute Set of Default, I selected the order so it appears directly above Price... which works fine with the edit form...

However in both the configurations grid on the same edit form and the main product grid it either does not appear or appears in an unexpected place.  I can drag to reorder, but I'd like this to be default behaviour.


texts: how to use factory method for this collection in Magento 2

texts:
$object method is working for me but i want to convert this collection in factory method.

$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$productCollection = $objectManager->create('Magento\Eav\Model\ResourceModel\Entity\Attribute\Group\Collection');


texts:
I am trying to add custom CSS without creating a theme and these are my steps.
Step 1
I create a mycss.css file
body{
 background-color:green;

 }

and this is the path

app/code/vendor/module/view/frontend/web/css/mycss.css

Step 2
I create a test_index_index.xml file with this content
?xml version="1.0"?>
     <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_layout.xsd">
       <head>
          <css src="vendor_Module::css/mycss.
     </head>
       <body>
         <referenceContainer name="content">
              <block class="vendor\Module\Block\class" template="vendor_Module::class.phtml"/>
         </referenceContainer>
     </body>
    </page>

Which is located at

app/code/vendor/module/view/frontend/layout/test_index_index.xml

Reference Magento 2: How to add css and js in custom module in magento 2?
Unfortunately, on my frontend nothing changes. Does anybody know why?


texts: magento 1.9 remove checkbox in terms and condition

texts:
is it possible to remove check box in terms and conditions
i am not developer just check point which you mention and solved me problem.

please see the screen shot


texts: Editing Order instead of creating a new Order

texts:
I'm working on a marketplace (multiple sellers). My client has a requirement, where he wants to edit an order and update the items in an order. I tried my best to convince him that instead of editing the order we should follow the magento's existing way, ie cancel and current order and generate a new one. But he dont want to do that. So when while editing an order he wants following features like :

Replace an item with a new item (new item may have price
differences).
Remove or cancel and item from the order.
Update the Quantity of the item.

I have came across answers like this where it only updates the price. But in my case i might have to completely replace an item with another item. If i have to replace an item could someone suggest me what are tables that i might need to edit.

I know that its not a recommended way, but i need to do it.


texts: In API call get data How to restrict some attributes to be fetched?

texts:
By default, all attribute is got by using the API calls so just want to restrict some attribute is not able to fetch via API call how can we achieve same? how to send only select attribute in API call?

E.g http://localhost.com/index.php/rest/V1/products/:sku

above API call give all details about the product so I want to restrict some attribute and those attributes are not included in result

How it's possible any idea?


texts:
As it stand I have managed to pull the Customer Group ID, Price Quantity and the Price itself. However there are other attributes:

Price ID
Website ID
All Groups
Percentage Value
Website Price

None of these I am able to access currently. Here is my current code snippet:

$product = $this->_productRepository->get($productId);
    $tierPrices = $product->getTierPrices();
    $arrayToSend = [];

    if(count($tierPrices) > 0){
        foreach($tierPrices as $tier){
            if($tier->getCustomerGroupId() == $custGroupId){
                array_push($arrayToSend, $tier->getData());
            }
        if(count($arrayToSend) == 0){
            array_push($arrayToSend, "Creating a new Special Price with given values because it doesnt exist already");
        }

    }

    return $arrayToSend;

}

And this then returns:

[
    {
        "extension_attributes": {},
        "customer_group_id": "1958",
        "value": "4.5000",
        "qty": "1.0000"
    }
]

The goal is to return all of the attributes so that I can then edit them and create new ones. Below is all the attributes when pulling directly from the product without filtering by getTierPrice() :

"tier_price": [
    {
        "price_id": "15924",
        "website_id": "0",
        "all_groups": "0",
        "cust_group": "14",
        "price": "3.0000",
        "price_qty": "1.0000",
        "percentage_value": null,
        "website_price": "3.0000"
    }
],

Any assistance with getting the remaining attributes would be appreciated.


texts: Filters products by manufacturers, Brands, Price etc in android

texts:
Hi I am developing magento e-commerce application in android. I want to filter products with Manufacturers, Brands, Price etc.
Is this possible using magento's "catalogProductList" ksoap2 api?

Below is my code which is working for single filter "price".

SoapObject filterResult = new SoapObject(NAMESPACE, "catalogProductList");
                filterResult.addProperty("sessionId",sessionID);

                SoapObject value = new SoapObject(NAMESPACE, "associativeEntity");
                value.addProperty("key", "in");
                value.addProperty("value", "50.0000");

                SoapObject complexFilter = new SoapObject(NAMESPACE, "complexFilter");
                complexFilter.addProperty("key","price");
                complexFilter.addProperty("value",value);

                SoapObject filterArray = new SoapObject(NAMESPACE, "complexFilterArray");
                filterArray.addProperty("item",complexFilter);

                SoapObject filters=new SoapObject(NAMESPACE, "filters");
                filters.addProperty("complex_filter", filterArray);
                filterResult.addProperty("filters", filters);

for the above code how can I send array of filters ?
Ex : Price (100 to 200),(300 to 400)
     Brands (Brand1,Brand2,Brand3 etc)?


texts: "Configuration parameter is required for the "sources" component." error after upgrade to 2.3.2?

texts:
After I upgraded from 2.2.3 to 2.3.2 I am getting this error when I try to open a product in the admin:

array(4) { [0]=> string(84) "The "componentType" configuration parameter is required for the "sources" component." [1]=> string(275147) "

The full stack trace can be found on https://pastebin.com/BCCKQDCV.

Any idea where to look?

Thanks!


texts:
After upgrading to Magento 1.7.0.2, two images in the template navigation bar are showing as unsecure at the checkout.

I know the HTTP source but how do I find them in the file manager through Cpanel and how would I go about fixing this?

Thanks,


texts: Save custom field value from the quote table to sales order table

texts:
I am facing a problem to save custom field value from the quote table to sales order table. I have the custom field in quote table and sales order table, but the value is not saving in the sales order table. I am using observer with “sales_order_place_before” and here is my code

namespace Tristar\AffiliateCode\Observer;
use Magento\Framework\Event\Observer;
use Magento\Framework\Event\ObserverInterface;
use Magento\Quote\Model\QuoteFactory;
class Placeorder implements ObserverInterface
{
    /**
     * @var \Psr\Log\LoggerInterface
     */
    protected $_logger;

    /**
     * @var \Magento\Customer\Model\Session
     */
    protected $quoteFactory;

    /**
     * Constructor
     *
     * @param \Psr\Log\LoggerInterface $logger
     */

    public function __construct(\Psr\Log\LoggerInterface $logger,
                               \Magento\Quote\Model\QuoteFactory $quoteFactory) {
        $this->_logger = $logger;
        $this->quoteFactory =   $quoteFactory;
    }

    public function execute(Observer $observer)
    {
        $order = $observer->getOrder();
        $quoteId = $order->getQuoteId();
        $quote  =   $this->quoteFactory->create()->load($quoteId);
        $affileatevalue =   $quote->getAffiliateCode();
        $order->setAffiliateCode($quote->getAffiliateCode());
        $order->save();
    }
}

Here is my event.xml file and the file location is "etc/frontend/"

 <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
<event name="checkout_cart_product_add_after">
    <observer name="tristar_affiliate_code" instance="Tristar\AffiliateCode\Observer\AddToCartAfter"/>
</event>
<event name="sales_model_service_quote_submit_before">
    <observer name="tristar_affiliate_code_order_place_before_action" instance="Tristar\AffiliateCode\Observer\PlaceOrder"/>
</event>


texts: magento 2 keep the applied filters in opened state

texts:
I wish to make changes in the layered navigation filter, so that all the applied filters are visible(opened state).
For example I am selecting red in color filter, all other options in color filter should be visible. Color filter collapsible behaviour should be open.


texts:
I want to rewrite the block: Magento\Sales\Block\Adminhtml\Order\Create\Form\Address

Here is my code:
di.xml

    <?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <preference for="Magento\Sales\Block\Adminhtml\Order\Create\Form\Address" type="Freedom\Adminorder\Block\Adminhtml\Order\Create\Form\Address" />
</config>

Address.php

    <?php
namespace Freedom\Adminorder\Block\Adminhtml\Order\Create\Form;
use Magento\Framework\Pricing\PriceCurrencyInterface;

class Address extends \Magento\Sales\Block\Adminhtml\Order\Create\Shipping\Address {
    public function __construct(\Magento\Backend\Block\Template\Context $context,
                                \Magento\Backend\Model\Session\Quote $sessionQuote,
                                \Magento\Sales\Model\AdminOrder\Create $orderCreate,
                                PriceCurrencyInterface $priceCurrency,
                                \Magento\Framework\Data\FormFactory $formFactory,
                                \Magento\Framework\Reflection\DataObjectProcessor $dataObjectProcessor,
                                \Magento\Directory\Helper\Data $directoryHelper,
                                \Magento\Framework\Json\EncoderInterface $jsonEncoder,
                                \Magento\Customer\Model\Metadata\FormFactory $customerFormFactory,
                                \Magento\Customer\Model\Options $options,
                                \Magento\Customer\Helper\Address $addressHelper,
                                \Magento\Customer\Api\AddressRepositoryInterface $addressService,
                                \Magento\Framework\Api\SearchCriteriaBuilder $criteriaBuilder,
                                \Magento\Framework\Api\FilterBuilder $filterBuilder,
                                \Magento\Customer\Model\Address\Mapper $addressMapper,
                                array $data = []) {
        parent::__construct($context, $sessionQuote, $orderCreate, $priceCurrency, $formFactory, $dataObjectProcessor, $directoryHelper, $jsonEncoder, $customerFormFactory, $options, $addressHelper, $addressService, $criteriaBuilder, $filterBuilder, $addressMapper, $data);
    }

    public function getAddressCollection()
    {
        if ($this->getCustomerId()) {
//            $filter = $this->filterBuilder
//                ->setField('parent_id')
//                ->setValue($this->getCustomerId())
//                ->setConditionType('eq')
//                ->create();
            $filter = $this->filterBuilder
                ->setField('entity_id')
                ->setValue([1,5])
                ->setConditionType('in')
                ->create();
            $this->searchCriteriaBuilder->addFilters([$filter]);
            $searchCriteria = $this->searchCriteriaBuilder->create();
            $result = $this->addressService->getList($searchCriteria);
            return $result->getItems();
        }
        return [];
    }
}

It is not working. Cananyone help me?


texts: Magento 2 - add a new class inside column main div

texts:
I want to add a new class inside column main div. Right now my layout in frontend is like this:

this is my layout:

<layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_layout.xsd">
    <update handle="1column"/>
    <referenceContainer name="columns">
        <container name="div.sidebar.main" htmlTag="div" htmlClass="sidebar sidebar-main" after="main">
            <container name="sidebar.main" as="sidebar_main" label="Sidebar Main"/>
        </container>
        <container name="div.sidebar.additional" htmlTag="div" htmlClass="sidebar sidebar-additional" after="div.sidebar.main">
            <container name="sidebar.additional" as="sidebar_additional" label="Sidebar Additional"/>
        </container>
    </referenceContainer>
</layout>


texts:
How can I get category collection data from product ID? I have tried using the following way but it's not working for me.

$product = $this->_productFactory->create()->getCollection()->load($pid);
$cats = $product->getCategoryIds();
if(count($cats) ){
    $firstCategoryId = $cats[0];
    $_category = $this->_categoryFactory->create()->getCollection()->load($firstCategoryId);
    return $_category->getName();
}


texts: prevent cms layout update from overiding .xml file template

texts:
Hello i'm wondering if there is a way to prevent the cms layout update overide within cms pages from overriding the .xml setTemplate?

my code:

   <cms_index_noroute translate="label">
    <label>CMS No-Route Page</label>
    <reference name="root">
        <action method="setTemplate"><template>page/2columns-right.phtml</template></action>
    </reference>
    <reference name="content">
        <remove name="cms_page"/><!-- REMOVE CMS 404 CONTENT -->
        <block type="core/template" name="content_404" template="page/errors/404.phtml" />
    </reference>
</cms_index_noroute>

but this won't override the layout update thats already present in the CMS -> Pages.

is it even possible via xml?


texts: Cannot export list of customer from the grid magento 2

texts:
when trying to export the list of customers i get this error Fatal error:

  Uncaught TypeError: Argument 2 passed to
  Magento\Framework\View\Element\UiComponentFactory::argumentsResolver()
  must be of the type array, null given, called in
  /var/www/html/stfselecta/vendor/magento/framework/View/Element/UiComponentFactory.php
  on line 220 and defined in
  /var/www/html/stfselecta/vendor/magento/framework/View/Element/UiComponentFactory.php:172
  Stack trace: #0
  /var/www/html/stfselecta/vendor/magento/framework/View/Element/UiComponentFactory.php(220):
  Magento\Framework\View\Element\UiComponentFactory->argumentsResolver('contact_person',
  NULL) #1
  /var/www/html/stfselecta/vendor/magento/module-ui/Component/Listing/Columns/Column.php(77):
  Magento\Framework\View\Element\UiComponentFactory->create('contact_person',
  'varchar', Array) #2
  /var/www/html/stfselecta/vendor/magento/module-ui/Component/MassAction/Filter.php(182):
  Magento\Ui\Component\Listing\Columns\Column->prepare() #3
  /var/www/html/stfselecta/vendor/magento/module-ui/Component/MassAction/Filter.php(180):
  Magento\Ui\Component\MassAction\F in
  /var/www/html/stfselecta/vendor/magento/framework/View/Element/UiComponentFactory.php
  on line 172.

I also want to know how to hide some attributes to be diplayed in the list for example i don't want to find the id or the name of customer in my csv file so hwo to do that what do i have to override exactly thanks in advance


texts: Update magento from 1.9.1 to 1.9.2 gives blank screen

texts:
I just followed meticulously this guide in order to upgrade from 1.9.1 to 1.9.2. I had no admin customizations so I did not do the last 3 points of the step number 4.

I did not had any local.xml file on my app/etc/ directory so I copied the old file to the new magento folder one and changed nothing on it. I uploaded then the shop to my server and the result is a blank page.

I can though see the admin page but I cannot login. What could be wrong? I would really fell appreciated for any ideas of what is wrong or how to search.

Thanks in advance!


texts: Magento 2.3 Multi-source inventory get all out of stock products

texts: I am trying to get a list of all the out of stock products with a Magento 2.3 website with multiple stocks and sources. I first noticed the Api /V1/stockItems/lowStock/, but its deprecated and does not return the expected result. is there a native magento way to get all out of stock products by website or stock ? is there a way with a custom module. please help, thanks.


texts: Getting full image url for products via REST API

texts:
After accessing the Rest API (http://192.168.1.180/magento/index.php/rest/V1/products/SKU) to get the product details, the response is something like this:

  { "attribute_code": "image", "value": "/6/4/64275-152378-large.jpg" }, { "attribute_code": "small_image", "value": "/6/4/64275-152378-large.jpg" }, { "attribute_code": "thumbnail", "value": "/6/4/64275-152378-large.jpg" }

What should be the base url/prefix for the jpg in the attribute_code keys ?


texts:
what are the key spots to focus on to optimized the loading speed of a magento 1 and 2 websites without using specific premium extensions,
Aside from reducing image sizes.


texts: migrate magento database to another serve

texts:
My magento is having very poor performance, at the moment both web and database  are stored on the same VM, hence I would like to separate the database to a dedicated server.

This is the first time I am doing this (separating a database to a different server) so I am seeking for advices/suggestions. I have been searching in Google and stackexchange for some guidance without success.

So far this is my plan:

Create new server and install MySQL
Stop web server
Migrate the database to the new server running mysqldump
Create new user mysql login and grant full permission/access to the migrated database.
Change the connection on the webserver to point to the new machine on /app/etc/local.xml file.

NOTE: both servers will be on the same network.

Is everything? Any other advice/suggestion from the magento gurus?


texts: Rate table shipping showing $0.00 only for certain products

texts:
I've added four nearly identical products to my brand new Magento 1.9 store. Each one with complete information, including weights.

Then I set up a shipping rate table, and successfully imported the CSV. I confirmed this in the "shipping_tablerate" db table using phpMyAdmin. The CSV that I'm using for debugging looks like this:

Country,Region/State,Zip/Postal Code,Weight (and above),Shipping Price
USA,*,*,0,1000

This rate is reflected correctly for one of my products when I add it to the cart and estimate shipping. However, for my remaining three products, it estimates shipping to be $0.00.

I can't figure out what is causing this odd behavior for the life of me.

65 lb product (??? $0.00 rate)

85 lb product (correct $1000.00 rate)

Any ideas? I've burnt most of the day on this problem.


texts: I'm looking for a way to bulk update SKUs. I looked into the ORM approach, but heard that was a bit slow during reindexing of each sku. I'm wondering if it's safe to modify it at the database level. What issues might I run into if I take this approach?


texts: Magento 2 - Include css from module in template

texts:
I developed a new extension. I have some CSS which I need to include on some templates.

CSS:

  app\code\Fekete\Newsletter2Go\view\frontend\web\css\main.css

Block:

  \app\code\Fekete\Newsletter2Go\Block\Form.php

Template:

  app\code\Fekete\Newsletter2Go\view\frontend\templates\subscribe.phtml

The template is getting called in a CMS page:

{{block class="Fekete\Newsletter2Go\Block\Form" template="Fekete_Newsletter2Go::subscribe.phtml"}}

How can I include the CSS main.css in my template?

I solved it like this, it works... but in the developer documentation they say that we should not include css in the template.

<link rel="stylesheet" href="<?= $this->getViewFileUrl('Fekete_Newsletter2Go::css/main.css'); ?>"/>


texts:
i want to know that is magento 1.9 not support paypal standard?

Below is the screenshot of magento 1.9, as in backend it is not visible

while in magento 1.8, paypal methods are visible


texts: How to get the name of the triggered event?

texts:
How to self check what event i am using,  my event :
<checkout_cart_product_add_after>
how to print, i tried :

$event = $observer->getEvent()->getName();
Mage::log($event, null, 'logfile.log');

its not printing


texts:
I working with dynamic event in Magento 2, i detected dynamic event call 3 times(example: customer_address_save_after event). This problem in here because i only want run once times this dynamic event.

How to fix this issue ?


texts: How to fix errors while installing in magento2?

texts:
My Theme Name : Milano - Fashion Responsive Magento 1 & 2 Theme

Version : Version 2.1.3

Hi All,
 I install milano theme in magento 2 while i installing this theme the process was stopped in 27%.
 I have attached the screenshot of my error

The theme has two type of installation
1.Install quickstart - By using this package, you will set the theme exactly as our Demo with sample data.
2.Install only template - If you exist a magento website you can install only template.

I am using quickstart method so they give magento with theme file and database also using this files only i install

Is there any solution for this type of error?


texts: "Joined field with this alias is already declared" sort by custom attribute shows error

texts:
I already had one custom sort by attribute which is agency_id but when i try to add new sort by attribute Location it shows me this error.

a:5:{i:0;s:48:"Joined field with this alias is already declared";i:1;s:3988:"#0 /home/test/public_html/app/code/core/Mage/Eav/Model/Entity/Collection/Abstract.php(695): Mage::exception('Mage_Eav', 'Joined field wi...')
#1 /home/test/public_html/app/code/local/Mage/Catalog/Block/Product/List.php(104): Mage_Eav_Model_Entity_Collection_Abstract->joinField('value', 'customer_entity...', 'value', 'entity_id=agenc...', Array, 'left')
#2 /home/test/public_html/app/code/local/Mage/Catalog/Block/Product/List.php(196): Mage_Catalog_Block_Product_List->_getProductCollection()
#3 /home/test/public_html/app/code/core/Mage/Core/Block/Abstract.php(918): Mage_Catalog_Block_Product_List->_beforeToHtml()
#4 /home/test/public_html/app/code/core/Mage/Core/Block/Abstract.php(637): Mage_Core_Block_Abstract->toHtml()
#5 /home/test/public_html/app/code/core/Mage/Core/Block/Abstract.php(581): Mage_Core_Block_Abstract->_getChildHtml('search_result_l...', true)
#6 /home/test/public_html/app/code/local/Mage/CatalogSearch/Block/Advanced/Result.php(103): Mage_Core_Block_Abstract->getChildHtml('search_result_l...')
#7 /home/test/public_html/app/design/frontend/default/default/template/catalogsearch/advanced/result.phtml(58): Mage_CatalogSearch_Block_Advanced_Result->getProductListHtml()

i did changes in
/app/code/local/Mage/Catalog/Block/Product/List.php

i added code in _getProductCollection() as below

$sortBy = $this->getRequest()->getParam('order');
$dir = $this->getRequest()->getParam('dir');
if($sortBy == "review"){
    /* added for rating */
    $this->_productCollection->joinField('review', 'review_entity_summary', 'rating_summary', 'entity_pk_value=entity_id', array('entity_type'=>1, 'store_id'=> Mage::app()->getStore()->getId()), 'left');
    /* added for rating */
}elseif($sortBy == "agency_id"){
    /* added for sort by agency id */
    $this->_productCollection->addAttributeToFilter('agency_id',array('neq'=>'1111'));
    $this->_productCollection->joinField('value', 'customer_entity_varchar', 'value', 'entity_id=agency_id', array('attribute_id'=>5), 'left');
    $this->_productCollection->setOrder('value', $dir);

}elseif($sortBy == "package_location"){
    /* added for sort by Location */
    $this->_productCollection->addAttributeToFilter('package_location',array('neq'=>'1111'));
    // $this->_productCollection->joinField('value', 'eav_attribute_option_value', 'value', 'option_id=package_location', array('attribute_id'=>197), 'left');
    // $this->_productCollection->setOrder('value', $dir);

}

before i added condition of package_location, agency_id was working fine.

i found this question but its different.

Thanks


texts: Why titles for Description and Short Description not showing on Product Page?

texts:
I have Description and Short Description, I see the values of these attributes, but I do not see their titles. Why?

I tried to set the titles by doing:

  app/design/frontend/MyTheme/Magento_Catalog/layout/catalog_product_view.xml

    <referenceBlock name="product.info.details">
        <block class="Magento\Catalog\Block\Product\View\Description" name="product.info.description"
               as="description" template="Magento_Catalog::product/view/attribute.phtml" group="detailed_info">
            <arguments>
                <argument name="at_call" xsi:type="string">getDescription</argument>
                <argument name="at_code" xsi:type="string">description</argument>
                <argument name="css_class" xsi:type="string">description</argument>
                <argument name="title" translate="true" xsi:type="string">More Information</argument>
                <argument name="sort_order" xsi:type="string">5</argument>
            </arguments>
        </block>
    </referenceBlock>

But I didn’t succeed.

How to set titles for Description and Short Description so that they can be seen on the product page?

After the postponement when I saw that in

  /vendor/magento/module-catalog/view/frontend/templates/product/view/details.phtml

is not coming Description and Short Description, but why - I do not know. Does anyone have any options?


texts:
I am using the Magento 2.2.6 version and I have added the https://github.com/pavelleonidov/magento2-tinymce4 Extension but into the Editor Font Family, Font Size, Line Height ..Etc Options is Not Display.

Please refer the following screenshot:

Any Solution For this  Problem ?

Thanks in Advance.


texts: Change Magento base and display currency (and auto-update the prices in backend, EUR -> RON)

texts: I have an old Magento ecommerce site, with about 400 products. Initially, it was made to be in EURO, both in the backend, and the frontend. I need to fully migrate it to the local currency. Here is what I've done for now: I set the BASE currency to EUR (as it was), and the display currency to RON (Romanian Leu, local currency). And I set a base exchange rate, and then set it to update daily from WebserviceX. This solved half of my problem. When a user enters, he is presented the site in the local currency, with the option to switch to EUR in topbar. But my problem is that when I add new products, is asks me in EUR. I somehow need to set the BASE currency as the local RON. But if I set it to RON, the prices do not update! -- A product that is 500EUR, when base is set to eur and display to ron, displays as 2300RON, which is correct. When both the base and the display are in RON, a 500EUR product displays as 500RON, the conversion does not work if I set RON as base. I need to convert the prices in back-end automatically from EUR -> , so that than I can set base to RON and have them entered by default in RON from now on. How can I do that? I can't manually update 400 products.


texts: Init call on Slick slider PageBuilder not working

texts:
for the Slick slider of the Slider Banner PageBuilder module, I am trying to add an 'init' call, so I can run a function on initialization of the slider. First I tried adding a new js file called widget-hero.js on this path:

Example/PageBuilderExtensionSlider/view/base/web/js/content-type/slider/appearance/default/widget-hero.js

in which I have this code:

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

    return function (config, element) {

        var $element = $(element);

        console.log('from Example/PageBuilderExtensionSlider/view/base/web/js/content-type/slider/appearance/default/widget-hero.js');

        console.log($element);

        $element.on('init', function(slick) {
            console.log('Slick Init from widget-hero.js');
        });

    };
});

It normally works and console logs 'Slick Init from widget-hero.js' , but there are times when it doesn't work, so, I reckon
sometimes the file gets read while the slider hasn't been initialized yet.

Then I tried editing the file that initializes the Slick slider by copying to this path:

Example/PageBuilderExtensionSlider/view/base/web/js/content-type/slider/appearance/default/widget.js

On that files I have this code:

define([
    'jquery',
    'Magento_PageBuilder/js/events',
    'slick'
], function ($, events) {
    'use strict';

    return function (config, sliderElement) {
        var $element = $(sliderElement);

        /**
         * Prevent each slick slider from being initialized more than once which could throw an error.
         */
        if ($element.hasClass('slick-initialized')) {
            $element.slick('unslick');
        }

        $element.slick({
            autoplay: $element.data('autoplay'),
            autoplaySpeed: $element.data('autoplay-speed') || 0,
            fade: $element.data('fade'),
            infinite: $element.data('is-infinite'),
            arrows: $element.data('show-arrows'),
            dots: $element.data('show-dots')
        });

        // Redraw slide after content type gets redrawn
        events.on('contentType:redrawAfter', function (args) {
            if ($element.closest(args.element).length) {
                $element.slick('setPosition');
            }
        });

        console.log('from Example/PageBuilderExtensionSlider/view/base/web/js/content-type/slider/appearance/default/widget.js');

        console.log($element);

        $element.on('init', function(slick) {
            console.log('Slick Init from widget.js');
        });
    };
});

But the init call doesn't work here, I do get the console log of these lines
console.log('from Example/PageBuilderExtensionSlider/view/base/web/js/content-type/slider/appearance/default/widget.js');
console.log($element);

But I am not getting console.log('Slick Init from widget.js');

Suming up, init is not working from the file where we initialize the slick slider, any idea why this could be happening?

My console log:


texts: Magento local.xml head updates not working

texts:
I'm using Magento CE 1.9.2.2 and I thought I was getting the hang of using a local.xml file to add/remove/update items from layout files but I've gotten stuck trying to update the head css/js from page.xml.

If I make the changes directly to page.xml in my package then it works fine. But if I move the changes to my local.xml file and remove page.xml the changes in local.xml have no effect. My local.xml is located here:
app/design/frontend/{MY_PACKAGE}/default/template/layout/local.xml

Other changes in local.xml for different pages work fine.

The working code in my page.xml would look like this(only showing relevant code):

<?xml version="1.0"?>
<layout version="0.1.0">
    <default translate="label" module="page">
        <block type="page/html" name="root" output="toHtml" template="page/3columns.phtml">
            <block type="page/html_head" name="head" as="head">
                <action method="addCss"><stylesheet>css/style.css</stylesheet><params>media="screen"</params></action>
                <!--<action method="addJs"><script>scriptaculous/builder.js</script></action>-->
            </block>
        </block>
    </default>
</layout>

The code I'm using in local.xml is as follows:

<?xml version="1.0" encoding="UTF-8"?>
<layout>
    <default>
        <reference name="head">
            <action method="addCss"><stylesheet>css/style.css</stylesheet><params>media="screen"</params></action>
            <action method="removeItem"><type>js</type><name>scriptaculous/builder.js</name></action>
        </reference>
    </default>
</layout>

Am I missing something obvious here?


texts: Magento 2 Add option in section "Please select in shipping and billing address are same" drop down

texts:
I want to add option "Please select" on checkout page when unchecked "My billing and shipping address are the same" checkbox in drop down.I have checked all module-checkout module and since checkout page is fully developed in knockut js so I don't have more idea.

please help me anybody.
Thanks


texts: After logout, customer name still shows in header

texts:
In my project I integrated magento 2 and codeigniter. After Login from Magento I can access codeigniter also. I saved the session into a file.

when I logout from codeigniter I will re-write the session file to get magento logout.

Everything is working perfectly except after logout from codeigniter the session file still shows in header?.

How can i solve this issue?. thanks in advance for your valuable suggestion.

  funciton logout

function logout() {
     //unset session
     foreach ($this->session->userdata as $key => $value) {
        if (strpos($key, 'inf_') === 0) {
            $this->session->unset_userdata($key);
         }
     }

     //clear magento session file
     if (isset($magento_status)) {
         $this->unset_store_session_data();
     }
     $magento_url = STORE_URL;

     //header("location:$magento_url");
     echo '<script>window.location="'.$magento_url .'";</script>';}

  clear session file

function unset_store_session_data() {
    $oc_sess_data = $this->get_store_session_data();

    if(isset($_COOKIE['PHPSESSID']) && isset($oc_sess_data['customer_base']['inf_logged_in'])) {

        //unset($oc_sess_data);
        unset($oc_sess_data['customer_base']);
        unset($oc_sess_data['default']);
        //$oc_sess_file = dirname(dirname(dirname(__DIR__))) . '/store/system/storage/session/sess_' . $_COOKIE['PHPSESSID'];
        $oc_sess_file = dirname(dirname(dirname(dirname(__DIR__)))) . '/var/www/session/sess_' . $_COOKIE['PHPSESSID'];
        if (is_file($oc_sess_file)) {
            $handle = fopen($oc_sess_file, 'w');
            flock($handle, LOCK_EX);
            $oc_sess_data = $this->encode_session_data($oc_sess_data);
            fwrite($handle, $oc_sess_data);
            fflush($handle);
            flock($handle, LOCK_UN);
            fclose($handle);
        }
    }

    //$oc_sess_data1 = $this->get_store_session_data();
    //print_r($oc_sess_data1);die();
}

using this function i cleared the session file and it will redirect to magento store side. session successfully cleared. but  customer name still shows in header.


texts:
I am facing a serious problem with my courior company, whenever I proceed the shipment of any order, the weight canculated per product is 1 kg and so I get charged from the courier company accodingly and I have to go with a long procedure to explain them.

So if there any way i can set it to 250 grams or so, where my every product will be counted as 250 grams when I create a shipment of any order.


texts: How to get child product id of configurable products in cart page?

texts:
I tried,
Attribute name is net_details

 $quoteItem = $observer->getEvent()->getQuoteItem();
 $details = json_encode($net_details);
 $quoteItem->setNetDetails($details);

In quote item table value gets stored in product_type = configurable of respective products

My requirement is to store the value where product_type = simple


texts: Magento2 Overload a phtml from an other module - Best way

texts:
is it possible to overload a phtml from an other module?

For example:

I want to overload the multiple-select.phtml in an own Module
( MyVendor/MyNs )

The multiple-select.phtml is called by class from the manadev module:

Now, my idea is to rewrite the "TextMultipleSelect" Class by using the di.xml:

<preference for="Manadev\LayeredNavigation\FilterTemplates\Dropdown\TextMultipleSelect" type="MyVendor\MyNs\FilterTemplates\Dropdown\TextMultipleSelect" />

And then redefine in class:

MyVendor\MyNs\FilterTemplates\Dropdown\TextMultipleSelect

the Method getFilename like this:

public function getFilename(Filter $filter) {
    return 'MyVendor_LMyNs::filter/multiple-select.phtml';
}

Is this the correct way?

( It works for me ... but i want to know the BEST way )


texts: Custom form in backend is redirecting to /admin

texts:
I've created a custom form in my backend.

I can access it via /admin/export/export/index.

But when I submit my form, Magento is redirecting me to my admin home page. My form needs only to have 1 button to trigger the export of some data.

See my phtml :

<form method="POST" action="<?php echo $block->getUrl('export/export/index')?>">
    <input type="hidden" name="action" value="export">
    <button type="submit">Exporter les données</button>
</form>

and my controler :

    public function execute()
{
    if('POST' == $this->getRequest()->getMethod()){ //not going inside
        die("post");
        $this->_redirect('/admin/export/export/index');
    }

    $this->_view->loadLayout();
    $this->_view->renderLayout();
}


texts:
I'm generating a filename via AJAX Jquery. Now I need this filename to be saved. My current process is to call a controller that will do the image saving and it will return a filename/filepath back. Using this new filepath I'm inserting this to a textfield as a value so that when the Add to Cart function is triggered it will get the generated filepath value and save it as custom option.

But the problem is that the Add to cart function is being triggered even when the Ajax Jquery hasn't finish it's processing. How can I put the Add to cart function trigger onhold until the generated filename is returned by the Ajax. I'm thinking of something like a callback function.

Is there a way to achieve this?

jQuery("#product-addtocart-button").on('click', function() {
        var canvas = jQuery('canvas.canvas');
        var canvasImage = canvas[0].toDataURL("image/jpeg", 0.7);

        jQuery.ajax({
          type: "POST",
          dataType: 'json',
          url: UPLOADER_URL,
          data: {
             imgBase64: canvasImage
          }
        }).done(function(response) {
            last_option.val(response.filename);
            console.log("Generated filename", response.filename);
             // TRIGGER ADD TO CART FUNCTION HERE
             // BUT THE ADD TO CART IS BEING TRIGGERED EVEN IF THE AJAX IS NOT YET FINISH
        });

    });


texts:
I am trying to upgrade Magento Version 2.4.1 to 2.4.2 and getting an errors
Magento Open Source 2.4.2 is trying to change the existing order of the require section.
Local order:
   [
      magento/composer-root-update-plugin,
      magento/product-community-edition
   ]
Magento Open Source 2.4.2 order:
   [
      magento/product-community-edition,
      magento/composer-root-update-plugin
   ] but it will not be changed. Re-run using --use-default-magento-values or --interactive-magento-conflicts to override with the Magento order.
Updating composer.json for Magento Open Source 2.4.2 ...
./composer.json has been updated
Loading composer repositories with package information                                                                   Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - The requested package dealerdirect/phpcodesniffer-composer-installer (locked at v0.5.0, required as ^0.7.0) is satisfiable by dealerdirect/phpcodesniffer-composer-installer[v0.5.0] but these conflict with your requirements or minimum-stability.
  Problem 2
    - Conclusion: don't install magento/product-community-edition 2.4.2
    - Conclusion: remove amzn/amazon-pay-and-login-magento-2-module 4.0.4
    - Conclusion: don't install amzn/amazon-pay-and-login-magento-2-module 4.0.4
    - Installation request for magento/product-community-edition 2.4.2 -> satisfiable by magento/product-community-edition[2.4.2].
    - Conclusion: don't install amzn/amazon-pay-and-login-magento-2-module 4.0.4
    - magento/product-community-edition 2.4.2 requires amzn/amazon-pay-and-login-magento-2-module 4.2.0 -> satisfiable by amzn/amazon-pay-and-login-magento-2-module[4.2.0].
    - Can only install one of: amzn/amazon-pay-and-login-magento-2-module[4.2.0, 4.0.4].
    - Can only install one of: amzn/amazon-pay-and-login-magento-2-module[4.2.0, 4.0.4].
    - Installation request for amzn/amazon-pay-and-login-magento-2-module (locked at 4.0.4) -> satisfiable by amzn/amazon-pay-and-login-magento-2-module[4.0.4].

Installation failed, reverting ./composer.json to its original content.

The native 'composer require' command failed, reverting ./composer.json to its original content from before the Magento root update.


texts:
I am having an issue with the 503 page not using the styles.css file.
I am using Magento CE 1.9.3.0. I am hosting this website on my local machine using WAMP.
I have found this exact issue already asked here.
But alas, this question leads to a dead end.

This is what I see:

Instead of:

Either I am doing something wrong, or there's something different going on.
Also, my localhost uses port 8080 (because of WAMP and Skype having trouble with the port).
Any information will be appreciated.


texts: MAGENTO 2 System error after first install

texts:
It is my first time that I tried to install magento and I followed the tutorial at the following link:

https://medium.com/@purvirawal.work/magento-2-installation-on-mac-os-f78981ecea92

However, I have a system ERROR on the top saying "One or more indexers are invalid. Make sure your Magento cron job is running.".

I am using MAMP on OSX, any idea how I could resolve this ?


texts:
My Config.xml

<global>
      <admin>
                <routers>
                    <adminhtml>
                        <args>
                            <modules>
                                <product_warranty before="Mage_Adminhtml">product_warranty</product_warranty>
                            </modules>
                        </args>
                    </adminhtml>
                </routers>
            </admin>
</global>

My productcontroller.php

<?php
 require_once 'Mage/Adminhtml/controllers/catalog/ProductController.php';
// include_once("Mage/Adminhtml/controllers/Catalog/ProductController.php");
class Product_Warranty_Catalog_ProductController extends Mage_Adminhtml_Catalog_ProductController
{

    public function saveAction()
    {

        echo "pankaj"; die;

     }
}

Not working..whats wrong with my code.....


texts: Magento 2: Why I can't find this function: hasItemsCollection() in Quote Class?

texts:
Magento version: 2.0.0

In Magento\Quote\Model\Quote line 1336 to 1354:

/**
 * Retrieve quote items collection
 *
 * @param bool $useCache
 * @return  \Magento\Eav\Model\Entity\Collection\AbstractCollection
 * @SuppressWarnings(PHPMD.UnusedFormalParameter)
 */
public function getItemsCollection($useCache = true)
{
    if ($this->hasItemsCollection()) {
        return $this->getData('items_collection');
    }
    if (null === $this->_items) {
        $this->_items = $this->_quoteItemCollectionFactory->create();
        $this->extensionAttributesJoinProcessor->process($this->_items);
        $this->_items->setQuote($this);
    }
    return $this->_items;
}

There is a function hasItemsCollection(), I can not find where or how it is defined. So, anybody know it?


texts: Filter orders that have null value in sku in its order items Magento 1

texts:
So far i have tried this
<?php
define('MAGENTO', realpath(dirname(__FILE__) . "/.."));
require_once MAGENTO . '/app/Mage.php';
umask(0);
Mage::init();
Mage::app()->addEventArea('global');
Mage::getSingleton('core/session', array('name' => 'frontend'));

$orderItem = Mage::getModel('sales/order_item')->getCollection();
$orderItem->getSelect()
    ->joinInner(array('order' => Mage::getSingleton('core/resource')->getTableName('sales/order')), 'order.entity_id = main_table.order_id')
    ->where("product_id = ? OR sku = ?  OR price = ?", null, null, null);

print_r($orderItem->getData());
exit;

But i have over 100 thousands orders in store, running the above code can cause performance issues any idea for its alternative or any optimization can be done in above code ?
Thanks


texts:
How can I speed up Magento? Looked at lots of tweaks to speed up but still not fast. I have the following queries:

Is it better to use nosql or is another database recommended?
Is Apache better than Ngnix, or something else recommended?

Are there any other recommendations to speed up Magento?


texts: How to fetch address fields in email template in magento 2

texts: How to fetch address fields like phone number,country name in  Magento 2's email template?


texts: How to check if in checkout if custom module installed?

texts:
I am developing a module that will inject template into footer. Inside that template I need to check if current page is cart or onepage or other page. I could check if current page is onepage with this code

if($request->getActionName()=="onepage")

But if a website is using custom module (which I can not know in advance, onestepcheckout for example), how can I check it?


texts: How to get sitemap using a controller, and update old one

texts:
I created sitemap.xml by controller using core observer.php file which is inbuilt in magento.

Now I want sitemap.xml on screen by hitting my controller url, and also want to update the old sitemap.xml
my controller ->

IndexController.php :

public function indexAction(){
$collection = Mage::getModel('sitemap/sitemap')->getCollection();
    foreach ($collection as $sitemap) {
    try {

      $sitemap->generateXml();
    }
    catch (Exception $e) {
        $errors[] = $e->getMessage();
    }
    }

}


texts:
I want to display a image for radio button value in system
  configuration.

As well i want to show that selected image in my front-end.

Help me to do this.

Thanks


texts: Error: Fatal error: Call to a member function getCode() on a non-object in ;

texts:
Fatal error: Call to a member function getCode() on a non-object in
/home/fgdadmin/public_html/factory/includes/src/__default.php on line 40425

NO clue what this means. I could get into the admin section and then it would crash out and spit that error again. Upon refresh, I'd get a 503, so I deleted my cache via FTP. At one point I was able to go in and turn on cache for the site along with another thing. Can't get into admin to remember what it was called. Really don't have too many custom modules and haven't done anything new in recent memory that would make this thing crash out.

It all started about 2 or 3 weeks ago when I'd have to delete the mage--2 folder in my cache when the site crashed and it'd be good for the day. Then it was hourly, now, no website. Over the 3 weeks I kept trying to figure out what it was, but to no avail. HELP please.

Site address is factoryglassdirect.com

Let me know what you need from me and I'll get it to you asap. I'm on here 24/7


texts: Magento 2.2.10 is it possible to get all the orders status is pending?

texts:
I want to get all the orders where the status is pending.
I want to do a second check where if the item status is cancelled.
Is this possible to do?


texts:
I have been building a module for Magento 2.2 but am having trouble figuring out the query. I have created one in PHPMyAdmin so I know it works there, but doing it with Model  is escaping me.

The query is as follows:

SELECT * FROM (
    SELECT customer_name,
           customer_email,
           entity_id
    FROM `sales_order_grid`
    WHERE status = 'complete'
) revrem
LEFT JOIN (
    SELECT name, order_id
    FROM sales_order_item
    WHERE updated_at > '2017-11-28 00:00:01'
) revprod
ON revrem.entity_id = revprod.order_id


texts:
How does this happen? This is the order page summary, normally the "Customer Group" for customers who aren't logged in is "NOT LOGGED IN".
We are using EE 1.13.1.0 with Magestore One step checkout extension.


texts: Magento 2: Product image to be displayed one by one instead of slider

texts:
Right now the images are shown in slider but I want to show them one by one
like

  1st image

  2nd image

  3rd Image

Not like the slider

Gallery.phtml

contain the following code

<div class="product-image-popup" style="width:<?= /* @noEscape */ $_width ?>px;">

<?= $block->escapeHtml(__('Close Window')) ?>

<?php if ($block->getPreviousImageUrl() || $block->getNextImageUrl()) :?>

        <?php if ($_prevUrl = $block->getPreviousImageUrl()) :?>
            <a href="<?= $block->escapeUrl($_prevUrl) ?>" class="prev">&laquo; <?= $block->escapeHtml(__('Prev')) ?>
        <?php endif; ?>
        <?php if ($_nextUrl = $block->getNextImageUrl()) :?>
            <a href="<?= $block->escapeUrl($_nextUrl) ?>" class="next"><?= $block->escapeHtml(__('Next')) ?> &raquo;
        <?php endif; ?>

<?php endif; ?>
<?php if ($_imageTitle = $block->escapeHtml($block->getCurrentImage()->getLabel())) :?>

<?= /* @noEscape */ $_imageTitle ?>

<?php endif; ?>
<?php
$imageUrl = $block->getImageUrl();
?>
<img src="<?= $block->escapeUrl($imageUrl) ?>"
    <?php if ($_width) :?>
        width="<?= /* @noEscape */ $_width ?>"
    <?php endif; ?>
     alt="<?= $block->escapeHtmlAttr($block->getCurrentImage()->getLabel()) ?>"
     title="<?= $block->escapeHtmlAttr($block->getCurrentImage()->getLabel()) ?>"
     id="product-gallery-image"
     class="image"
     data-mage-init='{"catalogGallery":{}}'/>

<?= $block->escapeHtml(__('Close Window')) ?>

<?php if ($block->getPreviousImageUrl() || $block->getNextImageUrl()) :?>

        <?php if ($_prevUrl = $block->getPreviousImageUrl()) :?>
            <a href="<?= $block->escapeUrl($_prevUrl) ?>" class="prev">&laquo; <?= $block->escapeHtml(__('Prev')) ?>
        <?php endif; ?>
        <?php if ($_nextUrl = $block->getNextImageUrl()) :?>
            <a href="<?= $block->escapeUrl($_nextUrl) ?>" class="next"><?= $block->escapeHtml(__('Next')) ?> &raquo;
        <?php endif; ?>

<?php endif; ?>


texts: Magento2 how to rewrite block and extend the wishlist_index_index.xml

texts:
In layout file,wishlist_index_index.xml,

 <block class="Magento\Wishlist\Block\Customer\Wishlist"
    name="customer.wishlist" template="view.phtml" cacheable="false">

But when I Enabled Template Path Hints for Storefront,

template is magento2/app/code/Magento/Wishlist/view/frontend/templates/view.phtml
but the block is Magento\Wishlist\Block\Customer\Wishlist\Interceptor

I need to understand how achieved
Forgive my poor English


texts: How can I report a bug in Magento Enterprise?

texts:
I've discovered a bug with Website Restrictions and Onepage Checkout in Magento Enterprise 1.13.  Though I'm developing a work-around, I'd like to also submit a bug ticket.

When trying to report a bug, the available versions are limited to Community Edition.  What is the correct process for reporting a bug in Enterprise?


texts: Unable to delete Magento 2.0.7 image cache

texts:
When I try to Flush catalog images cache I get the following error

The file

  /home/shaffersuiting/public_html/project/pub/media/catalog/product/cache/1/swatch_image/30x20/beff4985b56e3afdbeabfc89641a4582/i/n/inqalab_final_colour_08.jpg

Cannot be deleted

  Warning!unlink(/home/shaffersuiting/public_html/project/pub/media/catalog/product/cache/1/swatch_image/30x20/beff4985b56e3afdbeabfc89641a4582/i/n/inqalab_final_colour_08.jpg):
  Permission denied

All my folders/files have 775 permission

Help required urgently


texts: How can I insert my custom checkout step form data when place order in quote table and in sales_order table in magento 2.4?

texts:
I create custom checkout step with my custom form in that I need to submit three extra field in quote table and sales order table.
So, how can I submit this form data in that table when order place.

I also create install script for new field in data table
how can insert that value when order place.


texts:
I am trying to override the menu template file (which is located at app/design/frontend/rwd/default/template/page/html/topmenu.phtml) using the following

(file) default/layout/sean_menucreator.xml:

<page_html_index>
  <reference name="page.html.topmenu">
        <action method="setTemplate">
            <template>sean_menucreator/page/html/topmenu.phtml</template>
       </action>
 </reference>
</page_html_index>

(file) default/template/sean_menucreator/page/html/topmenu.phtml

which outputs the menu built by its controller.

so because of the sean_menucreator.xml file that I have created then the template that is used should be

default/template/sean_menucreator/page/html/topmenu.phtml

but it's still

app/design/frontend/rwd/default/template/page/html/topmenu.phtml

(this is what the template hints that I turned on in the configuration told me)

I have tried putting the files in all the frontend subdirectories (base, default and rwd) just in case one takes precedence and that's why it isn't overriding but that doesn't seem to have helped

any help would be appreciated thank you.


texts: How to get configurable product options on associated product page?

texts:
I'm working with Magento 1.9 store with google merchant (google shopping).

I'm getting price mismatch for associated products because I'm sending them to google feed instead of their configurable products.

Associated products are not visible but I have a rule to redirect their url key to their configurable products so customers will land on the configurable page with options instead of simple product view with no other options.

What I'm trying to achieve is this:

Make associated products to be visible in (search and catalog) and show all information (image, title, short description, etc) with the parent configurable options like: size and color, and when customer switch to different size and color the selected item will reflect on the page with its title, image, price, short description, etc.

The objective to show google merchant that the page exist and its matching the price in the feed, also allow customers to see other options as well.

Any recommendations would be appreciated.


texts: Redirect category link with single product directly to the product page magento 2.1

texts:
I have 5 categories with single products each. I also have 5 stores.

I want to redirect the user directly to the product page when he clicks on the category link in the main menu for each store.

Can this be done in magento 2.1 CE?


texts: I've decided that I will use Magento to build my eCommerce store but there is just one HUGE problem. My store will sell full outfits. You can either buy the basic top or bottom, you will also have the choice of accessories. Is it possible to add multiple products on one product page?? Will I need a custom template?? I'm worried that my idea will not be possible please help.


texts: Magento 2 Invalid Form Key when post to a controller

texts:
I'm trying to send a form from a Java Spring Application to Magento.
What I'm doing in Java is just creating an standard form and on action I wrote Magento's controller path.
Like this:
http://ip/application/send/application
When I post the form, I get redirected to just http://ip
and a message showing : Invalid Form Key. Please refresh the page.
This is my controller on Magento:
public function execute()
    {   $post = $this->getRequest()->getPostValue();
        $resultPage = $this->_resultPageFactory->create();
        $block = $resultPage->getLayout()->getBlock('application_send');
        $block->setData('post',$post);
        return $resultPage;
    }

And my layout.xml for the controller:
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <referenceContainer name="content">
            <block class="Vendor\Application\Block\Main" name="application_send" template="Vendor_Application::application.phtml"/>
        </referenceContainer>
    </body>
</page>

Do I need to return a token on controller? or do I need to send a token from Java Form?
Greetings!


texts: Magento 2: Product not showing in category page

texts:
I changed reindex mode Update by Schedule and add some product using custom script.

But now when I run reindex command (CLI) then none of the products are showing into category page. Product is visible perfectly in product page if I access them using product URL directly but not visible on category page.

Any idea please share with me. thanks.


texts: Images not appearing in pub/static folder in Magento2

texts:
Is there a specific way to make my images appear in the pub static folder?

I have my image uploaded in the web/images/ directory and when I try and call them in my phtml file I am getting a broken image link.

I manually checked the pub/static/TestTheme/images directory and none of my images were being added. This is what I am using in my phtml file.

    <img src=”<?php echo $this->getViewFileUrl('images/test.png'); ?>” alt="test">


texts: how to open new form in another phtml without url change

texts:
I have put the form for add new address of Address book in address book index page itself without redirecting it to a new page for adding a new address.
I need to open the form html on click of add address without changing the url and redirecting to the http://localhost/customer/address/new/
instead i want to remain in http://localhost/customer/address/ page

1) http://localhost/customer/address/ page UI

2) on clicking + Add New Address i need to put the html of the form which is at http://localhost/customer/address/new/ url

So that Save button will work exactly like as it will in /address/new url form.

How to achieve this.

Since address has /** @var \Magento\Customer\Block\Address\Book $block */
and address new has /** @var \Magento\Customer\Block\Address\Edit $block */ block, so i cannot just put the form phtml from edit.phtml to book.phtml

I cannot put edit.phtml form code in book.phtml it throw error
as in edit.phtml  has it down block

<?php $_company = $block->getLayout()-
>createBlock(\Magento\Customer\Block\Widget\Company::class) ?>
<?php $_telephone = $block->getLayout()-
>createBlock(\Magento\Customer\Block\Widget\Telephone::class) ?>
<?php $_fax = $block->getLayout()-
>createBlock(\Magento\Customer\Block\Widget\Fax::class) ?>

codes like this throw error

<?php if ($_company->isEnabled()): ?>
        <?= $_company->setCompany($block->getAddress()->getCompany())->toHtml() ?>
    <?php endif ?>

where $_company variable is being used


texts: Getting error : Fatal error: Call to a member function setLayer() on a non-object in

texts:
I have created the category page and created some attributes for the products but when i visit the page its giving me error:

Fatal error: Call to a member function setLayer() on a non-object in /home/mxcounte/public_html/usa-tiles/app/code/core/Mage/Catalog/Block/Layer/View.php

here is my local.xml file in following folders and link to my xml file is as follows:
/app/design/frontend/mgstheme/luxury/layout
https://drive.google.com/file/d/0ByQ1WRjkUEDudHhDel9Va0J4OGc/view?usp=sharing

And one thing that looks suspicious as follows:

<catalog_category_default>
    <remove name="catalog.leftnav"/>
</catalog_category_default>

<catalog_category_layered>
    <remove name="catalog.leftnav"/>
</catalog_category_layered>

Can anyone help on this?... I am using mgstheme Luxury theme for magento.


texts:
This is my website "http://www.vitaminf.ir/gosmart2/women/tops-women/hoodies-and-sweatshirts-women.html" i want to remove "gosmart2" from my url how can i achieve this. my site is "http://www.vitaminf.ir" but whenever i navigate through any category or product page it navigate as ""http://www.vitaminf.ir/gosmart2/category/category-type/product.html" how can i remove from my url "gosmart2"
your ans is appreciable for me


texts: Performance implications of adding columns to sales_order_grid_items

texts:
I have added several columns to sales_order_grid_items so that I can see product attributes in the products sold report.

Since products are likely to be deleted I cannot do a 'join' to the product in the report and expect to retrieve attribute values. So the extra attributes need to be stored somewhere.

Does anyone have idea as to the performance considerations of adding columns to sales_order_grid_items?

In theory I could serialize my extra columns and spend ages trying to work out how to display them in the products_ordered report, however, are there likely to be performance benefits?


texts: Adding New Products Programmatically not Saving correctly in Magento 1.9

texts:
With a fresh install of Magento 1.9.3.8 I am trying to add products programmatically.

It is adding the products , and I can see them in the product listing.

It is not generating any URL rewrites
The code is not generating any errors or warnings
If I enter the product and save it again , the URL rewrite is generated and the product appears fine.

I want to know how to generate a new product and it save correctly. Thanks so much for your time.

require_once '../../app/Mage.php';
Mage::setIsDeveloperMode(true);
ini_set('display_errors', 1);
umask(0);
Mage::app('admin');
$newStoreId = Mage_Core_Model_App::ADMIN_STORE_ID;
Mage::app()->setCurrentStore(Mage::getModel('core/store')->load($newStoreId));

$targetProduct = Mage::getModel('catalog/product');
$targetProduct->load($sourceProduct['entity_id']);

$productAttributes = getProductAttributes($sourceProduct);
$targetProduct->addData($productAttributes);
$targetProduct->setAttributeSetId(4);
$targetProduct->save();


texts: Form Key Error when removing a product from Mini cart

texts:
So this is a problem that I have been trying to solve for a few days now. I'm not an expert at this, but I manage quite a bit through googling and testing myself.

My website is more or less ready to go, but now one (1!) bug has halted things. I need to sort this out asap. I am currently using Magento 1.9.

The issue is easy enough to explain: When adding a product to cart, all is well. It gets added. However when removing it from the minicart I end up at the famous error page (There has been an error processing your request...). If you try to remove it from the shopping cart page (link to shopping cart page shows in the minicart when adding 3 products or more) or the checkout page (which has the same shopping cart block), that works fine.

If you want to try out the process yourself, you may go to http://bowclub.se/shop and add a product.

From the exception log I get this:

a:5:{i:0;s:16:"Invalid form key";i:1;s:970:"#0 /home/saleem80/public_html/bowclub.se/app/code/core/Mage/Checkout/controllers/CartController.php(604): Mage::throwException('Invalid form ke...')
#1 /home/saleem80/public_html/bowclub.se/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Checkout_CartController->ajaxDeleteAction()
#2 /home/saleem80/public_html/bowclub.se/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('ajaxDelete')
#3 /home/saleem80/public_html/bowclub.se/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#4 /home/saleem80/public_html/bowclub.se/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#5 /home/saleem80/public_html/bowclub.se/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#6 /home/saleem80/public_html/bowclub.se/index.php(88): Mage::run('', 'store')
#7 {main}";s:3:"url";s:99:"/checkout/cart/ajaxDelete/id/362/uenc/aHR0cDovL2Jvd2NsdWIuc2UvZW1lcmFsZC1jcm9zcy1ib3ctdGllLmh0bWw,/";s:11:"script_name";s:10:"/index.php";s:4:"skin";s:2:"se";}

I have tried disabling all external modules, and remove anything custom that could cause the issue, but to no avail.

This is what shows up when following the process with Chrome's Console while ticking Preserve Log:

Navigated to http://bowclub.se/emerald-cross-bow-tie.html
emerald-cross-bow-tie.html:256 Uncaught ReferenceError: Minicart is not defined(anonymous function) @ emerald-cross-bow-tie.html:256x.Callbacks.c @ a59a9c78d2821cd052ee92ef84cc8cd9-1435669860.js:6088x.Callbacks.p.fireWith @ a59a9c78d2821cd052ee92ef84cc8cd9-1435669860.js:6088x.extend.ready @ a59a9c78d2821cd052ee92ef84cc8cd9-1435669860.js:6088q @ a59a9c78d2821cd052ee92ef84cc8cd9-1435669860.js:6088
2be6094b19026c6bd8648083144d17fa-1435943882.js:3 GET http://bowclub.se/checkout/cart/ajaxDelete/id/368/uenc/aHR0cDovL2Jvd2NsdWIuc2UvZW1lcmFsZC1jcm9zcy1ib3ctdGllLmh0bWw,/ 503 (Service Unavailable)e.event.special.click.setup.c.onTouchEnd @ 2be6094b19026c6bd8648083144d17fa-1435943882.js:3e.event.special.click.setup.c.handleEvent @ 2be6094b19026c6bd8648083144d17fa-1435943882.js:3
Navigated to http://bowclub.se/checkout/cart/ajaxDelete/id/368/uenc/aHR0cDovL2Jvd2NsdWIuc2UvZW1lcmFsZC1jcm9zcy1ib3ctdGllLmh0bWw,/

Please let me know if there is any more info that I can provide, and thank you for taking your time to lend me a hand!


texts: Customer name shouldn't display after rebooting the system

texts:
Steps to reproduce.

login as a user
close the tab without logged out
restart the system
open browser and open magento local
see the welcome message

ACTUAL RESULTS
 - Welcome!User name!
 - Sign in
 - Create an account

Expected Results
 - Welcome!
 - Sign In
 - Create an account


texts: Magento 2 : Set different price on different store view and render in admin product form

texts:
I am working on an extension in which I need to create different prices based on the different store view. I have created own table in which I am saving store view id and product id on event catalog_product_save_after.

I want to join this table with a product price table in the data provider of product form in admin. I tried with different tricks, but I failed. I need to show the price per store view. Could anyone help me to achieve this? Help will be appreciated

Thank You


texts: How do I apply a shopping price rule discount to each individual sku's price?

texts:
customers receive 10% off your entire order when you purchase 4 or more items…

but…

we need the discount to be applied to each individual sku's price, not the row total and/or order subtotal.

Currently when pulling order info, magento shows the full purchase price of an item and will apply the discount to the subtotal of the order.

Alternatively, applying a "catalog price rule" when you purchase 4 or more items would probably work.


texts: Issue in Radios Button validation in magento2

texts:
Requried field validation is not working.

$baseFieldset->addField('division', 'radios', array(
          'label'     => ('Division'),
          'name'      => 'division',
          'class' => 'validate-one-required-by-name',
          'required' => true,
          'values' => array(
                            array('value'=>'MV','label'=>'MV'),
                            array('value'=>'AV','label'=>'AV'),
                            array('value'=>'Both','label'=>'Both'),
                       ),
          'disabled' => false
        ));


texts: Is there a way from a phtml file to get the attributes of an attribute set given the set id?


texts:
Can any tell me how to format the totals at the bottom  of the transactional emails... I want them to be to the far right.
If I view the mail in the browser the totals are to the left.

Thanks
Tony


texts: What PDF plugin does Magento use to generate invoices?

texts:
I need to provide an option for sellers/vendors to download their order information like name, sku, price, qty, etc. in PDF format on a custom page.

I am planning to use any PDF  plugin as mentioned in link1 or in link2. I wanted to know which PDF plugin Magento uses to generate invoices [ sales > orders ] in PDF format.

I mean which one of the following does Magento use?

ApacheFOP
dompdf
FPDF
html2ps
mPDF
PDFlib
TCPDF
wkhtmltopdf
Zend_Pdf