texts: how to show actual price of simple products in configurable product view page select box

texts:
Currently it shows

I want the actual price and not the price Difference with + sign


texts: Magento 2: Getting unknown error on Reviews tab on product details page

texts:
I'm getting this error suddenly on Reviews tab on product details page as:

  Fatal error: Uncaught exception 'Exception' with message 'Recoverable Error: Argument 1 passed to Zend_Controller_Plugin_Abstract::setResponse() must be an instance of Zend_Controller_Response_Abstract, instance of Magento\Framework\HTTP\PhpEnvironment\Response given, called in C:\xampp\htdocs\Magento21\vendor\magento\framework\Profiler\Driver\Standard\Output\Firebug.php on line 61 and defined in C:\xampp\htdocs\Magento21\vendor\magento\zendframework1\library\Zend\Controller\Plugin\Abstract.php on line 70' in C:\xampp\htdocs\Magento21\vendor\magento\framework\App\ErrorHandler.php:61 Stack trace: #0 C:\xampp\htdocs\Magento21\vendor\magento\zendframework1\library\Zend\Controller\Plugin\Abstract.php(70): Magento\Framework\App\ErrorHandler->handler(4096, 'Argument 1 pass...', 'C:\xampp\htdocs...', 70, Array) #1 C:\xampp\htdocs\Magento21\vendor\magento\framework\Profiler\Driver\Standard\Output\Firebug.php(61): Zend_Controller_Plugin_Abstract->setResponse(Object(Magento\Framework\HTTP\PhpEnvironment\Response)) #2 C:\xampp\htd in C:\xampp\htdocs\Magento21\vendor\magento\framework\App\ErrorHandler.php on line 61

I'm not sure what this error means and haven't made any changes in the files mentioned in the error.


texts: Magento 2 Unable To Get Simple Product Quantity

texts:
I am unable to get simple product's quantity
Can anyone help out please.

I have tried:

$product = $block->getAllowProducts();

foreach ($product  as $child) {
    print_r($child->getQty());
    print_r($child);
}

$child->getQty() returns nothing and it doesn't seem to be in  $child array either

Array
(
  [entity_id] => 1
  [attribute_set_id] => 4
  [type_id] => simple
  [sku] => t-shirt-red
  [has_options] => 0
  [required_options] => 0
  [created_at] => 2017-10-24 10:05:40
  [updated_at] => 2017-10-24 10:05:40
  [parent_id] => 4
  [catalog_rule_price] =>
  [name] => t-shirt-red
  [url_key] => t-shirt-red
  [price] => 99.9900
  [weight] => 100.0000
  [color] => 4
  [status] => 1
  [tax_class_id] => 2
  [is_featured] => 1
  [media_gallery] => Array
    (
      [images] => Array
        (
        )

      [values] => Array
         (
         )

    )

[tier_price] => Array
    (
    )

[salable] => 1
)

Any help please, appreciate. Thank you!


texts: duplicate a product attribute into a new field in admin interface?

texts:
Is it possible to duplicate a product attribute into a new field -- using only Magento's admin interface ?

Creating a PHP script or using a SQL statement is not an option ( I wish it were ).  I need a solution that is entirely done on the dashboard.

Example:

We need to duplicate the "SKU" attribute into a new "UPC" attribute.  [ about 100 products will then be hand-edited to remove invalid UPCs ]

I know I could do this quickly in PHP or the Database.  I would honestly prefer that -- but this is for a friend who has no in-house tech talent right now.


texts: GET value from uicomponent field MAGENTO 2

texts:
Do anyone know how to get current input value from uicomponent?
For the case, I have a field (input component) and a button in ui component fieldset. If I click the button, how do I take the input value and open the link in the new tab?


texts: Magento 1.9.3 International Phone prefixes

texts: Hello I would like to get help on adding the country code as prefix (+44, +234, +233 etc) in magento. I am currently using  1.9.3.2 version.Thanks


texts: Magento2 Swatch change Image does not slide to first Image

texts:
I have a problem with product gallery changing swatch (f.e. color). I have a configurable product with different size and different color. each configurable product has it's own color image (I added "base, small, thumb, swatch to the image).

On product page first all images are loaded from parent product. If i click on swatch color (f. e. blue) the image for blue product is loaded and added on first position. but the product gallery is not starting/sliding to first image where color image is shown. Gallery shows same picture f.e. 5th position. Default behaviour of Magento is to slide automatically to first image, but it does not.

hope, somebody can help me to fix this issue.

Thanks!
martin


texts: Shipping cost are reduced and they are reducing the total price not increasing it

texts:
My store is located in Germany and if a customer lives in the USA he has to pay different shipping cost. To adjust those cost I'm using the extension MatrixRate. So here is my problem:

If the customer in the USA and want the product to get shipped there he has to pay 16.80€ for the shippment. But the store shows 14.12 € for the shipping cost. Also the product price will get reduced. Normally my product cost 79.90€ and suddenly it will show that it cost only 67,14 €. So the costumer has to pay 81,26 € instead of 97.60€.

If the costumer picks Germany as delivery address first and then switches to the USA he will get correct numbers. What can cause this problem?


texts:
when Iam trying to click 'Add to cart' button, it keeps loading, could anyone please tell me, what could be the issue?

BELOW LINK:

http://mobilesplaza.com/tablets.html

when Iam trying to click 'Add to cart' button, its showing me as 'Error'could anyone please tell me, what could be the issue?

BELOW LINK:

http://mobilesplaza.com/tablets/chromo-incr-7-android-4-1-capacitive-5-point-multi-touch-screen-white-new-model-september-2013.html

I refreshed Indexes, Cache too, BUT still not understanding. Does above issues really programmatic issue?


texts:
I am trying to install Magento 2 on Wamp but there is php intl extension error i have enabled the extension and copied all dll files in appache too but magento is still showing error any solution for this
thanks


texts:
I am having form -

    <form class="form-inline" action="createstore/index/create" method="post" id="createstore">

        First Name
        <input type="text" class="form-control validate-uppercase" name="firstname" id="exampleInputEmail3" placeholder="First Name">

        Email address
        <input type="email" class="form-control validate-email" name="email" id="exampleInputEmail3" placeholder="Email address">

        Password
        <input type="password" class="form-control" name="password" id="exampleInputPassword3" placeholder="Password">

        <input type="submit" name="submit" value="Submit">
    </form>

and also add js file -

Validation.add('validate-uppercase','Input must be in uppercase',function(v){
    return Validation.get('IsEmpty').test(v) || (!/^[A-Z]+$/.test(v));
});

validation is not working.


texts: Magento 2 Why my admin route always redirect to the Dashboard?

texts:
I have a custom module with a backend menu item, when i click on the link it always redirect me to the admin home page. These are my files:

app/code/Cosmo/Basemodule/Controller/Adminhtml/Base/Index.php

<?php
namespace Cosmo\Basemodule\Controller\Adminhtml\Base;

class Index extends \Magento\Backend\App\Action
{
    protected $resultPageFactory = false;
    public function __construct(
    \Magento\Backend\App\Action\Context $context,
    \Magento\Framework\View\Result\PageFactory $resultPageFactory
) {
    parent::__construct($context);
    $this->resultPageFactory = $resultPageFactory;
}

public function execute()
{
   echo 'It works';
}

/*
 * Check permission via ACL resource
 */
protected function _isAllowed()
{
    return $this->_authorization->isAllowed('Cosmo_Basemodule::base_manage_items');
}

}

app/code/Cosmo/Basemodule/etc/adminhtml/menu.xml

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Backend:etc/menu.xsd">
<menu>
    <add id="Cosmo_Basemodule::base" title="Basemodule" module="Cosmo_Basemodule"
         sortOrder="50" resource="Cosmo_Basemodule::base"/>
    <add id="Cosmo_Basemodule::base_manage_items" title="Manage Items" module="Cosmo_Basemodule"
         sortOrder="50" parent="Cosmo_Basemodule::base" action="basemoduleadmin/base/index"
         resource="Cosmo_Basemodule::base_manage_items"/>
    <add id="Cosmo_Basemodule::base_configuration" title="Configuration" module="Cosmo_Basemodule"
         sortOrder="50" parent="Cosmo_Basemodule::base" action="adminhtml/system_config/edit/section/hello"
         resource="Cosmo_Basemodule::base_configuration"/>
</menu>

app/code/Cosmo/Basemodule/etc/adminhtml/routes.xml

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="urn:magento:framework:App/etc/routes.xsd">
    <router id="admin">
    <route id="basemoduladmin" frontName="basemoduleadmin">
        <module name="Cosmo_Basemodule" />
    </route>
</router>

app/code/Cosmo/Basemodule/etc/acl.xml

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Acl/etc/acl.xsd">
<acl>
    <resources>
        <resource id="Magento_Backend::admin">
            <resource id="Cosmo_Basemodule::base" title="Basemodule" sortOrder="10" >
                <resource id="Cosmo_Basemodule::base_manage_items" title="Manage Items" sortOrder="0" />
                <resource id="Cosmo_Basemodule::base_configuration" title="Configuration" sortOrder="100" />
            </resource>
        </resource>
    </resources>
</acl>

Can you see the error?


texts: Magento 1.9.3.8 Saving Newsletter subscriptions and unsubscriptions timestamp

texts:
I would like to have a timestamp stored for when a person subscribes or unsubscribes.
Looking at the database: specifically the table newsletter_subscription I see the field changed_status_at. However, this does not get populated, it is left null.
Evaluating the file /app/code/core/Mage/Subscriber.php I cannot see any reference to this field either.
Doing some research I found this link. However, after placing the suggested solution on the line(s) 350 and 376 of Subscriber.php it makes no difference and was still unchanged. Thus, is this a bug in magento and if so how would I correct this?
Update
After playing around with this, I placed ->setChangeStatusAt(Mage::getModel('core/date')->gmtDate('Y-m-d H:i:s')) before every save call in the file. For example,
$this->setSubscriberStatus(self::STATUS_UNSUBSCRIBED)
            ->setChangeStatusAt(Mage::getModel('core/date')->gmtDate('Y-m-d H:i:s'))
            ->save();

This looks to be setting the changed status date now. But, I can only see it if I go to manage customers. Thus, how could I:
A) do this without editing core files?
B) show this date in Newsletter => Newsletter Subscriptions


texts: parent product in top and product types in below select quantity

texts:
MY original site :

I want to implement like this please refer below screenshot:

how i can do?  Please give me suggestion


texts: The difference in use Repository or RepositoryInterface to load model

texts:
I found two ways to load model on net by service contracts in Magento 2. One is use the Repository, another is using the RepositoryInterface directly. Both work well.

What is the difference between the two ways? Which is better?

Why RepositoryInterface could be used directly and work? RepositoryInterface is just a API and no content in the method, I didn't set a di.xml for it too.

Example for using Repository

...
protected $productRepository;
...
public function __construct(
    ...
    \Magento\Catalog\Model\ProductRepository $productRepository
    ...
) {
    ...
    $this->productRepository = $productRepository;
    ...
}

