texts: magento 1.9,error when start cron.sh "no php in (/usr/bin:/bin)"

texts:
I'm trying to run cron.sh file, to earn my crons, but i have problem.

I have this errors:

which: no php in (/usr/bin:/bin) /var/www/vhosts/mysite.com/mysite.com/cron.php: line 1: ?php: No such file or directory /var/www/vhosts/mysite.com/mysite.com/cron.php: line 2: /bin: Is a directory /var/www/vhosts/mysite.com/mysite.com/cron.php: line 3: backup_1569226546: command not found /var/www/vhosts/mysite.com/mysite.com/cron.php: line 4: backup_1569226546: command not found /var/www/vhosts/mysite.com/mysite.com/cron.php: line 5: backup_1569226546: command not found /var/www/vhosts/mysite.com/mysite.com/cron.php: line 6: backup_1569226546: command not found /var/www/vhosts/mysite.com/mysite.com/cron.php: line 7: syntax error near unexpected token `(' /var/www/vhosts/mysite.com/mysite.com/cron.php: line 7: ` * This source file is subject to the Open Software License (OSL 3.0)'

I went to google and found the answers add #!/usr/bin/php on cron.php file
but it didn’t help me

i have this error

which: no php in (/usr/bin:/bin) /var/www/vhosts/mysite.com/mysite.com/cron.sh: /var/www/vhosts/mysite.com/mysite.com/cron.php: /usr/bin/php: bad interpreter: No such file or directory

I went further to the Internet, but did not find the answer. Tell me how to deal with it.


texts: Magento2 custom collection invalid method exception

texts:
I made a custom CRUD Module and when i call the collection without the addFieldToFilter function everything works fine but when i try to filter the collection i get the exception

  1 exception(s): Exception #0
  (Magento\Framework\Exception\LocalizedException): Invalid method
  Vendor\Module\Model\AgencyProduct::addFieldToFilter

namespace Zweygart\Agency\Block;

/**
 * Class Stock
 * @package Zweygart\Agency\Block
 */
class Stock extends \Magento\Framework\View\Element\Template {

    protected $agencyDataFactory;
    protected $agencyProductFactory;
    public function __construct(
        \Magento\Framework\View\Element\Template\Context $context,
        \Zweygart\Agency\Model\AgencyDataFactory $agencyDataFactory,
        \Zweygart\Agency\Model\AgencyProductFactory $agencyProductFactory
    ) {
        $this->agencyDataFactory = $agencyDataFactory;
        $this->agencyProductFactory = $agencyProductFactory;

        parent::__construct($context);
    }

    function getAgencysWithInventory() {

        $productCollection = $this->agencyProductFactory
            ->create();
            //->addFieldToFilter('zw_agency_product_id', 1);
        foreach($productCollection as $product) {
            die("Gnarf");
        }

    }

}


texts: I am wanting to set up a shop with product lists (under categories), but do not require images. Every theme I've looked at has images for products. In each row of the list I would like: Product Name, Brief Description, Unit, Price, Add to Cart. Any clues as to how I could do this?


texts: How to remove zip postal code and country from checkout form?

texts:
I want to remove zip/postal code and country from checkout page.

I removed them from billing.phtml file successfully. But when submit checkout data it shows alert that "country" and "zip/postal" code required.

I want to remove them from shipping.phtml file also.


texts: Export products from Magento 1.6 and import products in Magento 2.0.9

texts:
I need to import lots of configurable products to my new Magento 2. But if I export a CSV File and import in Magento 2 I get 1000s of errors.

The File is different than a CSV I export from Magento 2. SKU are missing, categories are different and much more.

What is the best way to get products from Magento 1 to Magento 2? I don't want to migrate the whole shop, only the products.

Thanks.


texts:
I don't know if it is specific to Magento 2 but an already set up HTML node with jQuery change event attached to it will lose its change event when run inside a knockout component with attached VM (view model).

Situation in Magento:

I moved the product options wrapper via a layout xml into a custom block

<referenceBlock name="product.info.form.options">
    // Custom block definition
    <move element="product.info.options.wrapper" destination="custom.block" />
</referenceBlock>

That works without any issues!

Now when wrapping around this moved block a knockout model with Magentos custom "scope" binding, all applied onChange events are getting removed - which means in this case the configurable option select boxes staying disabled.

The change events are getting applied here

$(element).on('change', this, this._configure);

.. which also seems right for me on how to add an event.

So in my template file I do the following to wrap my knockout component (with attached VM) around this html snippet:

<div class="tab-content" data-step="1" data-bind="scope:'times'">
    <?php echo $block->getChildHtml('product_options_wrapper'); ?>
</div>

With change event on product wrapper dropdowns:

Withoout change event on dropdowns when nested inside Knockout component:

Anybody knows if this a thing between KnockoutJS and jQuery or if this has something to do with Magento?

For reference on StackOverflow:

https://stackoverflow.com/questions/45113064/jquery-change-event-removed-when-in-knockout-scope


texts:
My observer :

<?php
    class Gta_MerchantNotification_Model_Observer
    {
        public function merchantremainder($Observer)
        {
            $order = $Observer->getEvent()->getOrder();
            $order_details = $order->getAllVisibleItems();
            foreach ($order_details as $list) {
                $incrementid = $order->getIncrementId();
                $sku = $list->getsku();
                $name = $list->getName();
                $price = $list->getPrice();
                $Qty = $list->getQtyOrdered();

                Mage::log("Id : $incrementid, Sku : $sku, Product name : $name, Price : $price, Qty Ordered : $Qty",  null, 'merchant.log', true);

            }
        }
}

?>

Output ;

  Id : 100000083, Sku : #14, Product name : The Step F1004 Step Workout
  System, Price : 28.5, Qty Ordered : 1

How to send mail?


texts:
I browse my 54kb file in Magento, but still I can't upload my images and it doesn't show any error,how can I resolve it?

I tried with .png,.jpg as well.
I am trying to upload this .png image but after I click on upload file nothing happens.


texts: Magento2: How to put logo in other location

texts:
I want to put logo here:
[![enter image description here][1]][1]

Here is code header:

   <?php $welcomeMessage = $block->getWelcome(); ?>

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

                            <a href="javascript:void(0)" title="<?php echo __('All Categories') ?>"><?php echo __('All Categories') ?>

                            <?php
                            if ($_config->getGeneral('menu_style') == 'megamenu') {
                                echo $block->getChildHtml('navigation-header-megamenu');
                            } else {
                                echo $block->getChildHtml('navigation-header');
                            }
                            ?>

                        <?php echo $block->getChildHtml('navigation.mobile'); ?>

                    <?php echo $block->getChildHtml('search-header-pro'); ?>

Here is code for logo:

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

CSS:

 .header-middle {
        padding: 36px 0 29px;

        .logo-header {
            .logo-wrapper {
                .logo-content {
                    margin: 0;

                    strong {
                        a {
                            img {
                                vertical-align: top;
                            }
                        }
                    }
                }
            }
        }

Now when I put code logo after

the logo is displayed but not in one line.
[![enter image description here][2]][2]

@update

Changed:

1)

 to  in file logo.phtml

2)

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

3)

and now is little best - but it's still not in one line

solved


texts: what is use of additional_data column in sales_flat_quote_item table?

texts:
I want to store add custom id (id is primary key of another table ) in sales_flat_quote_item table.

Question. create new column for id  or  add id in additional_data column ?

which answer is flexible from above ?


texts:
I have created own payment gateway extension. My problem is this I have to add extra invoice fee in orders. I am able to add custom invoice fee on checkout page updated total accordingly but I am unable to configure magento to show invoice fee on order detail pages from user account and admin account on order detail pages i can see gross total with invoice fee but unable to see invoice fee in anywhere

please help me to do this task


texts: Attempting to get the following data fo my grid.php

texts:
Below is some PSEUDO code I am trying to implement for my preparecollection for my Grid.php.  Can anyone help me along with this SQL to put in the actual Magento tables?
The desired outp

This_Product_Sold_This_Many_Times_In_This_BUNDELD_Product = 10
BundledProduct = 'TheBundledProducts'

This_Product_Sold_This_Many_Times_In_This_GROUPED_Product = 7
GroupedProductName = 'TheGroupedProducts'

This_Product_Sold_This_Many_Times_BY_ITSELF = 25

Select
    count(ProductID) as This_Product_Sold_This_Many_Times_In_This_BUNDELD_Product,
    Parent.Product_Name as BundledProductName
from
    Orders o
    join Orders_products op on ( o.orderid = op.orderid )
    join products p on ( p.productid = op.productid )
    join products Parent on (p.parent_product_id = Parent.parent_product_id)
where
    o.CreationDate between Date1 and Date2
    and
    p.productid = $prodcutID
    and
    Parent.product_type = "Bundled"
Group
    Parent.'ProductID';

Select
    count(ProductID) as This_Product_Sold_This_Many_Times_In_This_GROUPED_Product,
    Parent.Product_Name as GroupedProductName
from
    Orders o
    join Orders_products op on ( o.orderid = op.orderid )
    join products p on ( p.productid = op.productid )
    join products Parent on (p.parent_product_id = Parent.parent_product_id)
where
    o.CreationDate between Date1 and Date2
    and
    p.productid = $prodcutID
    and
    Parent.product_type = "Grouped"
Group
    Parent.'ProductID';

Select
    count(productid) as This_Product_Sold_This_Many_Times_BY_ITSELF
from
    Orders o
    join Orders_products op on ( o.orderid = op.orderid )
    join products p on ( p.productid = op.productid )
where
    o.CreationDate between Date1 and Date2
    and
    p.productid = $prodcutID
and
    not exist (
                Select
                    p.ProductID
                from
                    Orders o
                    join Orders_products op on ( o.orderid = op.orderid )
                    join products p on ( p.productid = op.productid )
                    join products Parent on (p.parent_product_id = Parent.parent_product_id)
                where
                    o.CreationDate between Date1 and Date2
                    and
                    p.productid = $prodcutID
                    and
                    Parent.product_type = "Bundled"
                    p.productid = product.id
                Group
                    Parent.'ProductID' )

and
    not exist (
                Select
                    p.ProductID
                from
                    Orders o
                    join Orders_products op on ( o.orderid = op.orderid )
                    join products p on ( p.productid = op.productid )
                    join products Parent on (p.parent_product_id = Parent.parent_product_id)
                where
                    o.CreationDate between Date1 and Date2
                    and
                    p.productid = $prodcutID
                    and
                    Parent.product_type = "Grouped"
                    p.productid = product.id
                Group
                    Parent.'ProductID' );

