texts: How to show only Product Name and price in specific category magento 2

texts:
I am working on specific category so I need to show some customized changes in that for that I need to show only product Name and price and by clicking on that I have continued button I am confused how can I remove other details

I tried to like this in my catalog_category_view.xml file

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <referenceContainer name="category.view.container">
            <block class="test\QuickShop\Block\CustomOptions" name="custom.category.form"
                   template="test_QuickShop::quickshop/quickshop.phtml" />
        </referenceContainer>
        <referenceBlock name="product.info.addtocart" remove="true" />
    </body>
</page>

but it's not working.
Anything I am missing here?


texts: Magento 2.3.4 - Order don't get Recorded in Admin

texts:
1 Magento 2.3.4
2 PHP 7.3
3 Braintree Gene 4.0.4
4 Default Onepage Checkout
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Is there a magento developer who can help me? We have newly upgraded to magento 2 website. I am facing issues with order and payments. Which i never faced in M1
With the below order number, the order never got recorded in magento nor i received a confirmation email. But braintree deducted the payment.
1000002100
With the below order numbers, the amount,details and sku are same. Braintree processed this as three separate orders and deducted the payment thrice.
1000002094, 1000002095, 1000002096
The order increment is getting skipped. Please check the screenshot, and further details can be provided.
Screenshot
https://prnt.sc/u0oxz6
This is a serious issue, still pending in Magento 2. Please look into the matter, and suggest what can be done.


texts: Adding Downloadable Products to Grouped Products or Bundled Products

texts:
I am a developer working on a Magento site where it is a requirement that a Downloadable Product is included in a Grouped Product (or, failing that, a Bundled Product).

I understand that by default Magento does not allow this, I have tried adding a Downloadable product in the admin panel and I cannot group it with other products. Is there any way I can override this to allow Downloadable Products to be added to Grouped Products or Bundled Products.

Ideally a solution to work with Grouped Products would be the best if that is possible.

I have found this thread on the Magento forums http://www.magentocommerce.com/boards/viewthread/27120/ but on the post by shawnmck I am not sure what he means by the flag 'required_options'.

Any help would be greatly appreciated, thank you. Please let me know if any further information is required. I am working with Magento Community 1.7.0.2.


texts: How to add blogs in admin magento 2.2.6. because i can't see blog menu section in admin. please let me know.


texts: How to save custom product tab checkbox value in database using Magento 2

texts:
I created my custom tab in product page. Now i did't found any solution to save custom tab value so that i can use that value on frontend.

I created custom tab on product page by creating catalog_product_new.xml file in /vendor/magento/module-catalog/view/adminhtml/layout/. Below is the code:-

<?xml version="1.0"?>

            <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="admin-1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
                <update handle="styles"/>

                    <css src="jquery/fileUploader/css/jquery.fileupload-ui.css"/>

                <update handle="editor"/>
                <update handle="catalog_product_form"/>
                 <referenceBlock name="product_form">
                       <block class="Magento\Catalog\Block\Adminhtml\Product\Edit\Tab\Welcome" name="product.welcome" as="custom-tab" >

                            <arguments>
                                <argument name="config" xsi:type="array">
                                    <item name="label" xsi:type="string" translate="true">Product Finder Parts</item>
                                    <item name="collapsible" xsi:type="boolean">true</item>
                                    <item name="opened" xsi:type="boolean">false</item>
                                    <item name="sortOrder" xsi:type="string">2</item>
                                    <item name="canShow" xsi:type="boolean">true</item>
                                    <item name="componentType" xsi:type="string">fieldset</item>
                                </argument>
                            </arguments>
                        </block>
                    </referenceBlock>
            </page>

Then i created block: Vendor/Module/Block/Adminhtml/Product/Edit/Tab/Welcome.php

<?php

    namespace Magento\Catalog\Block\Adminhtml\Product\Edit\Tab;
    use Magento\Backend\Block\Template\Context;
    use Magento\Framework\Registry;

    class Welcome extends \Magento\Framework\View\Element\Template
    {
        protected $_template = 'catalog/product/edit/welcome.phtml';

        protected $_coreRegistry = null;

        public function __construct(
            Context $context,
            Registry $registry,
            array $data = []
        )
        {
            $this->_coreRegistry = $registry;
            parent::__construct($context, $data);
        }

        public function getProduct()
        {
            // return $this->_coreRegistry->registry('current_product');

            return "heloo dgdgdg";
        }

    }
    ?>

After that i created phtml file in Vendor/Module/view/adminhtml/templates/catalog/product/edit/welcome.phtml

            <input type="checkbox" class="admin__control-checkbox" id="finder" name="_ids][1]" value="1">

            Parts Finder Enable

I have created tab in admin successfully by this code .

I tried this but it didn't work for me.
Can you guys help me to save this value? I am searching for solution from past 2 days.


texts: Can't edit configurable product page from admin panel

texts:
I cannot expand the categories inside the configurable product page; all tab take 100% width and I can't expand them.

The content of the tab is present inside the page (attached image) and is associated with a display:none rule. If I remove display:none I can see all the products data, also attributes and associate products.

It seems that the page doesn't load all the button at the top of the page. The console then give a 500 error. This problem is for configurable product only, simple product are ok.


texts: Return Shipping Methods in Store REST API

texts: Is there an API endpoint to return all shipping methods and carrier codes used in the store?


texts: why magento rest api returning more order items than ordered?

texts:
I placed order using magento graphQL api, order placed successfully and listed in my orders section in website. I placed order of 1 product. In website's order detail page it displaying 1 item ordered. But when I fetch order items data using rest api rest/default/V1/orders/000000004, it gives me 2 item ordered.
I think there may be something naming issue, because I ordered,
product name : Portia Capri
size : 29
color : Green

Now, when I fetch ordered items data using rest api it returning 2 items which includes Portia Capri and Portia Capri-29-Green.
Please anyone can help me how to get only ordered item ?


texts: Size option not showing on product view page for configurable product in Magento2

texts:
Color Options showing but size option not showing also all setting in admin is correct

When i click on add to cart button it's show size required field but not size options are there

I checked in variations products have color and size options.


texts: create an observer for invalidate block cache event

texts: is there an event i can hook on to run Mage::app()->getCacheInstance()->cleanType('block_html'); every time the Blocks HTML cache is invalidated?


texts: How to accelerate the list page when objects have attributes with thousands of possibilities

texts:
I'm working on a magento website that have hundreds of products with, each of them, having more than 5 thousands of options in a dropdownlist (in a custom attribute, using this plugin

I know that this is stupid to store that much data in the dropdownlist but I can't do a thing to change that (client, boss, wimey wibbly wobbly stuff, etc) [1]

Since I imported all my products with their respective DropDownList, the website is very slow to show the page mywebsite/any-category.

It seems that the view that is rendering the products for a cateogry get some products (first 9th for example) and all the attributes (even if each of them have a dropdown with 5K of options)

Does someone have ever encountered this kind of problem before ?
Is there a way of getting a product collection with only certain attributes ? (or to exclude some ?)

Edited :
Even if I have a dropdownlist of 5K elements, these element are for the "width and height" of the products with the following format 6x7.

When the products are showed at the screen, I hide this dropdownlist and show two other dropdown of MAXIMUM 72 values. The users won't even notice  they dropdown of 5K elements.

I really just need to optimize the speed of the category page because the product page is  already fast.


texts: Magento 2 : how to add extension attribute to filter?

texts:
how to add extension attribute to to filter ?

I am getting items if i remove my custom filter.
But i want to add my extension_attributes in searchCriteriaBuilder to check further condition.

Here is extension_attributes.xml

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="urn:magento:framework:Api/etc/extension_attributes.xsd">
    <extension_attributes for="Magento\Catalog\Api\Data\ProductInterface">
        <attribute code="parent_product_id" type="int">
            <join reference_table="catalog_product_bundle_selection" reference_field="product_id" join_on_field="entity_id">
                <field>parent_product_id</field>
            </join>
        </attribute>
    </extension_attributes>
</config>


texts: Magento 1: most efficient way to bulk add entities

texts:
So I'm working on a CRUD module that creates entities based on an XML feed.

Right now, I'm using Magento system, so I have an array of data that I use to populate my object then call the save() method for my entities. Code example:

foreach ($datas as $data) {
    $entity = Mage::getModel('module/entity');
    $entity->setData($data);
    $entity->save();
}

Now, I want to know if there is a most efficient way of doing it (in terms of performance). Things that come to my mind are:

Direct SQL queries ? Assuming I deal with one single table here.
Collection walk method ? Just an idea I'm not sure if it's even possible but it would be something like populate a collection of data and use the walk iterator to generate the entities.

Feel free to provide a code example based on my snippet above.

Of course, this list is not exclusive, if you have more ideas I'd be willing to try them.


texts:
I am trying to do custom blocks in magento, for that i have created a cms page called Testpage, and inside the URL Key, i have given c-integration i think this seems to be block id, and status is enabled, inside the content text box i gave a short code like this

{{block type="core/template" template="syt/syt_home.phtml"}}

In my syt_home.phtml i have given an echo statement, but this is not coming in the front end, i am not sure what i did wrong? also changed the cms home page to cms Testpage in admin side.


texts: Magento - uniquely referencing order items during one page checkout

