texts: Magento2: AddFotoramaVideoEvents is not a function on PDP?

texts:
I am getting error on PDP page in console for configurable product.
 while changing the attribute from PDP.it is showing belows error:

fotorama.js:953 GET http://unicorn-stg2.local/pub/static/frontend/Custom/goshop/en_US/css/gallery.png 404 (Not Found)
    isHidden @ fotorama.js:953
    (anonymous) @ fotorama.js:3789
    waitFor @ fotorama.js:972
    (anonymous) @ fotorama.js:3788
    each @ jquery.js:370
    each @ jquery.js:137
    $.fn.fotorama @ fotorama.js:3781
    initGallery @ gallery.js:297
    initialize @ gallery.js:139
    (anonymous) @ wrapper.js:109
    UiClass @ class.js:49
    (anonymous) @ main.js:31
    execCb @ require.js:1650
    check @ require.js:866
    (anonymous) @ require.js:1113
    (anonymous) @ require.js:132
    (anonymous) @ require.js:1156
    each @ require.js:57
    emit @ require.js:1155
    check @ require.js:917
    (anonymous) @ require.js:1113
    (anonymous) @ require.js:132
    (anonymous) @ require.js:1156
    each @ require.js:57
    emit @ require.js:1155
    check @ require.js:917
    enable @ require.js:1143
    init @ require.js:774
    callGetModule @ require.js:1170
    completeLoad @ require.js:1564
    onScriptLoad @ require.js:1671
    fotorama.js:953 GET http://unicorn-stg2.local/pub/static/frontend/Custom/goshop/default/images/loader-1.gif 404 (Not Found)
    isHidden @ fotorama.js:953
    (anonymous) @ fotorama.js:3789
    waitFor @ fotorama.js:972
    (anonymous) @ fotorama.js:3788
    each @ jquery.js:370
    each @ jquery.js:137
    $.fn.fotorama @ fotorama.js:3781
    initGallery @ gallery.js:297
    initialize @ gallery.js:139
    (anonymous) @ wrapper.js:109
    UiClass @ class.js:49
    (anonymous) @ main.js:31
    execCb @ require.js:1650
    check @ require.js:866
    (anonymous) @ require.js:1113
    (anonymous) @ require.js:132
    (anonymous) @ require.js:1156
    each @ require.js:57
    emit @ require.js:1155
    check @ require.js:917
    (anonymous) @ require.js:1113
    (anonymous) @ require.js:132
    (anonymous) @ require.js:1156
    each @ require.js:57
    emit @ require.js:1155
    check @ require.js:917
    enable @ require.js:1143
    init @ require.js:774
    callGetModule @ require.js:1170
    completeLoad @ require.js:1564
    onScriptLoad @ require.js:1671
    view.js:15 Value: Earn  10 Goshop Points
    8view.js:15 Value: undefined
    configurable.js:301 Uncaught TypeError: $(...).AddFotoramaVideoEvents is not a function
        at $.(anonymous function).(anonymous function)._changeProductImage (http://unicorn-stg2.local/pub/static/frontend/Custom/goshop/en_US/Magento_ConfigurableProduct/js/configurable.js:301:54)
        at $.(anonymous function).(anonymous function)._changeProductImage (http://unicorn-stg2.local/pub/static/frontend/Custom/goshop/en_US/jquery/jquery-ui.js:402:25)
        at $.(anonymous function).(anonymous function)._configureElement (http://unicorn-stg2.local/pub/static/frontend/Custom/goshop/en_US/Magento_ConfigurableProduct/js/configurable.js:272:18)
        at $.(anonymous function).(anonymous function)._configureElement (http://unicorn-stg2.local/pub/static/frontend/Custom/goshop/en_US/jquery/jquery-ui.js:402:25)
        at HTMLSelectElement._configure (http://unicorn-stg2.local/pub/static/frontend/Custom/goshop/en_US/Magento_ConfigurableProduct/js/configurable.js:239:24)
        at HTMLSelectElement.<anonymous> (http://unicorn-stg2.local/pub/static/frontend/Custom/goshop/en_US/jquery/jquery-ui.js:402:25)
        at HTMLSelectElement.dispatch (http://unicorn-stg2.local/pub/static/frontend/Custom/goshop/en_US/jquery.js:5226:27)
        at HTMLSelectElement.elemData.handle (http://unicorn-stg2.local/pub/static/frontend/Custom/goshop/en_US/jquery.js:4878:29)
    _changeProductImage @ configurable.js:301
    (anonymous) @ jquery-ui.js:402
    _configureElement @ configurable.js:272
    (anonymous) @ jquery-ui.js:402
    _configure @ configurable.js:239
    (anonymous) @ jquery-ui.js:402
    dispatch @ jquery.js:5226
    elemData.handle @ jquery.js:4878


texts: All products are not propely adjusted on home page

texts:
I have a problem in adjusting all the products in proper way. Some products are two line name and some products are one line name so it is showing not a great impact on customer. Can we add one extra line before add to cart button so it will show in one line.

Any idea will be appreciated.


texts: Magento 2: Check if a cronjob is already running

texts:
What is the best way to check, if a cronjob is already running?

I need a cronjob that checks, if there are new files in a folder and then do some stuff to this files. The cronjob should check every minute for new files. The problem is, that the cronjob itself could need more than one hour to execute.

How can i avoid to execute a cronjob multiple times?


texts:
I have implemented the EasyAjax extension by Vladimir Fishchenko, which is an amazing extension that allows you to make ANY Magento request via Ajax. One problem I am having relates to session messages being stored on Ajax requests.

After executing an Ajax request, like adding a product to the cart for example, session messages that were set during that request appear on subsequent pages that implement the global_messages block. Typically since the page would refresh after adding to the cart, the session messages would be displayed as expected, however because this request is made with Ajax, the session messages are stored but not displayed until the user navigates to another page (by which time the message is a page late).

Is there a way to prevent messages from being stored in the session if the request is Ajax? I can check if a request is Ajax using Mage::getSingleton('easyAjax/core')->isEasyAjax(), but I am unsure of where to implement this.


texts: Update magento cart with “Mage_Checkout_Model_Cart_Product_Api”?

texts:
I am trying to update cart with checkout/cart_product_api model. The function I use is,

public function updateCartAction() {

        $result = array();
        $apiModel = Mage::getModel('checkout/cart_product_api');

        $quoteId = $this->getRequest()->getParam('quote_id', null);
        $store = $this->getRequest()->getParam('store_id', null);

        $quoteId = 74;
        $store = 1;

        $productId = "51";
        $qty = "5";

        $productsData = array(
                                array(

                                        "product_id" => $productId,
                                        "qty" => $qty

                                      )
                             );

        $result = $apiModel->update($quoteId, $productsData, $store);

        print json_encode(array("result" => $result));

    }

Here I am trying to change quantity of product is 51 manually. It calls update() in app/code/core/Mage/Checkout/Model/Cart/Product/Api.php and the return value is true.

But the quantity remains unchanged! Why it happens? If anyone have a solution please do share with me.


texts: Magento sending emails to wrong customer

texts: It seems as my magento is sending emails to the wrong customer. Well let me re phrase that it is sending the correct email to the customer who ordered but it is sending a second email to random other customers, anyone ever encountered this?


texts: What is the difference in database of magento C.E 1.8 when compare with magento C.E 1.7?

texts:
Is there any difference in database of magento C.E 1.8 when compare with magento C.E 1.7?

Whether in structure or fields?


texts: How to code a product selection wizard on magento 1.9 using custom multi-select attributes?

texts:
I have a magento 1.9.2 catalog containing several varieties of handmade soap. I need to code a plugin that will help the customers choose products based on custom attributes.

Each product will have 3 multiple select attributes: Skin conditions, Flagrance and Ingredients. These will be visible on product page.
Each attribute option will have:

Name (already available in standard CMS)
Short description.
An Url link to a dedicated CMS page with extended description (maybe external for some products). If the user clicks on the attribute he gets redirected to the description page.
A picture that can be changed from admin. This picture will be displayed on the product page as a thumbnails besides the option and also on the description page (update once to change everywhere).

The description page of the attribute option will also include a list of products that have this specific option enabled.
On the homepage there wil be a block that displays the aforemetioned 3 attributes. Clicking one of the attributes will load a list of options (with pictures) via AJAX. Click on one of the options will load vi AJAX a list of products that have the selected option enabled. Clicking on the product will redicrect to the product page.
An admin panel for editing the the attribute options fields.

I need some advice on how to get started with this module, what architecture to use. I am novice in magento and I don't know how should I implement the custom attributes. General directions or maybe links to specific tutorials, maybe some short code snippets will suffice.


texts: Magento2: How to install an external package without composer?

texts:
I have some packages installed under the vendor dir.
Now, I need a way to take one of them out & place it somewhere else that'll allow editing the files (same as moving a Magento module to app/code, but in this case it's an external library & not a Magento module).
I tried to place it under lib & under lib/internal + some other similar variations, but nothing seems to work & I get a Class ... does not exist error when I use classes from this library.
-- Any idea how to make it work (without changing the files or other files)?


texts: How to populate Purchase Order Number with a random rumber?

texts:
Magento 2.3.x Purchase Order used as a payment method requieres a purchase order number. Some of our customers don't have that number, so we need to pre-populate this input field with a random content (such as a random number). This way, the customer will either enter its own purchase order number or place the order using the provided default value.

I have done the override already using a path like this and it is working fine:

(magento_dir)/app/design/frontend/(VendorName)/(ThemeName)/Magento_Offline-Payments/view/frontend/web/template/payment/purchaseorder-form.html

I tried different elemental KO scripts already but binding is not working. I don't get any error message but purchaseOrderNumber doesn't get any value from the script.

<div class="control">
<script type="text/javascript">
    var viewModel = {
        this.purchaseOrderNumber: "Enter your Purchase Order number"
    };
    ko.applyBindings(viewModel);
</script>
<input type="text"
       id="po_number"
       name="payment[po_number]"
       data-validate="{required:true}"
       value="Purchase Order Number"
       data-bind='
        attr: {title: $t("Purchase Order Number")},
        value: purchaseOrderNumber'
       class="input-text"/>
</div>

I am not sure if this field can be populated using a KO script or the default value should be provided where the purchaseOrderNumber variable is set.

Can someone help?


texts: Incorrect table definition after downgrading Magento 2.3.6 code from Commerce to Open Source via composer

texts:
After downgrading my Magento 2.3.6 code from the enterprise (Commerce Cloud) edition to the open source version via composer, I'm receiving the following sql error when running the bin/magento setup:upgrade command:
Cache cleared successfully
File system cleanup:
/var/www/html/m2vm/generated/code/Amasty
/var/www/html/m2vm/generated/code/Cart2Quote
/var/www/html/m2vm/generated/code/ClassyLlama
/var/www/html/m2vm/generated/code/Composer
/var/www/html/m2vm/generated/code/Dotdigitalgroup
/var/www/html/m2vm/generated/code/MSP
/var/www/html/m2vm/generated/code/MageWorx
/var/www/html/m2vm/generated/code/Magento
/var/www/html/m2vm/generated/code/Symfony
/var/www/html/m2vm/generated/code/Taxjar
/var/www/html/m2vm/generated/code/Xtento
/var/www/html/m2vm/generated/code/Yotpo
The directory '/var/www/html/m2vm/generated/metadata/' doesn't exist - skipping cleanup
Updating modules:
Schema creation/updates:
SQLSTATE[42000]: Syntax error or access violation: 1075 Incorrect table definition; there can be only one auto column and it must be defined as a key, query was: ALTER TABLE `cms_block` MODIFY COLUMN `block_id` smallint(6)  NOT NULL  AUTO_INCREMENT COMMENT "Entity ID", DROP PRIMARY KEY, ADD CONSTRAINT  PRIMARY KEY (`block_id`)

I see that others have reported the same issue. Has anyone found a solution?


texts: magento 2 event cataloginventory_stock_item_save_after

texts:
I need to detect whenever the inventory level of a product changes.
As there is cataloginventory_stock_item_save_after in magento 1.x
wanto to implemet same in magento 2.1

<event name="cataloginventory_stock_item_save_after">
    <observer name="cataloginventorysave" instance="Vendor\Module\Observer\Cataloginventorysave" />
</event>

Then created observer "Cataloginventorysave.php" in which I want to access

$stockItem = $observer->getEvent()->getItem();

But event name cataloginventory_stock_item_save_after is not found in magento 2 event list. How will I achieve it.


texts: Export new orders to individual CSV files

texts: Could someone tell me how to export each new order from Magento to individual CSV files and save them on the server?


texts:
I am going crazy slowly as I cannot solve this. Maybe anyone here can help me out.

Problem 1: My shop always shows 2 prices (incl. & excl. tax) on category page but settings are clearly only including tax.

Problem 2: The tax does not get added on product page product

So, I have set everything in my backend as "Including tax".

My tax settings are:

Problem: On my category product page, all products always show with and without tax (with tax is a link)

--> Does anyone know, how I can only show one price here and not have both incl. and excl. displayed

Problem: The price on product page is shown always without tax

--> Does anyone have an idea why as my settings usually say differently

Your help would be highly appreciated.

Best regards


texts: Attribute is not appearing on layered navigation in Magento 2

texts:
I am trying to display product attribute on layered navigation but it's not appearing.

I have already selected the Use in Layered Navigation -> yes,but the attribute is not appearing on layered navigation.


texts:
I tried updating from magento 2.2.3 to 2.2.4 using the web setup wizard.

However the upgrade finishes with a fatal error. I login to my admin and it shows that it is 2.2.4 however when I go to the web setup wizard, I get the same fatal error page.


texts:
I'm trying to use REST API access. I followed all the guides found to enable the api and oauth functionalities.
I'm using this code to retrieve the access and then make the request

<?php

  class Vashi_Restapi_TestController extends Mage_Core_Controller_Front_Action {

    public function indexAction() {

    //Basic parameters that need to be provided for oAuth authentication
    //on Magento

         $params = array(
            'siteUrl' => Mage::getBaseUrl().'/oauth',
            'requestTokenUrl' => Mage::getBaseUrl().'/initiate',
            'accessTokenUrl' => Mage::getBaseUrl().'/oauth/token',

            'consumerKey' => '3157bsm22p5q80t7zcujfi9uzxafefic',//Consumer key registered in server administration
            'consumerSecret' => 'zo22y43t1d63okihubfgkg39rdg3pjvl',//Consumer secret registered in server administration
            'callbackUrl' => Mage::getBaseUrl().'/restapi/test/callback',//Url of callback action below
        );

        // Initiate oAuth consumer with above parameters
        $consumer = new Zend_Oauth_Consumer($params);
        // Get request token
        $requestToken = $consumer->getRequestToken();

        // Get session
        $session = Mage::getSingleton('core/session');
        // Save serialized request token object in session for later use
        $session->setRequestToken(serialize($requestToken));
        // Redirect to authorize URL
        $consumer->redirect();

        return;
    }

    public function callbackAction() {

        //oAuth parameters
        $params = array(
            'siteUrl' => Mage::getBaseUrl().'/oauth',
            'requestTokenUrl' => Mage::getBaseUrl().'/initiate',
            'accessTokenUrl' => Mage::getBaseUrl().'/oauth/token',
            'consumerKey' => '3157bsm22p5q80t7zcujfi9uzxafefic',
            'consumerSecret' => 'zo22y43t1d63okihubfgkg39rdg3pjvl'
        );

        // Get session
        $session = Mage::getSingleton('core/session');
        // Read and unserialize request token from session
        $requestToken = unserialize($session->getRequestToken());
        // Initiate oAuth consumer
        $consumer = new Zend_Oauth_Consumer($params);
        // Using oAuth parameters and request Token we got, get access token
        $acessToken = $consumer->getAccessToken($_GET, $requestToken);
        // Get HTTP client from access token object
        $restClient = $acessToken->getHttpClient($params);
        // Set REST resource URL
        $restClient->setUri(Mage::getBaseUrl().'/api/rest/products');
        // In Magento it is neccesary to set json or xml headers in order to work
        $restClient->setHeaders('Accept', 'application/json');
        // Get method
        $restClient->setMethod(Zend_Http_Client::GET);
        //Make REST request
        $response = $restClient->request();
        // Here we can see that response body contains json list of products
        Zend_Debug::dump($response);

        return;
    }
}

I tried also the admin, customers and guest access but the result is always:

An error occurred. Your authorization request is invalid.

It seems the oauth token is not being generated as the url I can see is:

http://magentohost/oauth/authorize/?oauth_token=&oauth_callback=http%3A%2F%2Fmagentohost%2F%2Frestapi%2Ftest%2Fcallback

Really struggling with it, any advice?
thanks

UPDATE:
Tryied the apache configuration proposed but it still not working.

I was able to obtain the token using ruby oauth client, still not working via PHP

oauth \
  --verbose \
   --query-string \
   --consumer-key 3157bsm22p5q80t7zcujfi9uzxafefic \
   --consumer-secret zo22y43t1d63okihubfgkg39rdg3pjvl \
   --access-token-url http://magento.host/oauth/token \
   --authorize-url http://magento.host/oauth/authorize \
   --request-token-url http://magento.host/oauth/initiate \
   authorize


texts: Add & Retrieve Custom Attribute Data from Attribute Set Collection

texts:
I need to add additional information for Magento attribute set, like when i add custom attribute for invoice like this:

Mage::app()->setCurrentStore(Mage::getModel('core/store')->load(Mage_Core_Model_App::ADMIN_STORE_ID));
$installer = new Mage_Sales_Model_Mysql4_Setup;

$attribute  = array(
    'type'          => 'datetime',
    'backend_type'  => 'datetime',
    'frontend_input' => 'datetime',
    'is_user_defined' => true,
    'label'         => 'Last Sync',
    'visible'       => true,
    'required'      => false,
    'user_defined'  => false,
    'searchable'    => true,
    'filterable'    => true,
    'comparable'    => true,
    'default'       => NULL
);
$installer->addAttribute('invoice', 'last_sync', $attribute);

$installer->endSetup();

so i can load the data like this:

$attributeSetCollection = Mage::getResourceModel('eav/entity_attribute_set_collection');
foreach ($attributeSetCollection as $id=>$attributeSet) {
    $lastSync = $attributeSet->getLastSync();
}


texts: Magneto 2 edit configurable products sku and product undefined

texts:
New product creating configurable product
step 1: Select Attributes - selected color then,
Step 2: Attribute Values - selected 2 colors then.
Step 3: Selected Skip image uploading at this time
Step 4: Summary - SKUis undefined-attribute value (undefined-grey) after generating product,
grid format below can check product name is undefined-#5 Vanilla Beige also sku


texts:
We're on Magento 1.9.3.4 and we want to display the phone number in the header.

Is it ok to just put into header.phtml

<?php echo Mage::getStoreConfig('general/store_information/phone') ?>

or is it better to put it into a block and then just call it with

<?php echo  $this->getStoreNumber ?>


texts: Custom module sort and search filter not working

texts:
I've created a custom module.
The sorting and search filter not working on the grid page.
<arguments>
<argument name="id" xsi:type="string">testGrid</argument>
<argument name="dataSource" xsi:type="object">VendorName\ModuleName\Model\ResourceModel\Test\Collection</argument>
<argument name="default_sort" xsi:type="string">id</argument>
<argument name="default_dir" xsi:type="string">desc</argument>
<argument name="save_parameters_in_session" xsi:type="boolean">true</argument>
<argument name="use_ajax" xsi:type="boolean">true</argument>
<argument name="grid_url" xsi:type="url" path="*/*/grid"><param name="_current">1</param></argument>
</arguments>


texts: How to import product attributes with custom source model in Magmi ?

texts:
Magmi is great to import bulk products but its does not import attributes with custom source model. Maybe Magmi treat such attributes as table source which is not.

How to tackle this and import such attributes and what will be the format of CSV?

After Googling may be using Magmi plugin like column mapper or Value Replacer may fix this but I couldn't figure it out how to config these plugins.

Ref: http://sourceforge.net/apps/mediawiki/magmi/index.php?title=Import_-_CSV_datasource#Magento_Dataflow_format


texts:
Hello I am about to build an online shop for a client of mine and I want to know which version is currently (November 2016) the best one to use. Which has more themes? Which one is more stable? Which one has more extensions? I mostly interested to know the difference in using 1.9.x versnio as opposed to new 2.x version.

Thanks


texts: increase default limit of sales_order pagination

texts:
How can I achieve in the sales_order adminhtml to display the pagination additionally below the grid?

Also, I would like to have a default limit of 50 rows instead of 20 (in the sales_order pagination). Is that also possible?

EDIT: Since it was a bad idea to combine two questions, I opened a new one for the unsolved question: https://magento.stackexchange.com/questions/96158/add-another-pagination-below-sales-order-grid


texts: An error has happened during application run. See exception log for details in magento2.3.3

texts:
I had run "setup:static-content:deploy -f en_GB" command, my website shows

  "An error has happened during application run. See exception log for
  details."

i checked in my log file,

CRITICAL: No host configured to connect {"exception":"[object] (Zend_Db_Adapter_Exception(code: 0): No host configured to connect at /opt/bitnami/apps/magento/htdocs/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php:389)"} []

I can't run any command in my SSH.

Please help me


texts: Magento 2: Which permission is needed to access `GET /V1/inventory/stock-source-links`?

texts:
I have the set of permissions: Stores, Catalog, Customers, Stores.

When I get the endpoint GET /V1/inventory/stock-source-links I'm receiving the exception:

The consumer isn't authorized to access %resources.","parameters":{"resources":"Magento_InventoryApi::stock_source_link"}

Though, it works when I grant "all" permissions.

Which permission is needed to reach this endpoint?


texts:
I need to create empty cart if the customer doesn't have an existing cart.

The code below works fine if the cart exists, and if it does not exist, it displays an error

No such entity with customerId = 161 No such entity with customerId = 162

...

$data = [
         'qty' => $products_count,
         'product' => $products_id,
          'bundle_option' => $selectionProds
          ];

 $request->setData($data);

$quote = $this->cartRepositoryInterface->getForCustomer($customer_id);
$quote->addProduct($_product, $request);

$shippingAddress = $quote->getShippingAddress();
                               $shippingAddress->setCollectShippingRates(true)->collectShippingRates()->setShippingMethod('flatrate_flatrate');
$quote->setPaymentMethod('checkmo'); //payment method
$quote->setInventoryProcessed(false); //not effetc inventory
$quote->save(); //Now Save quote and your quote is ready

$this->_quoteRepository->save($quote);
$quote->getPayment()->importData(['method' => 'checkmo']);
$quote->collectTotals();
$order = $this->quoteManagement->submit($quote);
$order->setEmailSent(0);
$increment_id = $order->getRealOrderId();
if ($order->getEntityId()) {
    $result['order_id'] = $order->getRealOrderId();
} else {
    $result = ['error' => 1, 'msg' => 'Your custom message'];
}
 return $result;


texts: Need to sell items with zero or negative stock values

texts:
We're using Magento 1.7.0.2 for over the counter sales in a pharmacy, and because we update our Magento inventory once a week with new products & stock updates, many times we receive stock which is lying and ready for sale, but Magento has not yet been updated.

For this reason, I need to be able to sell out-of-stock goods from the Magento front-end.

I have tried enabling backorders (System >> Configuration >> Catalog >> Inventory >> Backorders >> Allow QTY below 0
But in spite of setting this, the front-end still shows (products with zero or negative as) out-of-stock and thus cannot be added to cart.

I have even flushed the cache and reindexed everything but no luck.


texts:
I want to insert my custom .phtml code in one of the magento core page. To be more specific i want to put my code in order to be displayed in <my-server-name>/index.php/admin/sales_order/view/order_id/1 page. For the sake of example i put the code direct into the /design/adminhtml/default/default/template/sales/view/tab/info.phtml and now the view looks like in the capture.

My question is how to achive this task but without touching the core file ?


texts: Magento 2 Downloadable Product and Gift Product are not visible in Sales Order Grid Page

texts:
I am facing issue on Downloadable Product in Magento2 Sales Order Grid Page back end.When Customer placed order for Downloadable Product say (EBOOK) where its not available in Admin->sales order grid.

Magento Version : 2.1.13

I have checked in Magento DB - Sales Order Grid and the record was there but its not displaying under Sales Grid Table.

Also If I use entity_id in the order detail page URL where I can able to view see the order details successfully.

Please do assist what was the issue and why its not displaying under grid table.

Also can u please tell where i can fetch grid order collection data and query code behind it.


texts: Magento 1.9 Pass value from html input field to email template in admin

texts:
I have made a custom module to add some html input fields in Admin Order view. What I want to do is when clicking on the Send Email button in Order View, the information typed in the html input fields would be passed to the email template. How to make this possible?

My question is different from Get my custom variable into an email template as I need to pass text from input fields directly to the email template. Please note the text in input fields is not saved in the DB.


texts: Add product to guest cart with custom option and its price in Magento 2 api

texts:
I need to add product in cart  using magento 2 api.

I am using below api

"rest/V1/guest-carts/{cart_id}/items

I am passing parameters like below,

    {
    "cartItem": {
        "sku": "paneer_chilli-1",
        "qty": "1",
        "name": "Paneer Chilli",
        "price": 100,
        "product_type": "simple",
        "quote_id": "3a43e2fc1ed26db195a8ceee00929bcb",
        "product_option": {
            "extension_attributes": {
                "custom_options": [{
                    "option_id": 6,
                    "option_value": 2
                }]
            }
        }
    }
}

dosent work, it is giving error like below,

Property "CustomOptions" does not have corresponding setter in class "Magento\Quote\Api\Data\CartItemExtensionInterface".

What is option_id and option_value in my case when I have to pass custom option with multiple option with its price (checkbox)

It will be great if someone can help.
Thanks


texts: How can I have a custom XML file in modules merged as one in Magento 2? (MageStackDay mystery question 2)

texts:
MageStackDay bonus question for 500pts Bounty AND a the possibility of winning a free Z-Ray license for a year. More info can be found >> here <<

The questions are provided/inspired by Magento 2 core developer Anton Kril.

Question:

I'm creating an extension that has a separate set of configurations.
This means I cannot use config.xml or routes.xml or fieldset.xml or any other config xml files magento has.
Example.

Let's say I'm defining a 'table' config that has rows an columns. I could use this xml below.  (call it table.xml)

    <row id="row1">
        <column id="col1" sort="10" attr1="val1">
            Col 1
        </column>
    </row>
    <row id="row2">
        <column id="col1" sort="10" attr1="val1">
            Col 1
        </column>
        <column id="col2" sort="20" disabled="true" attr1="val2" >
            Col 2
        </column>
        <column id="col3" sort="15" attr1="val1">
            Col 3
        </column>
    </row>

But if an other extension contains table.xml I want it to be picked up by the config reader and the 2 or more xml files should be merged. I mean if the second file looks like this

    <row id="row1">
        <column id="col2" sort="10" attr1="val2">
            Col 2
        </column>
    </row>
    <row id="row2">
        <column id="col1" sort="10" attr1="val5" />
    </row>

the result will be that the second column is added to the first row and the value for attr1 is overwritten by the second xml:

    <row id="row1">
        <column id="col1" sort="10" attr1="val1">
            Col 1
        </column>
        <column id="col2" sort="10" attr1="val2">
            Col 2
        </column>
    </row>
    <row id="row2">
        <column id="col1" sort="10" attr1="val5">
            Col 1
        </column>
        <column id="col2" sort="20" disabled="true" attr1="val2">
            Col 2
        </column>
        <column id="col3" sort="15" attr1="val1">
            Col 3
        </column>
    </row>

In Magento 1 I could have done this just by calling

 $merged = Mage::getConfig()->loadModulesConfiguration('table.xml')
            ->applyExtends();

How can I do the same for Magento 2?


texts: Multiple Products in one Cart magento 2.1 REST Api

texts:
i am sending POST request and its not working, i am hitting url "www.sample.com/index.php/rest/V1/guest-carts/c62700b7e525b82c0e96607e11ec0942/items"

{ "cartItem": [
  { "quote_id": "c62700b7e525b82c0e96607e11ec0942","sku": "8246549-Black-40", "qty":1 },
  { "quote_id": "c62700b7e525b82c0e96607e11ec0942","sku": "8544501-Brown-43", "qty":1 },
  { "quote_id": "c62700b7e525b82c0e96607e11ec0942","sku": "8516031-Black-44", "qty":1 }
 ]
}

ACTUAL RESULT: "message": "Internal Error. Details are available in Magento log file. Report ID: webapi-5a4a0b000116e"


texts:
I am trying to show custom collection with pagination that code is working when i moved that code to other theme then pagination not working properly according to records
please find the attached picture


texts: Configure inventory -> sources not showing in admin configuration 2.3.3

texts:
i have upgraded Magento version from 2.2.10 to 2.3.3

And Now I am facing one problem in multi source inventory some configuration are missing.

source configuration under inventory setting
stock configuration under inventory setting
product edit grid assign source option

Any Help will appreciate.


texts: _prepareDownloadResponse prepends empty line

texts:
This is a simple controller action:

    public function indexAction(){
        $from = $this->getRequest()->getParam('from_date');
        if(empty($from) || !($time = strtotime($from))){
            //exception
            return;
        }
        $from = date('Y-m-d', $time) . ' 00:00:00';

        $xml_str = Mage::getModel('formbuilder/formbuilderresult')->getCollection()
            ->addFieldToFilter('form_id', 1)
            ->addFieldToFilter('created_time', array('gteq' => $from))->toXml();

        $this->_prepareDownloadResponse(
        'forms.xml',
        $xml_str,
        $contentType = 'application/xhtml+xml',
        strlen($xml_str)
        );
    }

Side effect of this, is that the last character is lost in the output.
I know I need to hunt down the extra line in some php file along the way..
Any idea where to start? :-)


texts: EE 1.14.2 / CE 1.9.2 block caching update has non-unique cache keys - duplicate content showing on frontend

texts:
When I upgraded to EE 1.14.2, most things went smoothly but I came across an issue when I started to check my various frontend pages. I have a catalog node with several subcategories and each of those has a different static block showing on them. After the upgrade, whichever page was hit first after a cache flush would end up showing on all of the different pages.

I don't know if this same issue will be present when CE 1.9.2 is released but I wanted to put my solution here for those who may find this same issue.

UPDATE: As confirmed here the same problem came up in CE 1.9.2


texts: REST search for category with custom attribute?

texts:
Is it possible to search for a category by a custom attribute?

I have added a custom attribute "category_code" that i would like to do a rest search on.

Is there a way to do this througt the V1/search interface?

/Thomas


texts: Module 'Magento_CatalogInventory' has already been defined

texts:
I'm getting this error after I ran the setup:upgrade command and this was after the upgrade to Magento 2.1.3

  Module 'Magento_CatalogInventory' from '/var/www/vhosts/website/httpdocs/app/code/Magento/CatalogInventory' has been already defined in '/var/www/vhosts/website/httpdocs/vendor/magento/module-catalog-inventory'.

How do I fix this error?


texts:
I am new in Magento development, I have develop a e commerce site but my site url have .html I want to remove this
now Ex. www.mydomainname.com/shop.html
how can remove .html from url
Url will be www.mydomainname.com/shop

Please give me any idea.


texts:
I want to automatically make shipping free if user select one specific payment method. Is there any extension to do this or do i have to code one myself, if so where should i start.

Thanks


texts: Base URL is HTTPS But, All the Canonicals are HTTP how to Fix this

texts: I've modified my base URL and moved to HTTPs from HTTP but, My website canonicals are still HTTP. So, tell me how I can resolve this issue so, that the I can stop the 2-page indexing in Google search results.


texts:
If I press manage customers on the Magento backend I get this fatal error. Does anyone knows a fix for this?

  Fatal error: Call to a member function getBackend() on a non-object in
  /home/vhosts/MYSITE/httpdocs/includes/src/Mage_Eav_Model_Entity_Collection_Abstract.php
  on line 514


texts: I have a module and a select box for display month. In file download.phtml, I mentionn value month and I want display that are 01, 02, 03, ..., 12. How can I do that?


texts: How to Retain Double Quotation Marks on Product Attributes

texts:
When we enter product attributes in the Admin ad Storeview boxes, double quotation marks " get transformed into their HTML ASCII code equivalent &quot;.

How can we retain double quotes? (It is used to represent the American Inch Symbol for sizes.)

Here's a before the update screen shot:

Here's an after the update screen shot:


texts: How to render data type html in template email magento2?

texts:
I have email template in Magento 2: email-template.html

{{template config_path="design/email/header_template"}}

{{trans "%body" body=$data.body}}

{{template config_path="design/email/footer_template"}}

But in variable $data.body is code html not text:

$data.body = `

     Name: 	 Join Xanka

 Email: 	 xanka@gmail.com

  {{depend Test Send}}

 Subject: 	 Test Send

  {{/depend}}

 Message: 	 we try send email use to test.

So how to render code html when send send email. Many thank!

This is result when excuse code print_r($this->_message->getBody()); in sendMessage() function:


texts: Change scope of tax catalog price calculation to store view

texts:
I need to change the Catalog Prices Tax Calculation Settings scope to store view rather than website but I've not found a solution as of yet. Is there any way to do this?

The current set up is as follows:
Websites for UK, US & EU
Stores for Retail and Trade for each of the above.

Retail store prices are input inclusive of tax whereas trade store prices are input exclusive of tax.

If it's not possible to change the scope of this calculation, does anyone have an alternative method?

I forgot to add that I'm using Magento 2.3.3

Thank you.


texts: How to get product ordered quantity column in sales grid in Magento2.2.6?

texts:
How to get product Ordered Quantity Column in the sales grid in Magento 2.2.6 ?

Any help would be appreciated.

Thanks in advance..!


texts: Cron fails because update folder does not exist

texts:
I am trying to setup cron for a magento 2 installation made through composer.

I have tried to manually add the following to my crontab:

* * * * * www-data php /path/to/m2/bin/magento cron:run | grep -v "Ran jobs by schedule" >> /path/to/m2/var/log/magento.cron.log
* * * * * www-data php /path/to/m2/update/cron.php >> /path/to/m2/var/log/update.cron.log
* * * * * www-data php /path/to/m2/bin/magento setup:cron:run >> /path/to/m2/var/log/setup.cron.log

If I then check the /path/to/m2/var/log/update.cron.log I can see the following message:

  Could not open input file: /path/to/m2/update/cron.php

Obviously, because the folder /path/to/m2/update does not exist.

I am not sure why the folder and cron.php file is missing. Is there some bin/magento command that I have missed?


texts:
I have this code here,

 <block class="Magento\Store\Block\Switcher" name="store.settings.language" template="switch/languages.phtml">
 <arguments>
  <argument name="id_modifier" xsi:type="string">nav</argument>
  </arguments>
 </block>

I want to disable this but it looks different from simply just adding,

<referenceBlock name="store_language" remove="true"/>

how do disable this from showing up on the website in the header? I'm not sure where to add referenceBlock


texts:
I am new in Magento 2.2 and facing MySql slow queries issue.I want to know how to use/install MySqltuner in Magento 2. And where is the location of my.cnf file?

Need help to fix this issue.

Thanks


texts: my magento store displays empty shopping cart after adding product to cart

texts: I did go through all solution. I did changes cookies from admin but still it displays the same empty cart errro . Please give me some other solution to fix this problem . I am using magento latest version 1.9.2


texts: Getting error Not registered handle cms_page_listing_data_source in Magento 2?

texts:
I have added some filter in Sales -> Order and for that add a di.xml file.
di.xml file
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<type name="Magento\Sales\Block\Adminhtml\Order\View\Info">
    <plugin name="Custom_checkout_custom_fields_show_fields" type="Custom\CheckoutForm\Plugin\Block\Adminhtml\CustomFields" sortOrder="99999" />
</type>
<type name="Magento\Framework\View\Element\UiComponent\DataProvider\CollectionFactory">
    <arguments>
        <argument name="collections" xsi:type="array">
            <item name="sales_order_grid_data_source" xsi:type="string">Custom\CheckoutForm\Model\ResourceModel\Order\Grid\Collection</item>
        </argument>
    </arguments>
</type>
<type name="Custom\CheckoutForm\Model\ResourceModel\Order\Grid\Collection">
    <arguments>
        <argument name="mainTable" xsi:type="string">sales_order_grid</argument>
        <argument name="resourceModel" xsi:type="string">Magento\Sales\Model\ResourceModel\Order</argument>
    </arguments>
</type>

On adding this file don't know what's the issue but my content -> pages and content -> blocks are not shown it shows an error Not registered handle cms_page_listing_data_source.
Any help is appreciated.


texts: Executing Custom script after placing the order successfully magento 2

texts: Custom php script should be executed after placing the order or after performing the place order action in one page checkout page. What is the best way to do this operation or action. Should i create Custom Observer or controller?


texts: Magento 2 - Don't want to remove wishlist items when click 'Add all to cart' button

texts: I want to keep items in wishlist when user click "add all to cart" button. Have any idea how to fix it?


texts: Magento 2 : Online Customer is Not Showing in Admin

texts: I am using Magento-2.1 as back-end and frontend are made in angular. If I disable Magento frontend using some extension, Online Customer is not showing in Magento admin panel. Please suggest me any solution what I do?


texts: magento 2 - Access denied for user - cache problem

texts:
1 exception(s):
Exception #0 (Exception): Warning: mysqli_connect(): (HY000/1045): Access denied for user 'aromacak_db30'@'localhost' (using password: YES) in /home/aromacakes/test.aromacakes.online/vendor/magento/module-backend/view/adminhtml/templates/admin/login.phtml on line 84

Exception #0 (Exception): Warning: mysqli_connect(): (HY000/1045): Access denied for user 'aromacak_db30'@'localhost' (using password: YES) in /home/aromacakes/test.aroma.online/vendor/magento/module-backend/view/adminhtml/templates/admin/login.phtml on line 84
#0 [internal function]: Magento\Framework\App\ErrorHandler->handler(2, 'mysqli_connect(...', '/home/aromacake...', 84, Array)
#1 /home/aromacakes/test.aroma.online/vendor/magento/module-backend/view/adminhtml/templates/admin/login.phtml(84): mysqli_connect('localhost', 'aromacak_db30', 's!lver01', 'aromacak_db30')
#2 /home/aromacakes/test.aroma.online/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/home/aromacake...')
#3 /home/aromacakes/test.aroma.online/vendor/magento/framework/View/Element/Template.php(270): Magento\Framework\View\TemplateEngine\Php->render(Object(Magento\Backend\Block\Templat

When i go  to magento admin panel  shows this error
but front end working fine

I clear cache but still not working....
how i can fix this...


texts: Override select.phtml for configurable product

texts:
I am trying to make some changes to the layout of the configurable product view.
This is my catalog.xml file

<block type="catalog/product_view" name="product.info.options.wrapper" as="product_options_wrapper" template="catalog/product/view/options/wrapper.phtml" translate="label">
                    <label>Info Column Options Wrapper</label>
                    <block type="core/template" name="options_js" template="catalog/product/view/options/js.phtml"/>
                    <block type="catalog/product_view_options" name="product.info.options" as="product_options" template="catalog/product/view/options.phtml">
                        <action method="addOptionRenderer"><type>text</type><block>catalog/product_view_options_type_text</block><template>catalog/product/view/options/type/text.phtml</template></action>
                        <action method="addOptionRenderer"><type>file</type><block>catalog/product_view_options_type_file</block><template>catalog/product/view/options/type/file.phtml</template></action>
                        <action method="addOptionRenderer"><type>select</type><block>catalog/product_view_options_type_select</block><template>catalog/product/view/options/type/select.phtml</template></action>
                        <action method="addOptionRenderer"><type>date</type><block>catalog/product_view_options_type_date</block><template>catalog/product/view/options/type/date.phtml</template></action>
                    </block>

                    <block type="core/html_calendar" name="html_calendar" as="html_calendar" template="page/js/calendar.phtml"/>
                </block>

I would like to slightly change the way the options select is shown.

I duplicated the file

catalog/product/view/options/type/select.phtml

in my own theme design folder and tried to edit it but I can't see my changes on the frontend.
Am I modifying the right file. Or should I edit a different one?


texts: Blank theme: Sticky footer at bottom of the page

texts:
I use the blank theme for my shop. The design looks great except when there is only one item in the cart or if it is empty. In this case the content in  is very short, with the footer just coming below it, leaving a lot of space below. This doesn't look good. I have tried various solutions to get the footer down to the bottom of the browser window but none of them didn't work. I guess, this is due to the markup of the blank theme. Is there a way to push the footer down?
Any help would be greatly appreciated.
Here is a link to my shop: http://he023rz5.edis.at/shop/checkout/cart/

Here are a couple of solutions I tried. I could reproduce them perfectly using the markup they suggest but with the blank theme all of them failed


texts: Weird error after Magento 2.2.6 update - Magento does not create ImageFactory class (and others)

texts:
After each an every try to update a particular Magento 2.2.5 installation (CE) to 2.2.6 we get the following error:

PHP message: PHP Fatal error:  Uncaught Error: Call to undefined method Magento\Catalog\Model\View\Asset\ImageFactory::create() in [...]/vendor/magento/module-catalog/Model/Product/Image.php:403
Stack trace:
#0 [...]/vendor/magento/module-catalog/Helper/Image.php(500): Magento\Catalog\Model\Product\Image->setBaseFile('/0/1/0100stsc06...')
#1 [...]/vendor/magento/module-catalog/Helper/Image.php(470): Magento\Catalog\Helper\Image->initBaseFile()
#2 [...]/vendor/magento/module-catalog/Helper/Image.php(528): Magento\Catalog\Helper\Image->applyScheduledActions()
#3 [...]/app/design/frontend/Smartwave/porto/Smartwave_Filterproducts/templates/owl_list.phtml(74): Magento\Catalog\Helper\Image->getUrl()
#4 [...]/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/home/myproabr/...')
#5 [...]/vendor/magento/framework/...

These are the commands we executed for the update:

bin/magento maintenance:enable
composer require magento/product-community-edition 2.2.6 --no-update
composer update -o
rm -rf var/cache/* var/log/* var/page_cache/* generated/
bin/magento cache:clean
bin/magento cache:flush
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento indexer:reindex
bin/magento maintenance:disable

Each and every step, including setup:di:compile, ran without any errors. However, when opening the front end, the aforementioned error is thrown. The back end works fine.

If you analyse the error message you'll see that the code requires a class called Magento\Catalog\Model\View\Asset\ImageFactory. This class does not exist by default but is instead generated as a proxy or interceptor on the fly - or during setup:di:compile.

However, when inspecting the generated/ folder, we can see that there is in fact no file called generated/code/Magento/Catalog/Model/View/Asset/ImageFactory.php. However, that file should have been created there (it is there in the 2.2.5 backup for example).

And it's not just this particular class that is missing. There are actually a lot of files missing in the generated/ folder, judging by the comparison to a working 2.2.5 installation.

So it seems for some reason Magento is unable to identify all required classes for dependency injection - or something similar. Since the file is neither created on demand, nor during setup:di:compile. But what could be the reason for that?


texts:
we have top links in our site1 as below

store view switcher,  My Cart, Checkout, Register, Log In

for some reason we removed it and made it like site2

we want to know what code is removing the top links, because we want to display those links again.


texts: before and after attributes are not working in local.xml

texts:
I'm having a 'standard compare product' feature on product page, which is basically comparision of current product with the standard one. I called that block in local.xml like

<catalog_product_view>
    <reference name="content">
         <block type="compare/product" name="myblock" before="product.info.upsell" template="compare/product.phtml" />
    </reference>
</catalog_product_view>

The problem is when I use before attribute it is putting the template in the beginning of content, When I use after it is placing at the end. I want to put it after description or below the upsell products, How we can do that? Why before and after attributes are not working here?
Thanks in advance.


texts: Layered Navigation - for color and multicolored

texts:
I like to have in the layered navigation this kind of navigation (see about the colors):

http://www.rei.com/c/womens-shirts?r=c&ir=category%3Awomens-shirts&page=1

What is the easiest way to implement and doing it? We have at the moment all options of colors in one attribute called Color.

How I can do, that I get for example different kind of red in one main color RED.


texts: Magento 1.9 - CMS Home Page not show content

texts:
I have a problem with a cms homepage in my store. So, in my store i deleted the menu item from home page and I kept only the menu items of the individual product categories.   But for first page of my store, in System, i selected "Home Page Custom" for default page.

I have already selected the CMS page viewable in Italian and English language of the store. But still, when I go to my store at www.site.com/store i see the template of my site with menu and footer but without the content of my CMS Page. Only when i selected language of my store in Italian or English i see the content of my CMS home page.

How can I view the default content of my CMS Page without having to select the language?

Thank you very much


texts: How do I configure a Cart Rule for Free Shipping in Magento 2?

texts:
I'm using Magento 2.1.7.

Trying to figure out a simple Cart Rule for Free Shipping using a Specific coupon code:

Specific Code
No conditions
Actions:
 Apply - Fixed amount discount for whole cart
 Apply to Shipping Amount: Yes
 Free shipping: For shipment with matching items

I've tried a few other configuration combinations, but nothing seems to be working.

If I turn on the Free Shipping shipping method, Free shipping is applied, but if it's off, and the rule is applied, there is no free shipping option. I've also tried enabling the Free Shipping setting within the carrier, but the coupon code does not enable that either.

I've read that there are some bugs regarding free shipping cart rules:

https://github.com/magento/magento2/issues/8614

but was curious if anyone had any luck getting it working.


texts: Get entire config group with scopeConfig

texts:
Currently when I want to get an entire admin page worth of module configuration, i.e. a <section> or <group>, I just end up doing something like:

$emailOnSuccess = $this->scopeConfig->getValue('module/group/field_name',
        'website');
$emailOnFailure = $this->scopeConfig->getValue('module/group/field_name',
        'website');
$runFrequency = $this->scopeConfig->getValue('module/group/field_name',
        'website');

etc. etc.

This feels wrong, but I haven't found any way to get an entire config group with scopeConfig. Is there a way to do this?

P.S. scopeConfig is injected thus:

public function __construct(\Magento\Framework\App\Helper\Context $context)
{
    $this->scopeConfig = $context->getScopeConfig();
}


texts: create products on the fly with search keyword?

texts:
In front-end search when a user searches with any keyword I need to call xyz API, it will return items based on this keyword.

Now I need to create products on the fly in Magento if those items not exist, otherwise, I need to update price.

Then I need to show the results in search result page based on the keyword as usual.

I followed link
https://mage2.pro/t/topic/1121

But I'm not able to figure it out where I need to write my logic.


texts: How to Aceess this Values. use any loop?

texts:
I have got the api response now i want to get only one value from the response.

I want to this value from response [progressdetails] = > array()


texts: Update a specific attribute based on another attribute of a product

texts:
I have a attribute named vendor_cost and another named original_vendor_cost.
I want to update some of my product (let's say if they have id 1,2, or 3 ) and set their [ vendor_cost ] to [ original_vendor_cost * 1.3 ].
here is my code:

$attributesData = array("original_vendor_cost"=>"WHAT SHOULD BE HERE?");
Mage::getSingleton('catalog/product_action')->updateAttributes(
                                                   array(1,2,3,...,n),
                                                   $attributesData,
                                                   Mage::app()->getStore()
                                              );

As in plain SQL we say:

UPDATE table_name SET vendor_cost = original_vendor_cost*1.3 WHERE id IN (1,2,3,...,n)

I know I can use a foreach() and get original_vendor_cost value and calculate new value for vendor_cost one by one and so on, But assuming the amount of my product for update(n) could be more than 10000, this is absolutely not an option, because it may take a long time to process and a big amount of queries to my database.


texts: Infinite loading when trying to add new product

texts:
As the title say, I cannot add any new product because the page doesn't want to stop loading (See screenshot below). I tryed to disable the cache, tryed with other browsers (Chrome, Firefox, Opera). Still it stays like that (been waiting for more than 10 minutes on the page, nothing change).

I just updated to Magento 2.1.2, so it might be the reason of this issue, even tough I did nothing but running composer update.

Thank you.


texts: How to include custom field values of products on head.phtml of magento programmatically?

texts:
For my custom module i have added few more meta info to products.Its added to the product meta information tab and getting saved for each product.
I dont know how to make it display in app\design\frontend\base\default\template\page\html\head.phtml along with other meta tags.
Please help


texts: How to exclude terms from search results

texts:
I want users to be able to exclude words in a search, using - like I would in a Google search.

So for example, put - in front of a word you want to leave out of the search results, like jaguar speed -car

It does not work natively and I cannot find an extension.

Is using - (aka NOT) possible?


texts: Can someone explain to me what this option is "Open Graph Image Url "?

texts: I've Noticed that this field, "Open Graph Image Url", exists whenever you access the settings of a page in Magento 2.3.5 and I've no idea what it does. Can someone explain what it does to me or refer me to some guide that would help me understand the purpose of it?


texts: Adding Owl Carousel to Magento2.2.5 Blank Theme

texts:
I am working on customizing the Magento 2 Blank theme and trying to add owl carousel however am getting this error

Uncaught TypeError: Cannot read property 'fn' of undefined
at :8888/pub/static/frontend/blank/blank_child/en_US/owl.carousel/owl.carousel.min.js:1
at :8888/pub/static/frontend/blank/blank_child/en_US/owl.carousel/owl.carousel.min.js:1
(index):479 Uncaught TypeError: $(...).owlCarousel is not a function
at (index):479
at Object.execCb (require.js:1650)
at Module.check (require.js:866)
at Module.<anonymous> (require.js:1113)
at require.js:132
at require.js:1156
at each (require.js:57)
at Module.emit (require.js:1155)
at Module.check (require.js:917)
at Module.enable (require.js:1143)

I have created a child theme of blank and placed the basic files in my app/design/frontend/blank/blank_child folder

I believe Jquery is already included in the blank theme in Magento 2.2.5?
So I then created a require js file and put it in
app/design/frontend/blank/web/requirejs-config.js

The contents of the file is:

/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */

 var config = {
map: {
    '*': {
        'rowBuilder':             'Magento_Theme/js/row-builder',
        'toggleAdvanced':         'mage/toggle',
        'translateInline':        'mage/translate-inline',
        'sticky':                 'mage/sticky',
        'tabs':                   'mage/tabs',
        'zoom':                   'mage/zoom',
        'collapsible':            'mage/collapsible',
        'dropdownDialog':         'mage/dropdown',
        'dropdown':               'mage/dropdowns',
        'accordion':              'mage/accordion',
        'loader':                 'mage/loader',
        'tooltip':                'mage/tooltip',
        'deletableItem':          'mage/deletable-item',
        'itemTable':              'mage/item-table',
        'fieldsetControls':       'mage/fieldset-controls',
        'fieldsetResetControl':   'mage/fieldset-controls',
        'redirectUrl':            'mage/redirect-url',
        'loaderAjax':             'mage/loader',
        'menu':                   'mage/menu',
        'popupWindow':            'mage/popup-window',
        'validation':             'mage/validation/validation',
        'welcome':                'Magento_Theme/js/view/welcome',
        'breadcrumbs':            'Magento_Theme/js/view/breadcrumbs'
    }
},
paths: {
    'jquery/ui': 'jquery/jquery-ui'
},
deps: [
    'jquery/jquery.mobile.custom',
    'mage/common',
    'mage/dataPost',
    'mage/bootstrap'
],
config: {
    mixins: {
        'Magento_Theme/js/view/breadcrumbs': {
            'Magento_Theme/js/view/add-home-breadcrumb': true
        }
    }
}
};
 var config = {
              paths: {
        'owlcarousel': "web/owl.carousel"
    },
shim: {
    "web/owl.carousel.min": ["jquery"]
    }
 };

I then have the owl.carousel js files in a path that is
app/design/frontend/blank/web/owl.carousel/

I have the owl.carousel css file located in
app/design/frontend/blank/web/owl.carousel/assets/


texts: Magento : Layered Navigation Search Filter

texts:
I am trying filter layer search.
How to make filter layered search with four attributes.
How to make a filter search with category, sub-category, width, height, price.


texts: Full Page Cache hole punching (JS workaround)

texts:
I have timers/countdowns on my Product Pages. This code is written in PHP and is inserted as a block. The problem is, with the default M2 FPC these values get cached server-side.

I believe that Magento can't "Hole Punch" like Varnish. And attempting any workarounds lead to the entire page being invalidated.

Therefore, if I rewrite my PHP as JS, will this solve my problem as the value would be generated client-side?


texts: Magento Top Links Login class disappears randomly!

texts:
So I have slightly modified the customer.xml file to add classes to the top links, so I could add font awesome icons to them. The issue I am having is for some reason the login class disappears if I click on the login link, then without actually logging in, click back to the home page, the class on the login link get removed!

<reference name="top.links">
        <action method="addLink" translate="label title" module="customer">
            Login
            <url helper="customer/getLoginUrl"/>
            <title>Login</title>
            <prepare/>
            <urlParams/>
            <position>12</position>
            <liParams>
                <class>toplinks-login</class>
            </liParams>
            <aParams>
                <class>toplinks-login-a</class>
            </aParams>
            <beforeText/>
            <afterText/>
        </action>
    </reference>

This is the code I have for the login. So when the problem happens the "toplinks-login-a" class disappears and no class is shown at all.

I have searched for hours and can't find out why this could happen. Does anyone know another alternate way to add a class, perhaps hardcoding it?

EDIT:
This is what the HTML looks like when the page loads correctly

Login

And when it doesn't work randomly

Log In


texts: Adminpanel hangs for a couple of seconds

texts:
When I try to access the admin panel and after I login at every click, the site just hangs for a few seconds, usually between 12-30 seconds.

Store works fine, without any issues.

What I have done:

Checked older versions of site and db, they do the same, although as far as I can remember those saves used to work okay.
I check for sleep(#) in code
performed maintenance on site (Cleared cache, logs, etc.)
upgraded site/modules to newest possible version.

Any Pointers?


texts: I'm having a problem in importing for Magento. I have 5 different stores, chinese, english, french, español and german. Everything is working out fine but when I look at the chinese store, the product appears to be imported but the info isn't. Its counterparts shows the info in their correctly(in their own languages) except for the chinese store. When checking of the import file, it goes on smoothly, but after importing, it seems that the chinese characters were not imported...


texts: how to create controller to show product name and stock status (Available/out of stock) in magento?

texts:
I want to create a table to show stock status if all products.
This table will contains following fields:
=> Product Name
=> Product SKU
=> Quantity
=> Stock Status (In Stock / Out of Stock)
I tried using object manager.. but not able to find mistake in Stock Status.
Here is my code:
<?php

$objectManager = \Magento\Framework\App\ObjectManager::getInstance();

$productCollection = $objectManager
    ->create('Magento\Catalog\Model\ResourceModel\Product\CollectionFactory');

$collection = $productCollection->create()
    ->addAttributeToSelect('*')
    ->addAttributeToFilter('type_id', array('neq' => 'configurable'))
    ->joinField('stock_item', 'cataloginventory_stock_item', 'qty', 'product_id=entity_id') // add 'qty=0' to get outofstock products
    ->load();

?>

            Sr.
            Name
            SKU
            Quantity
            Stock Status

        <?php
        $count = 1;
        foreach ($collection as $product) {
        ?>

                <?php echo $count; ?>
                <?php echo $product->getName(); ?>
                <?php echo $product->getSku(); ?>
                <?php if($product->getStockItem()==NULL){echo "-";} else { echo $product->getStockItem(); } ?>

                <?php

                if($product->getStockItem() > 0)
                {
                    echo 'In Stock';
                }
                elseif($product->getStockItem() == NULL)
                {
                    echo 'N/A';

                }
                else
                {
                    echo 'Out of Stock';
                } ?>

        <?php $count++;
        } ?>


texts: Set cookie when customer logged in Magento 2

texts:
I want to set a few cookies named CUSTOM_NAME_FIRST should be set to customer first name and CUSTOM_NAME_LAST should be set to a customer last name when customers logged in and delete upon customer logout.

I can set the custom cookie using CookieManagerInterface

public function __construct(
    \Magento\Framework\Stdlib\CookieManagerInterface $cookieManager,
    \Magento\Framework\Stdlib\Cookie\CookieMetadataFactory $cookieMetadataFactory
) {
    $this->cookieManager = $cookieManager;
    $this->cookieMetadataFactory = $cookieMetadataFactory;
}

/** Set Custom Cookie using Magento 2 */
public function setCustomCookie()
{
    $publicCookieMetadata = $this->cookieMetadataFactory->createPublicCookieMetadata();
    $publicCookieMetadata->setDurationOneYear();
    $publicCookieMetadata->setPath('/');
    $publicCookieMetadata->setHttpOnly(false);

    return $this->cookieManager->setPublicCookie(
        'magento2cookie',
        'Custom_Cookie_Value',
        $publicCookieMetadata
    );
}

But can someone show me better way using js or section?


texts: M2 - Have client be able to edit/change header on each CMS Page?

texts:
I have a client that wants to be able to change the header themselves through the admin (with css) so it can be different on each CMS page.

They want this because their current header is transparent, and on some pages with dark backgrounds/light backgrounds it looks odd. So basically they want to control it.

Does anyone have any ideas on how I would achieve this?

I know I can use < style > OVERIDE HEADER CSS< / style > directly in the CMS page, is that the best practice though?

Thanks so much!


texts:
I have installed 8788v1 but I have noticed that v2 has been release but following the Magento instructions which are very vague it says to revert the patch. But I cant find it on the site, I have found their GitHub repo but there is a syntax error on the patch file that I need. I have never heard of reverting a patch before. It seems like an awful lot of work.

We also use version control so the patch is not uploaded. Once it has been installed it is removed from the client folder.

Any advice on how best to solve these issues?


texts:
Scratching my head with this. Magento multi store installation, run reindexing from admin OR SSH and although checking the status of indexer.php shows 'processing' there is no var/locks/ folder created?

What might cause this?


texts: Magento 2 How to remove zero count in Layernavigation

texts: Magento 2 How to remove zero count in my custom filter i have lot of option with zero count how i will remove


texts: In Magento 2 how to add phtml block after newsletter in footer.?

texts:
I want to add html content after newsletter in footer section in luma
  theme

Please suggest me how can i do that?


texts:
I am trying to load attribute options for specific store only. It's a multistore setup and options for attribute are entered for Admin column as well as for individual stores. However, no options are entered for some stores. I want to get values for stores and get 0 or nothing if a store has no values entered. Don't want to get Admin column values in this case.

The code I have used is below:

$attributeOptions = Mage::getResourceModel('eav/entity_attribute_option_collection')
                                ->setAttributeFilter($attribute->getId())
                                ->setStoreFilter($storeID)
                                ->setPositionOrder()
                                ->load()
                                ->toOptionArray();

This still returns admin column values. I understand this is to support multilingual but there must be a way to get this.


texts: Magento 2: Is there any certification for Magento 2?

texts: Is there any certification available for Magento 2 like we have for Magento1 ??


texts: How to get Salable Quantity in product collection?

texts:
Need to filter product collection by salable qty in frontend in catalog>product>list.phtml. Currently, I am processing the saleable qty inside foreach loop but it takes lot of resources and some time site getting down.
Here is my code
$_productCollection->getSelect()->joinLeft( ['sot' => 'inventory_reservation'], 'sot.sku = e.sku', 'quantity as inQty' );


texts: Include manufacturer on sales email/invoice

texts:
Recently we removed the manufacturer of our products from the product name, and instead now use the manufacturer attribute in Magento. I've managed to add the manufacturer to the product name when it's in the cart and throughout the checkout process without too much of an issue.

However, the manufacturer doesn't display on the invoices we send out, or the confirmation email the customer receives. This is causing problems as some products share the same name but they're by different manufacturers. Plus it doesn't look great for the customer to not have this bit of information on the email when it's displayed throughout the checkout process.

What can I do to add the manufacturer to the product name in the sales emails?

EDIT: Just something to explain what I mean with an example.

Let's say this store sells the Apple iPhone 7S. Up until recently, the manufacturer of the product (Apple in this case) was included with the product name. Now though we've removed it from the product name and instead include it as the manufacturer. So now the product name is iPhone 7s, and we add the manufacturer from the attribute.

Throughout the checkout flow, normally Magento won't display the manufacturer in the cart or anywhere else. I got round that by adding it in. However, that same technique I used doesn't work when sending invoice emails. So instead of our customers receiving Apple iPhone 7S they just have iPhone 7S written on their invoice without a mention of the manufacturer.


texts: Magento 1.9 - alternative to  in local.xml

texts:
I have the fallowing code in my module local.xml:

  <reference name="top.links">
     <action method="addLink" translate="label title" module="mymodule" >
         <label>Messages</label>
         <url>mymodule/account/list/</url>
         <title>Messages</title>
         <prepare>true</prepare>
         <urlParams helper="core/url/getHomeUrl" />
         <position>30</position>
         <liParams><![CDATA[ class="title_li"]]></liParams>
         <aParams><![CDATA[ class="title_a"]]></aParams>              <beforeText></beforeText>
         <afterText helper="module/returnValue"></afterText>
     </action>
  </reference>

As you can see in the afterText tag, it calls the returnValue function from my module helper and I display the value returned in front of my top.link. I would like to know if there is someway to display something like that in the label tag to be part of the same link or something like that.

Thanks a lot!


texts: Is there any way to know if a magento is community or enterprise without accesing the code?

texts:
I know I can check what version of magento is installed using

something like this: http://magentoversion.com/?url=http%3A%2F%2Fwww.tailoy.com.pe%2F

And I know that there is almost no difference between the enterprise and the community,

but I would like to know if some of the biggest websites using Magento on some countries are paying the fee.

Thanks!


texts: How to add new "Sort by" filters in Magento 1.9 CE?

texts:
I'm new to magento. I'm using Magento 1.9 CE Today it's the 4th day of my trying to customise magento. My biggest problem is with the filters, I am creating a fashion-store template. So i need filters: size, color, manufacture, brand, etc
I trying to archive this with default function "Sort by" but I can't still find anything on it and how to implement in magento custom theme. I don't like "premium $" extensions. I am still searching for solution. If you managed some similar project, can you help me to find the right way?
Thanks.


texts: Magento2 : How to add telephone in order csv export

texts:
I want to add customer billing telephone in Billing Address column in Order csv export.

Is there any setting in admin to add telephone?

Or need to override any core function for this?


texts:
I am using magento1.9.3.2 version,i got an issue in onestep checkout.
Issue is in checkout page selected the payment method and return to home its shown an error message like "Please select Payment Method".. please check below image


texts: Magento 2 : How to associate simple products to the configurable products programmatically

texts:
Programmatically:
How to associate simple products to the configurable product without creating configurable product, because it exists.


texts: Cannot subscribe email newsletter to second storeview: email already exists

texts:
we have several storeviews. And until recently I noticed that if 1 email is subscribed to storeview A (store) it cannot be added to storeview B (store).

We use this block on a page to add the newsletter subscription form:

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

The error when I add the email to store B is "email is already subscribed" .. but it is not ... it is subscribed to store A: now the customer also wants to receive the newsletter from store B (other brand) ...

The error message comes from mage_newsletter: "This email address is already assigned to another user."

UPDATE: Share Customer Accounts is set to Global under System->CUSTOMERS->Customer Configuration->Account Sharing Options.

question: how can I make this work? and allow customers to subscribe to 2 different newsletter (from 2 different stores)?

thanks


texts: How to add widgets to specific pages in magento?

texts:
I created a static block. Then made a widget using that static block. And now i want to add that to the layout of some pages.

If i choose display on all pages, it works on all pages. But as of now i first only want it on two pages, about us and the homepage, but how to do that in widgets? I don't see homepage or about us in the specific page drop down ?


texts: Paypal Payment option not visible in checkout in magento 1.9.2.4

texts: I am using magento 1.9.2.4. and i have configured paypal well. But paypal payment option not visible in checkout page. But i am able to see checkout button in view cart page. Please help me to resolve the issue.


texts: How to do "Allow customer register as Seller" magento 1.9

texts: I'm new in Magento and I'm doing a project, it has one of the requirements that "Allow customer register as Seller". But I have no idea how to do it, please help. Thanks.


texts: var/session is huge then invalid key on login

texts:
I've noticed every so often the inability to logon to my admin page as it'll throw an invalid form key, everytime this happens i have to delete all sessions in the var folder, refresh the page then im in.

This folder is absolutely massive.

Is there a way to limit the amount of sessions that can be stored to stop this from happening?


texts: Call to undefined method Magento AttributeMetadataConverter.php

texts:
I used the Migration data tool for migration data from 1.8 tot 2.0.2. The migration was successful. But after that i can't open the customer grid or a order. This is the error.

  PHP message: PHP Fatal error:  Call to undefined method
  Magento\Eav\Model\Entity\Attribute\Backend\ArrayBackend::getAllOptions()
  in
  /data/web/magento2/vendor/magento/module-customer/Model/AttributeMetadataConverter.php
  on line 66

The customer data is available in customer_grid_flat.

What can be the problem?


texts: Multiple actions on shopping cart price rule

texts:
I've viewed some articles on creating shopping cart rules programmatically, but what I can't find is how to combine multiple actions into the one coupon code.

What I need to do is apply 15% discount to the cart AND add on a free item when a coupon is used.  I've bought a plugin to allow me to add the free product, I just need to find a way to apply both actions to one coupon code.

Thanks in advance


texts: Add image attribute to registration page : Magento 2

texts: Dears, I am new to magento 2. How can I add an image attribute to registration page like image profile and must be show in create account and edit account..


texts: Magento 2: Check condition on Click of "Proceed to Checkout"

texts:
May be I need to create Event Observer. I would like to check Product's Type Condition & Display Message Accordingly on Shopping Cart Page.

  <event name="controller_action_predispatch_XXX_XX_XX">
  <observer name="checkcout_page" instance="Custom\Module\Observer\CheckShoppingCartObserver" />
  </event>

http://www.advancedcheckout.com/blog/list-event-magento2.html/

https://cyrillschumacher.com/magento2-list-of-all-dispatched-events/

It's not giving event information when it's gonna execute on, on which place/page?

What will be method i need use instead of XXX.


texts: magento 1.9 picture of my product not Equal

texts:
I have a problem
in home page or other page i have list of product Like other shoping site
in my site all picture Not the same size
please  see the upload picture

thanks


texts:
Upgrade from Magento 1.9.0.1 to 1.9.1

Some customization has been made, I have modify some for the .phtml files , e.g view.phtml, text.phtml ( about product custom options), and some css files as well.

Since they are not the core files, i wonder if the update will restore these files to original after the update?

Thanks in advance!


texts: fedex integration not working in magento 1.9.2

texts:
I have created an developer account with fedex and follow these steps http://www.cobbconsulting.net/magento-fedex-setup.html
and
http://inchoo.net/magento/how-to-set-fedex-shipping-in-magento/

after complete all setup at checkout page it's show no shipping quotes are available

there are no errors why?

any help?


texts:
I am adding products programmatically in Magento 2. I want to recover all the manufacturers and test if it exists otherwise I want to create it.

How to recover all brands in magento2?


texts: Magento2 Add Custom Field On Checkout Billing Address With Validation

texts:
i have created custom field on checkout billing address and it is showing perfect and i also add required field valdation but it is not working.
someone help me with this please.

i have add below code using layout processor

$jsLayout['components']['checkout']['children']['steps']['children']['billing-step']['children']
                    ['payment']['children']['payments-list']['children'][$paymentGroup]['children']['form-fields']['children']['customfield'] = [
                        'component' => 'Magento_Ui/js/form/element/abstract',
                        'config' => [
                            'customScope' => 'billingAddress',
                            'template' => 'ui/form/field',
                            'elementTmpl' => 'ui/form/element/input',
                            'id' => 'customfield'
                        ],
                        'dataScope' => $groupConfig['dataScopePrefix'].'.customfield',
                        'label' => __('Custom'),
                        'provider' => 'checkoutProvider',
                        'visible' => true,
                        'validation' => ['required-entry' => true],
                        'sortOrder' => 75,
                        'id' => 'custom-field',

                    ];


texts: help me out to tag this 3 features above add to cart button


texts: Creating product view block with custom template in controller action fails

texts:
I want to create a Magento\Catalog\Block\Product\View block in a custom controller action (which will be used for an AJAX call later on). However I am getting the following error when creating the block (and setting the template):

Exception #0 (Magento\Framework\Exception\ValidatorException): Invalid template file: 'Vendor_Module::product.phtml' in module: 'Magento_Catalog' block's name: 'product\view_0'

app/code/Vendor/Module/Controller/Product/View.php

<?php

namespace Vendor\Module\Controller\Product;

class View extends \Magento\Catalog\Controller\Product
{
    protected $layoutFactory;
    protected $resultFactory;

    public function __construct(
        \Magento\Framework\App\Action\Context $context,
        \Magento\Framework\View\LayoutFactory $layoutFactory,
        \Magento\Framework\Controller\Result\RawFactory $resultFactory
    ) {
        $this->layoutFactory = $layoutFactory;
        $this->resultFactory = $resultFactory;
        parent::__construct($context);
    }

    public function execute()
    {
        $block = $this->layoutFactory->create()
                    ->createBlock('Magento\Catalog\Block\Product\View')
                    ->setTemplate('Vendor_Module::product.phtml')
                    ->toHtml();

        $result = $this->resultFactory->create();
        $result->setContents($block);

        return $result;
    }
}

app/code/Vendor/Module/view/frontend/product.phtml

Hello World!

app/code/Vendor/Module/etc/frontend/routes.xml

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

I can't find the mistake. The definition of the template (Vendor_Module::product.html) plus the template's location should be correct. I also tried putting the template directly in app/code/Vendor/Module/view - but that did not change anything.

What could be the problem here?


texts: I have a special responsive mobile store at m.MYdomain.com - how to make Magento detect mobile devices and forward the traffic to m.Mydomain.com?

texts:
I've setup a subdomain = m.MYdomain.com with a Porto reponsive theme which is fully responsive (it seems to do a good job detecting the screen size and formatting the website accordingly). The reason I've setup m.myDOMAIN.com is so that I can include less text and way less products on the front page than I actually have on the front page of the desktop version. The point is - I don't need anything fancy (like detecting the actual size of the mobile device) but just differentiate:

Is this a desktop the customer is using or a mobile device (phone, tablet) and if it detects a mobile device then - transfer the traffic to m.MYdomain.com

I'm sure there is a simple script I could just paste somewhere in the Magento Admin panel to make this happen?

So to clarify once again:

I've set up a new Magento store for our mobile site (under the same WEBSITE as the desktop version)
I need to implement some logic to switch between the store views based on the client browser (maybe?) or detect if it's a computer or a mobile device they are using...

Magento 1.9.1


texts: stuck in maintenance mode - unable to log into admin panel

texts: While preforming a backup, I got hung up and had to refresh page (after an hour) "Put the site in maintenance mode" was checked. Now my admin log in is redirecting to the site itself. I deleted maintenance.flag through ftp but I'm still unable to log into my admin panel. I added some "allow IP code" to my index.php file but again, no go. Any other suggestions?


texts: How do I refresh data when I hit Tab on the left in magento2

texts:
When developing editing pages of background management pages, currently magento2 does not refresh the data when switching different Tab pages. I want to refresh the page data when switching tabs. What should I do?
Below are my layout file contents.

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="admin-2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<head>

</head>
<body>
    <referenceContainer name="content">
        <block class="Magenest\Hotel\Block\Adminhtml\Features\Edit" name="hotel_features_edit"/>
    </referenceContainer>
    <referenceContainer name="content">
        <uiComponent name="hotel_services_listing"/>
    </referenceContainer>
</body>
<referenceContainer name="left">
    <block class="Magenest\Hotel\Block\Adminhtml\Features\Edit\Tabs" name="hotel_features_tabs">
        <block class="Magenest\Hotel\Block\Adminhtml\Features\Edit\Tab\Features" name="hotel_features_tab_general"/>
        <block class="Magenest\Hotel\Block\Adminhtml\Features\Edit\Tab\Services" name="hotel_services_tab_general"/>
        <action method="addTab">
            <argument name="name" xsi:type="string">hotel_features_general</argument>
            <argument name="block" xsi:type="string">hotel_features_tab_general</argument>
        </action>
        <action method="addTab">
            <argument name="name" xsi:type="string">hotel_services_general</argument>
            <argument name="block" xsi:type="string">hotel_services_tab_general</argument>
        </action>
    </block>
</referenceContainer>


texts:
We are running CE 2.1.2
Magento 2 sets the residential flag in the rates to request based on the configuration data. This means that all quotes are either residential or commercial, depending on what you set in the shipping method.
I want to set the flag based on if the Destination Address has a Company set or not.
What I did is go into /vendor/magento/module-fedex/Model/carrier.php and change line 430 from
'Residential' => (bool)$this->getConfigData('residence_delivery'),

to
'Residential' => !empty(trim($r->getRecipientContactCompanyName())),

The is not working. Residential is false always. So empty must be returning true always.
Is the getRecipientContactCompanyName() not the right way to get the Company name in this module? Any hints as to what I am doing wrong would be appreciated.


texts: Magento 2.3 - removing the login/Signin button on checkout page

texts:
I use magento 2.3.2 and i cant locate the SIGN IN button in the checkout page of my website..

i have tried to access
magento\vendor\magento\module-checkout\view\frontend\templates\onepage\link.phtml
 and many others but still cant find the location and the code that is enabling it..
i need it removed.
see image of the button i want removed..


texts: How to change text of coupon code the correct way (not editing core file)

texts:
I am a front end developer trying to figure out how to override

app/code/core/Mage/XmlConnect/controllers/CartController.php

So I can change the coupon code error text, can anyone please guide me on how I would do this the correct way?


texts:
Magento 2 Image Processing Settings: Image Adapter

What is the difference between PHP GD2 and ImageMagick?
Which one is fast(optimizing website speed) and which one should be recommended?


texts: Session gets clear in category page only in Magento

texts:
I have one problem in Magento Live server uploaded site. The problem is related to session or cookies. When I add product to cart or login, then visit category page, the session gets clear and i get signed out and cart gets cleared.

I tried setting session/cookie management. but I did not find a solution. Also asked to server technical support, they also were not able to find anything. This only happens in only one category page.

Anybody else has faced this problem?

Please give me solution for this.

Thanks.


texts: Filter on custom attributes - elasticsearch - not working on simple products

texts:
I have a project where I have a lot of configurable products and I need to make some filters there. I've manage to make the filters and everything related but the issue is that when I apply filters

I am getting that for size 34 there are 22 products in total and from those, there are 22 products with stock_custom filter on "In stock"  and 18 with "Out of stock". The "Out of stock" value is ok, but the "In stock" value is not because is showing me the total count of products and is not taking into consideration the size filter.
I want to mention that the size filter is the super attribute for configuration so it should get the simple products with "stock_custom" values.
What do I do wrong here?


texts:
I am using Magento 1.7.0.2.I would like to delete the orders in my Magento site. I have tried to delete it in database but that is not the proper way.
Thanks in advance!


texts:
I had a fresh install of Magento2 and was trying to install sample data by bin/magento sampledata:deploy but it gave back error In PluginManager.php(196) : eval()'d code line 188:
chmod(): Operation not permitted . There is an error during sample data deployment. Composer file will be reverted .

Do somebody know what have gone wrong  ?


texts: Can't save/create customer in backend - infinite loading

texts:
I can't create or save a user, there is just a spinning loading icon in the middle all the time even for half an hour. If I reload the page then I see that nothing has changed.

What might be the cause?


texts: Some Widgets ARE showing some are not showing Magento

texts:
http://ringmastersports.co.uk/

The site is working perfect on mobile but on desktop it works fine few widgets won't showing on frontend.
i'm working to fix these bugs from last 3 days . don't find any solutions.

this website is made in emgameworld premium magento theme.
slider don't showing and also other things are not showing like tabs. where as few widgets work fine.


texts: Different Discounts for Different Quantities

texts:
What would be the step by step to make it so certain sku's are 5% for quantities 2-4, 10% for quantities of 5-8?

I've tried 'contains', 'is one of', 'is' 2,3,4

If I only have 1 in cart, it gives the 5%

If I have 5 it isn't 'bumping' up to the 10% but instead continuing with 5% for all 5 instead of 10% for all 5 in cart


texts: Exclude Categories by Level in Layered Navigation

texts:
i have a shop with a lot of categories. Layered Navigation (shop by categories) is on and active.

Problem: I have two categories with plenty of subcategories. The Shop by Filter is now showing all subcategories (and their subcategories) of the category.

For these two categories it would be better, just showing the next-level-categories (and not their subcategories as well).

Example:

Cat 4 and Cat 5: Layered Navigation should only show direct subcategories of Cat 4 and 5.
All Other Categories should show all Subcategories (all Levels).

I hope this makes it clear and anyone knows a solution.

Thanks for your help.


texts: Some sub-category URLs goes to a 404 page

texts:
I have seven categories under Default Category, and a number of sub-categories under the main seven.

I am getting a 404 error; when I go to a couple of the sub-categories under two of the main categories! All other category URLs under the categories and sub-categories work fine.

Example:

  cat-1

  cat-1/sub-1-1 (noerror)
  cat-1/sub-1-2 (404)
  cat-1/sub-1-3 (noerror)
  cat-1/sub-1-4 (noerror)

  cat-2

  cat-2/sub-2-1 (404)
  cat-2/sub-2-2 (404)
  cat-2/sub-2-3 (noerror)
  cat-2/sub-2-4 (noerror)
  cat-2/sub-2-5 (noerror)
  cat-2/sub-2-6 (noerror)

When hovering over the category URLs the links look as follow:

  domainDOTcom/cat-1
  domainDOTcom/cat-1/sub-1-1
  domainDOTcom/cat-1/sub-1-2
  domainDOTcom/cat-1/sub-1-3
  domainDOTcom/cat-1/sub-1-4

  domainDOTcom/cat-2
  domainDOTcom/cat-2/sub-2-1
  domainDOTcom/cat-2/sub-2-2
  domainDOTcom/cat-2/sub-2-3
  domainDOTcom/cat-2/sub-2-4
  domainDOTcom/cat-2/sub-2-5
  domainDOTcom/cat-2/sub-2-6

The 404 error link looks like:

  domainDOTcom/cat-1/index.php?main_page=page_not_found
  domainDOTcom/cat-2/index.php?main_page=page_not_found

Note: And also from admin I have Flushed Cache Storage, Flushed Magento Cache, Re-freshed all cache types.

And via SSH I have re-indexed all as follow:
magento/shell
php indexer.php --reindexall
This didn't do it either.

What could be causing this?


texts:
I changed the settings in my Magento store to use Canonical URLs:

System > Configuration > Catalog > Search Engine Optimizations. Then I selected Yes for Use Canonical Link Meta Tag For Categories and  Use Canonical Link Meta Tag For Products. I have cleared the cache and opened up my product, checked the source code for "canonical" and nothing can be found.

How can that be? Any hints how I can solve this?

Thanks.


texts: How to Create Custom Social Login In Magento2

texts:
I want to create social login in magento2.I want to add google and facebook as social login.Could anyone explain me how to add this functionality in magent2 without using any extension.
I dont want to use any extension.


texts: Magento 2.3: How to Set / Get Encrypted core_config_data

texts:
I'm trying to save / get encrypted data in my core_config_data table, such as an API key for example.  In my system.xml file I have it set to obscure:

<field id="my_access_token" showInDefault="1" showInStore="1" showInWebsite="1" sortOrder="10" translate="label" type="obscure">
    <label>Access Token</label>
    <backend_model>Magento\Config\Model\Config\Backend\Encrypted</backend_model>
</field>

And then in my config.xml file I have:

<?xml version="1.0" ?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd">
  <default>
    <test>
      <api>
        <my_access_token backend_model="Magento\Config\Model\Config\Backend\Encrypted" />
      </api>
    </quickbooks>
  </default>
</config>

This allows me to to retrieve / decrypt the value when using:

$this->scopeConfig->getValue('test/api/my_access_token', $storeScope);

However, if I want to save a new value with the following, it saves as plain text / unencrypted in the core_config_data table

$this->configInterface->saveConfig('test/api/my_access_token', $myAccessTokenValue, 'default', 0);


texts: No CSS or JS in Magento 2.3.3 on Virtualbox/Vagrant in Windows 7 Host - Text File Busy

texts:
I have a Magento 2.3.3-p1 installed in VirtualBox/Vagrant guest on a Windows 7 host. The server setup is running Ubuntu 19.10 with Apache2, PHP 7.3 MYSQL, etc. Despite all my efforts I can only get both the front end and admin sites to load without any CSS or JS. Whenever I try to run the di:compile and deploy static content I get the below warning message as well as many more of the same but for different directories:

The Directory "/var/www/html/generated/..." cannot be deleted Warning!rmdir(var/www/html/generated/...): Text file busy

The closest guess I can make is that Windows 7 is not allowing permissions on the files despite me giving them. I have tried many things but so far no luck.

Please forgive any mistakes or breaches of etiquette here, this is not my usual area as I'm a designer not a programmer.

Update: I have also installed a Wordpress site in the same directory and it is working fine so it just seems to be an issue with Magento 2.


texts: How to modify catalog quick search query in Magento 2?

texts:
I have created a custom attribute for the product which contain zip/postal code of cities in which the product is available, now I want to modify the catalog search query so that if a customer(logged in) search any product than products which are only available in his/her city(using his/her address zip/postal code) should appear first.
Can anyone help me, how and where to modify the search query?
The search engine is MySQL.Magento version 2.3.5 -p1(Community).


texts: We need to remove completely the payment option cc saved, please can someone explain how?


texts: I cannot login to my magento 2.0 admin panel

texts: I have successfully installed magento 2.0 However I cannot see any default theme appled on the front end and also I am not able to login to my admin panel


texts: Custom pricing `catalog_product_get_final_price` and catalogrules

texts:
I'm implementing double customer group functionality for a B2B website in Magento 1. Essentially, a customer can have two customer groups, and the lowest price should be shown.

I've got it to work perfectly, both in the frontend & admin: I'm listening to the catalog_product_get_final_price (and prepare_catalog_product_price_index_table) event.

There is one issue:

The event gets fired after the catalogrule module which means that catalogrules don't apply properly.

Example product:

Base price:    $12
Group 1 price: $10
Group 2 price: $8

If a customer is part of both group 1 & 2, its price should be $8, and the catalogrule should be applied on that $8, not the $10 which is happening at the moment.

I can't make Mage_CatalogRule depend on my module to change the order of loading because modules that start with Mage_ are always loaded first.

Can anyone point me in the right direction?


texts: Magento 2 Add CMS/phtml block bottom before product_list_toolbar and after product_list (Between)

texts:
I am not able to add a cms block in category page.

XML: <block class="Magento\Framework\View\Element\Template" name="catalog.filter.content.bottom" template="my_module::test.phtml"/>

what I have tried:

<referenceContainer name="content">
        <block class="Magento\Framework\View\Element\Template" name="catalog.filter.content.bottom" template="Amasty_Shopby::layer/test.phtml"/>
        <block class="Magento\Catalog\Block\Category\View" name="category.products" template="Magento_Catalog::category/products.phtml">
            <block class="Magento\Catalog\Block\Product\ListProduct" name="category.products.list" as="product_list" template="Magento_Catalog::product/list.phtml">
                <container name="category.product.list.additional" as="additional" />
                <block class="Magento\Framework\View\Element\RendererList" name="category.product.type.details.renderers" as="details.renderers">
                    <block class="Magento\Framework\View\Element\Template" name="category.product.type.details.renderers.default" as="default"/>
                </block>
                <block class="Magento\Catalog\Block\Product\ProductList\Item\Container" name="category.product.addto" as="addto">
                    <block class="Magento\Catalog\Block\Product\ProductList\Item\AddTo\Compare"
                           name="category.product.addto.compare" as="compare"
                           template="Magento_Catalog::product/list/addto/compare.phtml"/>
                </block>
                <!-- addedJust before product_list_toolbar does not work!?--><block class="Magento\Framework\View\Element\Template" name="catalog.filter.content.bottom" template="My_Module::test.phtml"/>
                <block class="Magento\Catalog\Block\Product\ProductList\Toolbar" name="product_list_toolbar" template="Magento_Catalog::product/list/toolbar.phtml">
                    <block class="Magento\Theme\Block\Html\Pager" name="product_list_toolbar_pager"/>
                </block>
                <action method="setToolbarBlockName">
                    <argument name="name" xsi:type="string">product_list_toolbar</argument>
                </action>
            </block>
        </block>
      ......

Next tried to add to product_list_toolbar:

<referenceContainer name="product_list_toolbar">
        <block class="Magento\Framework\View\Element\Template" name="catalog.filter.content.bottom" template="My_Module::test.phtml"/>
    </referenceContainer>

Yet without luck.

If add within content it works but it will be added either before the list at the very top or a the bottom after the tool bar which is not what I need.

What I need can be see in the screen shoot bellow!

Anyone have any idea? Thanks.


texts: In my category landing page, 9 products are showing by default. how to make it 12?

texts: In my category page, 9 products are showing by default. I want to make it 12 by default. how to make it 12?