Thank you for ANY help towards accomplishing this!


texts:
I just set up two custom tabs ["Technical Data" and "More Info"] for my site with the help of this link and using the following codes.

Added the following Blocks after Description block in /app/design/frontend/default/mytheme/layout

technicaldata block

<block type="catalog/product_view_attributes" name="product.technicaldata" as="technical" template="catalog/product/view/technicaldata.phtml">
                <action method="addToParentGroup"><group>detailed_info</group></action>
                <action method="setTitle" translate="value"><value>Technical Data</value></action>
</block>

moreinfo block

<block type="catalog/product_view_attributes" name="product.moreinfo" as="moreinfo" template="catalog/product/view/moreinfo.phtml">
                    <action method="addToParentGroup"><group>detailed_info</group></action>
                    <action method="setTitle" translate="value"><value>More Info</value></action>
</block>

Added the following PHTML files in

/app/design/frontend/default/mytheme/template/catalog/product/view

technicaldata.phtml

<?php $_helper = $this->helper('catalog/output'); ?>
<?php $_product = $this->getProduct(); ?>
<?php if ($_product->gettechnicaldata()):?>

<?php echo $_helper->productAttribute($_product, nl2br($_product->gettechnicaldata()), 'technicaldata') ?>

            <?php endif;?>

moreinfo.phtml

<?php $_helper = $this->helper('catalog/output'); ?>
<?php $_product = $this->getProduct(); ?>
<?php if ($_product->getmoreinfo()):?>

<?php echo $_helper->productAttribute($_product, nl2br($_product->getmoreinfo()), 'moreinfo') ?>

            <?php endif;?>

Added technicaldata and moreinfo as an attribute and then assigned it to the product.

Now on the front end i am getting an empty space before my data is displayed. However this empty space shows up only in my Technical Data tab and not on More Info tab. How can i remove this empty space and what was my mistake?

In the Technical data tab i have inserted a table using the
 to make my table responsive whereas in More Info tab i have just entered a single line of data giving the brands dealt.


texts: html display as plain text in backend order details shipping method fieldset

texts:
Here is the code which will override default sales model order to display additional info in shipping information fieldset

<?php
class Custom_Test_Model_Sales_Order extends Mage_Sales_Model_Order{
    public function getShippingDescription(){
        $desc = parent::getShippingDescription();
        $pickupObject = $this->getPickupObject();
        if($pickupObject){
            $desc .= "
Store: ".$pickupObject->getStore();
            $desc .= "
Name: ".$pickupObject->getName();
            $desc .= "
";
        }
        return $desc;
    }
}

but all the html  are displaying in plaintext, anyone know what is the problem?


texts: How to getproduct url for sales email order template in multi website

texts:
I want to get producturl in sales order email template in multi website.

I have used

$_item = $block->getItem();
$_objectManager = \Magento\Framework\App\ObjectManager::getInstance();

$product = $_objectManager->get('Magento\Catalog\Model\Product')->load($_item->getProductId());
$product->setStoreId($_item->getStoreId());

$_imagehelper = $this->helper('Magento\Catalog\Helper\Image');
if($childProd = current($_item->getChildrenItems()))
{
   $productImage = $_imagehelper->init($childProd->getProduct(), 'category_page_list')->resize(80, 80)->getUrl();
}
else
{
   $productImage = $_imagehelper->init($_item->getProduct(), 'category_page_list')->resize(80, 80)->getUrl();
}

?>

       <img src="<?php echo $productImage; ?>" alt="<?= $block->escapeHtml($_item->getName()) ?>" />

    <td class="item-info<?php if ($block->getItemOptions()): ?> has-extra<?php endif; ?>">

<a href="<?= $product->getProductUrl(); ?>" style="color:#000;"><?= $block->escapeHtml($_item->getName()) ?>

<?= /* @escapeNotVerified */  __('SKU') ?>: <?= $block->escapeHtml($block->getSku($_item)) ?>

        <?php if ($block->getItemOptions()): ?>

            <?php foreach ($block->getItemOptions() as $option): ?>

<?= /* @escapeNotVerified */  $option['label'] ?> : <?= /* @escapeNotVerified */  nl2br($option['value']) ?>

            <?php endforeach; ?>

        <?php endif; ?>
        <?php $addInfoBlock = $block->getProductAdditionalInformationBlock(); ?>
        <?php if ($addInfoBlock) :?>
            <?= $addInfoBlock->setItem($_item)->toHtml() ?>
        <?php endif; ?>
        <?= $block->escapeHtml($_item->getDescription()) ?>

    <?= /* @escapeNotVerified */  $_item->getQtyOrdered() * 1 ?>

        <?= /* @escapeNotVerified */  $block->getItemPrice($_item) ?>

in my Magento_Sales/templates/email/items/order/default.phtml file

it's getting default base url.


texts: Customize catalog/search listing based on custom product attribute

texts: I have created a product attribute with yes/no. I want to hide the product from search results if product attribute value is yes. How do I achieve this, without using default visibility attribute?


texts: How to use _redirect() method in Magento 2 model file

texts:
Magento\Framework\App\Action

Redirect method is defined in Magento controller interface

/**
 * @var \Magento\Framework\App\Response\RedirectInterface
 */
protected $_redirect;

So i am aware about that if i use controller Action then it will work.

But i want use specific model method to redirect the url

File location

app/code/[Vendor]/[Module]/Model/TestManagement.php

and function goes like :

    public function Test(){
        $this->_redirect('rbvendor');
        return;
    }


texts: How to store a custom attr to order when you hit "Place order" button in magento 1.9

texts:
I am looking for a solution with my magento order sales problem. I added to order a attribute which one I want to set on event sales_order_place_after. Attribute is added and seted correctly. When I hit button "Place Order" and order has been received I want to look about this order in Admin dashboard(Seles->Orders). In grid I find a column "Action" and click "View" link. Where are information about Account I would like my custom attr be showen.

my mysql4-upgrade file look like this:

<?php
$installer = $this;
$installer->startSetup();

$installer->addAttribute('order', 'custom_attr', array(
'input' => 'text',
'type' => 'varchar',
'label' => 'Sub user email',
'visible' => true,
'required' => true,
'visible_on_front' => true,
'user_defined' => true
));

$installer->endSetup();
?>

config.xml

  <checkout_submit_all_after>
    <observers>
      <mymodule_sales_order_place_after>
          <type>singleton</type>
          <class>MyNamespace_MyModule_Model_Observer</class>
          <method>saveCustomAttribute</method>
      </mymodule_sales_order_place_after>
    </observers>
  </checkout_submit_all_after>

and saveCustomAttribute function in Observer:

     public function saveCustomAttribute($observer)
     {
       # code...
      $order = $observer->getEvent()->getOrder();
      $order->setCustomAttr('dummy@dummy.com');
     }

  }

I am new to Magento. Hope that I described well my problem.


texts: Change quote currency before place order

texts:
I want to change my quote currency code to EUR when an order is placed in any other currency.

I tried writing event and observer of event sales_order_place_before.
In my observer I have this code

    $quoteId = $observer->getEvent()->getOrder()->getQuoteId();
    $quote = $this->cartRepository->get($quoteId);
    $this->storeManager->getStore()->setCurrentCurrencyCode('EUR');
    $quote->setQuoteCurrencyCode("EUR");
    $quote->collectTotals();
    $this->cartRepository->save($quote);

But after order is placed currency did not change to Euro.

I tried another event sales_quote_save_after, where currency is changed after every save of quote, but in that case, even the customer will see that his cart currency is changed to EUR, which I don't want. I only want to change the currency when order is being placed (the customer should not be shown this anywhere, except on my orders)


texts: Add external stylesheet link-rel head tag

texts:
Knewb here, I want to add external stylesheets via link rel to the head tag list of my store in version 1.9.  I am also using Ultimo theme.

  Can it be done?
  What is the name of the file I am looking for (local.xml?) ?
  What is the path where it is located ?
  How is the code written ?
  How does the code work ?
  Any other information that might help.

Currently my custom.css file is getting extremely long and fragile.

I know I am asking for a lot but any help is appreciated.
Thanks.


texts:
I am new to magento platform. I have a quick question in regards to hiding a default setting. currently we are using version Magento ver. 1.9.0.1. We have setup a custom price break table. But it when you select a product attibute, a chart drops down and shows you savings if you buy more, how do i hide that?

Our store is multi-store using same backend for different structured pricing.

thepoultryhatchery.com/index.php/shipping
thepoultryhatchery.com/index.php/storpickup

store is in maintenance mode, so you have to use the index.php to access. but ive attached screen shot of what i want hidden for reference. Can you please provide me with proper steps to hide it from front end (to the customer)? on both stores?


texts:
Has anyone managed to get Magento running under MSSQL?
Since 1.6 there is the possiblity to change the PDO driver, using some steps:

Rename Mysql.php files to Mssql.php

app/code/core/mage/Core/Model/Resource/Type/Db/Pdo/Mysql.php

lib/Varien/Db/Adapter/Pdo/Mysql.php

lib/Varien/Db/Statement/Pdo/Mysql.php
Modify the files to actually use Mssql
Modify app/etc/local.xml and app/etc/config.xml to use mssql adapter

This basically works, but then you are running into the problem that all (or at least most) install scripts are using MySQL specific syntax.
Has anyone undergone the hassle of porting them all to MSSQL?

Any other thoughts in this regard besides waiting for Magento 2.0 to support this natively?! ;)


texts: Magento 2: add custom field to shipping and billing address at checkout page and save it in admin side sales order

texts:
I want to add to custom fields to the shipping and billing area of the checkout page. When a user clicks on place order it should be saved and display in admin side sales order page. Here I saw You below image.

Thank you


texts: Fatal error: Class 'Mage_Localhelper_Helper_Basic' not found in /var/www/html/app/Mage.php on line 547

texts:
Hello I have a problem with my custom module that I have created.
I have backed up my magento through Admin panel then looked at the page later on and this has come up. I can see the header but can't see the content. I haven't done any changes to the files. A lot of people said it could be because of the compilations so I have disabled it and cleared cache, nothing happened.

This is my Basic class:

<?php
  class Bundle_LocalHelpers_Helper_Basic extends Mage_core_Helper_Abstract {}

And this is my config.xml :

<?xml version="1.0"?>
<config>
<modules>
    <Bundle_LocalHelpers>
        <version>0.1.0</version>
    </Bundle_LocalHelpers>
</modules>
    <global>
        <helpers>
            <localhelper>
                <class>Bundle_LocalHelpers_Helper</class>
            </localhelper>
        </helpers>
    </global>
 </config>