public function loadMyProduct($sku)
{
    return $this->productRepository->get($sku);
}
...

Example for using RepositoryInterface

...
protected $productRepository;
...
public function __construct(
    ...
    \Magento\Catalog\Api\ProductRepositoryInterface $productRepository
    ...
) {
    ...
    $this->productRepository = $productRepository;
    ...
}

public function loadMyProduct($sku)
{
    return $this->productRepository->get($sku);
}
...


texts: How to get all products that are using the default ( admin ) scope values when in a store scope

texts:
I want to create a admin Grid that displays all products that are using the default ( admin 0 ) scope values when i am in a store scope.

How can I filter a collection to get this desire result.

Any help would be appreciated.

Thanks.

Ryan


texts:
I have added related product to one simple product it's all are display in product detail page but it's not display with checkbox  for select so that i am not able to add that product to cart.
According to me following code has issue to display checkbox.

   <?php if(!$_item->isComposite() && $_item->isSaleable()): ?>
        <?php if (!$_item->getRequiredOptions()): ?>
           <input type="checkbox" class="checkbox related-checkbox" id="related-checkbox<?php echo $_item->getId() ?>" name="related_products[]" value="<?php echo $_item->getId() ?>" />
        <?php endif; ?>
   <?php endif; ?>

This code is already in this path:

  /app/design/frontend/base/default/template/catalog/product/list/related.phtml line no 37

if you have any idea about this please share it with me.

Thanks


texts: How to add Secure URL for Custom rewrite URL In Magento custom Module

texts:
Am trying to add secure URL to my custom module - below is my config.xml sample code

<frontend>
    <secure_url>
        <scheme>/scheme/</scheme>
    </secure_url>
    <routers>
        <scheme>
            <use>standard</use>
            <args>
                <module>Companyname_Scheme</module>
                <frontName>scheme</frontName>
            </args>
        </scheme>
    </routers>
</frontend>
<global>
    <rewrite>
        <myschemes>
            <from><![CDATA[/myschemes\/(.*)/]]></from>
            <to><![CDATA[scheme/user/$1/]]></to>
            <complete>1</complete>
        </myschemes>
    </rewrite>

My need is to make myschemes url to access only through https://  if the user forced to load on non http i.e., http:// .

If i add secure url for myschemes then above rewrite is not working. If i enter https://www.example.com/myschemes/ as url it is redirecting to https://www.example.com/scheme/user//

How can I achieve this? Please help.


texts: Zend XMLRPC API FaultCode 630 Unable to read request Linnworks

texts:
Linnworks is unable to connect to Magento store any longer.

XML can be fetched at domain.com/api/xmlrpc but only contains faultcode error 630 (I've stripped index.php from URL's within .htaccess).

This was working initially but at some point on Friday this stopped working. It leads to some sort of permissions issue perhaps but no permissions have changed since this working.

I've chowned group and user and made everything writeable on the server but still the same issue. Can find very little similar scenario such as this on the web. Wondering if anyone could point me in the right direction at all to look into this further please?


texts: Why and how does Magento differentiate between setup, read, and write database resources?

texts: Found this question in Certification Study Guide. Can anyone clarify please?


texts: Magento 2: Custom validation on product attribute

texts:
There are only six validation available for product attributes

  validate-number (Decimal Number)
  validate-digits (Integer Number)
  validate-email (Email)
  validate-url (URL)
  validate-alpha (Letters)
  validate-alphanum (Letters (a-z, A-Z) or Numbers (0-9))

I follow this link and add new(Value Greater than 0) validation to product attribute with the upgradeData script.

But it uses backend class for validate attribute value and validate value at the time of saving attribute. But I want JS validation which should working on tab key.

Have anyone an idea about custom JS validation on product attribute?


texts: I want to use same observer in extension both module what I do?

texts: I have created package1 and its 2 modules for example module1,module2.Now situation is I want to use both observer in both modules,I want to run first module1 observer then call or run second module observer.Both modules are using same observer.What I do ? Any suggestion ?


texts:
My product images are displaying on top of the text. I've been hours trying to solve this but my knowledge is not great. I've uploaded View.phtml below, if there is anything else i should upload to help someone solve this problem please tell me. Thanks!

THE PROBLEM

View.phtml


texts: How can I get the "exclude" product images in magento?

texts:
I want to display the "exclude" product images in a section on my product page.
How can I do this?


texts: Pricing is showing £10.4 instead of £10.40

texts:
I have this code which display how much a customer has left to spend if they are to qualify for free delivery.

if ($sub_total < 75)
            { ?>

                <?php echo 'Spend another '.$to_go_delivery .' to qualify for free delivery';?>

<?php echo '*Free delivery excludes international delivery';
            ?>

<?php }}?>

however the price is being formatted wrong. it is showing £4.1 instead of £4.10 how can i get it to print the zero as well?

Thank you


texts: JS files are not updating in Pub/Static Folder and JS files are also not listing in Source tab of crome in Magento 2

texts:
I am trying to change the code of JS file in my module but it's not updating in the pub/static folder. when am I checking the source tab of crome it's also not listing under it.

I am following the below step to update module JS to the pub/static folder.

After Changes in Module, JS files run following command

  php bin/magento setup:static-content:deploy ar_SA en_GB en_US

after running this command running - php bin/magento cache: clean & flush
after that putting permission 777
But I did not get any changes in that file in pub/static folder.

I am using Ngnix and Redis Cache for my website

Thanks for your support in advance


texts: Customer Information Attribute in New Order Email Template

texts:
I've scanned many posts but cannot get to bottom of this one.
I have created a custom Customer Information attribute and I need it to display on the New Order transactional email.

Any ideas? I have tried {{var customer.getAccountno()}} and a few others but it won't display.

My Code:

$installer = $this;
$installer->startSetup();

$installer->addAttribute("customer", "accountno",  array(
    "type"     => "varchar",
    "backend"  => "",
    "label"    => "Account Number",
    "input"    => "text",
    "source"   => "",
    "visible"  => true,
    "required" => false,
    "default" => "",
    "frontend" => "",
    "unique"     => false,
    "note"       => ""

    ));

        $attribute   = Mage::getSingleton("eav/config")->getAttribute("customer", "accountno");

$used_in_forms=array();

$used_in_forms[]="adminhtml_customer";
        $attribute->setData("used_in_forms", $used_in_forms)
        ->setData("is_used_for_customer_segment", true)
        ->setData("is_system", 0)
        ->setData("is_user_defined", 1)
        ->setData("is_visible", 1)
        ->setData("sort_order", 100)
        ;
        $attribute->save();

$installer->endSetup();


texts: Magento 2.3.x : Add My Account Dashboard All Links into Top Links

texts:
I want to display all that links inside top link also which display in my account section.
How to display that?
Any help would be appreciated.
Thanks.


texts: Implementing Google Trusted Store with Magento- trim variable to 2 decimal places only

texts:
Below is my code for Google trusted Store. Currently it generates numeric values with four decimal places. For example, the value for this code: getGrandTotal(); ?>
it returns value in the format 25.0000 Is there a way it could be forced to return a value for 2 decimal places i.e 25.00

Thanks,

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

    <?php echo $orderId; ?>
    www.example.com
    <?php echo htmlentities($customer->getEmail()); ?>
    <?php echo htmlentities($address->getCountryId()); ?>
    USD
    <?php echo $order->getGrandTotal(); ?>
    -<?php echo $order->getDiscountAmount(); ?>
    <?php echo $order->getShippingAmount(); ?>
    <?php echo $order->getTaxAmount(); ?>
    <?php echo $shipDate->toString('yyyy-MM-dd'); ?>
    <?php echo $backorder ? 'Y' : 'N'; ?>
    <?php echo $download ? 'Y' : 'N'; ?>

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

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

    <?php endforeach; ?>


texts:
I came across different ways to create shipment programmatically. They are

     //Type 1
     $converter=Mage::getModel('sales/convert_order');
     $shipment=$converter->toShipment($order);
     // snip

     //Type 2
     $shipment = Mage::getModel('sales/service_order', $order)
                                ->prepareShipment($this->_getItemQtys($order));
     // snip

     //Type 3
     $shipment = Mage::getModel('sales/service_order', $order)->prepareShipment($itemQty);
     $shipment = new Mage_Sales_Model_Order_Shipment_Api();
     $shipmentId = $shipment->create($orderId);
     // snip

What are the difference between these methods.Out of the three methods which is proper method to create shipments and add tracking numbers.


texts: Delete all products and reset their Ids with least queries as possible

texts:
Can somebody suggest an intermediate way to delete all products in magento and reset their table's increment id to 1 without using multiple "truncate" queries found when Googling ?

Magento version ce-1.9.x


texts: where I can find all the order numbers from the Database table?

texts: where I can find all the order numbers from which Database table? I did some research, but I don't see sales_flat_order in my database. Please help


texts: magento2 - remove validation dynamically

texts:
I working with Magento 2.X I need remove the validation for some fields through javascript for example region or address.

Or is possible set the value through javascript?

I try this code by not working for me because the system me generate the message  "This is a required field."

 $('select[name="region_id"]').val(514)


texts: Magento 2.4 Display Breadcrumbs in Product View Page

texts:
I am currently having difficulties displaying the correct breadcrumbs in my product view page in Magento 2.4.
What I'm currently seeing if I am in a product that is e.g. Cat 1 > Sub 1 > Product is:
Home > Productname
Here some details:
Block being used: /var/www/html/vendor/magento/module-catalog/view/frontend/templates/product/breadcrumbs.phtml
Content:
    <?php
    /**
     * Copyright © Magento, Inc. All rights reserved.
     * See COPYING.txt for license details.
     */
    /** @var \Magento\Theme\Block\Html\Breadcrumbs $block */
    /** @var \Magento\Catalog\ViewModel\Product\Breadcrumbs $viewModel */
    $viewModel = $block->getData('viewModel');
    ?>

    <?php
    $widget = $this->helper(\Magento\Framework\Json\Helper\Data::class)->jsonDecode($viewModel->getJsonConfigurationHtmlEscaped());
    $widgetOptions = $this->helper(\Magento\Framework\Json\Helper\Data::class)->jsonEncode($widget['breadcrumbs']);
    ?>

Ideally this should display as: Home > Cat > Sub 1
I would not want to use any additional plugin or extension, so I am wondering if there is any method to have this adjusted quickly? Thank you


texts: how to print order id & all other detail customer detail for event observer sales_order_save_commit_after

texts:
How to print order id & all other order detail. For event observer "sales_order_save_commit_after" ?

Currently using these codes for get all order detail for event observer "checkout_onepage_controller_success_action"

$orderIds = $observer->getData('order_ids');
    Mage::getModel('customer/customer')->load($order->getData('customer_id'));
    $orderIds = $observer->getData('order_ids');
    $order     = Mage::getModel('sales/order')->load($orderIds);

                    singleton
                    Barcatsia_Smsntf_Model_Observer
                    smsntf_cancel_order

