texts: Remove Source not disable, want to delete it

texts:
Magento 2.3.1 with MSI would like to remove source.

I repeat want to delete/remove source :)

reason is I created accidentally and it needs to be remove before we move to production.

For more information I havent assigned any products to it so I think there wont be any effect on catalog inventory Correct ?

I already reviewed
https://devdocs.magento.com/guides/v2.3/rest/modules/inventory/manage-sources.html

Can anyone help ?


texts: Why is Magento licensed under two different licenses?

texts:
Recently noticed that both Magento 1 and Magento 2 have two different licenses files:

LICENSE.txt which is the OSL License
LICENSE_AFL.txt which is the AFL License

However, the LICENSE.html only shows the OSL license.

What is the point of having two different licenses ?


texts: Magento 2 customer dashboard, custom block, sub-navigation

texts:
I understand how to remove or add a navigation link in customer dashboard on magento2

Need to know how can i create submenus, or add a static text in the sidebar navigations

eg. Following is the current sidebar navigation

My Profile
Order History
Wishlist

I need to make the following changes

*Customer Name / Customer Company Name*
--My Profile
----My Addresses
----Change Password
--Order History
--Wishlist


texts: Sort (categories,Price...), number of products per page not working?

texts:
I used magento 1.7 and i have a problem.
I am in my catalog that i have many categories list and Sort by Categories , Price ...
The problem when i go to the second page in the catalog it does not work, the url (from myurl to myurl#!___SID=U&p=2) is changed but the list of products does not change.
It does not work also when i click in the sub categories and or sort price.
What is my problem?


texts:
I've gone through a number of questions on here relating to retrieving the current quote for the current browsing user, but each one yields the same result:

Mage::getSingleton('checkout/cart')->getQuote()
Mage::getSingleton('checkout/session')->getQuote()

Both give me a quote that has an entity_id of one less than the actual quote I'm looking for.

I can see the correct quote in the db as, let's say id #100002, but this returns id #100001.

I know that this is not the correct quote because running getCouponCode() returns null and I can see that is because the entity_id that is returned doesn't have one set, but the actual cart does have a coupon code and so does the entity_id that follows next.


texts:
Is there a way to edit the default custom option template on frontend?

Currently the following template file:

/app/design/frontend/theme/theme/template/catalog/product/view/options/type/select.phtml

Load the custom options by <?php echo $this->getValuesHtml() ?>

But I want to change somethings on the loaded HTML. For example I want to display also the €0,00 price or the word "Default" when the option does not increase the price. I also want to display the minus prices, when a option decrease the price. And I want to display the price excluding VAT only.

How can I achieve this? What is the loaded file, that loads the ValuesHtml?


texts:
I have a plugin that shows the top level of each category in Grid view, but there's no way to bulk upload thumbnail images.
I have about 200 categories, and I'm hoping to avoid uploading category thumbnails one by one.
Is there any way to do this?
Thanks


texts: How can we split js file from phtml file

texts:
We currently have a large phtml file that is essentially a plain JavaScript file, eg.,

<?php
  // some conditional check. about 10 lines of code
>

<script>
// here is 1000 lines of JavaScript
</script>

We want so split JavaScript into separate file so editor can have syntax highlight and we can run linters on JS file. What is the best way to split JS file into separate file but at run time still inline JavaScript code (so client doesn't have to fetch separate JS file)?


texts: Create Customer custom attribute in magento 2.3

texts:
I need to create customer custom attribute as datetime in magento 2.3

  Below is my code into Setup/Patch/Data/AddLastPasswordChangeCustomerAttribute.php with apply() funcation

public function apply()
{
    $this->moduleDataSetup->getConnection()->startSetup();
    /** @var EavSetup $eavSetup */
    $eavSetup = $this->eavSetupFactory->create(['setup' => $this->moduleDataSetup]);
    $eavSetup->addAttribute(
        \Magento\Customer\Model\Customer::ENTITY,
        'last_password_change',
        [
            'type' => 'varchar',
            'label' => 'last_password_change',
            'input' => 'text',
            'source' => '',
            'frontend' => '',
            'required' => false,
            'backend' => '',
            'default' => null,
            'user_defined' => true,
            'unique' => false,
            'group' => 'General',
        ]
    );

    $this->moduleDataSetup->getConnection()->endSetup();
}

Also i need to display that attribute in admin side in customer account information.

I have tried but it's not display at customer account information in admin side.


texts: Is it a good idea to use Google AMP for Magento 2?

texts:
Is it considered a good idea to use Google AMP for Magento 2 in 2021? I am looking for general advice. Some consider AMP as something good, but some people may say it has failed.
Why is it a good idea or why not? I am looking for the reasoning why.


texts: how to add item condition "new/used' on product page

texts: I'm using magento 1.9.3.8 and looking to add a costume filed on the product page, which will be next to the availability filed on the front end.


texts:
I setup Magento, however, my admin page is not accessible on the website. Every time I go to the admin page it pops up with 'This site can’t be reached'

Current URL: 77.68.94.254

Any help with this? I think it's due to SSL as I have to take out the s out of the Https when I access the site, however, I can't get a SSL certificate for the IP as that's not available.


texts:
I am having a very unusual issue at the moment with a cron task not working. In the table cron_schedule, it marks the executed_at time but never a finished_at time.

What makes this unusual is that I can get this to work fine, by placing a Mage::log() in the code.

DOESN'T WORK

function exportNewOrders()
{
    if( ! Mage::helper('warehouse/sales')->isExportEnabled() || ! Mage::helper('warehouse')->shouldRunCronJob('orders_export')) return;

    $_collection = $this->getOrdersCreatedSinceLastExport();

    // Don't generate xml if no new orders found
    if( ! count($_collection)) return;

    $_csv = Mage::getModel('warehouse/csv_order_export');

    foreach( $_collection as $_order )
    {
        $_csv->addOrder($_order);
    }
    $filename = Mage::helper('warehouse/file')->getFilename('orderexport');

    $result = $_csv->saveCsv($filename);

    if(!$result)
    {
        $this->getDebugHelper()->log( $this->getHelper()->__( 'Unable to write orders export to %s - writing error', $filename ));
    }
    else
    {
        $this->getDebugHelper()->log( $this->getHelper()->__( 'Wrote orders export to %s', $filename ));
        $this->setLastDate('sales_last_export');
        Mage::helper('warehouse/file')->setLastFileId(Mage::helper('warehouse/file')->getLastFileId() + 1);
    }

    return $this;
}

DOES WORK

function exportNewOrders()
{
    if( ! Mage::helper('warehouse/sales')->isExportEnabled() || ! Mage::helper('warehouse')->shouldRunCronJob('orders_export')) return;

    $_collection = $this->getOrdersCreatedSinceLastExport();
    Mage::log('hello', null, 'lu.log', true); //SEE THIS LINE

    // Don't generate xml if no new orders found
    if( ! count($_collection)) return;

    $_csv = Mage::getModel('warehouse/csv_order_export');

    foreach( $_collection as $_order )
    {
        $_csv->addOrder($_order);
    }
    $filename = Mage::helper('warehouse/file')->getFilename('orderexport');

    $result = $_csv->saveCsv($filename);

    if(!$result)
    {
        $this->getDebugHelper()->log( $this->getHelper()->__( 'Unable to write orders export to %s - writing error', $filename ));
    }
    else
    {
        $this->getDebugHelper()->log( $this->getHelper()->__( 'Wrote orders export to %s', $filename ));
        $this->setLastDate('sales_last_export');
        Mage::helper('warehouse/file')->setLastFileId(Mage::helper('warehouse/file')->getLastFileId() + 1);
    }

    return $this;
}

As you can see I am doing no extra logic, except for this log, however this now allows the cron task to complete and gives a finished_at time. I have replicated this 100% with several tests.

Anyone come across something similar? Any idea why this is happening?


texts: How do I update newsletter subscription with Magento API

texts:
I tried to update it with the following values:
PUT https://example.com/rest/V1/customers/3
BODY
{
  "customer": {
    "id": "47",
    "email": "info@example.com",
    "firstname": "John",
    "lastname": "Johnson",
    "store_id": 1,
    "website_id": 1,
    "extension_attributes": {
     "is_subscribed": true
    }
  }
}

I get a 200 respond back but the newsletter update didn't update to true.


texts: Magento 1.9 adding attributes costs just once

texts:
I want to add an attribute to a product which is not directly linked to the ammount of products you buy. For example: when you buy ten t-shirts for 1 dollar and choose for the attribute 'with print' (which costs an extra 20 dollars) I want to add the attribute price just once and not ten times. So the total has to be 10 (shirts) x 1 + 20 (extra price for printing) = 30 and not 10 (shirts) x 1 + 10 x 20(extra price for printing) = 210

Can anybody tell me how to configure this? Are attributes the way to go or do I have to configure another kind of product.

Regards


texts: Show different content in static block based on product type

texts:
I have created a custom tab.
I want to show different content in this custom tab.

If product type is simple
show simple product

If product type is virtual
show virtual product

How can i achieve this?


texts: Magento 1.9.2.1 overloads Percona 5.7: Waiting for table metadata lock on cataloginventory_stock_status

texts:
I'm working on a Magento 1.9.2.1 shop where we have some stability issue. From time to time, the Percona 5.7 database hits the "too many connections" limit and the shop becomes unresponsive. SHOW processlist seems to reveal that the issue is caused by a lot of query stuck Waiting for table metadata lock on this query: SELECT cataloginventory_stock_status.product_id, cataloginventory_stock_status.stock_status.

The server has active visitors, but it's by no mean under heavy load.

max_connection is set to 1024 (verified via show variables like '%connections%';)

This is the full output of processlist

Any hint is welcome, thanks.


texts: Magento Commerce Cloud 2.3 which template(s) for products displayed by page builder

texts:
In my custom theme I need to modify the product list/grid templates for products that were placed there using the page builder.
Can anyone please tell me where I can find these template files? Thanks


texts:
How can I create custom collection to show data in grid in back-end.
Example, I want to show a list of log files or show cron job tasks, The did not come from Database, just an array I collect.

Please help me.


texts: How to make Dynamic URL for Browser and Mobile Application - for Customer Confirmation mail URL?

texts:
Magento 2 gives us the ability to take more control of the customer account creation process.

There is a special configuration setting located in

  Admin under Stores → Configuration → Customers → Customer Configuration
  → Create New Account Options named Require Emails Confirmation
  (Yes/No)

I am receiving the mail and everything's works fine, But my concern is I have Mobile Application too for my Magento project.

And In email confirmation button I have URL like this

https://<magento.host>/customer/account/confirm/?id=123&key=b686b138f5ec5fe5ff7610b7527a9b4b

Now, this URL is directly opens in the the browser even if customer has
Installed the Application.

  Now, How can I make Dynamic URL for this specific functionality, If
  user have Installed the application then It automatically opens in
  Mobile Application and if user doesn't have the application then opens in
  Browser.


texts: Magento 2 - How to apply security patch?

texts:
In Magento 2 after a security report. I have this action to perform :

Apply the Magento 2.2.7/2.1.16 Security Update immediately. Review your
site for signs of compromise. Find more information about Security
Best Practices.

The version is currently 2.2.6 and I am wondering how to apply this security update ?
I find this doc : https://magento.com/security/patches/magento-2.2.7-and-2.1.16-security-update
But in Magento Open Source table there is only new installations link.
Thanks for your help.


texts:
I keep getting an error stating
" There has been an error processing your request
Mage registry key "em_current_theme" already exists

Then a bunch of Trace: numbers"

It happens on the mobile version of my site and i'm wondering if there is a quick fix to resolve this issue once and for all.


texts:
I'm encountering a problem when using the native export module in admin.

I'm using an admin account with a specific role that can only access to catalog and system / export

If my first action is to go to system / export an trying to export products for example, the file is not generated and I'm redirected to my default admin page ( product list ).

If I'm visiting another page and come back to try the export again, it works.

I see that's because of the code which creates the file :

public function create(
        $fileName,
        $content,
        $baseDir = DirectoryList::ROOT,
        $contentType = 'application/octet-stream',
        $contentLength = null
    ) {
        if ($this->_auth->getAuthStorage()->isFirstPageAfterLogin()) {
            return $this->_redirect($this->_backendUrl->getStartupPageUrl());
        }
        return parent::create($fileName, $content, $baseDir, $contentType, $contentLength);
    }

In module-backend/App/response/Http/FileFactory.php

Can someone could explain me why the admin user needs to be redirected if a file is generated on the first page visited in back-office ?

I'm thinking about removing this redirection to solve my problem but I'm wondering if this redirection is related to security or something else.

Thank you


texts: Magento 2 - Composer update does not fully update core

texts:
I am on the latest version as of 2.4.1. There is a bug in my shop, I noticed that a file in vendor/magento is responsible for it (vendor/magento/module-newsletter/Model/Subscriber.php).
I noticed that the file differs from the original latest file.
So I executed composer update but the file was not changed at all.
In my understanding composer update will update the code to the latest version, but this does not seem to work at all. If I delete the file vendor/magento/module-newsletter/Model/Subscriber.php and execute composer update then it is not even fetching the file again.


texts:
I have created a configurable product with two configurations. In each configuration, I have added Quantity and Tier price.

Although the tier price does work, it does not show the tier price block on the storefront. Can anyone tell me,how to enable it?

Thanks!

EDIT: Here are pictures from the product and one configuration.

Pic 1: https://ibb.co/eVt8M5)
Pic 2:(https://ibb.co/iN8KTk)
Pic 3:(https://ibb.co/dNz4uQ)


texts: How can I Delete test order history from my Magento 2 Admin Panel?


texts:
Before saying this post is a duplicate please read.

I have a real head scratcher for you. I am trying to get the current package name being used. In a clean install with 1.9, the current package name is rwd. However, all methods that I have tried return the value default. I find this very odd and wonder if anyone else has faced this problem?

I have tried the following: (please note that I have looked through as many exchange posts that I could find relating to getting this info with no luck.
https://stackoverflow.com/questions/11155570/how-to-get-current-theme-name-in-magento

Mage::getSingleton('core/design_package')->getPackageName()
Mage::getDesign()->getPackageName()
Mage::getDesign()->getPackageName('frontend')
Mage::getDesign()->getTheme('frontend')

and

Mage::getDesign()->getDefaultTheme()
Mage::getStoreConfig('design/package/name');
Mage::app()->getStore()->getStoreId();
Mage::getStoreConfig('design/package/name', $storeId);

All of these methods return default which is not correct. I noticed that during a fresh 1.9 install the default package name is rwd. However, design/package/name does not exist in core_config_data table unless you save the configurations in the backend.

So, why does Magento return default even if the path does not yet exist in the table? Also, when it does exist and contains rwd as the package name, why does it still return default ??

Update:
I should mention that I am trying to retrieve this info from the backend. It appears it will pull the right info if you are trying to retrieve it from the frontend only.


texts: I used Magento2.1.7 get error image "404 error: Page not found." about "pub/media"

texts:
My link is SSL HTTPS  "https: //www.sample.com/pub/media/eby/tmpteone/store/images/bannerxinpin.jpg" ,picture can not loading on "pub/media/mypicture"

Get error "404 error: Page not found."

Can you help me? thank you guys!!!

i used "php bin/magento catalog:images:resize" "php bin/magento setup:static-content:deploy" still not work to me.


texts: Magento 2.3 folder structure of the Catalog Product List widget

texts: I am using Magento 2.3.3 and I am looking for the folder structure of the Catalog Product List widget in order to look at the code. I have tried searching the /var/www/html/vendor/magento folders but haven't found it.


texts: How to override adminhtml phtml in Magento2?

texts: How to override vendor/magento/module-shipping/view/adminhtml/templates/view/form.phtml file in magento2


texts: In Magento 2.4 How to update subtotal with custom price after add product to cart and check if customer is login?

texts:
I want to update cart subtotal by custom price.
Example :
I have display member price which is 10% of final price and i have display it on product details page and cart page now i want to update subtotal when customer login and if they have membership attribute yes then subtotal should calculate by member price.
if regular price  = 100 then member price will be 90
so after login subtotal will be 90 not 100 .
for this functionality i have used "checkout_cart_product_add_after" event but subtotal is not update if i will login after add product into cart.
and if i am using "customer_login" event then when i add product into cart then subtotal is not calculate by member price it consider regular price.
another issue i am facing is when i refresh cart after change attribute of product then is product exclude from membership = No and then also i want to update subtotal based on member price.
Note: i am not storing member price in database i just calculated 10% of final price in phtml and display on cart page and product page.
so please help me for this functionality


texts: Magento 2 how to get swatch name instead of image on hover in category page?

texts:
i changed that code -

from -

' option-tooltip-thumb="' + thumb + '"' +
' option-tooltip-value="' + value + '"' +

to -

' option-tooltip-thumb="' + label + '"' +
' option-tooltip-value="' + label + '"' +

but still i am getting image on hover instead of text(swatch name)


texts:
How to get cms page title and page content in custom template file

I tried below code to display title but its not working

$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
 echo $objectManager->create('\Magento\Cms\Model\PageFactory')->load('contact-us', 'identifier')->getTitle();


texts: Duplicated product not showing on front-end, Magento 2.3.2

texts:
I have upgraded my Magento EE store from 2.2.7 to 2.3.2, and the issue I am facing is, after duplicating a product, the duplicated product is not showing on frontend.

The urls are generating, product qty is set, enabled, in stock, set enabled in website mode also, ran indexing but not helpful.

However new products are creating and also coming on frontend.

Any guesses or workarounds?


texts:
we are trying to override the cart "go to checkout" button in a custom module, but can't get it working state. (CE 2.2.6)

I am using view/layout/checkout_cart_index.xml with the following content

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <referenceContainer name="content">
            <referenceBlock name="checkout.cart.methods.onepage.bottom" template="Namespace_Module::onepage/link.phtml" />
        </referenceContainer>
    </body>
</page>

And copied the original content to templates/onepage/link.phtml

So far so good, it doesn't work (checked with template hints and added a marker to link.phtml)

Any ideas would be helpful.

Cheers
Jan


texts: Im very new to magento, and i have a site of over 20k products. And i need to update all products of the site, and each product has few different attributes than the other. So how to update all the products at once ?? And a solution with clear steps will be appreciated, thank you


texts: Product Page Pricing is 0 after upgrading to Magento 1.9.2.3 from 1.9.1.1

texts:
I just upgraded to Magento 1.9.2.3, and all my configurable products are displaying $0 for pricing. The pricing displays correctly on the catalog page and even when you add-to-cart, just not working on the product page. Not sure how to get this back up and working as I am a rookie to Magento. Please advise. Thanks!

So after some troubleshooting, I've found out that our pricing is working on configurable products only if it doesn't have "in-stock" items. As soon as you add inventory on the simple product, everything goes to Zero on product page.

When I delete this custom file in our theme, pricing works. Anyone able to tell me what is invalid in this file for 1.9.2.3? Would be amazing to get input.

<?php
$_product = $this->getProduct();
$_attributes = Mage::helper('core')->decorateArray($this->getAllowAttributes());
$_jsonConfig = $this->getJsonConfig();
$_renderers = $this->getChild('attr_renderers')->getSortedChildren();
?>
<?php if ($_product->isSaleable() && count($_attributes)): ?>

        <?php foreach ($_attributes as $_attribute): ?>
            <?php
            $_rendered = false;
            foreach ($_renderers as $_rendererName):
                $_renderer = $this->getChild('attr_renderers')->getChild($_rendererName);
                if (method_exists($_renderer, 'shouldRender') && $_renderer->shouldRender($_product, $_attribute, $_jsonConfig)):
                    $_renderer->setProduct($_product);
                    $_renderer->setAttributeObj($_attribute);
                    echo $_renderer->toHtml();
                    $_rendered = true;
                    break;
                endif;
            endforeach;

            if (!$_rendered):
                ?>

                *<?php echo $_attribute->getLabel() ?>

                <dd<?php if ($_attribute->decoratedIsLast)
            { ?> class="last"<?php } ?>>

                        <select name="super_attribute[<?php echo $_attribute->getAttributeId() ?>]" id="attribute<?php echo $_attribute->getAttributeId() ?><?php echo $_product->getId() ?>" class="required-entry super-attribute-select_<?php echo $_product->getId() ?> no-display">
                            <option><?php echo $this->__('Choose an Option...') ?></option>
                        </select>

            <?php endif; ?>
    <?php endforeach; ?>

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


texts: How to get shipping estimates for out of stock products?

texts:
I have the shipping estimate widget on every product page, so that users can check the shipping price before adding them to cart. This works well for in-stock products, but not for out of stock.

Seems like Magento restricts out of stocks products via $product->isSaleable().

Is there a way for out of stock products to get their shipping estimates?


texts: Hide button once product is added to cart

texts:
We are Providing an option for "Add to cart" & "Delete" for each product in My account section.

what we need is if that product is added to cart, than we want to hide the "Delete" button.

<?php
$productId = $_product = Mage::getModel('catalog/product')->load($product->getId());
$quote = Mage::getSingleton('checkout/session')->getQuote();
if (! $quote->hasProductId($productId))
{
?>

Delete

<?php
}
?>

I tried above code, but still "Delete" button visible after click on "Add to cart"


texts: Currency symbol is not shown for different locale

texts:
I am using two different stores for two languages. First store for english and other for arabic language. I am using Saudi Riyal (SAR) as a default currency.

In Admin Panel > System > Configuration > General > Locale Option when I change locale option from English (United States) to Arabic (Saudi Arabia) the currency symbol SAR is not shown on frontend.

I want to change locale option for arabic store to translate english text into arabic from csv file. But when I change Locale Option the currency symbol is not shown on frontend.


texts:
I have Observer Written for admin order i want to remove one product item from my admin cart list i have added 3-4 products i have my product name : test i want to remove that test

i have added 2 products in my order cart from that 2 products i want to remove 1 product i will create one coupon code once admin apply that coupon then test1 product should remove from order item list i have not placed the order i just added to order item list

<sales_quote_item_set_product>
    <observers>
        <namespace_removeproduct_order_observer>
            <type>singleton</type>
            <class>additionalproduct/observer</class>
            <method>removeProduct</method>
        </namespace_removeproduct_order_observer>
    </observers>
</sales_quote_item_set_product>

observer.php

public function removeProduct($observer)
{
}


texts: save customer account field whenever address object saved

texts:
The following observer calling properly.I'm getting address ,customer object also .

but customer setting data not working(3rd line).even i tried save function on that.but it is also not working.
even i changed event name customer_address_save_before.
here i created customer attribute company.

can you help any one?

<?xml version="1.0"?>
<config>
  <modules>
    <Gumbrands_Officename>
      <version>0.1.0</version>
    </Gumbrands_Officename>
  </modules>
    <global><models>
            <officename>
                <class>Gumbrands_Officename_Model</class>
            </officename>
        </models>
<events>
<customer_address_save_after>
            <observers>
                <Officename>
                    <type>singleton</type>
                    <class>officename/observer</class>
                    <method>updateCompany1</method>
                </Officename>
            </observers>
        </customer_address_save_after>
</events>
</global>
</config>

Observer.php

<?php
class Gumbrands_Officename_Model_Observer
{
    public function updateCompany1($observer)
    {

   $address = $observer->getCustomerAddress();
   $customer= $address->getCustomer();
   $customer->setData('company', $address->getData('company'));

    }
}
?>


texts: how do i generate waybill using third party API when click on place order button in magento?

texts: how do i generate waybill using third party API when each order placed, for example if place an order by click on place order button i need to generate a waybill for this order. how to do this?


texts: Total summary cart, add number of items | Get number of items in the cart

texts:
I want to add "Total Items" row to display current amount of items in the cart.

Something like this:

How can I display the $_cartQty in this summary section?


texts: How to get Two Arrays of Categories in if/elseif Statement

texts:
I need to show different content on the product pages (view.phtml)

Here is the code I have. The first array with the if statement works, it's getting the else if to work that I am having trouble with

<?php if(in_array($category->getId(), array(62,63,64,65,66,67,68))): ?>

for prods in these categories

<?php elseif(in_array($category->getId(), array(3,55,56,57,58,59,60))): ?>

 for prods in other categories

 <?php else: ?>

 everything else

  <?php endif; ?>


texts: M1.9.x - Trying to get custom attribute in Navigation.php / Menu Creation

texts:
I am trying to get the page_title (custom category attribute) in Navigation.php (menu build up) to use as the html title attribute.

For example this is were we would use the extra attribute in an html ahref title attribute: https://github.com/OpenMage/magento-lts/blob/1.9.3.x/app/code/core/Mage/Catalog/Block/Navigation.php#L308

We added this code, but it is not retrieving the page_title custom attribute

        $page_title = $this->escapeHtml($category->getPageTitle());
        if (empty($page_title)) {
            $page_title = $this->escapeHtml($category->getName());
        }

But $category->getPageTitle() is not returning anything

$category->getPageTitle(): How can we get the page_title attribute directly?


texts: display new added custom tab in magento product page if data found

texts:
<action method="addTab" translate="title" module="catalog" ><alias>upsell_tabbed</alias><title>additional products</title><block>catalog/product_list_upsell</block><template>catalog/product/list/upsell.phtml</template></action>

i have created a custom tab on product detail page and load all upsell
products of current product in that tab.
but now i want that tab will display only when    there is any
product otherwise it should not display on the product    page.

any help would be appreciated. thanx.


texts: PLEASE help - I changed to a new server and I'm not able to access the Admin panel on the old server

texts:
I have an old version of the Magento shopping cart (1.3.1) running on an older VPS server and I installed a new version of the Magento shopping cart 1.9.1 to a new Cloud server. The domain was resolving to the old shopping cart while I added products to the new shopping cart via an IP address (it was like an IP/~hostingACCOUNTuserID/index.php/ ) That worked fine. I was able to access the new Admin panel by going to IP/~hostingACCOUNTuserID/index.php/admin. Everything was working. Then - last night - I changed the nameservers to point my domain to the new Cloud server. I tested it to make sure that I was able to connect to the OLD ADMIN panel via that IP address also because my orders are in there! But now - all of a sudden - if I go to the old Admin panel via the IP address like this:

http://216.134.5.73/~makeup/index.php/admin

It loads the OLD Admin panel login page, I fill out my user name and password and click to LOGIN and then it REDIRECTS to the front page of the new site (sort of) - it goes to:

http://www.SAMPLE.com/index.php/admin/index/index/key/9febaa223a83422cef87787e773956fe/?SID=eea007535157f5d05c944274011c90d5

(www.SAMPLE.com is already resolving to the new Cloud server).

Can you please help me resolve this? I'm really desperate - I need to get to my orders...

Thank you,

Allysin


texts:
frontend/Magento/kiegeszitoshop/en_US/css/styles-m.less
  .lib-popup-button-close-icon is undefined in
  C:/xampp/htdocs/magento2sample/var/view_preprocessed/css/frontend/Magento/kiegeszitoshop/en_US/css/sourc
  /_popups.less>

I m getting this error when i m deploying static content using composer..

Have anyone any idea what is going wrong here??


texts: How to create customer without firstname and lastname in Magento 2 Api

texts:
I am using magento 2.3.2 version.

I need to remove the Firstname and Lastname fields in the new customer creation/ registration API. I referred this link


texts: Why the Campaign Tracking Parameters isn't working on Product Pages?

texts:
I have a situation where I send out email campaigns which link back to products. The link code is in the format:

?utm_campaign=EnewsNov&utm_medium=email&utm_source=HouseList&utm_term=editorial-link&utm_content=header

When I add the tracking link to my domain i.e:

http://www.domain.com/?utm_campaign=EnewsNov&utm_medium=email&utm_source=HouseList&utm_term=editorial-link&utm_content=header

It works fine. It also works fine for category pages.

For Product pages however the link is broken and I get an error like:

  This page isn’t working

  www.mydomain.com redirected you too many times. Try clearing your
  cookies. ERR_TOO_MANY_REDIRECTS

If I however reduce the parameters to one i.e

http://www.domain.com/ANY_PRODUCT_URL/?utm_campaign=EnewsNov

It works fine. How can I fix this?


texts: How to add list option customer address in magento 2

texts: I want to add a selection list of ul, li tags in the red area can someone help me to solve this problem. thanks


texts: How to allow configurable product on Grouped product?

texts:
I am trying to add grouped product(s) with configurable product(s) and using the AITOC extensions "Custom Options for Grouped Product", however it only allows simple product(s) with or without custom options only but not a configurable product(s) that I need. I already modified app/code/core/Mage/Catalog/etc/config.xml, and added <configurable/> under

<config>
    <global>
        <catalog>
            <product>
                <type>
                    <grouped>
                        <allow_product_types>

so that it will allow configurable product(s).But, when I checked on the product view page, the configurable product I added on that grouped product was showing though but not its option(s).

I hope anyone can help me to solve this. A big Thanks!


texts: Override Order PDF Abstract Model From Custom Module

texts: I want to override magento function model which located at app/code/core/Mage/Sales/Model/Order/Pdf/Abstract.php Mage_Sales_Model_Order_Pdf_Abstract, how to override the insertOrder function at this model from custom module?


texts: Simple question. What is your recommended PHP memory limit for Magento?


texts: Create the SQL script for the changing the instance_type parameter in the database widgets_instances magento 2

texts:
I have to change like this

  Magento\Cms\Block\Widget\Block

to

  Custom\General\Block\Widget\Block.

I am using the Replace function in the SQL , But it is not working.


texts: Free shipping cart rule doesn't apply if any downloadable or virtual products are added to the cart

texts:
I'm managing a store set up with simple, downloadable and virtual products. We have a cart price rule that offers free shipping on orders over £50 being shipped within the UK, which works exactly as it should when there are only simple products in the cart. If, however, the customer then adds a downloadable or virtual product, of any price, the free shipping rule no longer applies. The shipping itself is handled by MatrixRates, but I don't believe this should interact with the free shipping rule. [EDIT: The same issue occurs with both flat rate and vanilla table rates.]

Here are the conditions and action settings for the cart price rule.

Some examples:

Customer adds two basic £20 items, giving a subtotal of £40 and the standard delivery shipping option.
Customer adds a third basic £20 item, giving a subtotal of £60 and the free shipping option is applied.
Customer then adds a downloadable product costing £5, giving a subtotal of £65, however the shipping reverts back to standard delivery only.
Customer removes the downloadable product and the free shipping is reapplied.

Customer adds basic products totalling over £50, free shipping is applied
Customer adds a free virtual or downloadable product to the cart, shipping only allows standard delivery.
Customer removes the downloadable product and the free shipping is reapplied.

I've been playing with this for a while, but haven't found any solutions. I found this Stack Overflow post from earlier this month identifying the same problem, but with no solution. Does anyone have any ideas?


texts: find in which date product is uploaded in admin panel

texts:
we uploaded lot of products to magento site

we want to know in which date or month we uploaded the product.

is there any way we can get the information about product uploaded date.

thanks in advance


texts: How I can override this Magento\Catalog\Block\Breadcrumbs.php

texts:
How I can override the breadcrumb.php file .as If I am using in app/design/frontend/Oc/jb/Magento_Catalog/Block/Breadcrumb.php its giving error.

UPDATED CODE

    // @codingStandardsIgnoreFile

/**
 * Catalog breadcrumbs
 */
namespace Oc\Jb\Block;

use Magento\Catalog\Helper\Data;
use Magento\Framework\View\Element\Template\Context;

class MyBreadcrumbs extends \Magento\Catalog\Block\Breadcrumbs
{
    public function __construct()
    {
        Data $catalogData
        Context $context;
        $data = array();
        parent::__construct($context,$catalogData, $data);
    }

    public function getTitleSeparator($store = null)
    {
        $separator = (string)$this->_scopeConfig->getValue('catalog/seo/title_separator', \Magento\Store\Model\ScopeInterface::SCOPE_STORE, $store);
        return ' ' . $separator . ' ';
    }
    public function getCategory ($product) {
        $_categoryFactory = $this->_objectManager->create('Magento\Catalog\Model\CategoryFactory');
        // for multiple categories, select only the first one
        // remember, index = 0 is 'Default' category
        if (! $product->getCategoryIds())
            return null;
        if (isset ( $product->getCategoryIds()[1]))
            $categoryId = $product->getCategoryIds()[1] ;
        else
            $categoryId = $product->getCategoryIds()[0] ;
        // Additionally for other types of attributes (select, multiselect, ..)
        $category = $_categoryFactory->create()->load($categoryId);
       return ['label' => $category->getName(), 'url' => $category->getUrl() ] ;

    }
    /**
     * Preparing layout
     *
     * @return \Magento\Catalog\Block\Breadcrumbs
     */
    protected function _prepareLayout()
    {
        $product = $this->_coreRegistry->registry('current_product');
        //return parent::_prepareLayout();
        if ($breadcrumbsBlock = $this->getLayout()->getBlock('breadcrumbs')) {
            $breadcrumbsBlock->addCrumb(
                'home',
                [
                    'label' => __('Home'),
                    'title' => __('Go to Home Page'),
                    'link' => $this->_storeManager->getStore()->getBaseUrl()
                ]
            );
            $title = [];
            $path = $this->_catalogData->getBreadcrumbPath();

            // If we are at the product page and the $path does not include a category,
            // then we will append the category link  here manually
            // Magento doesn't seem to append category paths to breadcrums consistently
            // Reported here; https://github.com/magento/magento2/issues/7967
            if($product != null ) {
                // check for category path
                $foundCatPath=false;
                foreach ($path as $name => $breadcrumb) {
                    if ( strpos ( $name, 'category' ) > -1 )
                        $foundCatPath=true;
                }
                // append the category path
                if (! $foundCatPath) {
                    $productCategory = $this->getCategory($product) ;
                    if ($productCategory) {
                        $categoryPath = [ 'category' => ['label' =>  $productCategory['label'] , 'link' =>  $productCategory['url']]  ];
                        $path = array_merge ($categoryPath ,$path );
                    }
                }

            }
            foreach ($path as $name => $breadcrumb) {
                $breadcrumbsBlock->addCrumb($name, $breadcrumb);
                $title[] = $breadcrumb['label'];
            }
            // print_r ($path );
            // die ();
            $this->pageConfig->getTitle()->set(join($this->getTitleSeparator(), array_reverse($title)));
        }
        return parent::_prepareLayout();
    }
}

}


texts: Magento date format issue in Arabic store on customer account page

texts:
On customer account page /customer/account/

in English store view date is coming in correct format like 7/11/2013

but when i switch to arabic store view its displaying in wrong format like 72013/11/

It is calling this function:

$this->formatDate($_order->getCreatedAtStoreDate())


texts: PWA Magento2.3.5 Overwrite CategoryTree and ProductFullDetail Component in Custom Project

texts:
How to Overwrite CategoryTree and ProductFullDetail components ?
Following docs tutorial I have overwritten Footer REF:https://magento.github.io/pwa-studio/tutorials/pwa-studio-fundamentals/modify-site-footer/
my main main.js:
return (

{children}
 //components

    );


texts:
Recently a developer imported all products prices as without VAT. Problem is the prices are including VAT.

We want to remove 25% VAT from all products in our Magento shop. My first thought is to export all the products, open it in Excel and correct the prices, save it and import the prices.

Do you have an easy/better way to do it?


texts:
I need to get my java script files to load after the page has loaded, i read this blog

http://www.feedthebot.com/pagespeed/defer-loading-javascript.html

and it says to use this code

<script type="text/javascript">
function downloadJSAtOnload() {
var element = document.createElement("script");
element.src = "defer.js";
document.body.appendChild(element);
}
if (window.addEventListener)
window.addEventListener("load", downloadJSAtOnload, false);
else if (window.attachEvent)
window.attachEvent("onload", downloadJSAtOnload);
else window.onload = downloadJSAtOnload;
</script>

at the bottom of our html file before the end of the body tags. What file do i need to add this to in magento to get the file to load after all the CSS and images? as it is slowign down our website loading them all firs?

or if you know any other ways of deferring the java files could you let me know

thank you in advance


texts: Magento2: Product collection multiple attribute filter issue

texts:
I need to get a product collection to filter multiple attributes.

Forexample:

First: color multi select filter(attribute) values: 23, 25, 26.

Second: system multi-select filter(attribute) values: 27, 28.

I am getting filter values in one array and need to filter in the collection.

There are comma separated $list = 23, 25, 26,27, 28
    In the controller file:

$list =  $this->getRequest()->getParam('list', false);
$filter_ids = explode(",",$list);

$productcollection = $objectManager->create('Magento\Catalog\Model\ResourceModel\Product\CollectionFactory');
$categoryProducts = $productcollection->create()->addAttributeToSelect('*')->addAttributeToFilter('color', array('in',$filter_ids))->addAttributeToFilter('system', array('in',$filter_ids))->load();

I am not getting a result in this way.
where I am wrong. Please suggest to me.

Thanks


texts:
I have a custom module.
On 1 installation (all others work) I get the error, that there's a circular dependency.
YES: Magento\Framework\App\Action\Context is a dependency in my Controller because Magento\Framework\App\Action\Action needs it.
But I don't understand the other way around.
clearing var/di, var/generation and var/cache didn't help
EDIT:
this is the module: https://github.com/bitExpert/magento2-force-login
this is the exception:
1 exception(s):
Exception #0 (LogicException): Circular dependency: Magento\Framework\App\Action\Context depends on bitExpert\ForceCustomerLogin\Controller\LoginCheck and vice versa.

Exception #0 (LogicException): Circular dependency: Magento\Framework\App\Action\Context depends on bitExpert\ForceCustomerLogin\Controller\LoginCheck and vice versa.
#0 /home/psander/projects/forcelogin_nz/backup/vendor/magento/framework/ObjectManager/ObjectManager.php(71): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Magento\\Framewo...')
#1 /home/psander/projects/forcelogin_nz/backup/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(126): Magento\Framework\ObjectManager\ObjectManager->get('Magento\\Framewo...')
#2 /home/psander/projects/forcelogin_nz/backup/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(53): Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgument(Array, 'Magento\\Framewo...', NULL, 'context', 'bitExpert\\Force...')
#3 /home/psander/projects/forcelogin_nz/backup/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(82): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->_resolveArguments('bitExpert\\Force...', Array, Array)
#4 /home/psander/projects/forcelogin_nz/backup/vendor/magento/framework/ObjectManager/ObjectManager.php(71): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('bitExpert\\Force...')
#5 /home/psander/projects/forcelogin_nz/backup/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(126): Magento\Framework\ObjectManager\ObjectManager->get('bitExpert\\Force...')
#6 /home/psander/projects/forcelogin_nz/backup/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(53): Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgument(Array, 'bitExpert\\Force...', NULL, 'loginCheckContr...', 'bitExpert\\Force...')
#7 /home/psander/projects/forcelogin_nz/backup/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(82): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->_resolveArguments('bitExpert\\Force...', Array, Array)
#8 /home/psander/projects/forcelogin_nz/backup/vendor/magento/framework/ObjectManager/ObjectManager.php(71): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('bitExpert\\Force...')


texts: How to edit Order after invoice generated in magento2?

texts:
I know magento is not giving functionality to edit order after invoice is generated and payment is captured.
Also cancel current order and create new order is option available.
But I am finding actual edit order. If anyone has tried before with any extension where we can able to edit order after invoice is generated.
Please help me.


texts:
I'm new to Magento 2 software and trying to get some help to my scenario. One of our integration were failing to connect to our store API calls stating the expected response was json but getting HTML.
I tried to to invoke the API from postman to see whether the username and password used are able to get a auth token. API call was successful with the status code 200 however the return was HTML content instead of the auth token. When I checked the HTML content it's nothing but our admin login page.  I'm not sure what I'm missing here. Any help / inputs is really appreciated.
I used the URI https:///admin/rest/V1/integration/admin/token?username=MyAdminUser&password=Password123 to get the auth token.


texts: How to pass array from admin controller to grid block

texts:
What I need is pass some json data to grid block and display it in a grid. I have created admin module and successfully recieve json data. But I dont know how to pass json to block.

class Somecompany_Modulename_Adminhtml_TestController extends Mage_Adminhtml_Controller_Action
{
    public function pollAction() {
        $json = $this->_getCurlData();
        Mage::getSingleton("adminhtml/session")->addSuccess($json);
        $this->loadLayout();
        return $this->renderLayout();
    }
    private function _getCurlData() {
        $id = $this->getRequest()->getParam('print_id');
        $url = "https://my.sample.url";
        $ch = curl_init();
        curl_setopt($ch, CURLOPT_URL, $url);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
        $json = curl_exec($ch);
        curl_close($ch);
        return $json;
    }

}

How to pass this data to block?

Tried this. But I think there should be another way.

Mage::register('name',$var);


texts: How to fix customer session time out in Magento 1.4.1.1?

texts:
I'm looking for a way to limit customer log in session to 24 hours, but it seems not to be working at all.

I have done the following steps, none of them has changed a thing. After being logged in, customer stay logged in for ever...

System -> Configuration -> Services -> Magento Core Api ->General Settings
Client Session timeout (sec.): 86400

System -> Configuration->General > Web Session Cookie management
Cookie Lifetime: 86400

(Do I need to fill "cookie path" and "cookie domain" fields ?)

     System -> Configuration-> Admin -> Security
     Session_cookie_lifetime => 86400

/var/www/.htaccess
php_value session.gc_maxlifetime 86400

Do you have any idea about how I could manage it ?


texts: Simple Products with Custom Options in Grouped Products Magento

texts:
I hope someone can help or knows of an extension that adds the functionality I require.

I have multiple simple products that each have their own custom options.

I then need to add these simple products to a bundled product. Magento out of the box only allows simple products without custom options to be added.


texts:
Am hosted my local host developed site, when i try to access categories i cant be accessed, its not be a clickable link,  but my localhost am accessed my all categories.

**

Live Site :

**

**

Localhost Site :

**


texts:
Given this code

<?php
class Vendor_Module_Helper_Data extends Mage_Core_Helper_Abstract
{

    protected $_currentCustomer = null;
    protected $_settingsHelper = null;

    public function involveCustomer($customer)
    {
        $this->_currentCustomer = $customer;
    }

    public function getCurrentCustomer()
    {
        if (!is_null($this->_currentCustomer)) {
            return $this->_currentCustomer;
        }
        return $this->_getCustomerSession()->getCustomer();
    }

    public function getSettingsHelper()
    {
        if (is_null($this->_settingsHelper)) {
            $this->_settingsHelper = Mage::helper('vendor_module/settings');
        }
        return $this->_settingsHelper;
    }
}

class Vendor_Module_Helper_Settings extends Vendor_Module_Helper_Data
{
    public function someMethod()
    {
        print_r($this->getCurrentCustomer()->getData());
        exit;
    }
}

If I call

$helper = Mage::helper('vendor_module');

I would expect, as a singleton class, $helper would remain the same instance during the rest of the code flow, so...

$helper->involveCustomer($customer);

Now $_currentCustomer has been set, and it contains a customer object

But then, calling

$helper = Mage::helper('vendor_module');
$helper->involveCustomer($customer);
$settings = $helper->getSettingsHelper();
$settings->someMethod();

The customer object printed is the customer logged in, not the one involved 2 lines before... Am I missing something?

If helpers are called as singleton I bet I should get the right customer object... In fact, I have been assuming this since I started to work with Magento, and now I feel really confused :S


texts:
i wanted to clone a site running magento 1.9.3, I did below steps

change DB credentials inside "local.xml"
change URL inside DB table "core_config_data"

But when i try to access the site its broken even admin interface is, Below the screenshots. Hope anyone can help me out on this


texts: I'm running into a big problem with my Magento stores, 4 months ago I installed the latest version of Magento (1.9) into my server, I created 2 different stores, I created categories, I added over 300 products, made a lot of customization, I had about 60 sales or so, I had some customer sign ups, created sitemaps, created widgets, integrated PayPal, USPS shipping methods, coupons, etc. While editing ftp accounts on cpanel one of them was accidentally deleted, this caused the complete Magento installation files to be deleted, I had a recent backup that I was relying on, it turns out that this backup .tgz file never finished and was incomplete and corrupted, however it seems that the media file did finish, I then turned to my hosting company to see if they had backups, they told me they removed my account of their daily backups 4 months ago due to excessive inods abuse, all I have now is my Magento DB and a backup of my products in a csv file, here is the big question, how can I restore my DB into a new installation, this data is what's most important for me, I don't mind doing the customization again, all I want is the Customers, Sales, Products, etc into the new installation.


texts:
after i upgrade to magento 2.1.3
i see this error

full Error is

can someone help me to solve this issue

  Fatal error: Uncaught exception 'Zend_Cache_Exception' with message
  'cache_dir "/home/celtice1/public_html/var/cache/" is not writable' in
  /home/celtice1/public_html/vendor/magento/zendframework1/library/Zend/Cache.php:209
  Stack trace: #0
  /home/celtice1/public_html/vendor/magento/zendframework1/library/Zend/Cache/Backend/File.php(180):
  Zend_Cache::throwException('cache_dir "/hom...') #1
  /home/celtice1/public_html/vendor/colinmollenhour/cache-backend-file/File.php(87):
  Zend_Cache_Backend_File->setCacheDir('/home/celtice1/...') #2
  /home/celtice1/public_html/vendor/magento/zendframework1/library/Zend/Cache.php(153):
  Cm_Cache_Backend_File->__construct(Array) #3
  /home/celtice1/public_html/vendor/magento/zendframework1/library/Zend/Cache.php(94):
  Zend_Cache::_makeBackend('Cm_Cache_Backen...', Array, true, true) #4
  /home/celtice1/public_html/vendor/magento/framework/App/Cache/Frontend/Factory.php(156):
  Zend_Cache::factory('Magento\Framewo...', 'Cm_Cache_Backen...',
  Array, Array, true, true, true) #5 /home/celtice1/public_html/v in
  /home/celtice1/public_html/vendor/magento/zendframework1/library/Zend/Cache.php
  on line 209


texts:
I have actual the follow code:

    <?php
$parentCategory = Mage::getModel('catalog/category')->load(3);
$subcategoryCollection = Mage::getModel('catalog/category')
        ->getCollection()
        ->addFieldToFilter('level', ['lteq' => $parentCategory->getLevel() + 2])
        /*->addFieldToFilter('level', $parentCategory->getLevel() + 1)*/
        ->addFieldToFilter('path', ['like' => $parentCategory->getData('path') . '%'])
        ->addAttributeToSelect(['name'])
        ->setOrder('name', Varien_Data_Collection_Db::SORT_ORDER_ASC);
foreach ($subcategoryCollection as $category): ?>
    <a href="<?php echo $category->getUrl() ?>"><?php echo $category->getName() ?>
<?php endforeach; ?>

And I like to have a sorted list, sorted like this:

A

Adidas
Altra

B

Body Glove

D

Dakine etc

I also have the issue, I not need to have the category "Brands" and "View all Brands" in the list.


texts: Product custom attributes not updated - Magento 2 REST API

texts:
I'm using Magento 2.3.4 CE. I used the below JSON to update the product custom attribute part_number in swagger.
{
  "product": {
    "sku": 678899,
    "name": "Product name",
    "attribute_set_id": "4",
    "price": 2.93,
    "status": "1",
    "visibility": 0,
    "type_id": "simple",
    "weight": 0,
    "extension_attributes": {
      "stock_item": {
        "qty": 10,
        "is_in_stock": true
      }
    },
    "custom_attributes": [
      {
        "attribute_code": "part_number",
        "value": "123456"
      }
    ]
  }
}

And I get 200 success response but when I checked in admin and catalog_product_entity_varchar table I don't see the custom attribute part_number value updated.
I have checked with both PUT and POST method but it is not updated part_number

PUT http://127.0.0.1/default/m234/rest/all/V1/products/678899
POST http://127.0.0.1/default/m234/rest/all/V1/products

I have seen known issues https://github.com/magento/magento2/issues/4527 but I didn't see the proper solution.


texts: Magento Multi Website, Store, Currency, Country & Locale Configuration

texts:
Just hoping if someone can point me in the right direction with this one.

Basically, I need to have a website in multiple countries with their localized content and the target countries native currency. So, the base currency has to be the one of the country the website would target. Now this is what i cannot figure out.

Should i have each countries website as a subdomain on the primary domain with its own website / store view and base currency or should I have separate install for each country under a subdirectory on the primary domain.

The second tricky issue is that a few countries are english based with different currencies (us, uk, au, ca, nz, sg), so I am thinking a single install for these countries as only the base currency would change (website). Whereas, a few countries (eu ones) will have the same currency but different languages, so a separate install for these looks viable. (herein, only the store view would change).

The main issue are the number of url rewrites and the load on the db. I am hosted with Simple Helix so there tech is stable and fast enough to support this structure.

Would appreciate if you can guide me in the right direction with the engineering of this store.


texts: Can not access Magento admin. Error message. Help needed

texts:
For some reason I am no longer able to access my Magento admin. The website is live and works perfectly on the frontend, but I can not access the backend and I get the below error message

There has been an error processing your request

Exception printing is disabled by default for security reasons.
Error log record number: 1341617007993

My host provider is having difficulty fixing this and I have restored both files and database to an earlier version when I know it was working. The issue developed yesterday and we have restored back to the 5th May and still no joy.

Any advice would be appreciated.

Thanks

Details of the error log 1341617007993

a:5:{i:0;s:59:"Mage registry key "_singleton/mgt_base/feed" already exists";i:1;s:1351:"#0 /home/giggleberries/public_html/app/Mage.php(223): Mage::throwException('Mage registry k...')
#1 /home/giggleberries/public_html/app/Mage.php(477): Mage::register('_singleton/mgt_...', false)
#2 /home/giggleberries/public_html/app/code/core/Mage/Core/Model/App.php(1336): Mage::getSingleton('mgt_base/feed')
#3 /home/giggleberries/public_html/app/Mage.php(448): Mage_Core_Model_App->dispatchEvent('adminhtml_contr...', Array)
#4 /home/giggleberries/public_html/app/code/core/Mage/Adminhtml/Controller/Action.php(159): Mage::dispatchEvent('adminhtml_contr...', Array)
#5 /home/giggleberries/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(407): Mage_Adminhtml_Controller_Action->preDispatch()
#6 /home/giggleberries/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('login')


texts: Qty for Item's Status to Become Out of Stock not working

texts:
I have configured Magento 1.9 as shown in picture. Display out of stock products to YES, and Qty for items status to become out of stock 4

The problem is, even though the quantity of a product is below 4, it still show as in stock with green texts. what did I miss?


texts: Magento 2.2.6: Programmatically unchecking "My billing and shipping address are the same"

texts:
I need to programmatically uncheck the "My billing and shipping address are the same" checkbox in Magento 2.2.6 checkout when a button is pressed.

Background:

I have built a button and some js into my template for simple "in-store pickup" option. It automatically adds the store address to the shipping address and selects the "In Store Pickup" shipping method.

I am using this jquery code in the extensions onepage.phtml file and it works fine, but I just can't figure out the last step to uncheck that button.

        $(document).on('click', '#in-store-pickup', function() {
            // Set Shipping Address
            $('.shipping-address-box').find("input[name='firstname']").val( "In-Store" ).change();
            $('.shipping-address-box').find("input[name='lastname']").val( "Pickup" ).change();
            $('.shipping-address-box').find("input[name='city']").val( "<?php echo $city; ?>" ).change();
            $('.shipping-address-box').find("input[name='region_id']").val( "<?php echo $regionId; ?>" ).change();
            $('.shipping-address-box').find("input[name='postcode']").val( "<?php echo $postcode; ?>" ).change();
            $('.shipping-address-box').find("input[name='telephone']").val( "<?php echo $phone; ?>" ).change();
            $('.shipping-address-box').find("input[name='company']").val( "<?php echo $name; ?>" ).change();
            $('.shipping-address-box').find("input[name='street\\[0\\]']").val( "<?php echo $street1; ?>" ).change();
            $('.shipping-address-box').find("input[name='street\\[1\\]']").val( "<?php echo $street2; ?>" ).change();

            // Set payment method
            $('#s_method_amstrates_amstrates8').trigger('click');

            // Need to uncheck the "My billing and shipping address are the same"

        });

(For the record, I am sure there is a cleaner way of doing above as well)

I have tried several things including triggering a change on the checkbox, but I believe the knockout bindings interfere with it. Thanks


texts: Magento 2 problems with Vagrant and Mac Os

texts:
I'm new on Magento2 and I've seen that the best practice to develop with Magento2 is to use Vagrant.

I have followed several tutorials about setting up Vagrant for Magento on Mac OS El Capitan/Sierra but I've found several issues.

From the command line I always have permission issues even if files have correct permissions.

I read that it could be a NFS problem and also that there is a bug in El Capitan/Sierra with NFS.

I didn't have any problems with Ubuntu instead

Is there someone that uses Vagrant with Mac OS that could help me to figure out with the configuration?


texts:
We have created a product with a custom option (free text field). The customer enters data, now this data should be exported via

curl -X GET --header "Accept: application/xml" --header "Authorization: Bearer $B" "https://shop.example.com/rest/english/V1/orders/105"

But I cannot find the data of the custom option in the REST result.

Is that normal?

Is it a bug?


texts: Lesti FPC is caching the minicart on header

texts:
I managed to get Lesti FPC working with memcached, but I quickly ran into a problem.
 When I add an item to my cart from any page and go back to the homepage, it shows that my cart is empty.
 I understand that I need to specify the block names for cache exclusion in configuration page and I added the following on the module configuration:

My Site URL is https://www.yogastudio.co.uk and I believe that the cart-header block name is correct.  Can you please tell me what am I doing wrong here?


texts: I recently migrated from Volusion to Magento using Cart2Cart.  Most of my products are configurable and are showing "Out of Stock" and quantities set to zero.  I have 5,000 products (including variations).  My question is, is there a way to do a either do a bulk update, or at least have access to a page where I can see all products at once with the option of setting stock values from that page?


texts: LogicException after upgrading to magento 2.2

texts:
After upgrading to Magento 2.2, this error happened to me

  Exception #0 (LogicException): View file '/var/www/tuptip/vendor/magento/module-sales/view/frontend/layout/sales_order_print_renderers.xml'
  is indistinguishable from the file
  '/var/www/tuptip/vendor/magento/module-sales/view/frontend/layout/sales_order_print_renderers.xml'.

And can't access my development site, it says is from a magento module, but I wouldn't like to touch a magento core file.


texts:
My media directory permissions is 755, all images are showing up on the frontend except those defined as small_image with the following code:

 <img src="<?php echo $this->helper('catalog/image')->init($_prod, 'small_image')->resize(47,47); ?>" width="47" height="47" alt="<?php echo $this->htmlEscape($_prod->getName()); ?>" />

I don't know how to check the ownership of the folder (I read about it somewhere but I have no access to ssh on the server I'm working on).

The small image is not on the ftp, so it's not been created at all and the url simply returns a 404.

What else do I look at? I tried deleting htaccess on media folder but to no avail.


texts: Can we enable both catalog mode and checkout together?

texts:
I want to use the catalog mode, where a user can inquire about a product and for few of the products, there has to be added to cart and checkout option available.
Is there any option available in Magento 2.1?

Thanks in Advance.


texts: How to hide aria-required = "true" field by js in checkout magento 2

texts:
I add these fields using custom modules, so that when "Persoana Fizica" is clicked, these fields are hidden and will not affect the magento's data transmission. And when I click on "Firma" the fields are displayed and function as usual and I want to do this in js.

my js

define([
    'knockout',
    'jquery',
    'uiComponent',
    'Magento_Ui/js/form/element/abstract',
    'Magento_Ui/js/lib/validation/validator'
], function(ko, $, Component, Abstract, validator) {
    'use strict';

    return Component.extend({
        defaults: {
            template: 'Show_Field/form/element/radio',
            createNewAccount: false

        },

        click: function(data, event) {
            this.change(event.target.value);

            return true;
        },

        change: function(value) {
            if (value === 'private') {
                $("div[name='shippingAddress.show_custom_field[show_osc_denumire_firma]']").hide();
                $("div[name='shippingAddress.show_custom_field[show_osc_cui]']").hide();
                $("div[name='shippingAddress.show_custom_field[show_osc_nr_reg_com]']").hide();
                $("div[name='shippingAddress.show_custom_field[show_osc_denumire_firma]']").find("input").attr('aria-required', 'false');

            } else if (value === 'business') {
                $("div[name='shippingAddress.show_custom_field[show_osc_denumire_firma]']").show();
                $("div[name='shippingAddress.show_custom_field[show_osc_cui]']").show();
                $("div[name='shippingAddress.show_custom_field[show_osc_nr_reg_com]']").show();
            }
        }

    });
});

html

Grupul de clienți

        <input type="radio" name="order_type" id="radio-private" value="private" checked="checked" data-bind="click: click">

        <input type="radio" name="order_type" id="radio-business" value="business" data-bind="click: click">

I added plugins according to this tutorial link checkout field magento 2
anyone has any ideas please help me. thanks


texts: Magento 2 get country Id when on change in estimate shipping on cart page

texts:
Due to some custom requirement on cart page, I need country id when someone change it using jquery.

I have tried with below jquery script but its not working.
<script>
require(['jquery', 'jquery/ui'], function($){
  jQuery(document).ready( function() {
    $('select[name="country_id"]').on("click",function(){
        alert('hi');
        var countyId=$(this).filter(":selected").val();
        alert(countyId);
    });

  });
});
</script>

please share your idea on how to achieve it.


texts: After deleting wishlist item programmatically from my Api call It is still visible in frontend magento2?

texts:
This is my code:

$wishlistIds = $this->_checkoutSession->getWishlistIds();
$wishlist = $this->_wishlist->create()->loadByCustomerId($this->_customerSession->getCustomerId(), true);
$wishlists = $wishlist->getItemCollection()->load();
            foreach ($wishlists as $wishlistItem) {
                if ($wishlistItem->getId() ) {
                    $wishlistItem->delete();
                }
            }


texts: Custom commandline script: Area code is not set

texts:
I've got a module that was written by a 3rd party developer and unfortunately, they've fallen off of the face of the earth. 99% of it works as required, except one issue.
The extension was built to allow a commandline command to be run.

Here is the content of the Module/Console/Now.php file:

<?php
namespace dev\UpdatePrice\Console;

use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use \dev\UpdatePrice\Logger\Logger;
use Magento\Framework\App\State;

class Now extends Command
{
    protected $_logger;
    public function __construct(
        \Magento\Framework\App\State $state,
        \dev\UpdatePrice\Logger\Logger $logger
    ) {
        **$state->setAreaCode('frontend');** //<<<<<< THIS IS THE ISSUE
        $name=null;
        $this->_logger = $logger;
        parent::__construct($name);
    }

    protected function configure()
    {
        $this->setName('updateprice:now');
        $this->setDescription('Run Convert Price Now');
    }
    protected function execute(InputInterface $input, OutputInterface $output)
    {
        $objectManager = \Magento\Framework\App\ObjectManager::getInstance();
        $convert_helper = $objectManager->create('dev\UpdatePrice\Helper\Data')->UpdatePriceApp(true,"Command Line");
        $this->_logger->info(print_r($convert_helper,true));
    }
}

The dev\UpdatePrice\Logger\Logger.php contains:

<?php
namespace dev\UpdatePrice\Logger;

class Logger extends \Monolog\Logger
{

}

The problem is in the offending line. If I uncomment this line, the command line runs, but then the rest of Magento's commands error out with "Area code already set". I've tried googling solutions to this one, but there is too many possible solutions.

How can I modify this script so that it will run at the command line (or via Cron) without causing errors in the remainder of Magento's command line commands ?

Any help is appreciated!


texts: Magento 2 - how to set theme as parent theme

texts:
I created a new theme. I want to use the Luma theme as the base theme.

theme.xml

<theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/theme.xsd">
   <title>My Template</title>     <!-- your theme's name -->
   <parent>Magento/luma</parent>   <!-- the parent theme, in case your theme inherits from an existing theme -->
</theme>

But it looks like this:


texts:
I've seen a lot of people with this issue when trying to create a custom indexer but my issue is on a brand new install V1.9.3.1 with sample data.

When attempting to save any settings in the admin panel OR when viewing the index management screen i get:

  There has been an error processing your request

  Indexer model should extend Mage_Index_Model_Indexer_Abstract.

I've tried clearing the cache & checked permissions but all seems to be fine, frontend of the store is working correctly.

Any ideas why the indexer isn't working?

Thanks


texts: Magento2 How to add field data in additional_data in custom payment method

texts:
test-payment.js

define(
    [
        'uiComponent'
    ],
    function (
        Component,
        rendererList
    ) {
        'use strict';
        rendererList.push(
            {
                type: 'payfort_start',
                component: 'Spacename_Test/js/view/payment/method-renderer/test-payment'
            }
        );
        /** Add view logic here if needed */

        return Component.extend({
            getData: function() {
            return {
                'method': this.item.method,
                'additional_data': {
                    'test1': this.test1(),
                    'test': this.test()
                }
            };
        }
        });
    }
);

method-renderer/test-payment.js

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

        return Component.extend({
            defaults: {
                template: 'Spacename_Test/payment/test-form'
            },

            getCode: function() {
                return 'testing';
            },

            isActive: function() {
                return true;
            },

            validate: function() {
                var $form = $('#' + this.getCode() + '-form');
                return $form.validation() && $form.validation('isValid');
            },
            getData: function() {
            return {
                'method': this.item.method,
                'additional_data': {
                    'test1': this.test1(),
                    'test': this.test()
                }
            };
        }
        });
    }
);

html

        <input type="radio"
               name="payment[method]"
               class="radio"
               data-bind="attr: {'id': getCode()}, value: getCode(), checked: isChecked, click: selectPaymentMethod, visible: isRadioButtonVisible()"/>

        <form class="form" data-bind="attr: {'id': getCode() + '-form'}">
        <fieldset data-bind="attr: {class: 'fieldset payment items ccard ' + getCode(), id: 'payment_form_' + getCode()}">
            <input type="text" name="payment[test]">
            <input type="text" name="payment[test1]">

            </fieldset>
        </form>

                <button  class="action primary checkout"
                        type="submit"
                        data-bind="
                        click: placeOrder,
                        attr: {title: $t('Place Order')},
                        css: {disabled: !isPlaceOrderActionAllowed()},
                        enable: (getCode() == isChecked())
                        "
                        disabled>

                </button>


texts: sales_order_place_after not triggering in magento 2

texts:
I have created etc/events.xml as:

<?xml version="1.0"?>
<!--
/**
 * Copyright © 2016 Magento. All rights reserved.
 * See COPYING.txt for license details.
 */
-->

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
   <event name="sales_order_place_after">
       <observer name="process_gateway_redirect" instance="Magento\SamplePaymentGateway\Observer\ProcessGatewayRedirectOrderPlaceAfter" />
   </event>
</config>

And observer for it:

<?php
namespace Magento\SamplePaymentGateway\Observer;

use Magento\Framework\Event\ObserverInterface;

class ProcessGatewayRedirectOrderPlaceAfter implements ObserverInterface
{
    protected $orderFactory;

    public function __construct(\Magento\Quote\Model\QuoteFactory $quoteFactory,
    \Magento\Sales\Model\Order $orderFactory)
    {
        $this->orderFactory = $orderFactory;
    }

    public function execute(\Magento\Framework\Event\Observer $observer)
    {
        echo 'here I\'m';
        $orderIds = $observer->getEvent()->getOrderIds();
        $lastorderId = $orderIds[0];

        $order = $this->orderFactory->load($lastorderId);
        var_dump($order);
        die();
    }
}

But the event is not executing, one page success is shown.
I even tried creating the etc/frontend/events.xml with same code. Anyway the event is not triggered.

I have found that many people are using this event and discussing about other kind of issues.

Many friends are suggesting me to use checkout_submit_all_after and checkout_onepage_controller_success_action. I know about these events and have used previously. But my question is still the same.

Is it impossible to catch the sales_order_place_after?


texts: Sorting Product Collections in Magento 2

texts:
I want to make a top offers block where special offer products with the highest percentage discount are shown.

I have my special offer products showing and just wondering if something like below is possible to sort these by their discount percentage:

$_productCollection->addFinalPrice()
          ->addMinimalPrice()
          ->getSelect()
          ->where('price_index.final_price < price_index.price')
          ->limit(2);
          ->order('(price_index.price - price_index.final_price) / price_index.price' , 'DESC')

Failing that i would like latest offers (sorting by special from date descending) which i think should be like so:

$_productCollection->addFinalPrice()
          ->addMinimalPrice()
          ->getSelect()
          ->where('price_index.final_price < price_index.price')
          ->limit(2);
          ->order('special_from_date' , 'DESC')

However this is not working. Has anyone any suggestions for how to use sort properly within Magento 2?


texts: How to make product gallery thumbs over the image in Magento 2? Like in this example

texts:
I am able to do it vertically but how can I get it over the image? Magento 2.3.4

Thanks.


texts: Magento - Order details not displayed in paypal standard

texts:
I am using Magento 1.7.0.2. I have configured the paypal standard for my site.While placing order from my site the user ordered details are displaying in one line with price in Paypal instead of displaying the product and shipping details.Any help will be appreciated.

Thanks in advance!


texts: Admin panel lookweird because of the many redirects in Magento 2.3

texts:
I am not getting a normal admin screen. Looking with console I am getting these errors:

  (index):30 GET
  https://www.bakmans.nl/pub/static/adminhtml/Magento/backend/en_US/requirejs-config.js
  net::ERR_TOO_MANY_REDIRECTS (index):17 GET
  https://www.bakmans.nl/pub/static/adminhtml/Magento/backend/en_US/extjs/resources/css/ext-all.css
  net::ERR_TOO_MANY_REDIRECTS (index):18 GET
  https://www.bakmans.nl/pub/static/adminhtml/Magento/backend/en_US/extjs/resources/css/ytheme-magento.css
  net::ERR_TOO_MANY_REDIRECTS (index):19 GET
  https://www.bakmans.nl/pub/static/adminhtml/Magento/backend/en_US/Ebizmarts_MailChimp/css/styles.css
  net::ERR_TOO_MANY_REDIRECTS (index):20 GET
  https://www.bakmans.nl/pub/static/adminhtml/Magento/backend/en_US/Mollie_Payment/css/styles.css
  net::ERR_TOO_MANY_REDIRECTS (index):21 GET
  https://www.bakmans.nl/pub/static/adminhtml/Magento/backend/en_US/Ves_All/css/styles.css
  net::ERR_TOO_MANY_REDIRECTS (index):22 GET
  https://www.bakmans.nl/pub/static/adminhtml/Magento/backend/en_US/Ves_Brand/css/styles.css
  net::ERR_TOO_MANY_REDIRECTS (index):23 GET
  https://www.bakmans.nl/pub/static/adminhtml/Magento/backend/en_US/jquery/jstree/themes/default/style.css
  net::ERR_TOO_MANY_REDIRECTS (index):24 GET
  https://www.bakmans.nl/pub/static/adminhtml/Magento/backend/en_US/css/styles.css
  net::ERR_TOO_MANY_REDIRECTS (index):28 GET
  https://www.bakmans.nl/pub/static/adminhtml/Magento/backend/en_US/requirejs/require.js
  net::ERR_TOO_MANY_REDIRECTS (index):29 GET
  https://www.bakmans.nl/pub/static/adminhtml/Magento/backend/en_US/mage/requirejs/mixins.js
  net::ERR_TOO_MANY_REDIRECTS (index):35 Uncaught TypeError:
  require.config is not a function
      at (index):35 (anonymous) @ (index):35 (index):59 Uncaught TypeError: require is not a function
      at (index):59 (anonymous) @ (index):59 ial.js:3219 registerEventsMessage called  ial.js:4459 ready: before call parse for
  last time {timer: null, count: 0, error: true, data: null,
  parsedOnReady: false, …} (index):108 GET
  https://www.bakmans.nl/pub/static/adminhtml/Magento/backend/en_US/images/magento-logo.svg
  net::ERR_TOO_MANY_REDIRECTS 2favicon.ico:1 GET
  https://www.bakmans.nl/pub/static/adminhtml/Magento/backend/en_US/Magento_Theme/favicon.ico
  net::ERR_TOO_MANY_REDIRECTS


texts: Add Customs column to Admin > sales >order

texts:
i am try to add columns in Admin > sales >order by overriding method.
Copy
app/code/core/Mage/Adminhtml/Block/Sales/Order/Grid.php
to
app/code/local/Mage/Adminhtml/Block/Sales/Order/Grid.php.

add this code in protected function _prepareCollection()

$collection->getSelect()->join('sales_flat_order_item', '`sales_flat_order_item`.order_id=`main_table`.entity_id', array('name'  => new Zend_Db_Expr('group_concat(`sales_flat_order_item`.name SEPARATOR ", ")')));

add this code in protected function _prepareColumns()

$this->addColumn('name', array(
        'header' => Mage::helper('sales')->__('Product Name'),
        'index' => 'name',
    ));

but it get all get all product's name of all orders like in the image


texts: Magento global accounts set, but newsletter per storename or storeview - multi-store

texts:
Our situation in shorthand: Magento 1.9.x global accounts set, but newsletter per storename or storeview - in multi-store environment.

We have encountered some unexpected behavior. Suppose two scenario's:

Share Customer Accounts = set to global

Advantage = 1 customer account, no duplicates

Disadvantage = the customer cannot subscribe to a second email list of another storename or storeview. Not acceptable.

Share Customer Accounts = set to store

Advantage = we can store a customers email per website again (member of 1, not member of 2 and unsubscribed for 3 for example)

Disadvantage = we have many duplicate user accounts that are one and the same. But only now have two same accounts. This also causes problems when entering backend orders and not carefully watching which store the current order is for and which account is the exact one beloning to that store. Our current config - but not ideal.

My question: how can we overcome this problem? I think in short, we would want to: enable global accounts; and als manage e-mail newsletter subscribers on a storename or storeview level. Can this be done?

Help appreciated

Some resources/but either old or not complete

Cannot subscribe email newsletter to second storeview: email already exists

http://www.hostknox.com/clients/knowledgebase/410/How-to-enable-and-disable-customer-account-sharing-in-a-multistore-in-Magento.html

Looks promising: http://astrio.net/blog/multi-store-magento-newsletter/


texts: Adminhtml 'Add New' Action with Subtypes

texts:
I'm trying to replicate the way the 'add new' button works in the product section of the admin. I have a custom model that I've set up, have displaying on a grid, have an 'add new' button, and have that linked up to a form. What I'd like to do is replicate the way the add new product functionality works, specifically allowing for the user to choose a type from a dropdown on a new page, and then showing the next step of the form (depending on the type chosen).

I see the way this is being done for products in the core code, but it seems like a sloppy mess of inline JS, written just for that purpose.

Here's the form the product page uses:

<?php
class Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Settings extends Mage_Adminhtml_Block_Widget_Form
{
    protected function _prepareLayout()
    {
        $this->setChild('continue_button',
            $this->getLayout()->createBlock('adminhtml/widget_button')
                ->setData(array(
                    'label'     => Mage::helper('catalog')->__('Continue'),
                    'onclick'   => "setSettings('".$this->getContinueUrl()."','attribute_set_id','product_type')",
                    'class'     => 'save'
                    ))
                );
        return parent::_prepareLayout();
    }

    protected function _prepareForm()
    {
        $form = new Varien_Data_Form();
        $fieldset = $form->addFieldset('settings', array('legend'=>Mage::helper('catalog')->__('Create Product Settings')));

        $entityType = Mage::registry('product')->getResource()->getEntityType();

        $fieldset->addField('attribute_set_id', 'select', array(
            'label' => Mage::helper('catalog')->__('Attribute Set'),
            'title' => Mage::helper('catalog')->__('Attribute Set'),
            'name'  => 'set',
            'value' => $entityType->getDefaultAttributeSetId(),
            'values'=> Mage::getResourceModel('eav/entity_attribute_set_collection')
                ->setEntityTypeFilter($entityType->getId())
                ->load()
                ->toOptionArray()
        ));

        $fieldset->addField('product_type', 'select', array(
            'label' => Mage::helper('catalog')->__('Product Type'),
            'title' => Mage::helper('catalog')->__('Product Type'),
            'name'  => 'type',
            'value' => '',
            'values'=> Mage::getModel('catalog/product_type')->getOptionArray()
        ));

        $fieldset->addField('continue_button', 'note', array(
            'text' => $this->getChildHtml('continue_button'),
        ));

        $this->setForm($form);
    }

    public function getContinueUrl()
    {
        return $this->getUrl('*/*/new', array(
            '_current'  => true,
            'set'       => '{{attribute_set}}',
            'type'      => '{{type}}'
        ));
    }
}

As you can see, the onClick => 'setSettings' part is the action for the 'continue' button. This is the part that I've gotten up to in my own form, but I do not want to rewrite the setSettings function in another phtml file the way it is done in core. Is there no neater way to get a multi-step adminhtml forms working?

Thank you for your help!


texts: How to get SID programmatically : Magento 2

texts:
I am working on multi store

  Store > Configuration > General > Web > Session Validation Settings >
  Use SID on Storefront is set to "Yes" allow customer to stay logged in
  when switching between different stores.

However I am not getting SID in my front end URL. Is there any way to get SID pragmatically and append to front end URL.


texts: Magento 2 - Checkout aria-invalid="false"

texts:
Im not sure if this is a bug, or it's me being silly. What I'm trying to achieve is in the checkout and on an input is the following:

  aria-invalid="null"

However what I've noticed is on initial load of the checkout every input on the page loads the

  aria-invalid="false"

This can be seen here:

The ticks indicate that the value is set to false, however there isn't any content inside of these items.

What I want is, the value to actually return null on first load, and then use the Ko.observable to say if it should be:

True - there is an error ( its empty )

False - everything is okay

I've had a nosey around and found that the file sits here:

  /vendor/magento/module-ui/view/frontend/web/templates/form/element/input.html

And returns the following:

<input class="input-text" type="text" data-bind="
    value: value,
    valueUpdate: 'keyup',
    hasFocus: focused,
    attr: {
        name: inputName,
        placeholder: placeholder,
        'aria-describedby': getDescriptionId(),
        'aria-required': required,
        'aria-invalid': error() ? true : 'false',
        id: uid,
        disabled: disabled
    }" />

I've gotten to this stage and tried to find the even/function for " error() " but I've gotten lost in the rabbit hole.

If anyone has any advice on this, that'd be awesome.


texts: Products dissapeared from website after reindexing

texts:
I have a plugin which imports products from an XML file to Magento 2, and after finally getting it to work, it wasn't displaying images of the products on the site (it does in the backend though). So I ran a re-index and now it isn't displaying any products at all (they are still in the backend).

The products are set to visible and have enough stock. These are the settings for the product:

This only started to happen after re-indexing. Any clues on what this could be?


texts: How to setup rule in Magento: Buy 1 "Hammer" and get FREE "Gloves"?

texts:
Just like description specifies.
How to set up rules in Magento:
If you buy ONE Hammer you get a ONE pair FREE of XBRAND gloves (added to your cart automatically).

If someone buys TWO hammers, they get TWO pair FREE of XBRAND gloves.
If someone buys THREE hammers, they get THREE pair FREE of XBRAND gloves.

Please help me out ?

Thank you in advance.


texts: Response time very slow with 890mb database on CE 1.9.2.4

texts:
We have a CE 1.9.2.4 store which has been live around 3 weeks.

Prior to launch, we used Cart2Cart to import the client's historical customers & their orders from his old CRE Loaded site.

The sites response time is now very slow and we think it's down to the size of the database (890mb).

Is there any way to clean up the database?
Purge old orders?
Make things work quicker?


texts: CSV Import | Related - Crossell partial imported

texts:
While importing 8000+ new items, we've stumbled on an issue with the related_skus and crosssell_skus fields that causes only 800 new database entries to be created in the catalog_product_link table.

Example csv
id;sku;related_skus;crosssell_skus;related_position;crosssell_position;
12;123465789;4024144586509,4892503084016,4024144524785,4024144635825;4024144515844,603912332384,4024144598083,603912263121;1,2,3,4;1,2,3,4;
...

Problem:
After running the import (through backend csv import), only 800 items had related_skus and crosssell_skus fields. Importing the same file again, results in 800 more related/corssell DB fields.

Failed attempts

Increased PHP + Nginx timeouts
Increased Mysql limits

Workaround
Using our custom import module [1], were where able to import all the related_skus and crosssell_skus for all 8000+ items, by importing the same file over and over again using a simple while() loop.
[1]: Magento\ImportExport\Model\ImportFactory;

TL;DR / Question
Why does the related_skus and crosssell_skus get partial imported, resulting in only 800 database entries.

Additional information

Magento 2.3.5-p1
Database query to count number of fields;
select count(*) from catalog_product_link;


texts: Magento 2 : How to change default date format every where in magento?

texts:
I want to change the default date format like mm/dd/yy to dd/mm/yy for en_us locale in admin as well as front-end.

Don't want to change the locale for that.


texts: How to run php function directly after a specific Magento 2 CLI command?

texts: For the sake of simplicity, let's say I want to echo out "Hello World" (in reality i want to do a lot more) directly after anyone runs php bin/magento setup:di:compile. In the latest version of Magento what is the correct way to do this without going directly in to vendor folders and modifying files? Observers are on their way out, interceptors seem to be the way forward but I cannot get an interceptor to run when basing it on the classes that perform the setup:di:compile action. Anyone know how to do this?


texts: Magento 2 production deployment: which commands?

texts:
I am currently in the process of creating a Magallanes production environment for release deployments on a server.

However, I am unsure which commands actually need to be executed and in which order. Currently I execute the following:

composer install
copy/symlink app/etc/config.php & app/etc/env.php
custom command to set the correct domain in core_config_data table
app:config:import
setup:upgrade
deploy:mode:set production
setup:static-content:deploy …

Is there anything I am missing or should anything be executed in another order for a clean deployment?


texts: Magento 2: require.js error when disabling wishlist module

texts:
When I disable module Magento_Wishlist in admin (Stores->configuration->advanced->advanced) I get the following error in frontend (js console):

  Uncaught Error: Script error for: addToWishlist

I cannot disable the module from CLI because of its dependencies. What can I do to get rid off the error?

I already cleaned cache, did setup:upgrade and setup:static-content:deploy


texts: Which tool is getting used by Magento to audit our codes for putting in Marketplace?

texts: We have tried using php code sniffer but still getting failed at Marketplace? Anyone has any idea?


texts: Is it possible to have more than 1 value in the attribute WEIGHT?

texts:
the "weight" attribute usually has a 'global' scope. That's why it can't display, say, 2 different values depending on the Magento website or storeview. That's what I have understood so far.

Does anybody here know a way around this limitation?

Reason behind this is: with the 'weight' value, we can display the shipping cost directly at the articles detail-page in the frontend, which is very conveniend for the customer.

That implies, of course, that the values of 'weight' are NOT actually grams or kilograms, but are the amounts of Euros for the shipping. (We don't use UPS or Hermes or any of these services.)

Now as we want to send our articles to our neighbouring countries, we would like to display slightly raised costs for these storeviews/websites. And here we go having the problem to give different values to 'weight' according to the destination, i.e. storeviews/websites.

=> We of course use the table-rates for shipping to different countries. But that applies only when the check-out process is met by the customer. We however would like to display the shipping-cost already before when displaying the article.

I hope this was described clear enough for you to get the issue.
Any help or hint is greatly apprechiated!


texts:
After upgrade magento 2.0.2 to 2.1.2 through composer i get following error :

Autoload error: 'magento/framework' component already exists

How to solve this error?

Without that i can't access front end and back end.


texts: Why is my update data running on install?

texts:
I tested a fresh install of my extension, but the data-upgrade script is running. It should only run on upgrade, correct?

Update data path: magento/app/code/community/Example/Ex/data/ex_setup/data-upgrade-2.2.3-2.3.0.php

Install script path: magento/app/code/community/Example/Ex/sql/ex_setup/mysql4-install-2.0.0.php

config.xml: <version>2.3.0</version>


texts: Does Magento EE 1.11.2.0 supports Coupon code Auto generation?

texts:
Magento EE 1.11.2.0 doesn't have that check box for auto generating the coupon codes. See the below image.

I doubt whether this functionality has been introduced with later versions from Magento EE 1.14.x

Please any clue will be appreciated.


texts:
please vist "http://newtrendzonline.com/boards/"

I set "Template Path Hints = yes" and " Add Block Names to Hints to "yes"  in "Default wide" store.

after that I set to no .

But still, template paths are displaying in top left and bottom footer.

How to remove those "paths".

I cleared cache.

Thanks in Advance.


texts: Shop Now Button & Add to Cart not working

texts:
I got this message on the chrome dev. console. i need help

[Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.
g.doXHR @ less-1.3.3.min.js:13


texts: Magento 2.2.3 - CMS Home Page not showing for other store view

texts:
I have a primary store view home that's attached to the default store and configured (in Stores > Configuration > General > Web > Default Pages) with a specific CMS Home Page (also called home).  That works fine.

I have another store view, store2, that's attached to a second store and configured with a different CMS Home Page (store2), and that one doesn't work.  Instead, it shows the same CMS Home Page as the primary home store view.

This happens even though I've set the home CMS page to only be available for the home store view, and the store2 CMS page to only be available to the store2 store view.  I've also tried changing the keys for the CMS pages in case they were conflicting with the store view keys somehow.  No dice.

I should note that store2 has a custom theme which was copied from home's theme (I've tried having that custom theme inherit from both home's theme and from its theme's parent; neither seems to help matters.)

I should also note that store2 exists as a directory on the server just below root.  It contains symlinks to app, lib, pub, and var, a copy of the root's .htaccess file, and a modified index.php file, per our server provider's instructions.

Lastly I should note that we used MGS Page Builder to create the initial homepage, and that extension's export/import feature to produce the CMS homepage for store2.

I've also run setup:upgrade, cache:flush, and indexer:reindex (we're in dev mode so no deployment).  No luck.

Any idea what I'm missing here?


texts: How to get consumer key instead of full website HTML

texts: I am very new to Magento and I have installed it on localhost. I have an integration which provided my a consumer key/secret. I was trying to get a consumer token in postman. What I am getting is the entire wesite in html and not the tokens I am using the "/V1/integration/customer/token"end point via PostMan. I tried using with a plain username/password, but I still get the full website (I have set to receive application/json).The response code is 200 Ok means it's doing the right thing. Can someone please guide me in right direction?


texts: how to change default theme color in magento 1.9?

texts:
How can the default theme color be changed in Magento 1.9 i want to change #Theme Color 1 And #Theme color 2 but i can't find how?

My admin configuration is :


texts: Magento 2 CLI method to flush images cache?

texts: Is there a CLI command (either bin/magento, n98, or custom) in Magento 2 that can flush the images cache to perform the same function as clicking the "Flush Images Cache" button in the web admin panel?


texts: if statement for meta language tag on multi-language site

texts:
Going through some SEO lists and found that magento websites do not provide the proper meta language information in the head on all pages.

Very simple to correct on uni-lingual websites, modify the head.phtml file located in /app/design/frontend/default/YOUR_THEME/template/page/html/

In the meta section add the following (replace en-CA with the correct language of your store):

<meta name="language" content="en-CA" />

To address the issue on a multiluange site I've composed the following code:

<div class="meta-language">

    <?php if($getStreId ==1) :?>
 <meta name="language" content="en-CA" />
        <?php endif; ?>
<meta name="language" content="fr-CA" />
            </div>

The site id 1 is for Enlish, the other will be French (2 languages).

When I inspect the code with Firebug I see the following:

<meta name="language" content="en-CA" />
<meta name="language" content="fr-CA" />

The expected result was to only see the active language for the meta language tag.

How can the code be modified to only show the active language ?


texts: Which function will be called in CatalogImportExport module on click of 'Import' button when U import bulk csv products in System->Import->Products