It was working perfectly fine. I have also checked other questions but didn't find the right answer.


texts: Add editable attribute column in products in category grid

texts:
I have added an extra editable attribute column in "Products in category" grid. I am using the below link to add the column.
Add filtrable attribute column in products in category grid
Here is my structure

Now I want to save the value on category save. How can I do that?


texts: How to get available size based on color configurable product

texts:
I am trying to get the available size based on color

$attValConfig = $product->getTypeInstance(true)->getConfigurableAttributesAsArray($product);

It is returning both color and size but I want color first after that sizes based on color.

foreach($attValConfig as $attValConfigSingle) {

   var_dump($attValConfigSingle["label"]);

   //Output Color and Size
}


texts:
I would like to know how I can implement a DHL Retourenportal in my Magento Store per iFrame.

I mean, I would like to integrate a booking form for returns direct in my shop. So that the customers can print out the return label directly on my website.


texts: Add block after shipping methods on admin page

texts:
I want to add a <select> element after the shipping methods.

I've created a layout file in Company\MyModule\view\adminhtml\layout\sales_order_create_load_block_shipping_method.xml

<?xml version="1.0"?>

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <head>
        <link src="Company_MyModule::js/pickup_point_shipping.js"/>
    </head>

    <body>

        <referenceContainer name="content">
                <block name="order.create.shipping.method.pickuppoint" class="Magento\Backend\Block\Template"
                       template="Company_MyModule::select_pickup_point.phtml"
                       after="order.create.shipping.method.form"  />
        </referenceContainer>

    </body>
</page>

But it does not appears on the page.

What do I miss?


texts: Having trouble overwriting JS component in minicart dropdown

texts:
Having a tough time trying to overwrite the JS component and template around the product image in the minicart dropdown.Here's what I am trying to achieve:

I have a custom Product Type depending on the users selection, a different photo should appear in this minicart dropdown. To do this, I will need access to the current quote and product from the JS component.

I have identified the template and component is specified in
Magento_Checkout/view/frontend/layout/checkout_cart_sidebar_item_renderers.xml:

<item name="children" xsi:type="array">
<item name="item.image" xsi:type="array">
    <item name="component" xsi:type="string">Magento_Catalog/js/view/image</item>
    <item name="config" xsi:type="array">
        <item name="template" xsi:type="string">Magento_Catalog/product/image</item>
        <item name="displayArea" xsi:type="string">itemImage</item>
    </item>
</item>

Which points to template Magento_Catalog/web/template/product/image_with_borders.html and component Magento_Catalog/js/view/image.

I have already written a custom endpoint elsewhere that will return the correct image based on a quote ID and product ID. So I need to extend Magento_Catalog/js/view/image to call this endpoint and bind it to the image's "src" property.

I want to do things "the Magento way" so I have tried using a "mixin" to extend Magento_Catalog/js/view/image, this just doesn't appear to work, no error but no calls to my file or any logging.

I have also attempted to simply update the <item name="component" xsi:type="string"></item> from checkout_cart_sidebar_item_renderers.xml to my chosen component path:

Convert_GivexAW/js/view/product/giftcard

But this produces the error:

  [ERROR] Failed to load the "Convert_GivexAW/js/view/product/giftcard" component.

Here is my Convert/GivexAW/view/frontend/requirejs-config.js:

var config = {
map: {
    '*': {
        "Convert_GivexAW/js/view/product/giftcard": "Convert_GivexAW/js/view/product/giftcard"
    }
}
};

The path to the file is: app/code/Convert/GivexAW/view/frontend/web/js/view/product/giftcard.js

Where am I going wrong? What is the correct approach to extend this component?

Thanks


texts: Magento redirects from checkout back to card - please help

texts:
I've got a problem with my magento checkout. after clicking on "checkout as a guest" OR "signup for checkout" magento redirects permanently (!) from the checkout back to the card. there's no chance to walk through the checkout.

here's the log from the exception.log
("Ungültiger Blocktyp" means "invalid blocktype"):

    2017-12-06T20:13:32+00:00 ERR (3):
exception 'Mage_Core_Exception' with message 'Ungültiger Blocktyp: Mage_Facebook_Block_List' in /home/shopchec/public_html/app/Mage.php:595
Stack trace:
#0 /home/shopchec/public_html/app/code/core/Mage/Core/Model/Layout.php(495): Mage::throwException('Ung\xC3\xBCltiger Blo...')
#1 /home/shopchec/public_html/app/code/core/Mage/Core/Model/Layout.php(437): Mage_Core_Model_Layout->_getBlockInstance('facebook/list', Array)
#2 /home/shopchec/public_html/app/code/core/Mage/Core/Model/Layout.php(472): Mage_Core_Model_Layout->createBlock('facebook/list', 'facebook.list.d...')
#3 /home/shopchec/public_html/app/code/core/Mage/Core/Model/Layout.php(239): Mage_Core_Model_Layout->addBlock('facebook/list', 'facebook.list.d...')
#4 /home/shopchec/public_html/app/code/core/Mage/Core/Model/Layout.php(205): Mage_Core_Model_Layout->_generateBlock(Object(Mage_Core_Model_Layout_Element), Object(Mage_Core_Model_Layout_Element))
#5 /home/shopchec/public_html/app/code/core/Mage/Core/Model/Layout.php(210): Mage_Core_Model_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Element))
#6 /home/shopchec/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(344): Mage_Core_Model_Layout->generateBlocks()
#7 /home/shopchec/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(269): Mage_Core_Controller_Varien_Action->generateLayoutBlocks()
#8 /home/shopchec/public_html/app/code/core/Mage/Checkout/controllers/CartController.php(194): Mage_Core_Controller_Varien_Action->loadLayout()
#9 /home/shopchec/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Checkout_CartController->indexAction()
#10 /home/shopchec/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('index')
#11 /home/shopchec/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#12 /home/shopchec/public_html/app/code/core/Mage/Core/Model/App.php(365): Mage_Core_Controller_Varien_Front->dispatch()
#13 /home/shopchec/public_html/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#14 /home/shopchec/public_html/index.php(84): Mage::run('', 'store')
#15 {main}

How can I fix this issue?


texts: Error on Magento adminhtml category tab block override

texts:
When i try to override
"app\code\core\Mage\Adminhtml\Block\Catalog\Category\Tab"
this Block Mage_Adminhtml_Block_Catalog_Category_Tab_Product for add new column in category product listing tab

I have get this error

Fatal error: Call to a member function toHtml() on a non-object in D:\xampp\htdocs\magento_new\app\code\core\Mage\Adminhtml\Block\Catalog\Category\Tabs.php on line 153

My code

Module config xml app\code\local\Krp\Adminhtml\etc\config.xml

<?xml version="1.0"?>
<config>
    <modules>
        <Krp_Adminhtml>
            <version>0.1</version>
        </Krp_Adminhtml>
    </modules>

    <global>
        <blocks>
            <adminhtml>
                <rewrite>
                    <catalog_category_tab_product>Krp_Adminhtml_Block_Catalog_Category_Tab_Product</catalog_category_tab_product>
                </rewrite>
            </adminhtml>
        </blocks>
    </global>
</config>

app\etc\modules\Krp_Adminhtml.xml

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

Block file code app\code\local\Krp\Adminhtml\Block\Catalog\Category\Tab\Product.php

class Krp_Adminhtml_Block_Catalog_Category_Tab_Product extends Mage_Adminhtml_Block_Catalog_Category_Tab_Product{

   protected function _prepareCollection(){
    //=============== Code ==================//
   }

}


texts: lightbox recommendation - dont want to resample blowup image

texts:
I'm looking for a lightbox type extension that can use the original image for the blow up and that also doesn't require a specific ratio or constraint that defaults for all images.

I'm presently using easy lightbox from template master, but my problem with this, is that they require you specify the max size of the popup image.

I'm using 1.7 and it doesn't have to be free.


texts: Nginx 502 Error only with full page cache enabled or trying to go to the admin

texts:
Even after disabling my custom module I'm getting this error.  When I stopped working on it the day before this wasn't the case.  It was working fine and I've been using this same server to develop for about 2 months with no issue like this.  I verified I didn't change any major config files.  I even tried upgrading magento itself and the exact same behavior continues everything works fine until you try to log into the admin or enable full page cache.

Spent at least 3 hours on this already anyone have any ideas?  I get segmentation fault in messages for php-fpm.  But I verified all the settings are correct and can even telnet to the php-fpm server.  I'm not sure cause is but I verified the server runs fine even opened a phpinfo(); test page just fine.


texts: How to add a column Total row in a magento grid at the end

texts: How to display total row at the end of sales order grid.see below image


texts: How to call rewards block phtml content into minicart section magento 2?

texts:
Magento 2 Enterprise,

With Magento Reward module,
Inside layout file checkout_cart_index.xml file with reward block is defined as below.

<block class="Magento\Reward\Block\Tooltip\Checkout" name="reward.tooltip.checkout" template="tooltip.phtml">
    <arguments>
        <argument name="reward_type" xsi:type="string">Magento\Reward\Model\Action\OrderExtra</argument>
    </arguments>
    <action method="setWrapperClass">
        <argument name="class" xsi:type="string">reward-checkout</argument>
    </action>
    <action method="setRewardMessage">
        <argument translate="true" name="message" xsi:type="string">Check out now and earn %1 for this order.</argument>
    </action>
    <action method="setIsGuestNote">
        <argument name="value" xsi:type="string">1</argument>
    </action>
</block>

I want to this reward blocks html content into Checkout module Customerdata/Cart.php file,

How can i call above block content into

vendor/magento/module-checkout/CustomerData/Cart.php file with below function,

public function getSectionData()
{
    $totals = $this->getQuote()->getTotals();
    return [
        'summary_count' => $this->getSummaryCount(),
        'subtotal' => isset($totals['subtotal'])
            ? $this->checkoutHelper->formatPrice($totals['subtotal']->getValue())
            : 0,
        'possible_onepage_checkout' => $this->isPossibleOnepageCheckout(),
        'items' => $this->getRecentItems(),
        'extra_actions' => $this->layout->createBlock('Magento\Catalog\Block\ShortcutButtons')->toHtml(),
        'isGuestCheckoutAllowed' => $this->isGuestCheckoutAllowed(),
        'rewards' => $this->layout->createBlock('Magento\Reward\Block\Tooltip\Checkout','reward.tooltip.checkout')
                  ->toHtml(),
    ];
}