public function smsntf_cancel_order($observer){
// how to print order id & all other detail customer detail, sales detail of order.
}


texts: MAGENTO 2 remove sidebar.main sidebar.aditional with xml update does not work

texts:
So I have the in my category->Display Settings->Display Mode set to "Static block only"

And category->Design->Layout set to "1 column"

And category->Design->Layout Update XML

   <referenceContainer name="content">
     <referenceBlock name="sidebar.main" remove="true"/>
     <referenceBlock name="sidebar.additional" remove="true"/>
   </referenceContainer >

And sidebar.additional doesn't get removed, But what I notice is if I remove only one of them at time it works but I need to remove both.

What am I dong wrong with the xml updated?

Any help Please Appreciate.


texts: Magento - PayPal - SSLV3 : Will it work when PayPal discontinue SSL3 on 3rd Dec?

texts:
I just received an email from PayPal stating because of Poodle vulnerability they will discontinue support for SSLV3 using their payment API from 3rd of Dec 2014.

Just wanted to put it out there and ask if anyone knows if this will directly effect the PayPal Payment Pro / Hosted Solution / Express payments integration in Magento 1.9.0.1 (latest)?

If so - anyone have an idea how I can go about fixing the standard paypal modules in magento?

Thanks!


texts: Do you guys have any data about how many Magento Developers FAIL in Magento Certification Exam each month?

texts:
I am on the way of preparing for Magento Certification Exam.
I really want to know the failing rate of this exam.
Can you share with me this information?

Moreover, do you guys have some source of example questions for this exam?


texts: Category is not showing the products - Magento 2

texts:
I have in store Default Category > Master > Childrens.

When I click on menu on a Children, the page show all products normally, but when I click on a Master category, the page open with all filters but without products, if I filter something the products appear normally.


texts: Attribute in drop down meniu in product page

texts:
Can you clue me how to add this attribute into order process? Let's say that i have a bike and some customer prefers a specific frame size, but that bike came in different frame sizes. How can i add a drop-down where he can select frame size and complete the order. The frame size will not affect the price...

Thanks alot


texts: Which observer to use during checkout order lock?

texts:
We're currently searching for an observer to use while a submitted order is locked during the checkout process. We've found that

Mage_CatalogInventory_Model_Observer::lockOrderInventoryData

is deprecated since 1.4, so is there any observer that one can use to check things while the order/products are locked in the DB?

Does Magento happen to work with InnoDB's transactions since 1.4 so we could use any checkout_* observer there?

Many thanks!


texts: Using the RWD theme, how do I add currency switcher to the language container

texts:
I can already see that in header.phtml template it says

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

but it isn't visible? How do I make it appear?


texts: How to remove subtext in shipping checkout summary

texts:
I need to remove subtext of shipping in checkout summary
here tried as below location

/app/design/frontend/Vendor/theme-web/Magento_Checkout/web/js/view/summary/shipping.js

here I returning blank but still () is appearing. how to remove this

define(
    [
        'jquery',
        'Magento_Checkout/js/view/summary/abstract-total',
        'Magento_Checkout/js/model/quote'
    ],
    function ($, Component, quote) {
        return Component.extend({
            defaults: {
                template: 'Magento_Checkout/summary/shipping'
            },
            quoteIsVirtual: quote.isVirtual(),
            totals: quote.getTotals(),
            getShippingMethodTitle: function() {
                if (!this.isCalculated()) {
                    return '';
                }
                var shippingMethod = quote.shippingMethod();
                return shippingMethod ? '' : '';  //HERE Returning Blank***
            },
            isCalculated: function() {
                return this.totals() && this.isFullMode() && null != quote.shippingMethod();
            },
            getValue: function() {
                if (!this.isCalculated()) {
                    return this.notCalculatedMessage;
                }
                var price =  this.totals().shipping_amount;
                return this.getFormattedPrice(price);
            }
        });
    }
);

where am I doing wrong? Can I get help? Thank you in advance


texts: Mixed active content : http URL loaded on a https site

texts:
That problem is well-known and I tried the most of solutions that I have found on stackexchange.
I installed an SSL certificate on https://109.gehmert.fr/ but css and js are not loaded.
I managed to change the web/unsecure/base_url and the web/secure/base_url in command line.
I read that in the Magento configuration, I can also change the secure and unsecure base_media_url but it did not work because I do not have any js so the validation button does not work.
In database, I just have the two tables base-url and base-url-secure :
MariaDB [magento]> select * from core_config_data where path like '%web%';
Result :

web/seo/use_rewrites
web/unsecure/base_url
web/secure/base_url
web/secure/use_in_frontend
web/secure/use_in_adminhtml

And when I am filtering on '%secure%' :

I tried this : update core_config_data set value = '{{secure_base_url}}media/' where path = 'web/secure/base_media_url';
I also tried to grep the magento folders to find the files which call unsecure resources but I did not find anything.
Best regards,
Antoine


texts: Magento 2 Product base image and thumbnail images are not showing!

texts:
Product images are not showing on product detailed page.

  Small images are showing on listing page but base images and thumbnail
  images are not showing on the product page.

I have given 777 permission media folder. Issue after migration from magento 1.9 to magento 2.3.1

How can I fix the issue?


texts: How to get a selected simple product id from configurable option in category product listing in magento 2


texts: Magento 2 Data key is missing: code-entity

texts: I'm not able to create or edit pages in Magento 2.2.0.


texts: Render widget (Product list) inside PHTML

texts:
I want to group a list of products by Attribute set.

What i did is, I created a CMS page, where I inserted a custom PHTML file. In this file I obtain all my Attributes set.

After the custom block, I want to put widgets of products list, filtering with the id's of Attributes I got in the custom PHTML:

{{widget type="Magento\CatalogWidget\Block\Product\ProductsList" title="polosde animales " show_pager="0" products_count="10" template="product/widget/content/grid.phtml" conditions_encoded="^[`1`:^[`type`:`Magento||CatalogWidget||Model||Rule||Condition||Combine`,`aggregator`:`all`,`value`:`1`,`new_child`:``^],`1--1`:^[`type`:`Magento||CatalogWidget||Model||Rule||Condition||Product`,`attribute`:`category_ids`,`operator`:`==`,`value`:`28`^],`1--2`:^[`type`:`Magento||CatalogWidget||Model||Rule||Condition||Product`,`attribute`:`attribute_set_id`,`operator`:`==`,`value`:`4`^]^]"}}

My question is: how should I render the widget? How can I render the widget inside the PHTML ? is that recommended? should I pass my variables to the CMS page and render the widget there?


texts: Magento (v.1.4.1.1) with 2 web server and 1 db setting (nginx)

texts:
we are using nginx load balancing (ip 10.0.0.1) to set up magento 2 web + 1 db

  upstream web_rack {
        #ip_hash;
        server 10.0.0.2; #web1
        server 10.0.0.3; #web2
      }

in both web1 and web2, the local.xml file connects to db (ip 10.0.0.4)

however, we are not sure how to set the "base_url" (in the core_config_data table) in db.
shall we set it to 10.0.0.1?

we tried but then it seems like first time load balancer will load web1
next time if load web2, then web2 will automatically change to web1 ip.

please help.


texts: Where is app\code\core\Mage\Core\Model\Url\Rewrite function _getQueryString used?

texts: I am working on improving the documentation of magento functions and files, so developers can know where everything is used. Does anyone know where this is used or is this supposed to be extendable for third party code? For a popular CMS, the code is pretty barren of comments and the documentation for each function is barren too.


texts: Save file to customer! Not Image/text/numbers

texts:
I need to save files, not necessarily images to customers in Magento.
I create a custom attribute for customers with this:

$setup->addAttribute('customer', 'seller_permit', array(
    'type' => 'varchar',
    'input' => 'file',
    'label' => 'Vendor Seller Permit',
    'default' => '',
    'global' => 1,
    'visible' => 1,
    'required' => 0,
    'user_defined' => 0,
    'visible_on_front' => 0,
    'source' => NULL,
));

Then I create a custom controller and save files they upload to the customer and it all works.

Except how can I now get the files?
If I do $sellerDoc = $customer->getData('seller_permit');
It's just a string of the file name not the actual file itself.
Is there any way I can grab the file?

Extra Info, Im passing in the files through an  in a custom form
Then in the controller saving it to the customers with

$customer->setData('seller_permit', $post['sellerPermit']);

$customer->save();


texts: Upgrade to 1.9.2.4 duplicating block in footer

texts:
I have created static blocks in CMS then added them to the footer of RWD theme and everything had been working great. I just upgraded files to 1.9.2.4 via Magento Connect Manager and now one block is being duplicated.

my partial local.xml for this looks like:

<reference name="footer">
<remove name="footer.newsletter" />
<remove name="footer_links" />
<remove name="footer_links2" />

<block type="cms/block" name="cms_footer_links_company" before="footer_links_quick">
<!--
    The content of this block is taken from the database by its block_id.
    You can manage it in admin CMS -> Static Blocks
-->
<action method="setBlockId"><block_id>footer_links_company</block_id></action>
    </block>
<block type="cms/block" name="cms_footer_links_quick" after="footer_links_company">
<!--
    The content of this block is taken from the database by its block_id.
    You can manage it in admin CMS -> Static Blocks
-->
<action method="setBlockId"><block_id>footer_links_quick</block_id></action>
</block>
<block type="cms/block" name="cms_footer_links_account" after="footer_links_quick">
<!--
    The content of this block is taken from the database by its block_id.
    You can manage it in admin CMS -> Static Blocks
-->
<action method="setBlockId"><block_id>footer_links_account</block_id></action>
</block>
<block type="cms/block" name="footer_social_links">
    <action method="setBlockId"><block_id>footer_social_links</block_id></action>
    </block>
</reference>

It is the first block, footer_links_company, that is duplicating. Any ideas?


texts:
my magento website cron job not working ..
what problem ? i use A2 Hosting..

This is my Cron job setting in A2 Hosting C panel

*/5 *   *   *   *   php /home/microwave/public_html/cron.php >/dev/null 2>&1
*   *   *   *   *   /home/microwave/public_html/cron.sh >/dev/null 2>&1
*   *   *   *   *   sh /home/microwave/public_html/cron.sh >/dev/null 2>&1
*/5 *   *   *   *   /home/microwave/public_html/scheduler_cron.sh >/dev/null 2>&1
*/5 *   *   *   *   php -f /home/microwave/public_html/cron.php >/dev/null 2>&1

and my magento setting ..

No heartbeat task found  error <-AOE Error Message
not automatically to run heartbeat. only passively run
please help me


texts: Magento 2.2.2 - Move custom navigation into header-wrapper in XML and make it responsive

texts:
Below xml adds custom navigation before category. To make it responsive I have included it under block navigation.sections.