texts:
The store I am working on is for downloadable products only. During the checkout if we have a book of a particular attribute set we send a SOAP request to an external company (to get the ebook's downloadable URL from the external company). I have wrote a module which overrides the saveOrderAction of the OnepageController.php

I have created an extra database table which stores the information about the item's downloadable URL which is updated on the saveOrderAction.

As during the checkout the Order ID isn't generated I have created an Observer which checks for the order being saved event, during this it finds the Order ID of the current products which I update the database table I created.

The problem I'm having now is how to update the downloadable URLs when the user clicks download on their downloadable products section of their customer account.

In the DownloadController.php I have found the function linkAction which I believe is called when the download button is clicked for an product. In there I have print_r the $linkPurchasedItem variable which shows an purchased_id and item_id which appear to be unique for the product.

To return the downloadable URL which is saved in the database (on my custom table) and given from the external company I will need to update the database table I have created at some point to insert the 'purchased_id' or 'item_id' so in the DownloadController.php on the linkAction I can run another database call to get the right downloadable URL for the product this function is being called for.

Therefore my questions are:

At what point is the purchased_id and/or item_id generated?
Is it possible to get them in the OnepageController.php?
What is the best way to uniquely identify each product in each order in my custom database table so I can reference it in the DownloadController.php?

Thanks for any help in advance.


texts:
I'm getting following response in Magento Restfull API call, with the message I'm not able to identify what is the issue.
Without understanding the error origin we can't fix it. Please help me track down the issue.

Getting issue in all APIs before it were working, I just cleared cache and redeployed the static contents.

  {{basePath}}/rest/V1/customers/me

 {
      "message": "Invalid Document \nElement 'resources': Character content other than whitespace is not allowed because the content type is 'element-only'.\nLine: 14\n",
      "trace": "#0 /Users/me/Documents/MAMP/project/vendor/magento/framework/Config/Reader/Filesystem.php(127): Magento\\Framework\\Config\\Reader\\Filesystem->_readFiles(Object(Magento\\Framework\\Config\\FileIterator))\n#1 /Users/me/Documents/MAMP/project/vendor/magento/module-webapi/Model/Config.php(67): Magento\\Framework\\Config\\Reader\\Filesystem->read()\n#2 /Users/me/Documents/MAMP/project/vendor/magento/module-webapi/Model/Rest/Config.php(105): Magento\\Webapi\\Model\\Config->getServices()\n#3 /Users/me/Documents/MAMP/project/vendor/magento/module-webapi/Controller/Rest/Router.php(41): Magento\\Webapi\\Model\\Rest\\Config->getRestRoutes(Object(Magento\\Framework\\Webapi\\Rest\\Request\\Proxy))\n#4 /Users/me/Documents/MAMP/project/var/generation/Magento/Webapi/Controller/Rest/Router/Proxy.php(95): Magento\\Webapi\\Controller\\Rest\\Router->match(Object(Magento\\Framework\\Webapi\\Rest\\Request\\Proxy))\n#5 /Users/me/Documents/MAMP/project/vendor/magento/module-webapi/Controller/Rest.php(187): Magento\\Webapi\\Controller\\Rest\\Router\\Proxy->match(Object(Magento\\Framework\\Webapi\\Rest\\Request\\Proxy))\n#6 /Users/me/Documents/MAMP/project/vendor/magento/module-webapi/Controller/Rest.php(200): Magento\\Webapi\\Controller\\Rest->getCurrentRoute()\n#7 /Users/me/Documents/MAMP/project/vendor/magento/module-webapi/Controller/Rest.php(286): Magento\\Webapi\\Controller\\Rest->checkPermissions()\n#8 /Users/me/Documents/MAMP/project/vendor/magento/module-webapi/Controller/Rest.php(255): Magento\\Webapi\\Controller\\Rest->validateRequest()\n#9 /Users/me/Documents/MAMP/project/vendor/magento/module-webapi/Controller/Rest.php(160): Magento\\Webapi\\Controller\\Rest->processApiRequest()\n#10 /Users/me/Documents/MAMP/project/var/generation/Magento/Webapi/Controller/Rest/Interceptor.php(24): Magento\\Webapi\\Controller\\Rest->dispatch(Object(Magento\\Framework\\App\\Request\\Http))\n#11 /Users/me/Documents/MAMP/project/vendor/magento/framework/App/Http.php(115): Magento\\Webapi\\Controller\\Rest\\Interceptor->dispatch(Object(Magento\\Framework\\App\\Request\\Http))\n#12 /Users/me/Documents/MAMP/project/vendor/magento/framework/App/Bootstrap.php(258): Magento\\Framework\\App\\Http->launch()\n#13 /Users/me/Documents/MAMP/project/index.php(39): Magento\\Framework\\App\\Bootstrap->run(Object(Magento\\Framework\\App\\Http))\n#14 {main}"
    }


texts: Different Themes or Different code with if conditions?

texts:
We are selling different kind of products like Tshirts , Mobiles , Toys , Books , shoes..etc....

for each types there will be different type of product view pages.

so we have 2 options

1) Create different Theme to write code for different kind of products

2) Same theme with different code for different attribute sets, like below :

if($_product->getAttributeSetId()==20)
{  // code here // }

If we write too much code in view.phtml, is it going to effect on performance of product view page ?

which option is better for performance ?


texts: Order confirmation PDF only for virtual products

texts:
I am about to sell tickets on my webshop, where I would like to attach a PDF. However I would only like to attach the PDF if the order contains the product type virtual products. In this way I make sure that people buying normal product will not receive a PDF.
Is this possible?


texts: How to create a default Magento 2 block (catalog/product_list) from a phtml file?

texts:
I'm trying to render a default block from a phtml file, without luck.
After a lot of research, I learnt that I can use this code inside a page to render the block I want:

{{block type=”catalog/product_list” category_id=”4″ template=”catalog/product/list.phtml”}}

How can I render the very same block, but from a PHTML file?

I've tried:

 $productOfCategoryBlock = $this->getLayout()->createBlock('Magento\Cms\Block\Block');
 $productOfCategoryBlock->setBlockId("catalog/product_list");
 $productOfCategoryBlock->setTemplate('catalog/product/list.phtml');
 echo $productOfCategoryBlock->toHtml();

With no luck.

What should I put inside setBlockId and setTemplate in order to replicate that? How can I pass the category ID I want to show?

Thanks for your help!

EDIT

My goal here is to render this block "catalog/product_list" by passing a category ID from the PHTML file. Something like this:

 $productOfCategoryBlock = $this->getLayout()->createBlock('Magento\Cms\Block\Block');
 $productOfCategoryBlock->setBlockId("catalog/product_list");
 $productOfCategoryBlock->setTemplate('catalog/product/list.phtml');
 $productOfCategoryBlock->setCategoryId(4);
 echo $productOfCategoryBlock->toHtml();


texts:
I want to upload and save image using observer or model.
How can I do that?

$imageAdapter = $objectManager->get('Magento\Framework\Image\AdapterFactory')->create();

$uploader->addValidateCallback($po_file, $imageAdapter, 'validateUploadFile');
$uploader->setAllowRenameFiles(true);
$uploader->setFilesDispersion(true);

/** @var \Magento\Framework\Filesystem\Directory\Read $mediaDirectory */
$mediaDirectory = $objectManager->get('Magento\Framework\Filesystem')->getDirectoryRead(DirectoryList::MEDIA);
$result = $uploader->save($mediaDirectory->getAbsolutePath('customer/senapro'));
$a= $result['file'];
print_r($a);

this code not working


texts: How to limit 'related product' in magento 2?

texts:
I am showing related products in magento2 in Product description page . And this is I guess due to these lines in code in catalog_product_view.xml

 <referenceBlock name="catalog.product.related" >
            <action method="setTemplate">
                <argument name="template" xsi:type="helper" helper="Infortis\Base\Helper\Template\Catalog\Product\View::getRelatedProductsTemplate" />

            </action>
        </referenceBlock>

And It is showing on front page like this

So I want now that Can I remove its slider and show only 2 products all time ?

How it is possible to do that ? I am using infornite theme


texts: QTY at 0 doesn't change product to Out of Stock

texts:
UPDATE: I figured out that the issue is that while this script updates the item in the cataloginventory_stock_item table, it fails to update it in the cataloginventory_stock_status table. Added an answer for how to fix this.

The following script is being used to update the inventory levels of items in my store:

<?

 define('MAGENTO', realpath(dirname(__FILE__)));
 require_once MAGENTO . '/app/Mage.php';

 umask(0);
 Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID);
 $count = 0;

 $file = fopen(MAGENTO . '/var/import/updateStockLevels.csv', 'r');
 while (($line = fgetcsv($file)) !== FALSE) {

 if ($count == 0) {
 foreach ($line as $key=>$value) {
 $cols[$value] = $key;
 }
 }

 $count++;

 if ($count == 1) continue;

 #Convert the lines to cols
 if ($count > 0) {
 foreach($cols as $col=>$value) {
 unset(${$col});
 ${$col} = $line[$value];
 }
 }

 // Check if SKU exists
 $product = Mage::getModel('catalog/product')->loadByAttribute('sku',$sku);

 if ( $product ) {

 $productId = $product->getId();
 $stockItem = Mage::getModel('cataloginventory/stock_item')->loadByProduct($productId);
 $stockItemId = $stockItem->getId();
 $stock = array();

 if (!$stockItemId) {
 $stockItem->setData('product_id', $product->getId());
 $stockItem->setData('stock_id', 1);
 } else {
 $stock = $stockItem->getData();
 }

 foreach($cols as $col=>$value) {
 $stock[$col] = $line[$value];
 }

 foreach($stock as $field => $value) {
 $stockItem->setData($field, $value?$value:0);
 }

 $stockItem->save();

 unset($stockItem);
 unset($product);
 }

 echo "<br />Stock updated $sku";

 }
 fclose($file);

?>

This script works great and all qty levels are updated accurately. The issue is with the in stock check.

If I go to an item page on the frontend that has qty zero after running the script, it shows it as In Stock. However, when I go to check that item in the backend, the Inventory->Stock Availability field correctly shows as Out of Stock, and the database itself has the correct value.

If I go to the product page in the admin, and click to save the product (since it already shows it correctly being out of stock in the availability field), its fixes the problem. The frontend will now show it properly as out of stock.

Since qty set to 0 and is_in_stock set to false (0) is not enough to mark it properly as Out of Stock on the frontend, I assume that there must be some field that I am not properly updating in my script, that is only updated properly when I save the item from the admin backend. However I don't know what field(s) I could be missing.


texts: Where I get the code file of default products and attributes in magento 2 directory?

texts: I want to Change Stock status Value Manually in Atrributes in admin in Magento 2 because I want to add one more attribute manually for stock status


texts: What are the Magento2 code formating settings for PHPStorm?

texts:
When editing Magento2 .phtml files, it would be nice to use the code formating function of PhpStorm, but without changing the original layout (just format added stuff).

So did anybody already set up PHPStorm's format settings for Magento2 and would like to share them?


texts: How to make add a customer attribute in Magento Programmatically

texts:
$installer = $this;

$installer->startSetup();

$installer->addAttribute('customer','badge', array(
    'label'             => 'Badge',
    'type'              => 'text',    //backend_type
    'input'             => 'multiselect', //frontend_input
    'backend'           => 'eav/entity_attribute_backend_array',
    'global'            =>  Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL,
    'source'            => 'marketplace/eav_entity_attribute_source_badge', // Goes to Step 2
    'visible'           => true,
    'required'          => false,
    'default'           => '',
    'frontend'          => '',
    'unique'            => false,
    'note'              => ''
));