I have try to call this block using,

  'rewards' =>
  $this->layout->createBlock('Magento\Reward\Block\Tooltip\Checkout','reward.tooltip.checkout')->toHtml(),

But rewards always return null

In same calling in minicart.phtml file,

$this->getLayout()->createBlock('Magento\Reward\Block\Tooltip\Checkout','reward.tooltip.checkout')->toHtml()

Result,

  Check out now and earn 100 Reward points for this order. Learn more
  This applies only to registered users and may vary when a user is
  logged in.

In above function with rewards argument, I want result of reward.toottip.checkout phtml content using above way.

How to resolve this issue in magento 2?


texts: Override Magento Controller and controllers Files

texts:
I am trying to override a file in Controller and another in controllers directory of the Amazon Payments module. I have followed several tutorials with no luck at overriding the controllers and I have no idea how to override abstract classes in the Controller folder (capital C). I need to override two methods found in two different files indexAction() in OnepageController.php and _getOnepage() in Checkout.php.

app/code/community/Amazon/Payments/controllers/OnepageController.php

class Amazon_Payments_OnepageController extends Amazon_Payments_Controller_Checkout
{
    ...

    public function indexAction()
    {
        // placeholder required
    }

    ...
}

app/code/community/Amazon/Payments/Controller/Checkout.php

abstract class Amazon_Payments_Controller_Checkout extends Mage_Checkout_Controller_Action
{
    ...

    protected function _getOnepage()
    {
       return Mage::getSingleton('checkout/type_onepage');
    }

    ...
}

Does anyone see what I am doing wrong in my code that would get this working? Also does anyone know how to override the Checkout.php file at the bottom?

app/etc/modules/KNG_Amazon/Payments.xml

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

app/code/local/KNG/Amazon/Payments/etc/config.xml

<?xml version="1.0"?>
<config>
    <modules>
        <KNG_Amazon_Payments>
            <version>1.3.0.1</version>
        </KNG_Amazon_Payments>
    </modules>
    <frontend>
        <routers>
            <amazon_payments>
                <args>
                    <modules>
                        <KNG_Amazon_Payments before="Amazon_Payments">KNG_Amazon_Payments</KNG_Amazon_Payments>
                    </modules>
                </args>
            </amazon_payments>
        </routers>
    </frontend>
</config>

app/code/local/KNG/Amazon/Payments/controllers/OnepageController.php

require_once 'Amazon/Payments/controllers/OnepageController.php';
class KNG_Amazon_Payments_OnepageController extends Amazon_Payments_OnepageController
{
    public function indexAction()
    {
        $this->_getOnepage()->savePayment(array(
                'method' => 'amazon_payments',
                'additional_information' => array(
                        'order_reference' => $this->getAmazonOrderReferenceId(),
                )
        ));
    }
}

As for this last file I don't have any idea how to override it but the change below to the method is what I am wanting from the result.

app/code/local/KNG/Amazon/Payments/Controller/Checkout.php

abstract class KNG_Amazon_Payments_Controller_Checkout extends Amazon_Payments_Controller_Checkout
{
    protected function _getOnepage()
    {
        return Mage::getSingleton('amazon_payments/type_checkout');
    }
}

Update: After some research I found out that I no longer need to override Checkout.php file. I like the answer that was given by @fschmengler, explaining the differences so I want to leave it. My problem right now is that my code for OnepageController.php is still not working. Can anyone help with that?


texts: Magento 2: How to get product custom attribute in product grid

texts:
How to get product custom attribute in product grid. I have create product attribute as "qty_per_box". But it is not showing in collection.

The following code is not getting custom product attribue.

  /**
    * @return Grid
    */
        protected function _prepareCollection()
        {
            $collection = $this->productFactory->create()->getCollection()->addAttributeToSelect("*");
            $this->setCollection($collection);
            return parent::_prepareCollection();
        }


texts: How to create the other admin account in magento 2

texts:
How to create the other Admin account in Magento 2.

How to give the customer account to Admin right?.


texts: Block access to system URLs through htaccess or some other way?

texts: Is there a way to block access to the system URL's so a customer or bot would get a 404 or 403? I've done research into the rewrite rules and can't seem to find a way to mass rewrite the products' system URLs because of the complexity of those links. It would be great to just block them all from being accessed so that I don't have to worry about this moving forward.


texts: Shopping cart rule - free shipping for items combination

texts:
Could someone please show me how to setup a shopping cart rule so that:
(item A by itself shipping: $5) (item B by itself shipping: $5)

When someone has items A and B in their cart, shipping for (any amount of) item B should be free; total shipping should only be $5 for item A.

Thanks everyone.


texts:
I am new to Magento 2. I need to include a poll functionality in Magento 2. Poll option was directly available in Magento 1.
This is the link(Magento 1)-"http://docs.magento.com/m1/ce/user_guide/marketing/polls.html"

Please help me.

Thanks in advance


texts: Get soled Products with counter in Magento

texts:
I want to get all the products that are sold also with counter like if product1 with 3 (times soled ).I am trying code like this one :

$itemsCollection= Mage::getResourceModel('sales/order_item_collection')
    ->join('order', 'order_id=entity_id');

But How can i get the product counter with that ?
My Grid Class method code :

protected function _prepareCollection()
  {
    $itemsCollection = Mage::getResourceModel($this->_getCollectionClass());
    $itemsCollection= Mage::getResourceModel('sales/order_item_collection')
    ->join('order', 'order_id=entity_id');

$itemsCollection->addExpressionFieldToSelect("total_sold" , 'SUM({{qty_ordered}} - {{qty_canceled}})',array("qty_ordered" => "qty_ordered",
                "qty_canceled" => "qty_canceled"));

$itemsCollection = $itemsCollection->getSelect()->group("product_id");
      $this->setCollection($itemsCollection);
      return parent::_prepareCollection();
  }

Now i got Unrecognized method 'setPageSize()' Error.


texts: Magento 2 - override product attribute in product_form.xml

texts:
I've something like this:

            $eavSetup->addAttribute(
            \Magento\Catalog\Model\Product::ENTITY,
            'test_att',
            [
                'type' => 'varchar',
                'input' => 'select',
                'input' => 'text',
                'required' => false,
                'global' => \Magento\Eav\Model\Entity\Attribute\ScopedAttributeInterface::SCOPE_STORE,
                'visible' => true,
                'required' => false,
                'user_defined' => 1,
                'unique' => false,
                'apply_to' => 'simple,configurable',
                'group' => 'test',
            ]
        );

I want to use an object to get the options from a dynamic method instead of a fixed array.

According to EavSetup addAttribute method it's not possible because the option parameter expects an array

    if (isset($attr['option']) && is_array($attr['option'])) {
        $option = $attr['option'];
        $option['attribute_id'] = $this->getAttributeId($entityTypeId, $code);
        $this->addAttributeOption($option);
    }

So I used product_form.xml

<fieldset name="test">
    <argument name="data" xsi:type="array">
        <item name="config" xsi:type="array">
            <item name="label" xsi:type="string" translate="true">test</item>
            <item name="collapsible" xsi:type="boolean">true</item>
            <item name="sortOrder" xsi:type="number">10</item>
        </item>
    </argument>
    <field name="test_att">
        <argument name="data" xsi:type="array">
            <item name="options" xsi:type="object">Company\Module\Model\Source\Object</item>
            <item name="config" xsi:type="array">
                <item name="required" xsi:type="boolean">false</item>
                <item name="validation" xsi:type="array">
                    <item name="required-entry" xsi:type="boolean">false</item>
                </item>
                <item name="sortOrder" xsi:type="number">10</item>
                <item name="dataType" xsi:type="string">string</item>
                <item name="formElement" xsi:type="string">select</item>
            </item>
        </argument>
    </field>
</fieldset>

It works BUT two dropdowns are shown, one using the options from the object, one not (empty select). Also the customized dropdown has no scope selector or scope label.

Same solution works for custom category attributes (even if without scope)

How to do it ??? Probably I misunderstood something


texts: Magetno 2 What happen with App, when we put the site down

texts:
I have live site and mobile App and I need to upload one module on site.

What happen with the mobile App, when I upgrade and compile magento site.

Is mobile app will work at the same time when compilation is in process?

Is mobile app will work in maintenance mode?


texts: How to switch website when importing products from a CSV file?

texts:
I have created a new store for wholesale customers. For wholesale customers, I want to set a different price. We can set it by backend manually, when adding a new product by switching website. But I have lots of products. By doing manually, it takes too much time to finish.

How to switch website when importing product from CSV? I have tried with _product_websites, store_id, websites. etc., keyword with the corresponding wholesale id. It changes main store price too.

Have any idea?


texts: Module 'Magento_ComposerRootUpdatePlugin': Running data recurring...Reading /var/www/structube/composer.json Loading config file /var/www/structube/composer.json Failed to initialize global composer: Composer could not find the config file: /var/www/structube/var/composer_home/composer.json To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section Reading /var/www/structube/vendor/composer/installed.json


texts: How is getContinueShoppingUrl() called by Mage::getSingleton('checkout/session')?

texts:
I'm using Magento 1.9 and am trying to gain a better understanding of the method, getContinueShoppingUrl(), when called by Mage::getSingleton('checkout/session') but can't seem to find the file that defines the method.  Tracing through class inheritance, this is what I've got:

core/Mage/Checkout/Model/Session.php:

class Mage_Checkout_Model_Session extends Mage_Core_Model_Session_Abstract
{
    /* getContinueShoppingUrl() not defined */
}

core/Mage/Core/Model/Session/Abstract.php:

class Mage_Core_Model_Session_Abstract extends Mage_Core_Model_Session_Abstract_Varien
{
    /* getContinueShoppingUrl() not defined */
}

core/Mage/Core/Model/Session/Abstract/Varien.php:

class Mage_Core_Model_Session_Abstract_Varien extends Varien_Object
{
    /* getContinueShoppingUrl() not defined */
}

lib/Varien/Object.php:

class Varien_Object implements ArrayAccess
{
    /* getContinueShoppingUrl() not defined */
}

So how does getContinueShoppingUrl get called by Mage::getSingleton('checkout/session')?  The only place that I found a definition for the method was in core/Mage/Checkout/Block/Cart.php but the getContinueShoppingUrl() method in class Mage_Checkout_Block_Cart is where I started the trace for: Mage::getSingleton('checkout/session')->getContinueShoppingUrl(true);


texts: UI component add text field for mass action in grid issue

texts:
This is my ui component:

<?xml version="1.0" encoding="UTF-8"?>
<listing xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
    <listingToolbar name="listing_top">
        <massaction name="listing_massaction">
            <action name="create_barcode">
                <argument name="data" xsi:type="array">
                    <item name="config" xsi:type="array">
                        <item name="type" xsi:type="string">create_barcode</item>
                        <item name="label" xsi:type="string" translate="true">Create Barcode(s)</item>
<!--                        <item name="url" xsi:type="url" path="vendor_product_barcode/product/massCreateBarcode"/>-->
                    </item>
                </argument>
                <argument name="actions" xsi:type="configurableObject">
                    <argument name="class" xsi:type="string">Vendor\ProductBarcode\Ui\Component\Catalog\Product\MassAction\Barcode</argument>
                    <argument name="data" xsi:type="array">
                        <item name="urlPath" xsi:type="string">vendor_product_barcode/product/massCreateBarcode</item>
                        <item name="paramName" xsi:type="string">no_of_printing</item>
                    </argument>
                </argument>
            </action>
        </massaction>
    </listingToolbar>
</listing>

and the content of the Barcode class:

use Magento\Framework\UrlInterface;
class Barcode extends  \Magento\Ui\DataProvider\AbstractDataProvider
{

    protected $urlBuilder;

    public function __construct(
        UrlInterface $urlBuilder
    ) {
        $this->urlBuilder = $urlBuilder;
    }

}

My goal is to add an input field text with a button for my Create barcode option item. And the value of that input field must be parsed to a controller. So far I achieved this:

I'm not sure, how can i add inside of that submenu an input type text with a button. So any advice are  welcome. Thnx


texts: Magento 2 unable to save category custom attribute value

texts:
I have created below modules to create custom category attributes, but values are not getting saved from admin . below is my module code please with what i am missing

1: Yereone/NewCategoryAttribute/Setup/InstallData.php

namespace Yereone\CustomCategoryAttribute\Setup;

use Magento\Eav\Setup\EavSetupFactory;
use Magento\Framework\Setup\ModuleContextInterface;
use Magento\Framework\Setup\ModuleDataSetupInterface;
use Magento\Framework\Setup\InstallDataInterface;
use Magento\Catalog\Setup\CategorySetupFactory;

class InstallData implements InstallDataInterface
{
    /**
     * @var EavSetupFactory
     */
    private $eavSetupFactory;

    /**
     * @param EavSetupFactory $eavSetupFactory
     */
    public function __construct(EavSetupFactory $eavSetupFactory)
    {
        $this->eavSetupFactory = $eavSetupFactory;
    }

    /**
     * Installs data for a module
     *
     * @param ModuleDataSetupInterface $setup
     * @param ModuleContextInterface $context
     * @return void
     */
    public function install(ModuleDataSetupInterface $setup, ModuleContextInterface $context)
    {
        $setup->startSetup();

        $eavSetup = $this->eavSetupFactory->create(['setup' => $setup]);
        $eavSetup->addAttribute(
            \Magento\Catalog\Model\Category::ENTITY,
            'custom_category_attr',
            [
                'type'         => 'varchar',
                'label'        => 'Yereone Custom Category Attribute',
                'input'        => 'text',
                'sort_order'   => '',
                'source'       => '',
                'global'       => \Magento\Eav\Model\Entity\Attribute\ScopedAttributeInterface::SCOPE_STORE,
                'visible'      => true,
                'required'     => false,
                'user_defined' => false,
                'default'      => null,
                'group'        => '',
                'backend'      => ''
            ]
        );

        $setup->endSetup();
    }
}

2: Yereone/NewCategoryAttribute/view/adminhtml/ui_component/category_form.xml

<?xml version="1.0"?>
<form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
    <fieldset name="yereone_settings">
        <argument name="data" xsi:type="array">
            <item name="config" xsi:type="array">
                <item name="label" xsi:type="string" translate="true">Yereone</item>
                <item name="collapsible" xsi:type="boolean">true</item>
                <item name="sortOrder" xsi:type="number">100</item>
            </item>
        </argument>
        <field name="custom_category_attr">
            <argument name="data" xsi:type="array">
                <item name="config" xsi:type="array">
                    <item name="dataType" xsi:type="string">text</item>
                    <item name="formElement" xsi:type="string">input</item>
                    <item name="label" xsi:type="string" translate="true">Yereone Custom Category Attribute</item>
                    <item name="sortOrder" xsi:type="number">150</item>
                    <item name="scopeLabel" xsi:type="string">[STORE VIEW]</item>
                </item>
            </argument>
        </field>
    </fieldset>
</form>


texts:
I'm having a lot of issues during the reindex of my catalog in Magento Cloud, sometimes I saw error logs related to ElasticSearch.
How could I know if I need to request some improvement related to ElasticSearch to the Magento Cloud team?


texts: Magento2 : How to Translate words of order pdf like subtotal,grand total

texts:
Magento,How to Translate words of order pdf like subtotal,grand total,shipping & Handling etc...

Where i have to work php files or phtml files or CSV ?

i need to translate that words in arabic .

Please check screenshots of Order PDF
https://prnt.sc/mtkbop


texts: Customize Transactional Emails - Get part of an order

texts:
I'm trying to customize the transactional emails for new Order and new Invoice. For "New Invoice" I want to show something like this

For your Order from (date without time in european format) you will find our invoice for the consignment below:

    Totals(incl. Taxes):      € 13.97

            Incl. Tax 1:       19,00%     €0.31     €0.05
            Incl. Tax 2:        7,00%    €13.66     €0.89

Payable within 14 days. etc etc

So I only want to show the order total including the taxes and the taxes themselves. Is there a way to f.e. get the order object within the email template file, to be able to get all the infos out of it?


texts: How to add a Gift Card section to my online store?

texts:
Gift Cards are one of the best marketing strategies to advertise your business and boost sales in the meantime. By selling gift cards on your online store, you can not only promote your business with personalized gift cards with your brand logo but also generate more revenue, especially during the holiday season.
The reason buyers love to buy gift cards is that they provide flexibility to the recipients to buy whatever they want and provide an easy payment method. But the question is how you can add a gift card section to your eCommerce store so that you can start selling gift cards in your store.

With Magento 2 Gift Card extension, you can integrate the gift card panel on your online shop and start selling attractive gift cards to your online customers. The extension offers multiple attractive themes for various holidays, special occasions, and events and allows your customers to buy attractive gift cards for their dear ones. With the extension, your customers can also send gift cards via emails.
Benefits of the Magento 2 Gift Card Manager extension for your online shop:
(a) With the extension, you can advertise and promote your business with the gift cards itself without spending extra money on advertising.
(b) The Knowband's Magento 2 Gift Card extension is extremely helpful in boosting the sales of your online business, especially during the holidays.
(c) With the extension, you can get new customers to your website.
(d) By selling gift cards with the Knowband's Magento 2 Gift Card extension, you can enhance the shopping experience of your customers and increase customer retention in your online store.
Salient Features of the Magento 2 Gift Card Manager Extension:
(a) The extension offers various attractive templates for holidays and special occasions like Anniversary, Birthday, Christmas, Halloween, etc so that you can offer attractive holiday gift cards to your customers.
(b) The Knowband's Magento 2 Gift Card extension allows the store admin to add the gift card panel to the website for the customers.
(c) customers can add a personalized message for their dear ones at the time of purchasing and ordering gift cards from the website.
(d) With the Knowband's Magento 2 Gift Card extension, the store owner can track the orders received because of gift cards from the admin interface.
You can know more about the extension from the given below links:
Magento 2 Gift Card Manager extension
Magento 2 Gift Card Manager User Manual


texts:
I'm quite new into magento and for some reason i can't seem to find a good solution!

I'm currently running a Magento shop with Ultimo Theme, great theme but there is one catch! It doesn't have a "Quickview" option...

Now, i dont want to use any extra modules but for once i'm trying to implement it my self!

It's almost working, but the only thing left to do is that i need to have a minified product page

For example if you go to http://example.com/product.html you see the whole page but as soon as you try to load http://example.com/product.html?minified=yes you should see a custom template....

What is the easiest way to do this?


texts: Set Active 'false' not working in custom tab in magento admin customer edit page

texts:
I have successfully added a custom tab in customer_edit_tabs section and is ordered after orders tab.

However when I go to edit customer page, my custom tab is by default set to active instead showing me default active tab (i.e. Customer View).

I have done this so far but no luck-

protected function _prepareLayout()
    {
        //get all existing tabs
        $this->parent = parent::_prepareLayout();
        //add new tab
        $this->addTab('relate_order', array(
            'label'     => Mage::helper('relate_order')->__('Relate Order'),
            'content'   => $this->getLayout()
             ->createBlock('relate_order/adminhtml_customer_edit_tabs_relate', 'relate.order')->toHtml(),
            'after'     => 'orders',

            //setting non active not working
            'active'    => false
        ));
        return $this->parent;
    }

Even though I have mentioned this new tab to be not active, it still shows up at first.

Please help.


texts: Created at and Updated at columns using db schema xml - Magento 2