<referenceBlock name="navigation.sections">
             <arguments>
                    <argument name="group_name" xsi:type="string">navigation-sections</argument>
                    <argument name="group_css" xsi:type="string">nav-sections</argument>
                </arguments>
            <block class="Magento\Framework\View\Element\Template" name="sub.nav" group="navigation-sections" template="Magento_Theme::html/header_links.phtml">
                <arguments>
                    <argument name="title" translate="true" xsi:type="string">Sub Nav</argument>
                </arguments>
            </block>
        </referenceBlock>

But now it break my HTML structure as I want this custom block to be inside header.wrapper and at the same time responsive. I tried below but its not working

<move element="sub.nav" destination="header-wrapper" after="logo"/>

Although navigation.sections can be moved into header and its responsive too.

<move element="navigation.sections" destination="header-wrapper" after="logo"/>

If I change referenceBlock to header.wrapper, the navigation goes inside header but then it is not working for responsive mode. How do I move my custom navigation inside header.wrapper and make it responsive also ?


texts:
I have some products, which his images don't appear in his category page but if you look the product page, you can see them. Any idea?

For example in this page http://s513806032.mialojamiento.es/en/children?p=2 you can't see the image of  child star shooter but if you go to his product
page you can see some images.


texts: History order comment not show when export order in magento 1.x

texts:
I have three field comment, this can save after order. It work and show on order history comment like this

But when i export xml it not show, i think problem at here, 2 links are the same. 2 comment not show, invoice comment showing.

<xsl:value-of select="../../entity/comment"/><xsl:text>;</xsl:text>
<xsl:value-of select="../../entity/comment"/><xsl:text>;</xsl:text>
<xsl:value-of select="../../invoice_comments/invoice_comment/comment"/><xsl:text>;</xsl:text>


texts:
In the order table if create a custom field, now i want that field in the "Sales/order/info" how can i do this? And is it possible to do this without creating a module?
I'm using magento 1.9


texts: overwriting adminhtml block from another extension doesn't work

texts:
I'm trying to find a solution since a couple hours now. Unfortunately without any luck, so I need to ask you for help.

I'm trying to add a download button to a grid which will be provided by an extension.
If I'm customize the concerning file in Block/Adminhtml/O directly the button shows up (Add a button to admin grid). But I don't want to customize the extension - I want to overwrite the concerning block. And this is where I got stuck. Nothing happens, it seems there is an issue somewhere but I can't find it.

Here is my code

My confix.xml

<?xml version="1.0"?>
<config>
   <modules>
       <Foo_Quotedownload>
           <version>0.1.0</version>
       </Foo_Quotedownload>
   </modules>
   <global>
      <blocks>
          <rewrite>
  <adminhtml_qquoteadv>Foo_Quotedownload_Block_Adminhtml_Qquoteadv</adminhtml_qquoteadv>
            </rewrite>
      </blocks>
   </global>
</config>

My app/etc/modules/Foo_Quotedownload.xml

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

The original config.xml from the module (only interesting part)

<blocks>
<qquoteadv>
    <class>Ophirah_Qquoteadv_Block</class>
</qquoteadv>
<checkout>
    <rewrite>
        <onepage_shipping_method_available>Ophirah_Qquoteadv_Block_Checkout_Onepage_Shipping_Method_Available</onepage_shipping_method_available>
    </rewrite>
</checkout>
</blocks>

The original concerning Block

<?php
class Ophirah_Qquoteadv_Block_Adminhtml_Qquoteadv extends
Mage_Adminhtml_Block_Widget_Grid_Container

My block which lives in Foo/Quotedownload/Block/Adminhtml/Qquoteadv.php