Mage::getSingleton('eav/config')
    ->getAttribute('customer', 'badge')
    ->setData('used_in_forms', array(
        'customer_account_create', 'customer_account_edit', 'customer_address_edit',
        'checkout_onepage_register', 'checkout_onepage_register_guest', 'checkout_onepage_billing_address',
        'adminhtml_customer','checkout_onepage_shipping_address','checkout_multishipping_register'
    ))
    ->save();
$installer->endSetup();

My Badge,php

class Company_Marketplace_Model_System_Config_Source_Badge
    extends Mage_Eav_Model_Entity_Attribute_Source_Abstract
{

    protected $_options;

    public function toOptionArray()
    {
        $collection = Mage::getModel('marketplace/badge')->getCollection();
        $allattributes = array();
        foreach ($collection as $data) {
            $allattributes[] = array(
                'value' => $data->getBadgeName(),
                'label' => $data->getBadgeName()
            );
        }

        return $allattributes;
    }
}

Get error:

Fatal error: Call to undefined method Mage_Core_Model_Resource_Setup::addAttribute()
in app\code\local\Company\Marketplace\sql\marketplace_setup\mysql4-upgrade-1.0.0-1.0.1.php on line 6


texts: Add default custom_attribute filter to product grid in Magento 2.1

texts:
I add a custom select attribute in product, I can show it in the grid listing of custom module. But how to make a default custom_attribute filter? You could look the example image below, which I want filter the collection to show Image Request with requesting.

You could try solution in  Magento 2.1 vendor\magento\module-catalog\view\adminhtml\ui_component\product_listing.xml. Had better use ui_component way.

I had tried some ways in our site, all doesn't work, below are the solutions which doesn't work in Magento2.1.

To add default filter to grid in Magento2?

Magento 2 : How can I load an admin grid with pre-defined filter values?


texts: The e-mail queue not working - old recipients not deleted after receiving e-mails

texts:
After upgrading to 1.9.1 (from 1.7.0) I experience a lot of challenges with the Cron E-mail - and I am stuck about how to solve it...

E-MAIL QUEUE not working?

When customer or Admin added an order, e-mail confirmation was sent out to customer, with bcc to our admin e-mail.
BUT it also included an other, older customer! If new order was order numer 100000500, then it also included the e-mail from order 100000495. In SQL-database I could see the reason why: After cron have sent e-mail confirmation of new order, both message and e-mail recipients were still (stuck?) in the Database.
Both table: core_email_queue and Table: core_email_gueue_recipients still had both messages and e-mailadresses for sent messages.

After a while, maybe when Cron job decide to delete old messages, the message_id started at 1 once more. What happend was that old recipients and new recipients with id=1 all got the e-mail order confirmation for the new order.

It looks like cron job not delete the finished messages in table: core_email_queue but does not delete any recipient´s in table: core_email_queue_recipients.

I could solve this by deleting the rows in both tables. I haven´t found anyone experiencing same problem, any reason why it is like this, nor how to solve it correctly.

I am not totally sure, but it looks like it worked well for a few orders, after deleting the old message_id´s. We dont have many orders, so I cant confirm it 100%.
Database data from table: core_email_queue_recipients:

recipient_id; message_id; recipient_email; recipient_name; email_type
58; 1, a@b.com; Example name A; 0  -- Customer confirmation
59; 1, b@a.com; ; 2  -- Blind copy of e-mail to our service
60; 2, c@c.com; Example name C; 0
...

Now the core_email_queue have first row with message_id 5. Previous messages with message_id 1 to 4 is not here anymore, looks like deleted by Cron job?

Is there anyone with any clues?
As I am not a Magento Certified programming Professional, I appreciate any help or advices on this.


texts: Magento 2 Rest API: getting error "Invalid attribute name: %1"

texts:
Trying to get product with id using rest api search criteria:

Request: http://magento_host/rest/V1/products?searchCriteria[filter_groups][0][filters][0][field]=id&searchCriteria[filter_groups][0][filters][0][value]=3&searchCriteria[filter_groups][0][filters][0][condition_type]=eq

Getting response:

{
  "message": "Invalid attribute name: %1",
  "parameters": [
    "id"
  ]
}

WHY?


texts: Add custom block under selected shipping methode magento 2 not working

texts:
I am creating a magento2 module and I want to add an html block to selected shipping method:
I am using jQuery to achieve this but I will accept other workarounds all I want is to make this work.

I tried this :

https://magento.stackexchange.com/a/162967/78274

But the problem is the block is added after all shipping methods which isn't what I am looking for. However I tried to use it.

I used jQuery and managed to add my block under selected shipping method but my problem is this works only the first time I load the page when mychippingmethod is selected by default, but when I reload the page even though mychippingmethod is selected by default nothing is added.
But if I click on my shipping method my block is added.

Then I tried to switch between after and append but nothing changed I had the same problem.

What I tried so far :

jQuery("tr:contains('mychippingmethod')").append("#my-carrier-custom-block-wrapper");

I also tried

var myelement = "example";
jQuery("tr:contains('mychippingmethod')").after(myelement);

Even trying to append a simple text doesn't work.

I wouldn't say that magento2 isn't allowing me to edit the shipping block since it does work the first time and this is what's making me frustrated why would it work the first time and then stops.

I would accept a solution to uncheck all the shipping methods by default too.

EDIT :

If i append :

aaaaaaaaa

My after function doesn't work even in the first time but If i select my shippingmethode  my text gets appended ! so maybe I am adding it wrong

Please help.


texts: Magento2 How to Check any simple product is a child of grouped product

texts:
In a list page of Magento 2, I want to check that @ every product "Is it a child of any grouped product or not?" if yes then I want to change their URL link when I click on add-to-cart it should be redirected to its parent grouped product detail page.

Thank you.


texts: Setting default layout product detail page

texts:
I'm customizing the layout in CE-1.9.2.2.
After selecting a product in the grid, I get to the productdetails.
This page is shown in 1column-layout.
I want to use the 3column-layout in this view.

I know I can change the view for each product seperately, but I wan't it to be changed for all and as default.

Where do I look?


texts: While opening PDP page throws exception in magento 2

texts:
I have imported product options in magento 2
But It throws following error, Please provide me a solution

  1 exception(s): Exception #0 (Exception): Warning: Invalid argument
  supplied for foreach() in
  /var/www/html/cpap/vendor/magento/module-catalog/Block/Product/View/Options.php
  on line 215


texts:
I created a new package/theme/skin from scratch in Magento 1.9.1.

The theme and skin load fine. I tried adding translations and cannot get them to load. All cache settings are disabled.

I've added the CSV file here:

/app/design/frontend/{my_package}/{my_theme}/locale/en_US/translate.csv

translate.csv:

"testing123","Translation Worked"

header.phtml

<?= $this->__('testing123') ?>

I added {my_theme}, which for me is named "responsive" to the admin at the :

The result is the header displaying 'testing123' instead of the translated 'Translation Worked'. What have I missed? How do I troubleshoot this?


texts:
Is it just me or is the page for downloading the new & older versions of magento broken?

https://www.magentocommerce.com/download

If this is the case, I know its been like this for a while and have finally got round to asking on here as the magento facebook user said to post in the forums..

...and where do we go to download the latest versions..

EDIT

Firefox browser v45
browser cache cleared

below is the full page, its like the content area is just gone

This is the inspect element code, as you can see the main content div is empty


texts: Export products from wp Ecommerce and import into magento

texts: What i want to do is export all the existing products from the wordpress e-commerce and have to import it into the magento.I have used WP e-Commerce - Store Exporter for exporting the data from wordpress. I have exported the data as CSV but if i import into magento its showing error, i know this is because the column names used in wordpress and magento are different and some of the options mismatching also. May i know is there any other options for do this?... I heard about CART2CART. But its paid version. Is there any other plugins like that, Also is possible to do it manually?...please give me suggestion for this


texts: Warning: SessionHandler::read(): Magento 2