texts:
I have a custom table. Using the InstallSchema, I was able to add default values using:

)->addColumn(
    'created_at',
    \Magento\Framework\DB\Ddl\Table::TYPE_TIMESTAMP,
    null,
    ['nullable' => false, 'default' => \Magento\Framework\DB\Ddl\Table::TIMESTAMP_INIT],
    'Created At'
)->addColumn(
    'updated_at',
    \Magento\Framework\DB\Ddl\Table::TYPE_TIMESTAMP,
    null,
    ['nullable' => false, 'default' => \Magento\Framework\DB\Ddl\Table::TIMESTAMP_INIT_UPDATE],
    'Updated At'

How can i achieve the same thing using the db schema xml file? :

<table comment="my table comment" engine="innodb" name="my_table_name" resource="default">
    ......
    <column name="created_at" nullable="false" xsi:type="datetime"/>
    <column name="updated_at" nullable="true" xsi:type="datetime"/>
</table>


texts:
How do I correctly load a customer session by ID?
Sometimes (sporadically), Magento 1 creates a new session when returning from Payment gateway.
I want to update information to the customer' order which just did a payment.
TLDR: Session is unavailable sometimes, so    $order->sendNewOrderEmail(); will throw an exception because no payment system is attached to order (no session).  Another reason to ensure session is 'logged in again' is so that customer can immediately see their order/account details.
I will have the real order number from the payment system.
   if(! Mage::getSingleton('customer/session')->isLoggedIn()){
       // Load order by real order number (not 'database' id)
       // I think this is correct?
       $order = Mage::getModel('sales/order')->loadByIncrementId($OrderNumber);

       $customer = $order->getCustomer();
       $customerId = $order->getCustomerId();  /// OR $customer->getId();

       // I want to log in customer again, so that they will be able to see the payment updated information.
       // The current code does not seem to update session ID and load customer details, and also definitely not logged in!
       $session = Mage::getSingleton('customer/session', array('name' => 'frontend'));
       $session->setSessionId($id);
       $session->setCustomerAsLoggedIn($customerId);

$order->addStatusToHistory(Mage_Sales_Model_Order::STATE_PAYMENT_REVIEW, "Review message");
$order->save();

    // Since no session is available, order->sendNewOrderEmail() has no payment method attach to it!.... so this will throw an exception!

   $order->sendNewOrderEmail();
   }

Is this possible?

I want to log in customer again, so that they will be able to see the payment updated information.   Otherwise customer will not be sure about the payment details of the order - as it cannot be added to order...

Also,
What is the difference between: when do you use which?
   core/session
   customer/session
   checkout/session


texts: restrict user to place order if ZIP (PIN/Postcode) code is not from pre define ZIP (PIN/Postcode) code list

texts:
One of our client's shipper allow shipping to only specific ZIP codes.
So we do have list of allowed ZIP codes.

We want to restrict user to place order on checkout page or cart page if shipping address ZIP code in not from allowed ZIP codes.

How we can do this?

is there any already existing solution for this?


texts: How do I remove the +$0.00 from product bundle options?

texts:
I have a product Bundle with a few dropdown options.  In the dropdown I have a number of options the customer can choose from (simple products) and only one of them adds to the price of the bundle.  Yet Magento includes "+$0.00" next to every single option in the dropdown.  It looks too confusing to have so many options which all have +$0.00 next to them, yet I don’t want to hide that field entirely since one of the options does add $10.00 to the price.

How do I get Magento to only display the +$x.xx if there is an increase/decrease and hide this text if it’s $0.00?

If that isn't possible (or advisable to hack the core) I'm thinking I could hide the field entirely with CSS and just rename any sub-products that have a price change like "Product Name +$5.00" so it mimics the behavior.  BUT, I can't figure out how to hide that particular field with CSS.

Trying to launch my site soon and this issue is bugging me - any ideas for either solution? Thanks in advance!

Magento CE 1.9.0.1

Thanks!


texts: how to add custom container inside product.info.main container in magento 2.3.1

texts:
how to add custom container in class="product-info-main" referenceContainer="content" and  inside catalog.product.view.xml file

catalog.product.view.xml

  <referenceContainer name="content">
        <container name="product.info.parts" htmlTag="div" htmlClass="product-info-parts" before=""/>
    </referenceContainer>

but it's not working


texts: 404 on all pages other than index page after adding .htacess

texts:
I wanted to remove /index.php from all Magento urls - I sought help online and found a solution within .hatacess file. There was no such file in the route of my Magento directory, so I created one with the following code -

        <IfModule mod_rewrite.c>

        ############################################
        ## enable rewrites

        Options +FollowSymLinks
        RewriteEngine on

        ############################################
        ## you can put here your magento root folder
        ## path relative to web root

        RewriteBase /

        ############################################
        ## workaround for HTTP authorization
        ## in CGI environment

        RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

        ############################################
        ## always send 404 on missing files in these folders

        RewriteCond %{REQUEST_URI} !^/(media|skin|js)/

        ############################################
        ## never rewrite for existing files, directories and links

        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteCond %{REQUEST_FILENAME} !-l

        ############################################
        ## rewrite everything else to index.php

        RewriteRule .* index.php [L]

        </IfModule>

The url's now seem to have changed to remove the /index.php but if I go to the url I get a 404 error. If I add back in the 'index.php' into the url it works.

Thank you very much.


texts:
I'm trying to create a list of child categories with links to those categories and their image.

I'm having an issue with getting the image, but all the other functions seem to be working properly. Here is my custom block inside a custom module. (By the way if theres already a better way to do this, do tell!)

# File ChildCategoryBlock.php
public function getChildCategories(){
    // $this->_catalogLayer is an instance of Magento\Catalog\Block\Navigation
    $children = $this->_catalogLayer->getCurrentCategory()->getChildrenCategories();
    foreach($children as $child){
        if( $imgsrc = $child->getImageUrl() ) {
            echo "<img src='" . $imgsrc . "' alt='' class='' />";
        }        // above does nothing

        var_dump( $child->getId() ); //-> (int) 9
        var_dump( $child->getName() ); //-> (str) Fitness
        var_dump( $child->getImage() ); //-> (bool) false
    }

}

I think I'm doing this correctly. In Magento I have a test image set for category ID 9 (Fitness):


texts: Magento 2 Catalog rule can not applied after reindex automatic

texts:
I wrote the code for creating a Catalog rule in Magento 2.3.5 and after saving I have the code to re-index it automatically.
  /** @var \Magento\CatalogRule\Model\Rule $model */
                $ruleRepository = $this->_objectManager->get(
                    \Magento\CatalogRule\Api\CatalogRuleRepositoryInterface::class
                );
                $catalogRule = $this->_objectManager->create(\Magento\CatalogRule\Model\Rule::class);
                $ruleByBoRefId = $this->getRuleByBoRefId($boRefId);
                if (isset($ruleByBoRefId["rule_id"]) && $ruleId = $ruleByBoRefId["rule_id"]) {
                    $catalogRule = $ruleRepository->get($ruleId);
                }

                $catalogRule->loadPost($catalogRuleData);
                //$catalogRule->save();
                $ruleRepository->save($catalogRule);
                $this->reindexCatalogRule($catalogRule);

Code Reindex auto:
public function reindexCatalogRule($catalogRule){

    if($catalogRule->isRuleBehaviorChanged()){
        $this->_objectManager
            ->create(\Magento\CatalogRule\Model\Flag::class)
            ->loadSelf()
            ->setState(0)
            ->save();
    }

    $collection = $this->_indexerCollectionFactory->create()->getAllIds();
    foreach ($collection as $id) {
        $indexer = $this->_indexerFactory->create()->load($id);
        $indexer->getState()
            ->setStatus(\Magento\Framework\Indexer\StateInterface::STATUS_INVALID)
            ->save();
        $indexer->reindexAll();
    }
}

But after reindex the Rule still doesn't apply to the product.  However, after I go to the admin and edited the previously saved catalog rule => Click Save => Then I ran the Indexer: reindex command of magento, the rule applies normally. I don't understand why like that. Please help me
How to apply rules to products automatically ?
Thanks


texts: Newsletter Unsubscribe Callback URL (webhook)

texts: I'm trying to connect my Magento newsletter users list to a third party email marketing service and sync data (from service to Magento) through a webhook. However, the marketing service is asking me for the unsusbcribe callback URL, I don't know what to say. Any help with this is welcome.


texts: Add a field to a custom Payment method (frontend)

texts:
I would like to add a field in the checkout page for a custom payment method.

Actually because my method extends CC the form is automatically generated (I have no layout set) look at -> Mage_Checkout_Block_Onepage_Payment_Methods with getPaymentMethodFormHtml() function:

    public function getPaymentMethodFormHtml(Mage_Payment_Model_Method_Abstract $method)
{
     return $this->getChildHtml('payment.method.' . $method->getCode());
}

This is good however I would like to add a comment form ( only for this payment method ) using a custom layout:
keep the current form and add an extra block with an text input field.


texts: Magento 2-How to link image to category page through cms page?

texts:
I have a static page of shop. On this page there are different images. I want to link these images to the specific categories types.
For example i have an image of men's clothes. Now i have also a category of men's clothes. on clicking the image it should go to that category. As this page is made from the admin>content>pages. I am not able to get the base url or the link url.

Some one can help me in this regard?


texts:
I am trying to add helper function to cms block or page but it didn't parse like other directives.can anyone help to resolve this issue.or how make helper directive to work in cms block or cms page.

    <?php
class Mage_Customer_Helper_Data extends Mage_Core_Helper_Abstract
{
    public function useInWysiwygEditor{
    /* logic should be anything */
        return $this->getUrl('contact')
    }
}

now in cms editor i want to use like {{helper useInWysiwygEditor()}}

Thanks


texts: Assign custom attribute values to grid collection

texts:
I have a created a custom grid in admin ,
I want to assign custom attributes from customer to one of the column in the grid , I can get the value of attribute from customer repository but how can I pass it  to collection?
Any help appreciated.
Thank You.


texts: Wrapping Product Review Form in Bootstrap Modal

texts:
I'm trying to get review/form.phtml, and wrap it inside a Bootstrap dialog box inside catalog/product/tabs/review_form.phtml. I got the review/form.phtml from base/default.

The catalog/product/tabs/review_form.phtml looks like:

      <button type="button" class="close" data-dismiss="modal">&times;Close</button>

Write a Review

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

      <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>

Then, my Product View catalog.xml layout includes this block:

<reference name="before_body_end">
  <block type="review/form" name="tab_review_form" template="catalog/product/view/tabs/review_form.phtml">
    <block type="review/observer" name="review_form" template="review/form.phtml" />
  </block>
</reference>

The review/form.phtml does not display. What am I doing wrong?


texts: How to add searchable column "shipping methods" into Sales/Orders admin grid?

texts:
To make my admin Sales/Orders grid better I added column to the grid:

and as on the picture above it shows order delivery method but ...
how to create "delivery method" dropdown list to make it easier to use?
So far I tried to add a class:

public function getCarrierList()
{
    $shippingMethods = Mage::getSingleton('shipping/config')->getActiveCarriers();
    $methods = array();
    foreach($shippingMethods as $method)
    {
            $methods[$method['value']] = $methods[$method['label']];
    }
    return $methods;
}

and added to the column definition:

    $this->addColumn('shipping_method', array(
        'header' => Mage::helper('sales')->__('Shipping Method'),
        'index' => 'shipping_description',
        'type'=> 'options',
        'filter_index' => 'shipping_method',
        'options' => $this->getCarrierList(),
    ));

but then my column stays empty and drop-down is also empty.
Of course I can live without it but if I can have a list instead of a typing method name .. would be nice.


texts: Is magento 2.3.2 backward compatible with 2.3.1?

texts:
All the extensions and the theme officially support 2.3.1, I had no option but to install extensions because the client wants multivendor system with reservation and POS.

The day I finished installation and everything got working correctly, magento 2.3.2 dropped, can I update or not? I can backup and try obviously, but I just want to know.


texts: Set all selected media gallery types to default store value using SOAP Api

texts:
I want all images of a product to use the default small_image, thumbnail and image again for every storeview using the SOAP api.

So far I've tried to set the 'types' using catalog_product_attribute_media.update to null but with no success.

            foreach($storeviews as $storeviewId) {
                $result = $client->call(
                    $session,
                    'catalog_product_attribute_media.list',
                    $productId,
                    $storeviewId
                );

                foreach($result as $image) {
                    $client->call(
                        $session,
                        'catalog_product_attribute_media.update',
                        [
                            $productId,
                            $image['file'],
                            [
                                'types' => null,
                            ]
                        ],
                        $storeviewId
                    );
                }
            }


texts: Magento 2.3.5 Ceckout with PayPal-Plus empty cart

texts: we have the problem that if you pay with PayPal Plus and are directed back to the shop, you end up in the empty shopping cart. We only use the Magento FPC. As soon as we deactivate the FullPageCache you will be directed to the correct success page. What is causing the problem? If you pay with the normal prepayment, everything works.


texts: Show Grouped product price in catalog view as sum of associated products in grouped product

texts:
In my magento store majority of products are "grouped products". Right now when you go in category you can see the label under the product image says "Price starting at" and the lower price of two associated products.

For example if one associated product cost $150 and the second $210, so the price in category view will be displayed as "Price starting at - $150".

In my case I want that the grouped product price would be displayed as the sum of two associated products without any labels like "Price starting at".

It should be displayed as a sum which in this case equal to "$360".

I hope someone could help me to find the solution.


texts:
I have a JavaScript file in /js/mds/mds_collivery.js. In it I have an AJAX call that should go to magento_install_url/collivery/ajax/cptypes. It will only be used in /checkout/onepage/.

However, if I set the URL to be:

url : "/collivery/ajax/cptypes",

it tries to access

http://localhost/collivery/ajax/cptypes

and if I set the URL to:

url : "collivery/ajax/cptypes",

it tries to access

http://localhost/magento/index.php/checkout/onepage/collivery/ajax/cptypes

I currently hard coded it to

http://localhost/magento/index.php/collivery/ajax/cptypes

but this isn't ideal as the setup procedure for my module would require users to edit this file before it can work.

Is there a JS variable or another way to get the Magento Install Location inside JavaScript?


texts: Product Type for hotel booking ticket in Magento 2

texts:
I have started to develop a website that is based on hotel booking. It requires to book ticket with adult/child price.

I am confused that which type of product I should use. It is simple or bundled product? Since ticket is not a real product that can be seen but a virtual ticket that is sold online to book hotel.

Can somebody give light on this?


texts: How to hide Attribute for a particular category

texts: i have 3 category on my website Mens, Womens, Childrens. I added another attribute as Sub Category which is only for Childrens to identify weather its a Boy or a Girl products. But the problem is that Sub Category is showing in Mens and Womens Category as N/A. So how can i hide that Sub Category in just Mens & Womens. Below is the screenshot.


texts: Run different cron jobs of custom module one after another in magento 2

texts:
I am working on creating a custom module that fetches categories and products from a third party app (store) to magento2 using apis. This module is divided into four parts:

  Category collect
  Category import
  Product collect
  Product import

I have almost completed it. But now I am stuck with the cron. I want my module should run in the above sequence only i.e "Category collect" process should run first then category import, after this product collect and then product import.

But the issue is if I am setting the cron for these processes say 'category collect' is running after 15 minutes, 'category import after 20 minutes', 'product collect' after 25 minutes, and 'product import' after 25 minutes, then sometime in future they will overlap.
How I should set cron so that these processess run in sequence and also not overlap with each other.


texts:
I recently move to a new server. During the new setup, a payment module (vpos), had the ionCube Loader which cannot work with temp URL. Message that the module work with the IP of the domain. To check if the magento works ok with orders i rename the folder in app/code/local/mage/module_name_folder so everything loads ok.

My magento site is again on air with the domain point to the new server. When i try to rename again the folder to have this module, i get error 500 in checkout page.

2017-05-20T09:12:12+00:00 ERR (3): Warning: include(Mage/Empbankr/Model/Emppay.php): failed to open stream: No such file or directory  in /home/username/public_html/commerce/lib/Varien/Autoload.php on line 94
Mage/Empbankr/Model/Emppay.php' for inclusion (include_path='/home/username/public_html/commerce/app/code/local:/home/username/public_html/commerce/app/code/community:/home/username/public_html/commerce/app/code/core:/home/username/public_html/commerce/lib:.:/opt/cpanel/ea-php55/root/usr/share/pear')  in /home/username/public_html/commerce/lib/Varien/Autoload.php on line 94

I have turned compilation off, cleared all Magento caches automated and manual. I removed memcached through local.xml

When it is there the onepage gives me error500, when i have a folder renamed work ok wihtout this module.

The permissions is 644.


texts: How to change category layouts for specific types of products magento 2.1.9

texts:
For certain categories,  rather than an add to cart button, and price and regular stuff, I want to just say click for more details.
And for some product pages, I want to keep the informational - pictures and descriptions and other attributes - but no add to cart button, compare button etc.
All other categories and products are normal.

Is it possible to do this? What files would I customize? Is a module available for this?

Thanks
Sam


texts: Can Magento Theme Version be different than Platform version?

texts:
I have installed Magento 1.9.3.1, but I have a problem.

I can't find many 1.9.3.1 themes and I don't like the themes I found.

So, can I use a theme made for an older version of Magento, like 1.9.2.4, for example?

How much will it take until the themes will be upgraded to 1.9.3.1?


texts: How can I add custom product subscription in Magento 2?

texts:
How can I add custom product subscription in Magneto 2.3.3, any suggestion:

  Customer can subscribe product weekly/monthly/2 month, as per rate.
  I'm trying using save period in quote table date of subscription.
  Get diff. of current and subscribe date after match condition CRON job for re-order.


texts: REST API - categories by store view code

texts:
I'm using Magento 2 and try to consume my categories by calling the REST API via /categories.
How can I achieve it, to get the categories by an given store view code?

Do I have to extend the api by my own? I would expect, that this is an default requirement, but I haven't found any method, which would do this for me out of the box.

Or are there any search criterias for that?


texts:
Got this error

Checking if patch can be applied/reverted successfully...
ERROR: Patch can't be applied/reverted successfully.
Done

Need help on this.


texts: Get the cart contents from an external script, using bootstrap.php and ObjectManager?

texts:
Running Magento 2.3.1.

I'm having trouble understanding how to get the customer's checkout/cart session data from an external PHP script.

The script is hosted and run on the same domain as the Magento store, and it's located in Magento's root directory. I'm running it from the same browser. All caches are disabled.

I have 3 items in my Magento cart, but when I run the script, it does not find any items:

<?php

require("app/bootstrap.php");
$bootstrap = \Magento\Framework\App\Bootstrap::create(BP, $_SERVER);
$obj = $bootstrap->getObjectManager();

// Set the state (not sure if this is neccessary)
$state = $obj->get('Magento\Framework\App\State')->setAreaCode('frontend');

// Get cart items
$quote      = $obj->get('Magento\Checkout\Model\Session')->getQuote();
$quoteItems = $quote->getAllVisibleItems();

echo "Found " . count($quoteItems) . " cart items";

// Expected output:
// Found 3 cart items

// Actual output:
// Found 0 cart items

P.S. Please do not comment that ObjectManager should not be used directly. It is not helpful, and this is for a one-off script on an internal development environment only.


texts: InstallData.php not executing on Magento 2.2.1

texts:
I have the following InstallData.php in my Setup directory in my module. The script does not seem to execute at all. I have tried throwing an Exception at the beginning, dumping and dying, etc. Nothing seems to stop the script or output and information while running setup:upgrade.

NB: I have removed the module's row from the setup_module table before each run. I've also tried with EavSetupFactory - no luck there either.

Any thoughts would be appreciated.

<?php

namespace Tridum\Thumbnail\Setup;

use Magento\Framework\Setup\InstallDataInterface;
use Magento\Framework\Setup\ModuleContextInterface;
use Magento\Framework\Setup\ModuleDataSetupInterface;
use Magento\Eav\Setup\EavSetup;
use Magento\Eav\Setup\EavSetupFactory;
use Magento\Catalog\Model\Category;
use Magento\Catalog\Setup\CategorySetupFactory;
use Magento\Eav\Model\Entity\Attribute\ScopedAttributeInterface;

/**
 * @codeCoverageIgnore
 */
class InstallData implements InstallDataInterface
{
    /**
     * @var EavSetupFactory
     */
    private $categorySetupFactory;

    /**
     *
     * @param CategorySetupFactory $categorySetupFactory
     */
    public function __construct(CategorySetupFactory $categorySetupFactory)
    {
        $this->categorySetupFactory = $categorySetupFactory;
    }

    public function install(ModuleDataSetupInterface $setup, ModuleContextInterface $context)
    {
        $setup->startSetup();

        /** @var EavSetup $eavSetup */
        $eavSetup = $this->categorySetupFactory->create(['setup' => $setup]);

        $eavSetup->addAttribute(
            Category::ENTITY,
            'thumbnail',
            [
                'type' => 'varchar',
                'label' => 'Category Thumbnail',
                'input' => 'image',
                'backend' => 'Magento\Catalog\Model\Category\Attribute\Backend\Image',
                'required' => false,
                'sort_order' => 9,
                'global' => ScopedAttributeInterface::SCOPE_STORE,
                'group' => 'General Information',
                'default' => null,
            ]
        );

        $setup->endSetup();
    }
}


texts: Do we need to use loadlayout() in an action that we are calling through Ajax?

texts:
In indexAction of my custom module's controller,

I have called loadlayout() and renderlayout(). I am now calling an ajaxAction through ajax from a template file. Do I need to use loadlayout() again?

Should it be loadlayout(false)?

Edit: I intend to display a list of products through AJAX; I have created block and template files for AJAX and added code in the layout file under  tag.


texts: Magento2: Layered navigation at top of category page

texts:
In Magento2, I want layered navigation to be shown in the content area at the top of the product listing.
I managed to do it but simultaneously its showing in left sidebar too. I don't want to show it in left side bar. How can I hide it from left side bar and just keep above the product listing?

Thanks in advance.


texts:
Hi I have added the following code to the bottom of my index.php for a seperate store view in a subfolder of my magento installation.

$name = 'test';
$value = 'testval';
// set cookie
Mage::getModel('core/cookie')->set($name, $value);
//Show Cookie
echo Mage::getModel('core/cookie')->get($name);

It isnt echoing anything and I have no cookie in chrome, does anyone know why this may be?

Thanks!


texts: Magento 2 - Reverting cancel orders programmatically

texts:
For some reason order canceled in bulk through my customly added order cancel mass action. Now I need to uncancel all orders.

Change status from cancel to the status that was previously set on order
Change state of order that was previously set
Subtract all quantities of products which are used in the order that are just reverted by cancelling.
Remove order history comments

Any help, experience and knowledge sharing would be highly appreciated.


texts:
I have two stores one which is going to be  wholesale store and the other a retail store
I want to create a product which allows me to set the cart minimum order quantity to 100 for the wholesale store and 1 for the retail store.
When I try to set this for the wholesale store the settings seem to replicate to the retail store. How can I set this so it does not use global inventory settings?
I want to do this so i can use the same sku for the stores which will eliminate the need to create multi skus and then manage multiple listings
I am using V 2.3.5


texts: Magento 2 error : Command "indexer:reindex" is not defined

texts:
System : Ubuntu 18
Application : Magento2.3
PHP : 7.1

I have two indexer need to be reindex. I have update the indexer on the admin page but it is not work. I also use the following command on the server :

php bin/magento indexer.reindex

but the system reply "Command indexer.reindex" is not defined"

I have gone to the root directory and the cron is working.

I don't know what the problem is ?

Please help......


texts: How can i remove configurable product from cart in magento using SOAP API v1

texts:
I am using this code but it gives error "Call to a member function getId() on a non-object"

    $c = array(
                '272' => 25,
                '502' => 46
            );
    $arrProducts = array(
        array(
            'product_id' => $_REQUEST['product_id'],
            "super_attribute" => $c

        ),
    );

    $resultCartProductUpdate = $client->call($sess_id,'cart_product.remove',array($_REQUEST['CartID'],$arrProducts));


texts: How does a package is appeared in `firegento` without a `composer.json` in its github repository

texts:
Today I tried to install a magento extension/package through composer. I have a successfully set up composer in my root folder of magento. For the sake of understanding, I am providing you the folder structure

Folder Stucture

magento
|
 ---- composer.json
|
 ----composer.phar
|
 ----vendor
     |
      ---- autoload.php
     |
      ---- composer
     |
      ---- magento-hackathon

composer.json

{
    "require": {
        "magento-hackathon/magento-composer-installer": "1.*"
    },
    "extra":{
        "magento-root-dir":"../magento",
        "magento-deploystrategy":"copy"
    },
    "repositories":[
        {
            "packagist": false
        },
        {
            "type":"composer",
            "url":"http://packages.firegento.com"
        }
   ]
}

As you can see, I am using repository magento-hackathon. This will allow me to use packages that are avialable in http://packages.firegento.com/ through my composer. I have searched a debugger package and I found out the right one for me. The package name is magento/debug. So I tried to install it via composer with this code

php composer.phar require --update-no-dev magento/debug

But it didn't work. It showed me an error. After that I have tried in lot ways to install this package. Some of them includes manual editing of my composer.json to include this package from github.

    {
        "type": "git",
        "url": "https://github.com/madalinoprea/magento-debug"
    }

Then I tried to update my composer. Again it showed same error. Error looks like this.

Error Reported

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - The requested package magento/debug could not be found in any version, there may be a typo in the package name.

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.

Read <http://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

From error, I got a clue that, composer searching for composer.json file in the package and it couldn't find that package. I verified this by looking it in the github.

Then this question raised up in my mind

"How does a package is availble in firegento without possessing a composer file."

May be I am wrong in some point. If that is the case, please direct me to right path. Please help me guys


texts: What are the best practice to rewrite address forms?

texts:
I am currently developing an extension that is adding two select elements (City and District) that work the same way as the RegionUpdater. (When you choose a Country, the Region select populates, when you choose a Region the City select populates, etc...)

It is working fine, but now I would like to change all the address forms to make it appear everywhere.

I would like to make this extension available to everyone, so I would like to make it easy to integrate, and easy to modify. So what is the best practice ?

I will clearly not modify the template file from the default theme, but I was thinking about updating the layout, and changing all the template of an address form by the corresponding one in a folder of my extension, with the new fields added.

The main disadvantage is that if you are used to modify a certain template to modify the form, it will not work anymore.

I also thought about adding the new fields with Javascript, but it could become messy.


texts: Magento 1.9.3.2 backend product image not uploaded

texts:
I hope you all are doing great .

I am working on a magento website backed to upload product. Then I saw that image upload not working. There is no js error. Also after browse image button when I upload it uploaded successfully. But the image is not showing on the list. Below is the screenshot you may understand good.

Any help will be appreciated


texts: Magento2 : Set dynamic email subject via template

texts:
I am working on Magento 2. I want to send the dynamic subjects E-mail. I am implementing one module.

So, How to do this via code in custom module ?


texts: Magneto 2 List of logos and images to upload or replace

texts:
Is there a complete list of logos and images and text required to replace or upload to customize the website,

Favicon
Header Logo
Footer text
Welcome text
Etc


texts: Magento1: Round the price of products in complete site?

texts:
I have 1200 products and all have prices like 12.99, 69.65, 55.24  etc. I want to round the price in my complete site everywhere so that functionality will not break and it will display rounded price in frontend.

Tell me any possible and easy way to round prices of products.


texts:
I am updating multiple cart items at a glance. And i have updated cart item id's with me. Now i want to get CART item data by its id.

Can you plese help me on this.


texts: Price is being displayed with to many zeros eg 15.8900

texts:
I have created a block of code that will show a row of products if the user doesn't hit the free delivery limit. My only problem is the way the price is being displayed. it shows it like £34.9900 instead of just £39.99 like it does on every other page.

This is my line of code that shows the price

<?php echo $_product->getPrice();?>

If you know why this is doing this and can help would be much appreciated.

Thank you


texts: Custom image upload attribute for category not working in Magento 2.2.3

texts:
I have upgraded magento 2.1.7 to 2.2.3.

I have some custom image attribute in category. It was working fine in magento 2.1.7 but not working in upgraded magento 2.2.3


texts: Which is the best approach to sell a product which will give access to an external application?

texts:
Can someone give me some hints how to achieve this?
I want to sell a product which will give access to an external application. I also want to make sure that only the paid customer will be able to access it.


texts:
Can anyone help how to over ride

vendor/magento/module-ui/view/base/web/js/modal/confirm.js

file in theme.

Thanks


texts:
I am new for developing Magento 2.

I create a grid component and it is easy to add export button, filter button or massaction dropdown. However, I want to add a custom button into a grid ui. What should I do?


texts: Configurable product still out of stock even after child product is back in stock

texts:
I have Magento 2.3.0 installed on server with MSI package upgraded to v1.1.
I have configurable products with their child products initially in stock.
Once all the child products goes out of stock, Configurable product becomes out of stock (which is expected behaviour). However, when any of the child product is back in stock (this includes re-indexing all the indices), the configurable product still shows out of stock(expected to become in-stock).
Is it a bug or by default Magento design?
Is there any fix to achieve what I want?


texts:
Please Help me on this,
We have a one customer which has three different addresses in his account.in to the entity of address i have a select attribute field with values A,B and C.

My question is how can i exclude those addresses in checkout which have the C value in that specific address attribute?

i am new so i can not found the exact way for that, please help me.
many thanks


texts: InstallScripts vs db_schema for new EAV attribute

texts:
I'm in the process of adding new fields to my registration page. I know that we're now supposed to use db_schema instead of InstallScripts, but how can I make sure that they're seen as customer attributes, and editable with he rest of customer information?

Thanks


texts: The Blog appears two times in breadcrumbs

texts:
We just started a new website and installed a Blog module. However I can see that the word Blog appears two times in the breadcrumbs.

Example here : http://www.muelltrennen24.com/blog/mull-richtig-trennen-biotonne

What can be the issue? I only have one category named Blog..

Many thanks
Razvan


texts:
having some products with a customised design using a child product view template, can I use the skin folder of the parent one?
Here is my scenario in System->configuration->design:

Current Package Name > Default

Default > customised_theme

Here is the scenario in Product > Design
Custom Design > customised_theme_child (i've just duplicated the directory structure and copied the file template/catalog/product/view.phtml)


texts: Problem connecting to SOAP API using Trustpilot

texts:
I am trying to connect trustpilot product reviews to Magento for a customer.

When I open the pages where the SOAP API is connecting everything seems alright and I get the XML pages.

The error stems from the response containing an invalid body whenever an error occurs in their API. When we try to determine if we can login to Magento we first try login in with WSI mode, and if we get an error we fall back to V2 mode. We should login with V2 mode, but the error we get by trying WSI mode looks like this:

HTTP/1.1 500 Internal Service Error
Date: Fri, 07 Aug 2015 09:00:50 GMT
Server: Apache/2.2.15 (Red Hat)
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Type: text/xml; charset=utf-8
Set-Cookie: PHPSESSID=rann0j4j9fk99iljut0f7rbkt0; expires=Fri, 07-Aug-2015 11:00:51 GMT; path=/; domain=www.mydomain.com; secure; HttpOnly
Set-Cookie: NO_CACHE=1; expires=Fri, 07-Aug-2015 11:00:51 GMT; path=/; domain=www.mydomain.com; secure; httponly
Vary: User-Agent,Accept-Encoding
Content-Length: 879
Connection: close
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Server</faultcode><faultstring>Procedure 'loginParam' not present</faultstring></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Server</faultcode><faultstring>Class 'Mage' not found</faultstring></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Server</faultcode><faultstring>Class 'Mage' not found</faultstring></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>"

It contains three XML documents in the body as you can see. The Content-Type is "text/xml; charset=utf-8", which makes the body invalid.

What could be the issue that there are 3 responses instead of just one?
I´m using Magento Enterprise 1.7
Thanks


texts: product image getting bigger as the gallery image number increases magento 2 and vise versa after adding bootstrap css (cdn)

texts:
product image getting bigger as the gallery image number increases magento 2 and vise Versa after adding bootstrap css (cdn)
How to make the product image load in big size no matter what number is the product gallery number??

enter image description here


texts: Product Repository Shows 'Requested product doesn't exist' After Setting is_in_stock = 0

texts:
I Have Loaded A Simple Product Using
Magento\Catalog\Model\ProductRepository And Changed Its Quantity To 1 And Stock Status (is_in_stock) To 0,

Using Function $productStock->setQuantityAndStockStatus(['qty' => $correctedStock, 'is_in_stock' => $isInStock]);

After This Am Not Able To Load The Product Programmatically , It Shows Following Error.

  `1 exception(s):
  Exception #0 (Magento\Framework\Exception\NoSuchEntityException): Requested product doesn't exist

Using Magento CE 2.1.2