<?php
class Foo_Quotedownload_Block_Adminhtml_Qquoteadv extends
Ophirah_Qquoteadv_Block_Adminhtml_Qquoteadv {

public function __construct()
{
  echo "works";
  die;
    $this->_controller = 'adminhtml_qquoteadv';
    $this->_blockGroup = 'qquoteadv';
    $this->_headerText = Mage::helper('qquoteadv')->__('Quotations');
    $this->_addButtonLabel = Mage::helper('sales')->__('Create Neeeew Quote');

           ///////CUSTOM code for new button:
   $data = array(
           'label' =>  'Download Quotes',
           'onclick'   => "setLocation('".$this->getUrl('qquoteadv/adminhtml_qquoteadv/download')."')"
           );
   ///////The URL I am using is a custom module that I set up earlier, Magento parses it to <MySite.com/shop/index.php/downloadtomas>, which then runs the script I have in the IndexController.php file
   Mage_Adminhtml_Block_Widget_Container::addButton('download_to_mas', $data, 0, 100,  'header', 'header');
   ///////End CUSTOM code

    parent::__construct();
}

Does anyone know what I'm doing wrong here?
Thank you so much in advance.


texts:
I'm trying to create a simple custom widget to insert into a newsletter template which just gets x amount of products from a category and displays them.

Not really too sure how I do this so just starting off by trying to get the widget recognised in the newsletter template widget drop down list.

I've just copied the Catalog/Product/New.php and Catalog/Product/Widget/New.php blocks into my module and renamed them Range.php.

This is what I have so far, but can't get it to display in the newsletter template widget drop down list after you click 'insert widget'. Any ideas?

config.xml:

<?xml version="1.0"?>
<config>
    <modules>
        <Mode_Newsletter>
            <version>0.1.0</version>
        </Mode_Newsletter>
    </modules>
    <blocks>
        <newsletter>
            <class>Mode_Newsletter_Block</class>
        </newsletter>
    </blocks>
</config>

widget.xml:

<widgets>
    <range_products type="newsletter/catalog_product_widget_range" translate="name description" module="newsletter">
        <name>Catalog Range Products List</name>
        <description>List of Products that are set as Range</description>
        <is_email_compatible>1</is_email_compatible>
        <parameters>
            <products_count translate="label">
                <required>1</required>
                <visible>1</visible>
                <value>5</value>
                Number of Products to Display
                <type>text</type>
            </products_count>
            <template>
                <required>1</required>
                <visible>1</visible>
                Template
                <type>select</type>
                <value>catalog/product/widget/new/content/new_grid.phtml</value>
                <values>
                    <default translate="label">
                        <value>catalog/product/widget/new/content/new_grid.phtml</value>
                        New Products Grid Template
                    </default>
                    <list translate="label">
                        <value>catalog/product/widget/new/content/new_list.phtml</value>
                        New Products List Template
                    </list>
                </values>
            </template>
            <cache_lifetime translate="label description">
                Cache Lifetime (Seconds)
                <description>86400 by default, if not set. To refresh instantly, Clear the Blocks HTML Output Cache.</description>
                <visible>1</visible>
                <type>text</type>
            </cache_lifetime>
        </parameters>
    </range_products>
</widget>


texts:
I am having the array of color attribute options...

I would like to sort the array based on 'store0' key...

I have used multisort and usort but its not working

[821] => Array
    (
        [checked] =>
        [intype] => radio
        [id] => 969
        [sort_order] => 513
        [store1] => Yellow
        [defaultswatch1] =>
        [swatch1] =>
        [store0] => Yellow - KID
        [defaultswatch0] =>
        [swatch0] =>
    )

[822] => Array
    (
        [checked] =>
        [intype] => radio
        [id] => 207
        [sort_order] => 309
        [store1] => Yellow Beige - Chroma 1 ½
        [defaultswatch1] =>
        [swatch1] =>
        [store0] => Yellow Beige - Chroma 1 ½
        [defaultswatch0] =>
        [swatch0] =>
    )

[823] => Array
    (
        [checked] =>
        [intype] => radio
        [id] => 857
        [sort_order] => 403
        [store1] => Yellow
        [defaultswatch1] =>
        [swatch1] =>
        [store0] => Yellow-RAIN HAT BOB
        [defaultswatch0] =>
        [swatch0] =>
    )

[824] => Array
    (
        [checked] =>
        [intype] => radio
        [id] => 860
        [sort_order] => 406
        [store1] => Yellow
        [defaultswatch1] =>
        [swatch1] =>
        [store0] => Yellow-WOMEN
        [defaultswatch0] =>
        [swatch0] =>
    )

[825] => Array
    (
        [checked] =>
        [intype] => radio
        [id] => 851
        [sort_order] => 400
        [store1] => Yellow
        [defaultswatch1] =>
        [swatch1] =>
        [store0] => Yellow-WOMEN1
        [defaultswatch0] =>
        [swatch0] =>
    )

[826] => Array
    (
        [checked] =>
        [intype] => radio
        [id] => 29
        [sort_order] => 310
        [store1] => Zebra
        [defaultswatch1] =>
        [swatch1] =>
        [store0] => Zebra
        [defaultswatch0] =>
        [swatch0] =>
    )

[827] => Array
    (
        [checked] =>
        [intype] => radio
        [id] => 1383
        [sort_order] => 830
        [store1] => abstract
        [defaultswatch1] =>
        [swatch1] =>
        [store0] => abstract
        [defaultswatch0] =>
        [swatch0] =>
    )

[828] => Array
    (
        [checked] =>
        [intype] => radio
        [id] => 1382
        [sort_order] => 829
        [store1] => caol color
        [defaultswatch1] =>
        [swatch1] =>
        [store0] => caol color
        [defaultswatch0] =>
        [swatch0] =>
    )

[829] => Array
    (
        [checked] =>
        [intype] => radio
        [id] => 1381
        [sort_order] => 829
        [store1] => cool color
        [defaultswatch1] =>
        [swatch1] =>
        [store0] => cool color
        [defaultswatch0] =>
        [swatch0] =>
    )


texts: magento store working very slow after added categories

texts:
Fresh installation of Magento 1.9.1 working very slow after added many categories and subcategories only.

No any customization or third party extension has been installed.

There are 10 main categories and more than 100 subcategories.

I think there is no such limitation over number of categories into Magento.

I was using shared hosting. Later I have migrated it over VPS.
(ssd , ram 4gb , cpu 4 core) but still problem is same.

can you please help me?


texts: Where is the file directory of Sales Order Grid?

texts:
I want to know which class is responsible for setting order grid.

I want to know the file location of Grid.php or other files structure where _prepareColumns and _prepareColection method located.


texts: Composer not updating package (grabbing it from repo.magento.com instead of packagist)

texts:
My package (https://packagist.org/packages/limesharp/stockists) is not getting updated when running composer update (it's currently stuck at 1.0.5 instead of grabbing 1.0.11).

On a closer look at the composer.lock file I see that the repo url is repo.magento.com instead of packagist. (https://repo.magento.com/archives/limesharp/stockists/limesharp-stockists-1.0.5.0.zip).

I don't understand why is that, maybe because I submitted a version to the marketplace and the first url composer checks is https://repo.magento.com/ and then the packagist repo.

If that is the case, can something be done about it? Can you update the https://repo.magento.com/ without submitting the extension to the marketplace every time a bug is fixed (takes days to be approved).


texts: Adding translation in config.xml results in 404

texts:
I have tried to add a translation.csv to my module but after adding the lines in the config.xml I can't open my module's backend url anymore (/adminhtml/mymodule results in a 404).

This is what I have added to my config.xml:

<adminhtml>
    <translate>
        <modules>
            <Psp_InventoryManager>
                <files>
                  <default>PSP_InventoryManager.csv</default>
                </files>
            </Psp_InventoryManager>
        <modules>
    </translate>
</adminhtml>

This is what my config.xml looks like:

config.xml:

<?xml version="1.0"?>
<config>
    <modules>
        <Psp_InventoryManager>
            <version>1.0.0</version>
        </Psp_InventoryManager>
    </modules>
    <global>
        <blocks>
            <psp_inventorymanager>
                <class>Psp_InventoryManager_Block</class>
            </psp_inventorymanager>
        </blocks>
        <helpers>
            <psp_inventorymanager>
                <class>Psp_InventoryManager_Helper</class>
            </psp_inventorymanager>
        </helpers>
        <models>
            <psp_inventorymanager>
                <class>Psp_InventoryManager_Model</class>
            </psp_inventorymanager>
        </models>
        <resources>
            <psp_inventorymanager_setup>
                <setup>
                    <module>Psp_InventoryManager</module>
                </setup>
            </psp_inventorymanager_setup>
        </resources>
    </global>
    <admin>
        <routers>
            <adminhtml>
                <args>
                    <modules>
                        <psp_inventorymanager before="Mage_Adminhtml">Psp_InventoryManager_Adminhtml</psp_inventorymanager>
                    </modules>
                </args>
            </adminhtml>
        </routers>
    </admin>
    <adminhtml>
        <layout>
            <updates>
                <psp_inventorymanager>
                    <file>psp/inventorymanager.xml</file>
                </psp_inventorymanager>
            </updates>
        </layout>
        <translate>
            <modules>
                <Psp_InventoryManager>
                    <files>
                      <default>PSP_InventoryManager.csv</default>
                    </files>
                </Psp_InventoryManager>
            <modules>
        </translate>
    </adminhtml>
</config>


texts:
We have setup 21% tax for Netherlands, and following is calculation for 1 order in backend :

Subtotal    €196.32
Shipping & Handling €7.40
Kosten betaalmethode    €7.40
Grand Total (Excl.Tax)  €209.84
Tax €44.11
Grand Total (Incl.Tax)  €253.95
Total Paid  €0.00
Total Refunded  €0.00
Total Due   €253.95

I understand that the payment charges above are shown incl tax so the Grand total excl tax = € 196,32 + € 7,40 + € 6,12 = 208,84 instead of € 211,12

But the issue is that the 21% VAT over € 209,84 should be: VAT € 44,07, But its shows VAT € 44,11

Can please anybody help how above calculation are correct ?


texts: Magento 2 Disabling Redis Session Locking

texts: We're seeing some performance gains if we disable session locking in Redis. We haven't found any issues with doing this in our testing, but wanted to see if anyone has tried that and if they have run into any issues or if anyone would advise against doing this for any reason.


texts:
How can i move search box to center with the minicart.
Please assist


texts: Customized error message in the customer login page in Magento 2?

texts:
I am trying to change the error message "You did not sign in correctly or your account is temporarily disabled." that appears when the user enters the wrong credentials in Magento2.

I have referred post: Magento 2: How to change the error/validation message in the customer login page?.

But I don't see any similar message in en-US file at app/design/frontend/{Vendorname}/{themename}/i18n/en_US.csv as mentioned in post's answer.I tried to add a message manually and tried to see if I can update the message as well.

Apart from that, I tried to override the Loginpost controller [Magento 2 override the cutomer account loginpost controller, but it is not working as well.Not Sure, where I am going wrong. How can I change it?


texts: Inserting custom template before price on category page with XML - Magento 2

texts:
I want to include a phtml file after the product title on a category page. See here:

In app/design/vendor/theme/Magento_catalog/layout/catalog_category_view.xml I have:

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <referenceContainer name="content">
            <block class="Magento\Framework\View\Element\Template" name="custom.block" template="Magento_Catalog::my-custom-template.phtml" before="product.info.price" />
        </referenceContainer>
    </body>
</page>

and I have my-custom-template.phtml in app/design/vendor/theme/Magento_catalog/layout/catalog_category_view.xml

but this outputs my file at the bottom of the page after all the products.

Can anyone help me reference the right place please?


texts: Get Billing and Get Shipping Address in Magento 2

texts:
Here I want a Billing and Shipping addresses according to order_id.
I receive a order data in my order object but it will give me just one record according to entity id.I want both address of order(billing and shipping).

Here is my code..

protected $order;

public function __construct(
    \Magento\Sales\Model\Order\Address $order
) {
    $this->order = $order;
  }

public function orderlist($orderid) {
    $order = $this->order->load($orderid);
    $a = $order->getData();
}

when I am printing $a it is giving me particular id record.I tried both getBillingAddress() and getShippingAddress(). it is giving me null value and blank page.
I not understanding the actual problem.

can any one help me?
thanks in advance..


texts: Problems overriding default template in Magento V-1.9

texts:
Pretty basic thing I am doing , and I am reasonably new to Magento theming.

I want a 1column layout as the default layout for the home page , and I have copied the base 1column.phtml to app\design\frontend\[mytheme]\default\template\page\  and modified accordingly.

My local.xml file starts like the code below ( and there are no duplicate sections or anything ).

Everything else I do in the local.xml file, does what it should ( add CSS , JS  , remove poll etc ) .

When I put the template hint on - it shows me that it is using

frontend/[mytheme]/default/template/page/2columns-right.phtml  - which is a valid file but I want it to use the 1column file.

Everything else is standard - and I am only using local.xml to override theme changes - nothing else.

Help!  Thanks - appreciate your time.

    <reference name="root">
        <!-- define the default template for the theme -->
        <action method="setTemplate"><template>page/1column.phtml</template></action>
    </reference>

etc..


texts: I wants to run URL-REWRITE INDEXING at night 12. my need is to set cron at specific time. how to run only URL-REWRITE INDEXING alone by cron.


texts:
The JavaScript function Mage.Cookies.clear does not clear any cookie. It does not matter if the cookie was set with Mage.Cookies.set or from PHP.

Cookie configuration:

Cookie Lifetime: 3600
Cookie Path: /
Cookie Domain: www.example.com
Use HTTP Only: No
Cookie Restriction Mode: No

I noticed it on Magento EE 1.14.2 but tagging the question as magento-1 since it seems to be a general problem in cookies.js which has not changed in ages.

How can I solve this?


texts:
tldr;
I would like to have microsites like these sites below using magento but easy to build and destroy without the overhead of magento multisite.

http://www.indiemerch.com/clients/

Merchmo

More info:
Our company uses over 100 'store' and 'website' scopes and growing. Most of them are small stores with a couple of configurable products.

This is creating issues with indexing, updating and stores frequently need to be removed edited, causing even more issues etc.

Ideally I would love to use categories as 'stores'. (basically templates with custom css for background and header, through checkout.) I have already begun trying to make this happen using session variables & layout update xml to add css to products and categories. But this seems like such a hack.

Multivendor plugins are overkill for what I need. We will manage all inventory products etc.

Am I missing something? Is there an easier way to achieve what I'm trying to achieve? There are a lot of sites in my industry that have setups like this..


texts:
I'm confused by Magento 2 documentation regarding plugins:

It is first said that:

  Plugins cannot be used with virtual types

But then it is said that:

  You can specify a class, interface, or virtual type as a type name
  which the plugin observes

Am I missing something or is the documentation contradicting itself ? Can we create plugins for virtual types ?


texts: How to replace the production website with the development one?

texts:
I've been let down with a developer going AWOL half-way through a project and have had to learn as I go to get our new site sorted.

The current site is : ourdomain.co.uk/ (not magento)

We have the development site on : ourdomain.co.uk/beta2

How do I replace the live site ?

My plan is to backup, delete old site files and replace with files from /beta2 and use an extension I have for 301 redirects.

Please advise if this is a bad thing to do a better way.


texts:
I have a collection of products and i want to fitler entity_id attribute using wildcards. For example i want to select a specific set of ids like ids that start with 140 and next number is either 0 or 1,.. until 6, and the rest doesn't matter that much. I was thinking if using this :

addAttributeToFitler('entity_id',array('like'=>'140[0-6]%'))

but it gives me no results. I don't know if follows the same format of like in SQL.

Thank you in advance.


texts:
I need to add default newsletter form in a static block. I have tried the following short codes:

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

None of them work. However if I use:

<?php echo $block->getChildHtml('subscribe'); ?>

inside the footer.phtml of my theme it works. Ideally I want to add this to a block in Magento 2. The block is defined properly in the theme and rest of the content of the block shows properly.

Some posts here and here say that some block permissions need to be given to use this. I don't see anything System > Permissions > Blocks or System -> Advanced -> Advanced in Magento 2.


texts: How to display custom sorting option in backend

texts: Hi i have recently created most viewed product sorting option for my store and its working fine but i want to add that option to be enable or disable from the backend here in sorting option where position, price and name is visible


texts:
Using Magento 1.7 and I've created a simple frontend form, however, when I go to test and submit the form it returns the 404 page, though I'm really not sure why.

Here is my code structure:

|-Vendor
|-----Module
|---------Block
|-------------Form.php
|---------controllers
|-------------IndexController.php
|---------etc
|-------------config.xml

Form.php:

<?php
    class Vendor_Module_Block_Form extends Mage_Core_Block_Template
    {
        public function getFormAction()
        {
            return $this->getUrl('module/index/post');
        }
    }

IndexController.php

<?php
    class Vendor_Module_IndexController extends Mage_Contacts_IndexController
    {
        public function postAction()
        {
            //custom form stuff
        }
    }

config.xml

<?xml version="1.0"?>
<config>
    <modules>
        <Vendor_Module>
            <version>0.1.0</version>
        </Vendor_Module>
    </modules>
    <frontend>
        <routers>
            <module>
                <args>
                    <modules>
                        <Vendor_Module before="Mage_Contacts">Vendor_Module</Vendor_Module>
                    </modules>
                </args>
            </module>
        </routers>
    </frontend>
    <global>
        <blocks>
            <module>
                <class>Vendor_Module_Block</class>
            </module>
        </blocks>
    </global>
</config>

I've checked in admin and can see that it is enabled, I've added a Helper/Data.php file as suggested in another SO post. I've cleared cache and reindexed but still, it doesn't work.

Any ideas or anything clearly wrong that I've missed?


texts: Magento 2 href to Add product link from template phtml

texts:
I Have made custom admin page view module, now  i want add button there click on which should take user to add product URL .

i tried below but it is not working

<a href="<?PHP echo $resultRedirect->setPath('catalog/product/edit', ['id' => 10, '_current' => true,'next'=>"1"]);


texts: Magento 2 : Save Customer Page Data Issue

texts:
I created three custom field in customer account edit page and same field created in admin panel inside customer edit form.

But now, how to save data? I tried to override the editPost.php file and use this $customer->setCustomAttribute('abc',$this->getRequest()->getParam('ABC'));

This is not help in saving data and show undefine variable "customer" error.

Notice: Undefined variable: customer in /opt/lampp/htdocs/magento/app/code/xxx/xxx/Controller/Account/EditPost.php on line 140


texts: The products after importing does not appear on Magento 2.3 on the front end. But after you click Edit and save  without any modification it show,


texts:
When change a option how to get a simple product  id  from configurable product in magento 2

  custom .phtml file

<script>
   require([
    'jquery',
    'Magento_Catalog/js/price-box'
], function($){
     $('body').on('click', '.swatch-option', function(e) {
        var swatchid = $('.swatch-attribute').attr('option-selected');
        var swatchattributeid = $('.swatch-attribute').attr('attribute-id');
        alert(swatchattributeid);
    });

});

 </script>

i get a option id like this


texts: Which price Google accepts for the Magento Grouped Products?

texts:
I want to create the product feed to submit to Google.
I want to know how does Google accept the price for the Grouped products?

Will it be sum of the price of all the associated simple products?


texts: Integrating chosen.js Prototype or jQuery

texts:
Has anyone got chosen.js working on Magento 1.7x?

I've seen one thread talking about problems with it and Magento validation.

If someone knows if it works can he show me how to do it?


texts: Adding regions in addresses other than US in Magento 2

texts:
We are running Magento 2.1.6.
We want to set predefined regions and areas as drop down lists in addresses, just like when you select country us, you have the states pre selected, etc..

For example, we want to add when people select UAE as the country to have the region field in address prepopulated with the 7 states in the UAE, and if for example the user select the state Dubai, we want to have a Area prepopulated with all the different areas known in Dubai what we would populate manually.

Any thoughts on how to do this ?


texts:
I'm trying to implement a banner slider without Commands

I have already pasted the folder into public_html/app/code/

And I created a PHP file in public_html and tried to run it but nothing happens

Can someone help me?

slider: https://github.com/mageplaza/magento-2-banner-slider

Thanks in advance


texts: Send Specific Email Depending On Payment Method (i.e. to include Bank Details)

texts:
I need to send a specific email if the customer selects a payment method.

I will be using this for clients who wish to pay offline (Bank transfer) The email will inform them of our banking details.


texts: Why does Magento 1.9.3.10 does not include /lib/mcrypt_compat/mcrypt.php

texts:
Magento released a patch for magento 1.9.3.x to be able to support php7.2. The patch includes /lib/mcrypt_compat/mcrypt.php so that php7.2 which does not have the mcrypt module (at least officially), can run without problems.

However i just notice that Magento 1.9.3.10 actually does not include this mcrypt lib, which means you either have to install mcrypt for php7.2 with pear, extract the file from a Magento 1.9.3.9 installation or use php7.1 which has mcrypt.

Does anyone know why this is the case?


texts: Add microdata stock availbility Magento 2

texts:
I have a default file, where rendering price and adding some microdata, I need to add stock availbility, but I can't find a right way.

/app/design/frontend/Theme/myTheme/Magento_Catalog/templates/product/price/amount/default.phtml

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

<span class="price-container <?php /* @escapeNotVerified */ echo $block->getAdjustmentCssClasses() ?>">
    <?php if ($block->getDisplayLabel()): ?>
        <?php /* @escapeNotVerified */ echo $block->getDisplayLabel(); ?>
    <?php endif; ?>
    <span <?php if ($block->getPriceId()): ?> id="<?php /* @escapeNotVerified */ echo $block->getPriceId() ?>"<?php endif;?>
        <?php echo($block->getPriceDisplayLabel()) ? 'data-label="' . $block->getPriceDisplayLabel() . $block->getPriceDisplayInclExclTaxes() . '"' : '' ?>
        data-price-amount="<?php /* @escapeNotVerified */ echo $block->getDisplayValue(); ?>"
        data-price-type="<?php /* @escapeNotVerified */ echo $block->getPriceType(); ?>"
        class="price-wrapper <?php /* @escapeNotVerified */ echo $block->getPriceWrapperCss(); ?>"
        <?php echo $block->getSchema() ? ' itemprop="price"' : '' ?>>
        <?php /* @escapeNotVerified */ echo $block->formatCurrency($block->getDisplayValue(), (bool)$block->getIncludeContainer()) ?>

    <?php if ($block->hasAdjustmentsHtml()): ?>
        <?php echo $block->getAdjustmentsHtml() ?>
    <?php endif; ?>
    <?php if ($block->getSchema()): ?>
        <meta itemprop="priceCurrency" content="<?php /* @escapeNotVerified */ echo $block->getDisplayCurrencyCode()?>" />
    <?php endif; ?>

If I add this part:

<?php if ($block->displayProductStockStatus()): ?>
    <?php if ($_product->isAvailable()): ?>
          <link itemprop="availability" href="http://schema.org/InStock">
    <?php else: ?>
          <link itemprop="availability" href="http://schema.org/OutOfStock">
    <?php endif; ?>
<?php endif; ?>

I get error Invalid Method: displayProductStockStatus()

Please provide me, how can I do it right. Thanks.


texts:
I am trying to setup a Cron to automatically update order statuses that have a are in a "Processing" state in Magento.

Here is what I have so far

config.xml

    <orders>
        <schedule><cron_expr>0 9,11,13,15,17 * * *</cron_expr></schedule>
        <!--schedule><cron_expr>*/15 * * * *</cron_expr></schedule-->
        <run><model>orders/Status::cron</model></run>
    </orders>

</jobs>

And inside Status.php

public function updateOrderStatus($order)
{

    $order->setOrderStatus(self::STATUS_PACKING);

    $order->save();

}

What I would like to do is change any orders from "Processing" to "Packing" but I can't seem to find a way to do it...

If anyone knows any good resources please share.


texts: Is there any way of changing 'View All Products' in Top Navigation?

texts:
I'm very new to Magento, so this might be VERY basic...

Using the demo data provided by Magento, the Top Navigation bar includes "Men", "Accessories", "Home & Decor" etc.
Each heading has subcategories, so when you hover over, you get the drop down list.
However, at the top of this list (for example) is "View All Home & Decor" etc.

Is there any way to customise this (or even remove it)? It works okay for some of the headings but "View All Sale" just sounds daft...


texts: Error Code : 15005 Processor Decline in Paypal

texts:
I have created a dummy country in magento for some requirement. I have created a store and assigned that dummy country as default country for that store, by using configuration

System -> Configuration -> General -> General(Countries Options) -> Default Country = Dummy Country.

I am using PayPal Payments Pro to process payments.
Now when I am trying to place an order from this particular store, it gives me error:

  PayPal gateway has rejected request. This transaction cannot be processed. (# 15005: Processor Decline)

To resolve this, I overridden the core file :

app/code/core/Mage/Paypal/Model/Api/Nvp.php

in the function _applyCountryWorkarounds

if (isset($request['SHIPTOCOUNTRYCODE']) && $request['SHIPTOCOUNTRYCODE'] == 'YC') {
    $request['SHIPTOCOUNTRYCODE'] = 'AF';
}

Here, YC is the code of the dummy country, I change it to AF.

But still I face the error #15005. Can anyone suggest the solution ?


texts: How to move first element of object to first Magento 2

texts:
My object is something like this

object(Magento\Framework\Data\Collection)[8565]
protected '_items' =>
 array (size=3)
  15841610 =>
    object(Magento\Framework\DataObject)[8701]
      protected '_data' =>
        array (size=28)
          ...
  15841611 =>
    object(Magento\Framework\DataObject)[8750]
      protected '_data' =>
        array (size=28)
          ...
  15841612 =>
    object(Magento\Framework\DataObject)[8563]
      protected '_data' =>
        array (size=28)

whats that '_items' string, how can I move the last element with key = 15841612 to the first and shift others.

I have tried this with an array but for the object, it doesn't work.


texts: Magento2 - Get shipping amount before free shipping promotion applied

texts:
I need to get the Shipping amount of an Order before a Free shipping promotion is applied.
Is this achievable? How can it be done? I've googled about and see absolutely nothing.
Thanks,


texts:
We had a third party build our initial website and I am in the process of 'fixing' things that were not done as well as we might have liked. One such issue was the manner they used to handle pages that required a user account.
The third party had just added a sign-in page as an intercessionary step before loading the product form. (there were problems with this approach in that a user could technically bookmark the form and anything after it and return to it in a non-signed in state that would cause errors)

The new method is using an open source 'blacklist' style extension where you can list specific pages that require the user to log in. This particular extension did not re-direct to the desired page so I added code to do that (using the built in setBeforeAuthUrl() and setAfterAuthUrl() session variables).

The problem we have gotten in a few, isolated tests is that some browsers appear to have some kind of cached information on the /checkout/cart/ page that again pops up the login screen when you click 'go to checkout' which will then bring you back to the user dashboard. The process will rinse-wash-repeat until you clear the browser cache or otherwise hard-reload (Ctrl-F5) the /checkout/cart/ page.

What I want to know is if there is anyway to force the user's browser to not cache anything on the /checkout/cart/ page and/or any other way to avoid whatever may be the cause of this particular page causing a login prompt to be displayed when a user is already logged in.

SW


texts: Not able to edit,add or delete from backend in magento 1.7

texts:
I am able login in back-end and every pages are opening properly. The problem is when I edit,delete or add anything from admin,it shows the correct message "The configuration has been saved" but in actual it is not saving.

I am too much fed up with this problem,,I have uploaded all the files again but problem remains the same.

Can anyone help me please. This requirement is very urgent for me.

Thanks in advance..


texts: When the indexer runs in Production mode?

texts:
When a Magento2 instance is in Production Mode, When the re-indexing takes place automatically or Do we have to create cron for re-indexing.
Please advice.


texts: Magento : disable cache for static block

texts:
I have one file that called from static block in which i display product information on menu.

{{block type="core/template" title="BEST SELER!!!" sku="ASS030530010" template="catalog/product/menuproduct.phtml"}}

Price changed by Geo ip(country wise). But as it call from static block it cant change price when i change country flag, it display cached price on menu but on detail page it changes.

I have enable cache from admin

I want to exclude it from cache.

<reference name="head">
            <block type="catalog/product" name="menu.product" as="related_cat" template="catalog/product/menuproduct.phtml">
                <action method="unsetData"><key>cache_lifetime</key></action>
                <action method="unsetData"><key>cache_tags</key></action>
            </block>
        </reference>

Above Solution doesn't work any more.


texts: Magento2 How to setup cronjob to automatically start magento2 import?

texts:
There should be a possibility to setup a cron, which does the system -> import. I want to automatically start an import which I normally start from the magento2 admin GUI. The import is getting it's csv from local destination.

Does somebody know how I could do this?


texts: finalPrice with no currency and 2 decimal points (for rich snippets)

texts:
So on the product page (view.phtml)  I had:

<?php echo Mage::helper('core')->currency($_product->getFinalPrice()); ?>
<link itemprop="availability" href="http://schema.org/InStock" />

Which give me the result of eg €70.30

But for rich snippet the currency has to be declared separately

So i used the code:

<meta itemprop="priceCurrency" content="<?php echo $currency_code = Mage::app()->getStore()->getCurrentCurrencyCode(); ?>"/>
<?php echo Mage::helper('core')->currency($_product->getFinalPrice(), false, false); ?>

Which give the the Currency separately from the Price but the price is now not rounded so I get eg: 70.30132312323

How do I get the price (with out the currency) to 2 decimal points?

Edit: just to clarify, there are 2 store fronts with different currencies, so if you just call the base price it will give the wrong value for one of the store fronts ( eg you get 64.99 instead of 70.30)

Thanks


texts: If customer change billing address, i want add this like shipping infomation. How to do this? please help me.


texts: Facing exception error while loading magento

texts:
I am facing this error. Kindly give me a solution to resolve this.

Exception printing is disabled by default for security reasons.

  Error log record number: 1845623148


texts: How to hide layered navigation attribute if it only contains 1 value?

texts:
If I search for a specific rug collection in my store, the category attribute will show and only have "rug" as an option, same with collection attribute, only one value shown (as it should). This IMO is pointless for the customer and doesn't need to be shown.

Is there an easy way to hide the layered navigation results if there is only one value present?


texts:
we have recently installed Redis Cache for our magento based sites.

we 2 websites on our server both using same redis server, our server is based on linux with centos.

the issue we are facing is that redis is consuming quite a lot of RAM, and it is growing by every day.

we have set some values on our magento local.xml file for redis

    <redis_session>
    <host>xxxxxxx</host>
    <port>xxxx</port>
    <password></password>
    <timeout>2.5</timeout>
    <persistent></persistent>
    <db>1</db>
    <compression_threshold>2048</compression_threshold>
    <compression_lib>gzip</compression_lib>
    <log_level>1</log_level>
    <max_concurrency>6</max_concurrency>
    <break_after_frontend>5</break_after_frontend>
    <break_after_adminhtml>30</break_after_adminhtml>
    <first_lifetime>86400</first_lifetime>
    <bot_first_lifetime>60</bot_first_lifetime>
    <bot_lifetime>7200</bot_lifetime>
    <disable_locking>0</disable_locking>
    <min_lifetime>60</min_lifetime>
    <max_lifetime>2592000</max_lifetime>
   <automatic_cleaning_factor>1</automatic_cleaning_factor>
</redis_session>

it seems like we do not have an expire set to it, plus there is no memory usage limit either.

i know there are few instruction on internet for setting expire but there is nothing for use with magento in easy way.

all help is apreciated.


texts: Category sort order for different stores

texts:
We want to change the order of categories so they are different in our stores but every time we change the order in say the FRENCH store, the UK store is also changed.

Looking at the database it seems there is one table which powers the sort order. catalog_category_entity

Can this not be done for stores sharing the one default category tree?

We have used the 3rd party software emagicone for doing mass updates in the past and there is a discussion about this being an issue here http://www.novusweb.com/1622/e-commerce-technology/fixing-magento-category-order-problems/ but we definitely have the 'position' set on each category with a number and the table catalog_category_entity confirms this.


texts: Rest Api service for shipping information Post -

texts:
V1/carts/mine/shipping-information for this service which parameter are required..
I had given below parameters

{
  "addressInformation": {
    "shippingAddress": {
      "id": 0,
      "region": "string",
      "regionId": 0,
      "regionCode": "string",
      "countryId": "IN",
      "street": [
        "Lane5 pune"
      ],
      "company": "string",
      "telephone": "9494949494",
      "fax": "string",
      "postcode": "411001",
      "city": "pune",
      "firstname": "vaibhav",
      "lastname": "kapoor",
      "middlename": "string",
      "prefix": "string",
      "suffix": "string",
      "vatId": "string",
      "customerId": 2,
      "email": "vaibhav@gmail.com",
      "sameAsBilling": 0,
      "customerAddressId": 0,
      "saveInAddressBook": 0,
      "extensionAttributes": {},
      "customAttributes": [
        {
          "attributeCode": "string",
          "value": "string"
        }
      ]
    },
    "billingAddress": {
      "id": 0,
      "region": "string",
      "regionId": 0,
      "regionCode": "string",
      "countryId": "IN",
      "street": [
        "Lane5 une"
      ],
      "company": "string",
      "telephone": "9494949494",
      "fax": "string",
      "postcode": "411001",
      "city": "pune",
      "firstname": "vaibhav",
      "lastname": "kapoor",
      "middlename": "string",
      "prefix": "string",
      "suffix": "string",
      "vatId": "string",
      "customerId": 2,
      "email": "vaibhav@gmail.com",
      "sameAsBilling": 0,
      "customerAddressId": 0,
      "saveInAddressBook": 0,
      "extensionAttributes": {},
      "customAttributes": [
        {
          "attributeCode": "string",
          "value": "string"
        }
      ]
    },
    "shippingMethodCode": "freeshipping",
    "shippingCarrierCode": "freeshipping",
    "extensionAttributes": {},
    "customAttributes": [
      {
        "attributeCode": "string",
        "value": "string"
      }
    ]
  }
}

Error message is:

"message": "Unable to save shipping information. Please, check input data."


texts: Pricerule showing in store but not checkout

texts:
Have a peculiar problem and could do with some insight on where to begin;

In the store I have a custom pricerule for customers, now whats weird is in the store lets say we have a product:

Product 1
Price: 100

Now in the store my customer has a 20% discount so it says it cost 80, but when they add it to the cart at checkout it says it costs 100 and when proceeding with checkout it stays at 100.

Where would I start with fixing this?


texts:
I am trying to get the groups of a specific user to use that information for sorting products depending on who is logged in. How do I get the group name of a logged in user? I cannot find any documentation about this.

I am using Magento 2.

Thank you in advance!


texts: For Which Countries Does PayPal Require a State?

texts:
When using PayPal (no matter which integration I think), we sometimes get the following error:

PAYPAL GATEWAY HAS REJECTED REQUEST. THE FIELD SHIPPING ADDRESS STATE IS REQUIRED (#10729: SHIPPING ADDRESS STATE EMPTY).

This was already the case for China and Japan. So we added these countries to the list of countries where the state is required (under System - Configuration - General). But for which countries does PayPal also require the state field? I guess there are more. We also asked the PayPal merchant support, but they could not give us any information (screw you, guys!). Maybe someone else has a complete list or we can build up one together?


texts: Shopping Cart price rules not working for Category attribute

texts:
I Have a configurable product whose category is Cotton, but its simple product's category is different.. I have created a promotion rule for category "cotton" in magento backend.

If i apply rule to configurable products it check category of its associated simple products..

Why is it so..?


texts: I want to merge two features :- One product per entire cart & Limit order by customer

texts:
How to allow only one product in a cart?

I want to limit number of order by customer on our Sale Day

How can i use both Features at the same time

I have given the answer, I want only a magento developer to check if its correct?


texts: remove quantity column from checkout onepage page from order review step

texts:
I am trying to remove quantity column from order review step on checkout/onepage page but it removing only heading not data.

Any Suggestions?


texts: Magento2: Edit product from products grid

texts:
Does anyone have any proven, free solution so that I can edit the product from the product list?
I need a quick edit of the short description after clicking on the product with the tinymce editor. Some solution?

I want quick edit from grid this both column.

But short description quick edit require tinymce editor. Any solution? M2.3.4


texts:
I would like to have single items displayed in category without prices, once customer has clicked on product and the product view page is loaded, I would like multiple add to cart options. Something clean that would provide something like this...is there an extension maybe that could apply to each product I have?

Thanks for any help...

Red ADD TO CART (button)
Blue ADD TO CART (button)
GREEN ADD TO CART (button)

OR

20 COUNT ADD TO CART (button)
100 COUNT ADD TO CART (button)
1000 ADD TO CART (button)


texts:
I've been struggling with this issue for a few hours now and thought to see if anyone else has any ideas on why it could be happening.

When I try to add a product to the cart, I get a 404 error with POST {URL}/addtocart/index/add/uenc/aHR0cHM6Ly93d3cuc2dzZGV2LmNvLnVrL2luZGV4LnBocC9lYzIwMDAtMi10b24tZm9sZGluZy1lbmdpbmUtY3JhbmU,/product/2495/form_key/7r9A9LoJ4Hbzbuwr/ 404 (Not Found)

I've tried the cookie fix (change cookie lifetime to 86400) but this hasn't resolved it. I've also tried various browsers, the product adds to cart on the category page perfectly however it gives me that error on the product page. I've also checked my templates for <?php echo $this->getBlockHtml('formkey'); ?> and can confirm it's present on both the cart page and the view.phtml template.

Any help is much appreciated!


texts: Magento2.3.0 Admin side web setup wizard inside extention manager click after loading issue

texts:
I am using Magento2.3.0 and we have to go to admin side system->Tools->Web Setup Wizard inside Extension manager click after loader has not stopped.

my console inside getting response

If anyone idea reply me.


texts: Email template subjects in foreign language become question marks when saved

texts:
I have created and email template with Russian content. After entering the details and saved the email template, email template subject showing like "???? ????????????? ?????? {{var store.getFrontendName() | raw}} ". The issue is only with the email template subject field.
Magento version : 2.2.6

Steps to reproduce :

Go to Marketing -> Email Templates
Edit any template
Put the below characters in the subject line.

  Ваше подтверждение заказа {{var store.getFrontendName() | raw}}

Save


texts: How to get data from custom table by entity_id for custom table in magento 2?

texts:
Table custom like this

I want get data from table " custom " by id in block magento 2. Please help me! Thanks all

UPDATE

I want get data by " custom_id "

UPDATE

function __construct

public function __construct(
    \Magento\Framework\View\Element\Template\Context $context,
    \Webkul\MpSellerMapLocator\Model\Mpsellermaplocator $mpSellerMapLocatorModel,
    array $data = []
) {
    parent::__construct($context, $data);
    $this->mpSellerMapLocatorModel = $mpSellerMapLocatorModel;
}

get data

$customId = 4;
$marketplaceMpsellermaplocator = $this->mpSellerMapLocatorModel->addFieldToFilter('custom_id', $customId);
echo "<pre>";var_dump($marketplaceMpsellermaplocator->getData());
exit;


texts:
I have custom admin page edittab.phtml in that page I have ajax call

function deleteOldLens(id)
{
    var url = "<?php echo $this->getUrl('/customtabs/ajax/deletelens');?>";
    new Ajax.Request(url, {
        method:'post',
        parameters: {
            id: id
        }
        , requestHeaders: {Accept: 'application/json'},
        onSuccess: function(transport) {
            retjson = transport.responseText.evalJSON();
            alert( retjson.resp );
        }
    });
}

and in module customtabs/controllers/ajaxController.php I have deletelensAction().This code gives me error like

   http://localhost/optishop/index.php/admin/customtabs/ajax/key/c86e7acf7f7d45339bf50a7ab6efc4b2/?isAjax=true
   404 Not found

I have also tried other solutions like

  Mage::app()->getStore()->getUrl('*/ajax/deletelens');
  Mage::app()->getUrl('customtabs/ajax/deletelens')


texts:
I'm looking for a solution to retrieve a few cms blocks outside the Magento2 installation.

The script will be on the same server so I'm able to load the bootstrap.php file. Actually I've found a solution to get the cart content but unfortunately I didn't found any solution for retrieving blocks.


texts: Onepage checkout won't advance beyond shipping method

texts:
I recently changed servers and applied all patches to my Magento 1.8 installation.  After the migration everything seems to be working fine except for one thing, when customers cannot advance beyond selecting payment method and clicking continue.  It stays on the same stage of the checkout process.

I checked things out with the browser debugger and there are three AJAX calls that are successful (200) when continue is clicked, but the UI doesn't advance to payment method.   The 3 succesful AJAX calls I see upon clicking continue are:
saveShippingMethod/
?prevStep=shipping_method
progress/


texts: Product custom option duplication on save within loop

texts:
I am trying to figure out the behaviour I'm getting when saving custom product options programmatically.

I am returning a collection of products ($simples) then:

foreach ($simples as $simple)
{
    $custom_options = array($option_one, $option_two);

    $product = Mage::getModel('catalog/product')->load($simple->getId());

    $product->setProductOptions($custom_options)
            ->setCanSaveCustomOptions(true);

    $product->save();
}

$custom_options is simply an array of two option arrays:

[0] => Array
    (
        [title] => Option One
        [sku] => OPTIONONE
        [type] => field
        [price] => 0
        [is_require] => 0
        [sort_order] => 0
        [max_characters] => 100
    )
[1] => Array
    (
        [title] => Option Two
        [sku] => OPTIONTWO
        [type] => field
        [price] => 0
        [is_require] => 0
        [sort_order] => 0
        [max_characters] => 100
    )

However the iteration value appears to have some kind of effect on save(), as for each increase, each of the arrays above are added to the product that many times i.e.

Product from loop 1 has: Array[0], Array[1]
Product from loop 2 has: Array[0], Array[0], Array[1], Array[1]
Product from loop 3 has: Array[0], Array[0], Array[0], Array[1], Array[1], Array[1]

I can see that in \Mage\Catalog\Model\Resource\Product\Option.php

protected function _afterSave(Mage_Core_Model_Abstract $object)

is called multiple times on each array, I just need to understand why.

Edit: I have just created an observer and logged the calls, this is what I get:

2013-09-15T13:49:12+00:00 INFO (6): Calling save() on product: 74
2013-09-15T13:49:12+00:00 INFO (6): PRODUCT SAVE BEFORE CALLED: 74
2013-09-15T13:49:12+00:00 INFO (6): Product option _afterSave() called...
2013-09-15T13:49:12+00:00 INFO (6): Product option _afterSave() called...
2013-09-15T13:49:12+00:00 INFO (6): PRODUCT SAVE AFTER CALLED: 74
2013-09-15T13:49:13+00:00 INFO (6): SAVE SUCCESS FOR PRODUCT: 74
2013-09-15T13:49:13+00:00 INFO (6): Calling save() on product: 75
2013-09-15T13:49:13+00:00 INFO (6): PRODUCT SAVE BEFORE CALLED: 75
2013-09-15T13:49:13+00:00 INFO (6): Product option _afterSave() called...
2013-09-15T13:49:13+00:00 INFO (6): Product option _afterSave() called...
2013-09-15T13:49:13+00:00 INFO (6): Product option _afterSave() called...
2013-09-15T13:49:13+00:00 INFO (6): Product option _afterSave() called...
2013-09-15T13:49:13+00:00 INFO (6): PRODUCT SAVE AFTER CALLED: 75
2013-09-15T13:49:14+00:00 INFO (6): SAVE SUCCESS FOR PRODUCT: 75

As you can see, the products save() method is only called once, but the options are being duplicated for each loop iteration


texts: As I reinstalled my theme, I created a folder installed under the public folder. Here I uploaded all the installation files for the new theme. This went as a new Magento installation and not just adding files to an existing Magento. I was hoping, I could install the new Theme + Magento into the public_html folder but instead it was all installed under the "install" folder. Now my the site only works under "mydomain/install/" while I want "mydomain" only. How can I correct this? Should this be done at the back end under CMS Home pages?


texts:
I am using product collection in my custom phtml  file I try to add filter only show in stock product but it will not work

My code :

$currentCategory = Mage::registry('current_category');
$catId =47;
$last = date('Y-m-d', strtotime('+1 days'));
$first = date('Y-m-d', strtotime('-365 days'));
$collection = Mage::getModel('catalog/category')->load($catId)
             ->getProductCollection()
             ->addAttributeToSelect('*') // add all attributes - optional
             ->addAttributeToFilter('status', 1) // enabled
             ->addAttributeToFilter('visibility', 4) //visibility in catalog,search
             ->setPageSize(8)
             ->addAttributeToFilter('updated_at', array(
                        'from' => $first,
                        'to' => $last,
                        'date' => true,
                        ));
$_helper = $this->helper('catalog/output');

 ?>


texts: Magento 2.3.4 redirect from HTTP to HTTPS+SID but SID version is blocked by robots.txt

texts:
Quick questions.
My website redirects with a 301 redirect from http to https.
From there a 301 redirect is used to redirect to https+SID.
the https+SID is blocked by robots which seems good since every session the id changes.
Is a 301 redirect (permanent) to every time a new SID url the best practice for google and other crawl robots?
Currently I have one single store with one language with the plan to add a second language.
What would be the best practice?
Thanks in advance!
Best regards
Vincent
PS
The redirect 301 from https to https+SID does not happen when you go directly to the https version. (it only happens when you go to the http version)
when i do a redirect check...

http://www.xxx.nl 301 Moved Permanently
https://xxx.nl/ 301 Moved Permanently
https://www.xxx.nl/?SID=4ofga4vorahdsvircn41ot609i 200 OK


texts: category description in footer in 1.9.2.0 / 1.9.2.0.1

texts:
I have a line in

/template/page/html/footer.phtml

<?php echo Mage::getModel('catalog/layer')->getCurrentCategory()->getDescription(); ?>

Now with BLOCK_HTML Cache enabled, the footer repeats only the first hit of a description text.

Is that the same bug as with the cms/block caching thing?


texts:
Getting error while publish message to RabbitMQ :The connection timed out after 3 sec while awaiting incoming data.
use Magento\Framework\MessageQueue\PublisherInterface;

$this->publisher->publish('watcher_order_attribute.update', $this->serializer->serialize($publishData));

COMMUNICATION.XML
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Communication/etc/communication.xsd">
    <topic name="watcher_order_attribute.update" request="string" />
</config>

queue_topology.xml
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework-message-queue:etc/topology.xsd">
    <exchange name="magento" type="topic" connection="amqp">
        <binding id="uniqueIdBinding" topic="watcher_order_attribute.update" destinationType="queue" destination="WatcherQueue"/>
    </exchange>
</config>

queue_consumer.xml
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework-message-queue:etc/consumer.xsd">
    <consumer name="vendor.WatcherQueue" queue="WatcherQueue" connection="amqp"  consumerInstance="Magento\Framework\MessageQueue\Consumer" handler="Vendor\MyQueue\Model\Watcher\Attribute\Consumer::process" />
</config>

queue_publisher.xml
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework-message-queue:etc/publisher.xsd">
    <publisher topic="watcher_order_attribute.update">
        <connection name="amqp" exchange="magento" />
    </publisher>
</config>

'amqp' => [
            'host' => '127.0.0.1',
            'port' => '15672',
            'user' => 'guest',
            'password' => 'guest',
            'virtualhost' => '/'
        ]


texts: How to show success message in session Magento2

texts:
In magento 1 i can do it like this

$session            = Mage::getSingleton('core/session');
$session->addSuccess($this->__('Your Request has been received. One of our sales representatives will contact you shortly.'));

Same thing how can i do it in Magento2? Tried this but not working .


texts: Magento Mail Up Extension Compilation Problem

texts:
when I active the compilation on magento I've this error with Mailup. Any ideas on how to make it work with compilation?

Fatal error: require_once(): Failed opening required '/home/mydomain/public_html/inoxwhere/includes/Model/MailUpWsImport.php' (include_path='/home/mydomain/public_html/mydomain/includes/src:.:/usr/local/php56/pear') in /home/mydomain/public_html/mydomain/includes/src/MailUp_MailUpSync_Helper_Data.php on line 3


texts: Magento2 Multisite now loading store specific default_head_block.xml

texts:
I have a magento 2.2.3 that I am trying to setup with a Multisite where each store view has a different child theme.  Now My workflow is that I work on a local MAMP version of the website I then upload to an external server that is a staging website.

My issue is when I go to a specific store view it is not loading the default_head_blocks.xml file that I have located in the child theme which enables me to call in storeview specific css, etc files

I have the file in

app/design/frontend/Smartwave/porto_child_theme_a/Magento_Theme/layout

However if I when I am in the default store view and I edit the default_head_blocks.xml file that is called into the default theme which is located at

app/design/frontend/Smartwave/porto_child_theme/Magento_Theme/layout

That store views xml file loads fine ?? so what am I missing?


texts: Magento 2: Choose color via product image

texts:
I found the extension for allow choose color via product image.

https://averun.com/magento-color-swatch-for-configurable-products.html

but It for Magento1, my question is how to do it in Magento2, or have any extension to do it in Magento2?

Any help?
Thank in advance.


texts: I try to install Magento2 in My local system but I got PHP Extension intl error


texts: Mysql error in Magento 2.4 during the authentication

texts:
Why do I see this issue below during the installation of Magento 2.4?
SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client


texts:
I have set tier price for each custom group for a product. How to do I fetch the tier price by passing customer group id to the product repository. I am using custom REST API

Below is the code sample, I have tried

$productRepo=$this->_productRepository->getById($p,false,$storeIdFromRequest);
$productRepo->getTierPrice();

But this gives always gives me NOT LOGGED IN Customer group price.

{"2":{"price_id":"6","website_id":"0","all_groups":"0","cust_group":"0","price":"125.0000","price_qty":"1.0000","website_price":"125.0000"}}

How do I get tier price by setting customer group in the above code.

Any help would be appreciated


texts:
I tried installing Magento 2.3.2 in windows using xampp. Initially, I tried it via localhost/Magento root_folder/setup but in the installing step it stuck at 0%. So I have dropped db and removed etc/env and now tried installing via below command

bin/magento setup:install

Now, in the database all the tables are created but when I check the site via frontend it still redirects to localhost/Magento root_folder/setup.

Could anyone please help me?


texts: Magento 2.2.2 Add a custom tab on product page

texts:
I want to add a custom tab on product page, just like (Details, More Information, Reviews) .

What is the approach to implement this task.

Any help will be appreciated.


texts: No payment method are dispaying during creating order from backend

texts: I tried to create an order from the backend, but in the payment method, I can't see any information of the existing payment methods like the attached picture.