texts:
After installation of Fresh Magento 2.3 on my sub-domain i got this error.

  {"0":"Warning: SessionHandler::read(): open(var/www/html/var/session/sess_nloiac096cn9o6imqdkouoj96l, O_RDWR) failed: No such file or directory (2) in /var/www\$

i have followed some of tutorials but they did not worked.


texts: Search results page - wrong number of products per page

texts:
In search results page, I'm not getting the correct number of products on each page. I have set the following in local.xml file:

<?xml version="1.0"?>
<layout version="0.1.0">
    <catalogsearch_result_index>
        <reference name="product_list_toolbar">
            <action method="addPagerLimit"><mode>grid</mode><limit>30</limit></action>
            <action method="addPagerLimit"><mode>list</mode><limit>30</limit></action>
        </reference>
    </catalogsearch_result_index>
</layout>

The limiter selectbox in pagination toolbar, indeed displays "Show 30" as selected value. But in product list, there are only 9 products displayed in each results page.

I can't find a solution to this, any suggestions?


texts: How I can see the native intern Magento 2 UI library?

texts:
I run the grunt documentation but I can't be able to see the docs, I saw a 404 page, why?

http://dev.local/redstore/lib/web/css/docs/index.html


texts: Mage_Customer_Model_Customer extend not working

texts:
I am trying to extend the authentication function, I have extended classes many times with out issue but this ha stumped me

app/etc/modules/Dev_Customer.xml

<?xml version="1.0"?>
<config>
    <modules>
        <Dev_Customer>
            <active>true</active>
            <codepool>local</codepool>
        </Dev_Customer>
    </modules>
</config>

app/code/local/Dev/Customer/etc/config.xml

<?xml version="1.0"?>
<config>
    <modules>
        <Dev_Customer>
            <version>0.1.0</version>
        </Dev_Customer>
    </modules>
    <global>
       <models>
          <customer>
              <rewrite>
                  <customer>Dev_Customer_Model_Customer</customer>
              </rewrite>
          </customer>
       </models>
    </global>
</config>

app/code/local/Dev/Customer/Model/Customer.php

<?php
class Dev_Customer_Model_Customer extends Mage_Customer_Model_Customer{

    /**
     * Authenticate customer
     *
     * @param  string $login
     * @param  string $password
     * @throws Mage_Core_Exception
     * @return true
     *
     */

    public function authenticate($login, $password)
    {
        $this->loadByEmail($login);
        if (!$this->getId()) {
            throw Mage::exception('Mage_Core', Mage::helper('customer')->__('Please re-register as your email address cannot be found, sorry.'),
                self::EXCEPTION_INVALID_EMAIL_OR_PASSWORD
            );

        }

        if ($this->getConfirmation() && $this->isConfirmationRequired()) {
            throw Mage::exception('Mage_Core', Mage::helper('customer')->__('This account is not confirmed.'),
                self::EXCEPTION_EMAIL_NOT_CONFIRMED
            );
        }

        if (!$this->validatePassword($password)) {
            throw Mage::exception('Mage_Core', Mage::helper('customer')->__('Invalid login or password.'),
                self::EXCEPTION_INVALID_EMAIL_OR_PASSWORD
            );
        }
        Mage::dispatchEvent('customer_customer_authenticated', array(
           'model'    => $this,
           'password' => $password,
        ));

        return true;
    }
}

It is just not being called, I have flushed the cache, checked, double checked etc.. nothing I do seems to help.

I am running Magento 1.9.1.0 CE

I am sure it is something silly but for the life of me I cannot figure it out.

I have migrated from another platform and I need to let customers who did not get migrated they need to re-register, the aim is to do this automatically once I get past this hurdle.


texts:
What triggers inserts/updates on the enterprise_url_rewrite table in EE 1.13? We have a very large catalog (about 700,000 products) and about 500,000 of those do not have corresponding enterprise_url_rewrite entries, even though they do have a url_key set in catalog_product_entity_varchar.

(Note that enterprise_url_rewrite is not the same table as core_url_rewrite)

Enterprise Url Rewrite

+----------------+----------------------+------+-----+---------+----------------+
| Field          | Type                 | Null | Key | Default | Extra          |
+----------------+----------------------+------+-----+---------+----------------+
| url_rewrite_id | int(10) unsigned     | NO   | PRI | NULL    | auto_increment |
| request_path   | varchar(255)         | NO   | UNI | NULL    |                |
| target_path    | varchar(255)         | NO   |     | NULL    |                |
| is_system      | smallint(5) unsigned | NO   |     | NULL    |                |
| guid           | varchar(32)          | NO   |     | NULL    |                |
| identifier     | varchar(255)         | NO   | MUL | NULL    |                |
| inc            | int(10) unsigned     | NO   |     | 1       |                |
| value_id       | int(10) unsigned     | NO   | MUL | NULL    |                |
+----------------+----------------------+------+-----+---------+----------------+

Core Url Rewrite

+----------------+----------------------+------+-----+---------+----------------+
| Field          | Type                 | Null | Key | Default | Extra          |
+----------------+----------------------+------+-----+---------+----------------+
| url_rewrite_id | int(10) unsigned     | NO   | PRI | NULL    | auto_increment |
| store_id       | smallint(5) unsigned | NO   | MUL | 0       |                |
| id_path        | varchar(255)         | YES  | MUL | NULL    |                |
| request_path   | varchar(255)         | YES  | MUL | NULL    |                |
| target_path    | varchar(255)         | YES  | MUL | NULL    |                |
| is_system      | smallint(5) unsigned | YES  |     | 1       |                |
| options        | varchar(255)         | YES  |     | NULL    |                |
| description    | varchar(255)         | YES  |     | NULL    |                |
| category_id    | int(10) unsigned     | YES  | MUL | NULL    |                |
| product_id     | int(10) unsigned     | YES  | MUL | NULL    |                |
+----------------+----------------------+------+-----+---------+----------------+


texts:
I am just about to put a Magento site live and wondered what the best method is to protecting Magento's directories.

At the moment I have simply stuck in the following into my htaccess

RewriteRule ^(var) - [F,L]

This only protects the /var folder should I protect any others and is this the best way?


texts:
this question was already asked for magento 1 --> Update customer gender translations

could anyone help me to translate male/female in magento 2?


texts:
I have used the admin account one year before, now i have forgot the user credentials, then i run the following queries on the admin_user table in magneto2 db

UPDATE admin_user SET password = 'admin' WHERE username = 'admin';

and query was successful

and unlocked the account also using following -

php bin/magento admin:user:unlock admin

and got message that The user account "admin" has been unlocked

then i removed the cache using

sudo php bin/magento cache:clean

and removed unwanted sessions from 'admin_user_sessions' table

Now when i try to login in localhost/magneto2/admin ->

Username - admin
Password - admin

I am getting error You did not sign in correctly or your account is temporarily disabled.

What may be the error, Please help i am trying to login since 4-5 hours.

Thanks


texts:
How do I create a module to add a field to the administrator registry?

I have the following structure created:

app
    code
        local
            getResult
                LocalAdmin
                    Block
                        Permissions
                            Edit
                                Tab
                                    Main.php
                    etc
                        config.xml

config.xml:

<?xml version="1.0" encoding="UTF-8"?>
<config>
    <modules>
        <getResult_LocalAdmin>
            <version>0.0.1</version>
        </getResult_LocalAdmin>
    </modules>
    <global>
        <helpers>
            <getResult_LocalAdmin>
                <class>Mage_Core_Helper</class>
            </getResult_LocalAdmin>
        </helpers>
        <blocks>
            <getresult_localadmin>
                <class>getResult_LocalAdmin_Block</class>
            </getresult_localadmin>
            <adminhtml>
                <rewrite>
                    <permissions_user_edit_tab_main>getResult_LocalAdmin_Block_Adminhtml_Permissions_User_Edit_Tab_Main</permissions_user_edit_tab_main>
                </rewrite>
            </adminhtml>
        </blocks>
    </global>
</config>

Main.php:

<?php
class getResult_LocalAdmin_Block_Adminhtml_Permissions_User_Edit_Tab_Main
    extends Mage_Adminhtml_Block_Permissions_User_Edit_Tab_Main
{
      protected function _prepareForm() {

        parent::_prepareForm();
        $form = $this->getForm();

        $fieldset = $form->addFieldset('LDAP', array(
            'legend' => Mage::helper('adminhtml')->__('User Info'),
            'class' => 'fieldset-wide'
        ));

        $fieldset->addField('ldap_user', 'select', array(
            'name'      => 'is_active',
            'label'     => Mage::helper('adminhtml')->__('LDAP user'),
            'id'        => 'is_active',
            'title'     => Mage::helper('adminhtml')->__('LDAP user'),
            'class'     => 'input-select',
            'style'     => 'width: 80px',
            'options'   => array('1' => Mage::helper('adminhtml')->__('Yes'), '0' => Mage::helper('adminhtml')->__('No')),
        ));

        return $this;

  }

}

Currently this is so, nothing else happens ...


texts: Magento 2.15 after cache flush made .css changes disapeared

texts:
Any advise how is the best to adjust .css (colors), that it would stay permanently?

After editorials in .css and flushed cached all changes in .css disappeared. Any advise how I could keep them permanently?


texts: why my routes.xml is not working in admin or on front end view both

texts:
I donot understand why my routes.xml is not working , see this and tell me if you get something wrong in it . thats the code snippet .

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

module is perfectly installed i have checked it , folder structure for admin route is etc/adminhtml/routes.xml , for front router etc/frontend/routes.xml . and i am on developer mode i am seeing no error everything in code structure seems ok so what is going wrong in it . I have even tried different route id and front name .


texts: Magento 2.2 set/Deploy Production mode stuck at 'Static content deployment'

texts:
I have configured my magento 2.2.3 in server and checked the mode. It was "default". Then I tried to change the mode to production with this command,

php bin/magento deploy:mode:set production

After executing the above command, some repositories and proxy generation scripts are automatically executed and the "Compilation completed" message had shown.  After that "Starting deployment of static content" message showed and it still showing after 30-40 minutes. Is there anything to do to complete the step?

Note: I have enabled the css minify, js minify, merge and bundling from magento admin.

Server: Digital ocean with 8 GB RAM and 4 core processor.


texts: ajax Customer register how to continue the process?

texts:
In my custom controller I am checking if customer is logged in or not.If not redirects to customer login page .

public function customaddAction()
{

    if(!Mage::helper('customer')->isLoggedIn())
    {
        Mage::getSingleton('customer/session')->setBeforeAuthUrl(Mage::helper('core/url')->getCurrentUrl());
        Mage::app()->getFrontController()->getResponse()->setRedirect(Mage::getUrl('customer/account'));
        $this->_redirect('customer/account/login');

    }
    if(Mage::helper('customer')->isLoggedIn())
    {
     $sampleid=$this->getRequest()->getParam('sampleid');

      $collection=Mage::getSingleton('mymodule/mymodule')->customisesaved($sampleid);
    if($collection)
    {
    $this->_redirect('mymodule/mymodule/customshow');
    }
    else{
             $this->_redirectReferer();
        }
    }
}

This is my custom controller from where I am checking if customer is logged in or not.
But if the customer is new when he registers using ajax registration it redirect to MyAccount page but I want to continue my controller action.
Suggest me some solution.


texts: Magento 2 : Get ordered products in sales_order_after observer

texts:
Is their any way i can get the product names in sales_order_place_after observer ?
I get the order object but not sure how to fetch the products.
Any thoughts ?


texts: Trying to figure out how to view the storefront from the admin portal ?


texts: Set Magento Shipping Method on Product Level

texts:
I am looking for the settings or an extension for shipping. Let me explain.

I have products that are shipped by the post. Thats not the problem. I also have products that can only be picked up at the shop, this is the problem.

When I add a product that can only be picked up at the shop the shipping with post and pickup option are both displayed during checkout.

How can I limit the shipping methods for a particular product in the checkout to only display the pickup at the shop method?

I hope I explained my problem correctly.


texts:
I am trying to fetch review model by id for this i am using factory method below code

     public function __construct(
        \Magento\Framework\App\Action\Context $context,
        \Magento\Review\Model\ReviewFactory $reviewFactory)
    {
        $this->reviewFactory = $reviewFactory;
        return parent::__construct($context);
    }

public function execute()
    {
        // parse GET parameters
        $id = $this->getRequest()->getParam('review_id');

            $review = $this->reviewFactory->create()->load($id);
            die($review->getId);
}

but not getting anything. it just getting loading


texts: I need change the pagination url structure, p=2 to page/2

texts:
I need to change the structure of the pagination's url to be more friendly,

I have tried do it using .htaccess, and I have tested the RewriteRule on online tools. but in my website it always give me a 404 error

RewriteRule ^(.*)/page/([1-9]+)$ /$1?p=$2 [QSA,L]

I can't  found solutions for this issue


texts: Magento 2 A customer website ID must be specified when using the website scope Error

texts:
I am getting this error while loading customer by mail A customer website ID must be specified when using the website scope.

Here is my code:

$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
    $storeManager = $objectManager->get('\Magento\Store\Model\StoreManagerInterface');

    $CustomerModel = $objectManager->create('Magento\Customer\Model\Customer');
    $CustomerModel->setStoreId($storeManager->getStore()->getStoreId());
    //$this->setWebsiteId($storeManager->getStore()->getWebsiteId());
    $CustomerModel->setWebsiteId( $storeManager->getWebsite()->getWebsiteId());


texts: How to reposition search bar kitchen store theme magento

texts:
Hi I'm hoping someone will be able to tell me how to reposition the search bar in this template http://dev-mdl.net/kitchen_store/magento/.

I want to move it into the position that the 'Default welcome msg!' is in currently.


texts: Load Page Without Cache, Without Flushing The Cache in Magento 2

texts:
I am just curious to know if we can execute the page without cache, without flushing the actual cache like other framework do eg :

in Symfony if we add /app_dev.php in URL, it load the respective template without cache which help the developer to check live changes.

So is there any way in Magento 2 to load a page without cache eg: if we execute www.example.com/home?no_cache=1 ? Here no_cache=1 is just an example parameter. It will help the developer to check live changes on the page, because flushing the cache again and again is a time consuming and not a feasible way to flush cache on production mode. Sometime we have to make changes on production mode so it might be helpful to pass a param on url to execute the specific page without cache. How do I achieve this with Magento?


texts: Magento Magmi (Configurable product) unable to import type column

texts:
Hi I have been stuck on this for hours.

Magmi unable to import my products with the column "type". It throws an error on my configurable row with this:

  SKU GRACCIOZA-PRESTIGE-MAT-new - 1 SQLSTATE[23000]: Integrity
  constraint violation: 1048 Column 'attribute_id' cannot be null -

I am pretty certain it's the type column because I changed it to "_type" and it would go through but the product imported is not set as a configurable product type, which is the whole point. I am trying to set color and size attributes to the configurable product.

Here is a shorter snippet of my csv:

attribute_set, type, sku, configurable_attributes, color, size, name
Color_Size, simple, GRACCIOZA-PRESTIGE-MAT-80X120-ST, "color,size", Stone, 80cmx120, Graccioza Prestige Bath mat

Color_Size, configurable, GRACCIOZA-PRESTIGE-MAT-new, "color,size", Graccioza Prestige Bath mat

The first row is the column names, second is the simple product that I am defining and the third row is the configurable product that I am trying to make it work. The simple products are imported perfectly. I've got the configurable plugin installed for magmi already.

Please help guys. I have over 700 products that I need uploaded.


texts:
I am trying to get a list of colors for the simple products in my store without showing the disabled ones. My function gives me all of the colors of products that are disabled or not.

    public function getSimpleColors($productId){

    $product = Mage::getModel('catalog/product')->load($productId);
    $configurable= Mage::getModel('catalog/product_type_configurable')->setProduct($product);
    $simpleCollection = $configurable->getUsedProductCollection()->addAttributeToSelect('*')->addFilterByRequiredOptions();
    $colors=array();

    foreach($simpleCollection as $simpleProduct){
        $colors[]= $simpleProduct->getAttributeText('color');
    }

    $colors=array_unique($colors);
    return $colors;

}


texts: Redirect to custom module controller and render themplate from observer without changing my current browser Url

texts:
I had written a observer to trap product view page event and it is working fine.Now i just want to load block from custom module controller without changing my current browser url so for that i am calling initForward() function with my custom module details but it is not working .The code for the try out is given below.

public function getProductView(Varien_Event_Observer $observer)
    {
          $resp = $observer->getEvent()->getFront()->getAction()->getRequest();
          $requestUri = $resp->getRequestString();
           if ($resp->getActionName() == 'noRoute'){
              $request = Mage::app()->getRequest();
              $request->initForward()
                ->setControllerName('index')
                ->setModuleName('customproduct')
                ->setActionName('index')
                ->setDispatched(false);
              return false;

           }
   }


texts: UPS minimum shipping weight not being used correctly

texts:
According to the CE documentation for the UPS shipping method, the Minimum Package Weight indicates that for total order weights below this amount, the shipping option becomes unavailable.

However, I found that setting the minimum weight does not behave that way. After looking at the UPS carrier model, I found this method:

# Mage_Usa_Model_Shipping_Carrier_Ups::_getCorrectWeight
protected function _getCorrectWeight($weight)
{
    $minWeight = $this->getConfigData('min_package_weight');

    if($weight < $minWeight){
        $weight = $minWeight;
    }

    //rounds a number to one significant figure
    $weight = ceil($weight*10) / 10;

    return $weight;
}

So clearly the weight is adjusted to meet the minimum, and nowhere else in the model do I find the weight being checked against the minimum. I'm guessing the documentation is wrong?

I can extend the model to meet my needs, but I'm concerned about collateral damage in other places that I can't think of. Any thoughts?


texts: Magento - How to restrict customer can buy only one product for specific category

texts:
I am trying to add free product for specific category, Customer can add only one free product in the cart for specific category. I tried to add shopping cart price rule as

Condition: If total quantity  less than  1  for a subselection of items in cart matching ALL  of these conditions:
    Category  is  5

Action: If ALL  of these conditions are TRUE :
    Category  is  5

But it doesn't work.

And I tried another way by custom coding:
get total items by category, if it is greater than count of 1, show haserror message in cart page.
This also not working, I don't know exactly where to put this calculation.

Any idea?
Help me.


texts:
vendor/magento/module-sales/etc/events.xml

<event name="sales_order_save_after">
    <observer name="sales_order_save_after" instance="Magento\Sales\Observer\SalesOrderSaveAfter" />
</event>

vendor/magento/module-sales/Observer/SalesOrderSaveAfter.php

 namespace Magento\Sales\Observer;

use Magento\Framework\App\State;
use Magento\Framework\Event\Observer;
use Magento\Framework\Event\ObserverInterface;
use Magento\Sales\Api\Data\OrderPaymentInterface;
use Magento\Sales\Model\ResourceModel\Order\Payment\Collection;
use Psr\Log\LoggerInterface as PsrLogger;

    class SalesOrderSaveAfter implements ObserverInterface
    {
        /**
        * @var $_logger
        */
        private $_logger;

        /**
        * @var \Magento\Framework\HTTP\Client\Curl
        */
        protected $_curl;

    /**
     * ConvertAdditionalInfoObserver constructor.
     * @param State $state
     * @param \Magento\Framework\HTTP\Client\Curl $curl
     */
    public function __construct(
        PsrLogger $logger,
        State $state,
        \Magento\Framework\HTTP\Client\Curl $curl
    )
    {
        $this->state = $state;
        $this->_curl = $curl;
        $this->_logger = $logger;
    }

    public function execute(\Magento\Framework\Event\Observer $observer)
    {
        $ObserverInterface = $observer->getEvent()->getOrder(); //Get customer object

        if($ObserverInterface->getId()){
           echo $ObserverInterface->getId()."
";
        }
        $OldStatus=$ObserverInterface->getOrigData('status');
        $NewStatus=$ObserverInterface->getStatus();
        echo "OldStatus: ".$OldStatus."
";
        echo "NewStatus: ".$NewStatus."
";
    }

}

Output

I am trying to get order status in sales_order_save_after observer, In the output am getting the result but it showing an interceptor error. what it means? how can i solve this issue??. Thanks in advance for your valuabe answers.


texts: How to update Shipping rates using Ajax when cart item is deleted on Checkout-Cart page?

texts: My Shipping rates are calculated based on item present in cart and now on deletion of item on Checkout/Cart page, I need to update the Shipping rates. As of now, Remove Item on Checkout/Cart page updates the total section but does not refresh the shipping rates. It would be of great help if someone can guide me on how to trigger get shipping rates once item is deleted from cart using Ajax.


texts: Magento Connect Authorisation credentials

texts: I am currently in the process of setting up a VM (using Vagrant) with Magento 2, however a step of the process requires me to generate a public and private key for Magento. I am trying to follow the instructions as provided by Magento themselves here, however I am stuck at the step "4. At the top of the page, click Connect", since there is no "Connect" link/button. I'm unable to find anywhere else in my account where I can generate these keys and am unable to contact Magento Support since I am only using Community edition for now. Can anyone assist?


texts: Translation lookup keys are prefixed by module name

texts:
I'm in the process of writing my first module, which is also my first multi-language module. I've created the CSV files for the translation and fed them with an array of sentences I use using

$this->__('...')

in my code. Example:

"Wrong parameters were passed to this function.","Mauvais paramètres ont été passés à cette fonction."

However, trying the code in my development system using multiple URLs (and therefor languages) to access the message in different languages, I came across a strange phenomenon:

First, the text was not translated. I debugged the code and followed the

$this->__('Wrong parameters were passed to this function.')

call down to the lower levels, all the way to

app/code/core/Mage/Core/Model/Translate.php

in function

translate($args)

on line 387. The translatable text is passed into there. Then, in line 398, the lookup key gets prefixed by the module name, to look like this:

Companyname_Modulename::Wrong parameters were passed to this function.

Naturally, this text cannot be found in the translation table loaded from the CSV file mentioned earlier. The lookup key is missing the company and module name prefix.

Why is it prefixed by the module name? How can I prevent it? I'd prefer not to prefix the texts by the module name, as the module name already is the filename of the CSV file. All tutorials I found on the web never even mentioned this. All expect the key in the translation file to be exactly the parameter to $this->('...').

Edit 1: Our translation files reside as files in our module directory and are symlinked under the names Companyname_Modulename.csv into all applicable language directories (app/locale/de_DE,app/locale/en_US, app/locale/fr_FR).

The translation file configuration in our XML configuration:

    <translate>
        <modules>
            <Companyname_Modulename>
                <files>
                    <default>Companyname_Modulename.csv</default>
                </files>
            </Companyname_Modulename>
        </modules>
    </translate>


texts:
when i add mycustom in product view get error

  Call to a member function getName() on null in
  ..\magento\catalog\view\frontend\templates\product\view\opengraph\general.phtml
  on line 13

any help?


texts: Checkout loading image not disappear after load all data and after place order not redirecting to sucess page in magento2

texts:
ISSUE-1

Magento2 checkout module work on knockout js so when we go to checkout page it's default behaviour is first showing us a Loading image at that time in backend magento fetch all needed data  and when all data load it's show in checkout page and Loading image is disappear.

But in my case when all data is fetched and showing in checkout step but Loading image still there so user can't edit/update data and not proceed further means whole checkout system not work and can't place order.

So I checked onepage.phtml file on app/design/frontend/package_name/theme_name/Magento_Checkout/templates path and I got Loading image code. code is below.

        <img src="<?php  echo $block->getViewFileUrl('images/loader-1.gif'); ?>"
             alt="<?php  echo __('Loading...'); ?>"
             style="position: absolute;">

Above code is responsible for Loading image but now I can't find that why this div is not display:none when all data show in page?

ISSUE-2

For further checkout process I comment Loading-image div for now so I can change/edit/update all data and go to next step for payment and shipping. fill all data and submit place order button so again I can only see Loading image and not redirect to Success page. I check in admin/sales that order is placed successfully but still in frontend Loading image is showing not redirect to Success page.


texts:
In my exemple, i have just one function and I call it in phtml on passing the name function as param require(['jquery', 'module'], function($, hello) and it works fine.

Now if i want to return 10 functions for exemple, what is the best way to do that.
Did deps attribute deps: ["js/go"]is correct for that instead of map
I wonder if there is not a way to implemente some js libraire, ie we have to put the lib js content in a file js then we declare it in a some module then the lib content will automatically be rendered without calling all functions one by one.

app/code/Vendor/Module/view/frontend/requirejs-config.js

var config = {
    map: {
        '*': {
            module: 'Vendor_module/js/go',
        }
    }
};

app/code/Vendor/Module/view/frontend/web/js/go.js

define(['jquery'], function($){
   "use strict";
       return function hello()
       {
           alert('hello from function');
       }

       public function f1()
       {
           ...
       }
       public function f2()
       {
           ...
       }
       ...
});

app/code/Vendor/Module/view/frontend/templates/file.phtml

<script type="text/javascript">
    require(['jquery', 'module'], function($, hello) {
        hello();
    });
</script>


texts:
I change the URL Key of one of my product in my magento store when I try to access the old one, I can still access it. How can I delete the duplicate one?

Thanks!

example:

http://mymagentostore/old-product

changed to

http://mymagentostore/new-product

I can still access the /old-product


texts: How to add category on the checkout header on magento 2

texts:
I was able to add my header on the checkout page and payment page by adding this code in Magento_checkout/layput/checkout_index_index.xml :

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  layout="1column"
  xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <move element="logo" destination="header-wrapper"/>
    </body>
</page>

My header appears without category. I tried to add my cateogories like this, but is not working:

<?xml version="1.0"?>

<page layout="checkout" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <referenceContainer name="page.wrapper">
            <container name="header.container" as="header_container" label="Page Header Container" htmlTag="header" htmlClass="page-header" before="main.content"/>
            <container name="page.top" as="page_top" label="After Page Header" after="header.container" />
            <container name="footer-container" as="footer" before="before.body.end" label="Page Footer Container" htmlTag="footer" htmlClass="page-footer"/>
        </referenceContainer>
        <move element="logo" destination="header-wrapper" before="-"/>
    </body>
</page>

Does anyone know how can i do this?


texts: Magento2 : Can I call same plugin multiple time?

texts:
I have used plugin in one extension

<type name="Magento\Checkout\Model\DefaultConfigProvider">
    <plugin name="Amasty_Checkout::DefaultConfigProvider" type="Amasty\Checkout\Plugin\DefaultConfigProvider" />
</type>

public function afterGetConfig(\Magento\Checkout\Model\DefaultConfigProvider $subject, $config)
    {
        if (!in_array('amasty_checkout', $this->layout->getUpdate()->getHandles()))
            return $config;

        $quote = $this->checkoutSession->getQuote();

        foreach ($config['quoteItemData'] as &$item) {
            $additionalConfig = $this->itemHelper->getItemOptionsConfig($quote, $item['item_id']);

            if ($this->moduleManager->isEnabled(self::AMASTY_STOCKSTATUS_MODULE_NAMESPACE)) {
                $item['amstockstatus'] = $this->itemHelper->getItemCustomStockStatus($quote, $item['item_id']);
            }

            if (!empty($additionalConfig)) {
                $item['amcheckout'] = $additionalConfig;
            }
        }

        return $config;
    }

Now I want to show attribute and add url to product in checkout sidebar http://prntscr.com/jape88
for that i have to use

public function afterGetConfig(
        \Magento\Checkout\Model\DefaultConfigProvider $subject,
        array $result
    ) {
        $items = $result['totalsData']['items'];
        foreach ($items as $index => $item) {
            $quoteItem = $this->checkoutSession->getQuote()->getItemById($item['item_id']);
            $result['quoteItemData'][$index]['manufacturer'] = $quoteItem->getProduct()->getAttributeText('manufacturer');
        }
        return $result;
    }

How can I merge second one with first? Or should I create saperate module for this?


texts: Tax not added to the base product price in cart and when placing order

texts:
I am using magento 1.9.0.1 CE

I have imported products with prices that does not include tax.

And on the frontend I would like to display prices with tax added.

Until now I was able to make it work,

The prices on the frontend,
I mean home page, category page, product page are displayed correctly with the tax added to the base product price.

When added to the cart, also with the correct price (with tax).

But when I want to go to the page of cart or place the order, the price of the product is without tax, global price is without tax. And that is incorrect.

It is French site, the tax is 20%, the settings in backend are like this :
Configuration / Sales / Tax

Calculation Settings

Tax Calculation Method Based On : Unit Price / when setting other same result
Tax Calculation Based ON : Shipping Origin / set to France / Paris
Catalog Prices : Excluding Tax / if changed prices on front end without tax
Shipping Prices : Excluding Tax
Apply Tax On : Custom price if available
Enable Cross Border Trade : Yes

Default Tax Destination Calculation

Default Country : France
Default State : *
Default Post Code : *

Price Display Settings

Display Product Prices In Catalog : Including Tax / if changed without tax on frontend
Display Shipping Prices : Including Tax

Shopping Cart Display Settings

Display Prices : Including and Excluding Tax / strange thing is that both prices are the same (without tax)
Display Subtotal : Including and Excluding Tax / both prices are the same (without tax)
Display Shipping Amount : Including Tax
Include Tax In Grand Total : Yes

Orders, Invoices, Credit Memos Display Settings

Display Prices : Including Tax
Display Subtotal : Including Tax
Display Shipping Amount : Including Tax
Include Tax In Grand Total : Yes

Enable FPT : NO

I am starting to think that it could problem of the core functionality of Magento, because it almost works...

Thanks in advance for any solution...


texts: Magento 2 Save custom entity primary key

texts:
Before all I am using Magento 2.1.2, with a custom entity.

I am trying to save multiple row in a flat table that I have created with
$connection->insertMultiple($this->getMainTable(), $answers);

For that I am using the following code to populate missing row lines

$dataUserAnswer = $this->dataUserAnswerFactory->create();

$this->dataObjectHelper->populateWithArray(
    $dataUserAnswer,
    $answers,
    'XXX\YYY\Api\Data\UserAnswerInterface'
);
$userAnswers[] = $this->dataObjectProcessor->buildOutputDataArray(
    $dataUserAnswer,
    'XXX\YYY\Api\Data\UserAnswerInterface'
);

With the classes Magento\Framework\Api\DataObjectHelper and Magento\Framework\Reflection\DataObjectProcessor

Here is the result I get

[0] => array(7) {
    ["id"] => NULL
    ["poll_question_id"] => int(1)
    ["poll_answer_id"] => string(1) "1"
    ["value"] => string(0) ""
    ["customer_id"] => string(1) "1"
    ["created_at"] => NULL
    ["updated_at"] => NULL
}

Which is nearly what I want except for the id entry.
In my Api/Data/Interface I declare a constant const ID = 'id'; with getter and setter getId() / setId($id).
I took a look at Customer module to have an exemple to build my entity.
Magento best practice is to have the primary key as entity_id.

I understand that buildOutputDataArray use Reflexion class to retrive getter and then deduce entity fields to fill missing fields.

My questions are :
 - What is the best pratice for API interface constante / setter / getter ? id ? entity_id ?
 - If I am taking a look at Customerentity, primary key is entity_id but constante is id. Do I miss something ? Am I doing this the wrong way ?

Hope my problem is clear.
Thank you !


texts:
i tried replacing my vendor folder to check for a error. but i'm getting

  PHP Fatal error:  Uncaught Error: Cannot instantiate interface
  Magento\Framework\App\Config\ConfigSourceInterface in
  /home/rkhomeappliances/public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:73

can anyone help me with this ?


texts: Using the Add Option to add numerous fields causes error and you can not save the product - Magento2

texts: Whenever I am adding a product in a Magento 2 framework, after so many fields I end up getting an error see below: and I have to refresh the page and start over so I can save the product.


texts: Magento2: 3columns Layout only renders 2columns-right

texts:
I have the following layout in Magento2:

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="3columns" xsi:noNamespaceSchemaLocation="../../../../../../../lib/internal/Magento/Framework/View/Layout/etc/page_configuration.xsd">
    <body>
         <referenceContainer name="main">
            <block class="Vendor\MyModule\Block\MyBlock" name="my_block" template="Vendor_MyModule::my-block.phtml"/>
        </referenceContainer>
    </body>
</page>

Unfortunately this only renders a 2columns-right layout in the frontend. I am really wondering what I have done wrong. Unfortunately there are no examples of a 3 columns layout in the core in order to check. But if I open 3columns.xml under module-theme/view/frontend/page_layout/3columns.xml I only see the following:

<?xml version="1.0"?>
<layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_layout.xsd">
    <update handle="2columns-left"/>
</layout>

So there is no third column?


texts: Magento 2.2.2 error: The configuration file has changed. Run app:config:import or setup:upgrade command to synchronize configuration

texts:
I am getting this error when attempting to install Magento locally:

  The configuration file has changed. Run app:config:import or
  setup:upgrade command to synchronize configuration.

When running "app:config:import" nothing is resolved, when running "setup:upgrade" it runs and then fails towards the end with the following reason:

  Import failed: Hash has not been saved.

Does anyone know how to fix this issue? I am running in my local environment in "Default" mode.


texts:
I installed my site and in theme that i use it for my website in home page i can show latest product but without price and i want to show price of each product in home page.

So i want to know what steps i should take to do this?

What things i should know for this? Should i know about writing modules?

Please tell me about the steps that i should take for it.


texts:
I would like to add custom tab in admin panel for product edit page and display all products in table, just like in tab "Recent products" or "Up-sells".

After that, I want to get selected products and display them on product page.

I'm new to Magento, so if anyone knows how to do this I would be very thankful.


texts:
I've recently move my Magento shop from one server to another, and since then I haven't had else but problems. I can't blame the host because they are running on professional servers with CentOS, where I used to run it from a Mac Mini with MAMP Pro installed.

But the system doesn't send out mails, so I figured I would try to install the ASchroder SMTP Pro plugin for sending out mails through SMTP instead. But I can't install it from the Magento Connect Manager.

When I paste the install-path to the downloader, and press 'Install' it's only output is:

  Connection Error try again later.

I've looked at my settings, file permissions and such, but nothing has worked so far. My Magento Connect Manager settings is as following:

As you can see, I can't select Local Filesystem.

Can anybody help me with either the mail sending problems or the Connect Manager installation problems?


texts: Javascript validation for international char-sets

texts:
I have a several store views for different languages and we're having some trouble with the new customer sign up forms. We have added the character set init statement for our database as follows:

        <default_setup>
            <connection>
                <host><![CDATA[127.0.0.1]]></host>
                <username><![CDATA[root]]></username>
                <password><![CDATA[pass]]></password>
                <dbname><![CDATA[mage]]></dbname>

                <!-- important for international char-sets -->
                <initStatements><![CDATA[SET NAMES utf8]]></initStatements>

                <model><![CDATA[mysql4]]></model>
                <type><![CDATA[pdo_mysql]]></type>
                <pdoType><![CDATA[]]></pdoType>
                <active>1</active>
            </connection>
        </default_setup>

And almost everything has worked flawlessly until today. We discovered that when a new customer tries to signup from the front end using special chars in their name the javascript validation does not allow them to proceed. The validate-alpha class only appears to expect standard a-zA-Z characters and marks anything else as invalid. If we remove the class everything works great, but of course we do want to maintain some sort of validation on the field. I'm kind of surprised this has been overlooked by the Magento team.

The obvious solution seems to be to modify the validation class to also accept international characters (it doesn't look like the default library includes a method for this), but I'm curious if I'm overlooking something else that is built into the validation library.


texts: Does removing commented code speed up a Magento site?

texts:
In most (if not all) Magento files, there is commented disclaimers:

/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE_AFL.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@magento.com so we can send you a copy immediately.
*
*/

There is also code in some themes that are commented out or add comments:

 // echo "PickupAtStore.days=[" . implode(',', $data) . "]\r\n</script>";

or

// Following code does X

I know that php will not execute it, but I'm not sure if by removing all of these unnecessary comments will speed up a website?


texts: sql - joinLeft collection sales_flat_order_grid

texts:
I have this SQL query: select main_table.*, (select nexway_status from nexway_order where order_id=main_table.entity_id ORDER BY id DESC LIMIT 1) as nexway_status from sales_flat_order_grid as main_table;

I need a collection for show the rows in grid orders..

I try this:

    $collection = Mage::getResourceModel($this->_getCollectionClass());
    $collection
        ->getSelect()
        ->joinLeft(
            array('n'=> 'nexway_order'),
            'n.order_id = main_table.entity_id',
            array('n.nexway_status')
        );
    $this->setCollection($collection);

But in that case it ignores the subselect, and I need it to do exactly what the above SQL query does, pick up a field with subselect..

Can you help me?

Thanks


texts: Image Slider not working only on Magento Frontend Homepage

texts:
I am trying to solve an issue that I do not even know when started. My general frontend template has a image slides on the right column. All internal pages of my website show the image slider without problems, however the homepage hides the slides. If you use the chrome inspection, all the elements are there, but not visible. Any idea of how to solve this?

Homepage: http://lojaanalitica.com.br/

Example of internal page: http://lojaanalitica.com.br/combos.html


texts:
I have created mobile number as customer attribute by this code

    $customerSetup -> addAttribute(\Magento\Customer\Model\Customer::ENTITY,
        'mobile',
        [
        'label' => 'Mobile Number',
        'system' => 0,
        'position' => 100,
        'sort_order' =>100,
        'visible' =>  true,
        'note' => 'this item used for login',

                    'type' => 'varchar',
                    'input' => 'text',

        ]
        );

    $customerSetup -> getEavConfig() -> getAttribute('customer', 'mobile')->setData('is_user_defined',1)->setData('is_required',1)->setData('default_value','')->setData('used_in_forms', ['adminhtml_customer', 'checkout_register', 'customer_account_create', 'customer_account_edit', 'adminhtml_checkout']) -> save();

But I cannot see the mobile number in checkout.

Where am I going wrong ?


texts: How to create Admin-User for (Role) specific category-only access in magento2, It Possible or Not?

texts:
I have Created two-stores,

And I have Add two Root-Category ,

But I Need to Create Two AdminUser for  make(Role to) access for specific one-Store Category.

Example

(AdminUser A)-> Specific access only Category A

(AdminUser B)-> Specific access only Category B

It's Possible or Not in magento2 application?


texts: Magento In Subdirectory, Cookies being cleared

texts:
I've got Magento installed in the sub-directory /shop/ and whenever I go to the root directory my cookies get cleared and the basket is empty.

I believe this is because I've got the Cookie Path set to /shop/, but if I remove that or set it to / then I can no longer login to the admin area.

Any ideas? Running Magento 1.9.3.2.


texts: Does Magento 1.9 use redis cache for showing data in getCart?

texts:
So,  I am using Magento 1.9 in our project. I have enabled Redis in magento and it is workingbperfectly fine.

I wanted to know if Magento 1.9 uses Redis cache for showing the data in cart?

If yes then how does it store the data in the Redis cache and read from it?


texts: How can i send and collect data from external sources in magento

texts:
i'm pretty beginners in magento. i'm trying to building a test module myself .i need to know how can i send data from magento  to external sources for verification(suppose system data) and collect verified data in return . as per i get i have to use curl request for sending data to external sources.
is there any better approach for sending and collecting data from external sources in magento

public function Mytestmethod($data)
{
    $cURL = curl_init();
    curl_setopt($cURL, CURLOPT_URL, "http://www.sample.com/magento/connection/Final/external.php?order_id=<?php echo $incrementid ?>");
    curl_setopt($cURL, CURLOPT_HEADER, 0);
    curl_exec($cURL);
    curl_close($cURL);
}


texts: Order admin grid by values in another collection

texts:
I have a module, in this there is a field which contains the id from customer table.

In my admin grid listing I show the name of the customer, not the id. When i short this grid by the field, the short order which is considerer is by the id, not the name.

There is a way of short this grid by name of the customer?

Field in the listing admin grid

 <column name="specifier" class="vendor\module\Ui\Component\Listing\Column\Specifier">
        <argument name="data" xsi:type="array">
            <item name="config" xsi:type="array">
                <item name="editor" xsi:type="array">
                    <item name="editorType" xsi:type="string">text</item>
                </item>
                <item name="filter" xsi:type="string">textRange</item>
                <item name="sorting" xsi:type="string">desc</item>
                <item name="label" xsi:type="string" translate="true">Especificador</item>
            </item>
        </argument>
    </column>

Function that changes the value from id to name. vendor\module\Ui\Component\Listing\Column\Specifier

public function prepareDataSource(array $dataSource)
    {
        $i = 0;

        while ($i < count($dataSource['data']['items'])) {

            if (isset($dataSource['data']['items'][$i]['specifier'])) {
                $customer = $this->_customerCollectionFactory->getItemById($dataSource['data']['items'][$i]['specifier']);

                if ($customer) {
                    $dataSource['data']['items'][$i]['specifier'] = $customer->getData('firstname') . ' ' . $customer->getData('lastname');
                } else {
                    $dataSource['data']['items'][$i]['specifier'] = 'Especificador não encontrado   ';
                }
            }
            $i = $i + 1;
        }

        return $dataSource;
    }

Here a exemplo, "BB" came first of "AAAA" because the id came first.


texts: Migration: How can I map own product attributes and attributesets in Magento 2?

texts:
I tried several migration ways for products from Magento 1 to Magento 2:

Data-Migration-Tool by Magento
Including mapping but only for documents (tables) and fields (table columns). Another problem is it doesn't migrate utf-8.

Migraton-Tool by Ubertheme
Nice tool! It doesn't completely overwrite all like Migration-Tool by Magento. But if I want to map Magento1-products to Magento2-products it doesn't know my own attributes and attribute sets I added to Magento2. So mapping doesn't work.

own CSV Converter for Product Import in Admin
Because the tools don't seem to allow mapping to own attributes and attribute sets so I tried to build own CSV converter for Magento1-CSV files to compatible Magento2-CSV files for Product Import in System->Import in admin in Magento2. But I saw the CSV structure of Magento CSV-files is too unstructured to build a converter.

So anybody has an idea how can I map old magento1-products to own magento2-attributes and attribute sets?
I have over a thousand products to migrate so manual setting of attributes and attribute sets for every product isn't an option.


texts: Apptha Marketplace vs Webkul Mangeto Marketplace. Which one is better UI/UX support, cost?

texts:
Have any of you guys used any of these extensions for marketplace website for CE? Or would you just recommend going with Magento Commerce?

I'm trying to setup MVP, proof of concept marketplace website with prob 5~7 vendors  with 50 products each from vendors.

I was wondering how long it will take to build the website and what type of add-on extensions you recommend to purchase (necessary extensions)

Please share your previous experiences!


texts: How to give approval for product in admin dashboard?

texts: I have two administrator with different roles. I need admin who has all permissions to approve products added by another admin with low priority.


texts:
The Configure buttons for all the paypal options are disabled in my admin panel.  I have checked all website / store scopes and they are grayed out for all.

I have verified my version of php 7.0.12 has all required items (iconv, mhash, etc - I went though the list on the magento sys reqs page).

The site is running on ssl.

Does anyone have any ideas?


texts:
Efficient way to get Image Url in magento?

Currently i am using these method

$my_product = Mage::getModel('catalog/product')->load($value['entity_id']);
$my_product_img = $my_product->getImageUrl();

I need a efficient way to load the image url in magento as the above query uses 2 many space and unused queries.

Already tried

$my_product_img = Mage::getModel('catalog/product_media_config')->getMediaUrl($my_product->getSmallImage());


texts: Disable purchase of online e-gift card upon code selection

texts:
Dears, how can I disable the purchase of Online e-gift card once the end user selects the method of payment as: CASH ON DELIVERY?
 I don't want to let the users purchase an Online E-GIFT card and make the payment upon delivery.


texts: How to change the review tab title and content in product page?

texts:
I'm creating a plugin that will extend the review tab title and content in the frontend. So far I can display some text in the product details page using this in my layout file in app\design\frontend\base\default\layout\my\reviewcontainer.xml:

<?xml version="1.0" encoding="UTF-8"?>
<layout version="1.0.0">
    <catalog_product_view>
        <reference name="product.info.additional">
            <block type="reviewcontainer/tabs" name="product.info.tabs" as="info_tabs">
                <action method="setTemplate">
                    <template>my/reviewcontainer/tabs.phtml</template>
                </action>
            </block>
        </reference>
    </catalog_product_view>
</layout>

Which calls the template app\design\frontend\base\default\template\my\reviewcontainer\tabs.phtml which basically has and outputs:

Hey there!

Just bellow the
..

How can I edit this script so that the above template changes the review tab title and content instead?


texts: Cant see more than one item in custom menu

texts:
I just started to use Magento and tried a few tutorials and have been reading documentation but now im stuck at making a custom menu with multiple items.

<config>
  <menu>
      <menuitem translate="title" module="test_helloworld">
        <title>Test</title>
        <sort_order>1</sort_order>
        <children>
            <item>
                <title>Index</title>
                <sort_order>1</sort_order>
                <action>helloworld/index</action>
            </item>
           <item>
                <title>Exit</title>
                <sort_order>2</sort_order>
                <action>helloworld/Exit</action>
            </item>
        </children>
    </menuitem>
  </menu>
</config>

The action is working and its opening desired page, but i have the problem with displaying first item <title>Index</title> that is in this code. If i remove Exit then it displays index. What am i doing wrong here do i have to do something in config.xml (didnt put permisions yet) as i am learning so only use admin account.


texts: Difference between Share Customer Accounts per website and global

texts:
I am new to Magento. working on magento 1.7 I need to implement DOB in registration form for that I went to Configuration-> Customer Configuration ->Name and Address Options and selected Show Date of Birth to optional. but it gave me error

  Cannot share customer accounts globally because some customer accounts
  with the same emails exist on multiple websites and cannot be merged.

I changed Share Customer Accounts  to Per Website form Global. its a multi store so my question is what effects it will have on my multi store from changing global to per website ? any login issues or multiple email issue.
Any help will be appreciated


texts: Magento attribute change backend_type from varchar to text

texts:
My product attribute exceeded the 255 character limit of varchar, so I came across the solution to change its backend_type to text.

Should this operation be considered safe (in the terms that it will not break anything, or leave garbage in the database)?


texts: How to change the 1 column layout in wish list page in magento 2

texts: I want to show the 1 column layout on the wishlist page only so that the left sidebar will hide. I have tried   <update handle="1column.xml"/> inside the wishlist_index_index.xml file but change is not reflecting.


texts:
How to remove "recently order" in customer dashboard ?

I tried this :

<referenceBlock name="sale.reorder.sidebar" remove="true"/>

but nothing happened


texts:
I have a pair of clients who are both Magento 1 to Magento 2 conversions. After going to Magento 2 and dropping their media in place, if they're running 2.2.7 or 2.2.8, the images look like they've had some sort of corruption take place.

If you look at the image provided, that's what happened. This happens to JPEG images in addition to PNG. Prior to the upgrade to 2.2.8, the client did not see this happening. Does not affect all images, and only some but only started looking this way after upgrading to 2.2.8. Additionally, using the backup I took prior to the upgrade, which was 2.2.5, I did not see the odd white borders around the product itself. When I upgraded to 2.2.8 as a test, it happened again.

A similar issue has happened to another client who I took directly to 2.2.8 from Magento 1.7.

I have tried recreating the products with their images through the API, which is how they were made before but the issue persists. I'd lean towards source images having an issue but why would they work properly on 2.2.5 then look this way on 2.2.8? I have tried catalog:images:resize multiple times, but this had no effect.

Is there any kind of solution to this? Did 2.2.7 make some sort of change to image processing?


texts: Programatically update store name and website name

texts: I want edit store name and website name programatically, how it is possible?


texts: Popup notification when leaving cart while there are items in it

texts:
Is there any way to create a popup notification when a customer leaves the website while there are still items in the cart?

It should contain message like: There are still items in your cart, are you sure you want to leave?

I've tried to search for any extension to realise this, but i couldn't found any.

Got any ideas? Can this be achieved by adding a code onto all pages?

Thanks in advance.


texts:
i have a custom option in my module such as name stockmessages_min_qty. I want to if the field has no data (empty field label text) my codes make something. I try in my block.php file:
if(Mage::getStoreConfig('stockmessages/option/stockmessages_min_qty') == empty) {
    echo str_replace('%s', intval($quantity) ,$cartmess);
    }

The line with == empty, or == null,or == 0, do nothing in my frontend . What i have to do for use the option with Empty value ?


texts: Display message in pop up instead of redirecting to another page

texts:
once registered user click on button in view page we are creating new product and displaying that information in pop up as below

button code : [ full code : https://pastebin.com/da60SSWH ]

    <button  onclick="return setproductlogin(\'<?php echo

Mage::registry("current_product")->getId()?>\', event);setrequestlogin();"

  id="submit-editorApply-{{rand}}">save design</button>

image url script [ full code : https://pastebin.com/19K43TyR ]

saveImageDefaultUrl   : '<?php echo Mage::helper('aitcg')-

>getSecureUnsecureUrl(Mage::getUrl('aitcg/ajax/createImageDefault',array('id' =>

 Mage::registry("current_product")->getId()))); ?>',

but if guest click on same button, its creating new product , but its redirecting to another page , but we want to display that message in pop up....   [ controllers : https://pastebin.com/9wsgufJX ]


texts: How to create a website, store and storeview using data patch in magento2.4.2

texts:
I want to create a website, store and storeview using data patch in magento2.4.2.
How to do that.
Thanks


texts:
I am trying to recover customer data on product page as I cannot pass by php because of full page cache I want to do it in js.
I added an phtml block on my page in footer, catalog_product_view.xml
<page layout="1column" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <referenceContainer name="footer-container">
        <block class="My\Module\Block\VisitRecorder" template="My_Module::visit_recorder.phtml" name="visit_recorder" after="-"/>
    </referenceContainer>
</page>

In this block I instanciate a widget managing the process
<div id="visit-recording">
    <?= $this->getBlockHtml('formkey');?>
</div>

<script>
    require(
    [
        'jquery',
        'visitRecorder',
        'domReady!'
    ], function ($, visitRecorder) {

        var url = window.location.href;
        var formKey = $("#visit-recording [name='form_key']").val();

        $('#visit-recording').visitRecorder({
            "url": url,
            "formKey": formKey,
        });
    });
</script>

In my requirejs-config.js I registered my widget :
var config = {
    map: {
        '*': {
            visitRecorder: 'My_Module/js/visitRecorder',
        }
    }
};

In widget I tried to recover customer data :
define(
    [
        'jquery',
        'Magento_Customer/js/customer-data',
        'domReady!'
    ],
    function (
        $, customerData
    ) {

        $.widget('namespace.visitRecorder', {

            options: {
                url : "",
                formKey : "",
            },

            _create: function () {
                var self = this;
                this._super();
            },

            /**
             * @private
             */
            _init: function () {
                this._super();

                var customer = customerData.get('customer');
                console.log(customer);
                console.log(customer().firstname);

            },

        });

    return $.namespace.visitRecorder;
});

In console I get :

I saw I core checkout magento the same method are used so I don't understand why this is not working.


texts:
We're using Mass Product Update in the admin, however, this doesn't trigger stock status.

I can use observer once catalog_product_attribute_update_before is called, and manually trigger indexer there. But I don't know how:

cataloginventory_stock_status_idx


texts:
I have two virtual machines running magento: one just for the frontend and one for the admin. They are connected to two Redis instances: a virtual machine for sessions (db 0 for frontend and db 1 for backend) and another one for cache (db 0 for both).

If I change configuration giving db1 for backend cache, everything works fine. Anyway there are advantages using the same db: I can control the frontend cache by the administration panel, and it get warmed sooner.

The mysql db is the same and the code is always synched between the two machines and distribution packages. Server configuration includes php7.1-fpm.

The problem: when using just one cache db, somehow an error like the following is thrown, and the sessions are cleared (keeping the same session ids): Redis configuration does not exist, falling back to MySQL handler. I see this is an error from session handler that points to a cache issue.
Anyway, I see no entry in the core_session table (maybe because of Turpentine's Varnish?).
What could be the cause of this issue?

Here is the local.xml configuration for both servers (the only thing that has been copied manually - configuration as suggested from CM):

       <session_save>db</session_save>
    <redis_session>
        <host>192.168.x.y</host>
        <port>z</port>
        <password></password>
        <timeout>2.5</timeout>
        <persistent></persistent>
        <db>0|1</db>
        <compression_threshold>2048</compression_threshold>
        <compression_lib>gzip</compression_lib>
        <log_level>1</log_level>
        <max_concurrency>6</max_concurrency>
        <break_after_frontend>5</break_after_frontend>
        <fail_after>10</fail_after>
        <break_after_adminhtml>30</break_after_adminhtml>
        <first_lifetime>600</first_lifetime>
        <bot_first_lifetime>60</bot_first_lifetime>
        <bot_lifetime>7200</bot_lifetime>
        <disable_locking>0</disable_locking>
        <min_lifetime>60</min_lifetime>
        <max_lifetime>2592000</max_lifetime>
    <log_exceptions>1</log_exceptions>
    <disable_locking>1</disable_locking>
    </redis_session>

<cache>
        <backend>Cm_Cache_Backend_Redis</backend>
        <backend_options>
            <server>192.168.x.n</server>
            <port>m</port>
            <persistent></persistent>
            <database>0</database>
            <password></password>
            <force_standalone>0</force_standalone>
            <connect_retries>1</connect_retries>
            <read_timeout>10</read_timeout>
            <automatic_cleaning_factor>0</automatic_cleaning_factor>
            <compress_data>1</compress_data>
            <compress_tags>1</compress_tags>
            <compress_threshold>20480</compress_threshold>
            <compression_lib>gzip</compression_lib>
            <use_lua>1</use_lua>
        </backend_options>
    </cache>


texts: Weird Redirect/rewrite URL causing 404 issue

texts:
I am having this weird issue where if I go to any page,

e.g. if I go to a category page, http://wonderna.com/all-products/daily-health/sub-health.html

Contact us page or any other non-category page will have this broken URL
http://wonderna.com/all-products/daily-health/contacts

As you can see "all-products/daily-health" being append to the contacts.

Similarly if I go to customer account page

http://wonderna.com/customer/account/

Then contacts page will be rewrite to http://wonderna.com/customer/account/contacts

There is "customer/account" being append to the contacts page.

Anyone has ever experienced this issue? I am using bitnami's out of box 1.9.2.0 installation (LAMP) + mango theme from themeforest.


texts: Where to download magento security patches

texts:
Magento has removed old archive security patches from the website, Where is alternate option to download,
https://magento.com/security/patches/supee-11346
Thanks & Regards,