texts:
I'm attempting to overwrite adminhtml/model/sales/order/create.php, specifically public function initFromOrderItem.

Text output shows the function I've overwritten is not loading to the site.

In app/etc/modules/GoddessDelivers_QObugfux.xml

 <config>
     <modules>
         <GoddessDelivers_QObugfix> <!--  app/code/<codepool>/GoddessDelivers/QObugfix  -->
             <active>true</active>
             <codePool>local</codePool>
             <depends>
                 <Mage_Core />
             </depends>
         </GoddessDelivers_QObugfix>

     </modules>
 </config>

In app/code/local/GoddessDelivers/QObugfix/etc/config.xml

 <config>
     <modules>
         <GoddessDelivers_QObugfix>
             <version>0.0.0.1</version>
         </GoddessDelivers_QObugfix>
     </modules>
     <global>
         <adminhtml>
             <sales>
                 <order>
                     <rewrite>
                         <create>GoddessDelivers_QObugfix_Adminhtml_Model_Sales_Order_Create</create>
                     </rewrite>
                 </order>
             </sales>
         </adminhtml>
     </global>

 </config>

In app/code/local/GoddessDelivers/QObugfix/Adminhtml/Model/Sales/Order/Create.php:

 class GoddessDelivers_QObugfix_Adminhtml_Model_Sales_Order_Create
 extends Mage_Adminhtml_Model_Sales_Order_Create {
     public function initFromOrderItem(Mage_Sales_Model_Order_Item $orderItem, $qty = null)
     {

What am I doing wrong?


texts: How to move js file dynamically to pub/static folder in Magento2

texts:
I created custom module with requirejs-config.js and js folder
when ever page loads requirejs-config is dynamically created in pub/static/_requirejs folder, but my custom JS is not created automatically i need to copy paste manually in my local system

Do magento2  have any command to build pub/static JS files or  manually we need to move into pub\static\frontend\Magento\luma\en_US\MYNAME_MYMODULE\js

i tried below command but not working

bin\magento setup:static-content:deploy


texts:
I just installed Aheadworks Blog for my Magento 1.9.2.4. Everything works, but now I can't open shipping methods in backend. I'm getting a blank screen and this message in the address:

index.php/admin/system_config/edit/section/carriers/key/cabeaad86a668ce72a0f090233956f70/

I looked in the system.log and found this:

  Warning:
      include(/var/www/unoshop.dk/public_html/includes/src/smartsend_logistics_block_adminhtml_shipping.php): failed to open stream: No such file or directory  in /var/www/unoshop.dk/public_html/includes/src/Varien_Autoload.php on line 94

Don't know what that means. I tried reinstall the smartsend extension but that did not help.


texts:
I'm running into an issue on Magento 2.2.7 after a failed rollback from 2.3

  Exception: Not supported cipher version in /vendor/magento/framework/Encryption/Encryptor.php:135

Current PHP version is 7.1. I've tried 7 and 7.2
I've cleared var/cache and var/page_cache

How can I clear this error please?


texts:
I've got a carousel (Owl Carousel) on my home page that doesn't work on Chrome but does work in other browsers. I believe it is something to do with Jquey loading after the carousel but I'm not 100%.

The code on the homepage goes like this

 <script type="text/javascript" xml="space">// <![CDATA[

    require([
        'jquery',
        'twitter',
        'owlcarousel',
    ], function ($) {
          $(document).ready(function () {
           $("#carousel").owlCarousel({
                navigation: true,
autoplay:true,
                items: 1
            });
        });
    });
]]></script>

The URL is - https://www.pop-upbanners.com/

Thanks

Michael


texts: Custom module to override CategoryController.php not working

texts:
To dodge the max of 1000 products in a category I tried to override CategoryController.php. I think I did everything right, but the module doesn't work. I'm working with Magento 1.7.0.2 Community Edition.

In code/local/EM/CategoryFix/etc/config.xml I have:

<?xml version="1.0"?>
    <config>
        <modules>
        <EM_CategoryFix>
            <version>0.1.0</version>
        </EM_CategoryFix>
    </modules>
    <admin>
        <routers>
            <adminhtml>
                <args>
                    <modules>
                        <CategoryFix before="Mage_Adminhtml">EM_CategoryFix_Adminhtml</CategoryFix>
                    </modules>
                </args>
            </adminhtml>
        </routers>
    </admin>
</config>

In code/local/EM/CategoryFix/Adminhtml/Catalog/CategoryController.php:

require_once 'Mage/Adminhtml/controllers/Catalog/CategoryController.php';
class EM_CategoryFix_Adminhtml_Catalog_CategoryController extends Mage_Adminhtml_Catalog_CategoryController
{
   //public function to override
}

And in etc/modules/EM_CategoryFix.xml

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

I checked everything a thousand times, what do I miss?


texts:
What is the purpose of below configuration in cron group xml file? I did not fully understand the meaning of those lines:

schedule_generate_every

Frequency (in minutes) that schedules are written to the cron_schedule table.

schedule_ahead_for

Time (in minutes) in advance that schedules are written to the cron_schedule table.

schedule_lifetime

Window of time (in minutes) that cron job must start or will be considered missed (“too late” to run).

Thanks


texts: How to get all orders(and orders sum) for current customer?


texts: Can my controller return the result of another controller action, without issuing a 301 or 302 redirect?

texts:
I have a controller which replaces an existing controller.  Under certain conditions my controller should run the implementation from the existing controller; however it should be transparent (it should behave like a URL rewrite with a non-redirect behavior).

So far I haven't been able to find out how I can either pass the request on to the second controller, or execute the second controller's action and return the result as though it were from my controller.


texts:
After newsletter finished sending, that is a "Newsletter Problem Reports" under the newsletter section:

Error Code: 0
Error text: Please refer to exeption.log

What does this mean?
I checked the email address listed here, most of them are working well.

Thanks.
John


texts: Translate In Underscore Template - Magento 2

texts: What is the recommended / best practise method of translating within a underscore template for example within a modal popup?


texts: I want to create an attribute just like weight for each product, called extraInfo and update that info in the sales order.  I don't want this data being saved to each product of the same type just that specific item going into the order.


texts: Magento 2: Swatches property to resize from CSS

texts:
If I want to show smaller size of swatches on the category page and bigger on view page, when I am applying style it changes on both pages, can anyone guide me how to do this?

<i have tried applying style on custom style sheet>


texts: Included part of a phtml file in CMS page

texts:
I can include a phtml file with the following

{{block type="core/template" template="page/page.phtml"}}

But is there anyway I can include only part of its content that is needed and use another part of it somewhere else?

example:

$_product = Mage::getModel('catalog/product')->load(51);

echo '
The price for product 51 is £' . $_product->getFinalPrice() . '
';

$_product = Mage::getModel('catalog/product')->load(52);

echo '
The price for product 52 is £' . $_product->getFinalPrice() . '
';

Then on a banner for product 51 it would show the correct price.

I would also need it to work for configurable products that works in the same way but shows the lowest priced simple product only as follows:

$_product = Mage::getModel('catalog/product')->load(80);
if($_product->isconfigurable()) {
$conf = Mage::getModel('catalog/product_type_configurable')->setProduct($_product);
$simple_collection = $conf->getUsedProductCollection()
                    ->addAttributeToSelect('*')
                    ->addFilterByRequiredOptions()
                    ->addAttributeToSort('Price', 'asc');

foreach($simple_collection as $simple_product){
echo '
Order yours now for only ' . Mage::helper('core')->currency($simple_product->getPrice()) . '
';
break;
}
}


texts: magento 1.9 how to show product in home page like category page

texts:
I use this code and show the product of this category

{{block type="catalog/product_list" column_count="4" category_id="4" template="catalog/product/list.phtml"}}

but I want to show content of home page(product of category)  looks like category page


texts: Layered navigation (Shop by) not showing on every category

texts:
I hope you can help me out here.. I tried every possible solution given on the forum / internet, but nothing helps. Maybe I'm overseeing something here.

I'm using the default RWD template with magento 1.9.2 (incl. sample data).
When you look at: http://www.kweekotheek.nl/nieuw2/kweeklampen/shirts.html you can see that it works ok.
Looking at http://www.kweekotheek.nl/nieuw2/kweeklampen.html you see it doesn't show up :(

The anchor option in the categories are the same ("Yes"). Cleared the cache, set it to "No" and back to "Yes", but nothing changes. It's almost a clean install (didn't work from the beginning).

Hope you guru's can help me out here :)

Thanks in advance!

Hielke


texts: Magento Connect to close on September 15

texts:
As the title says Magento team will close the old Magento Connect. For me, it is a bad idea, this place provided for years a strong resource of solutions and inspiration. There are lots of people around the world using Magento CE 1 who need these extensions. Checking the new marketplace it is looking great, but there are thousands of extensions their developers did not migrate them to the new platform.

I would like to know how this will affect those who are installing extensions using Magento Downloader. Will this feature work after closing or not?

Is there a way to backup all extensions in community folder from Magento Connect?


texts: Get the Request from current URI and pass it to helper

texts:
I'm fairly new in Magento, what I'm trying to do is to get the request from URL and get the specific Parameter from it then pass it to Helper, in helper I need to check that specific parameter and run the correct function which is related to that specific parameter, Grateful if anyone can help me through this?

So, I already created my Controller file which is
TestController.php

    <?php

class Test_Request_TestController extends Mage_Core_Controller_Front_Action
{
    public function indexAction()
    {
        $params = $this->getRequest()->getParams();
        foreach ($params as $key => $value)
        {
            if($key == 'something')
            {
                echo Mage::helper('request')->getProducts();
            }
        }
    }
}

and here is my config.xml

<?xml version='1.0'?>
<config>
    <modules>
        <Test_Request>
            <version>0.0.1</version>
        </Test_Request>
    </modules>
    <frontend>
        <routers>
            <Test>
                <use>standard</use>
                <args>
                    <module>Test_Request</module>
                    <frontName>Test</frontName>
                </args>
            </Test>
        </routers>
    </frontend>
    <global>
        <helpers>
            <request>
                <class>Test_Request_Helper</class>
            </request>
        </helpers>
    </global>
</config>

and I've been created my helper

Data.php

<?php

class Test_Request_Helper_Data extends Mage_Core_Helper_Abstract
{
    public function getProducts()
    {
        echo 'products';
    }
}

What I did is, I created function in helper class and I want to check the parameters of the URL under controller if the parameter is the same as the thing I want I want to call the function from helper, is that right ?? because I keep getting this error:

Warning: include(/var/www/html/magento/includes/src/Test_Request_Helper_Data.php): failed to open stream: No such file or directory  in /var/www/html/magento/includes/src/Varien_Autoload.php on line 93

#0 /var/www/html/magento/includes/src/Varien_Autoload.php(93): mageCoreErrorHandler(2, 'include(/var/ww...', '/var/www/html/m...', 93, Array)
#1 /var/www/html/magento/includes/src/Varien_Autoload.php(93): Varien_Autoload::autoload()
#2 [internal function]: Varien_Autoload->autoload('Test_Request_He...')
#3 /var/www/html/magento/app/Mage.php(547): spl_autoload_call('Test_Request_He...')
#4 /var/www/html/magento/app/code/community/Test/Request/controllers/TestController.php(12): Mage::helper('request')
#5 /var/www/html/magento/includes/src/__default.php(14015): Test_Request_TestController->indexAction()
#6 /var/www/html/magento/includes/src/__default.php(18399): Mage_Core_Controller_Varien_Action->dispatch('index')
#7 /var/www/html/magento/includes/src/__default.php(17933): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#8 /var/www/html/magento/includes/src/__default.php(20705): Mage_Core_Controller_Varien_Front->dispatch()
#9 /var/www/html/magento/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#10 /var/www/html/magento/index.php(87): Mage::run('', 'store')
#11 {main}

I really don't know where this coming from, Please let me know if you have any idea how to fix this issue, thanks :)


texts:
I would like to create a product's spec table on my product's page.

In the admin I have created:

Attributeset -> Motherboards

Attributegroup -> Memory (My table header)

Attributes ->
Supported Memory Types
Memory Slots

For the products, I have set these values in the admin part.

Now I want to create a table on the product page. I'm very new to Magento and i'm unsure whether I have to write a module for it, or use Magento's build in function.

Can somebody tell me which direction I should follow on this?


texts: What are the Magento 2 Grunt commands? From deployment?

texts:
I am developing on Magento 2 EE and I have just setup up my local machine. I notice that after using Composer I can now see Magento 2 EE.

So I ran the command grunt deploy and this basically appeared that it went through a list of CSS LESS and JS files and ran the Grunt. If I was a on live SSH box and I ran grunt deploy will this take the server down or just simply update the files and minify them?

My plan is:

Develop a theme locally with all SASS/LESS and JS files in RequireJS
Copy those files and replace them to live.
Then run grunt deploy on live box.

I take it this is the way it works?


texts: Duplicate with CSV does not work for images

texts:
I have a Question about the CSV import/export. Where the images do not duplicate from the already existing ones.

let me explain my issue:

I have to add 95 different products with each 3 or 4  differed images and prices. (these are flue gas pipes)
so I add these 95 products manually on the Magento dashboard system.
Now  I have to make the same 95 products in 80 / 100 / 130 / 150 / 180 / 200 / 250 / 300 mm Ø.

Here are the only differences: Name/SKU/Price/MFSRP/URL/ and some layered navigation attributes.

So I downloaded all my products >> Deleted all products besides the 95 flue gas products I need to change >> Did the “change all option” on row Name/SKU/URL to change 150mm in 130mm >> Did Copie/paste the new prices in it and saved it as a new document.

So far so good, but when I uploaded this list (ps. 0 errors) all the images where removed in each new product.

Info:

1.
The images got the exact same path as the working first manually made products. (nothing is changed in the name of the product)

Example 1 product:

_media_image

/m/f/mf100-sectie-100cm-info.png

/m/f/mf100-sectie-100cm-schets.png

/m/f/mf100-sectie-100cm_1.png

_media_lable

MF100-Sectie-100-cm-info

MF100-Sectie-100-cm-schets

MF100-Sectie-100-cm

2.
I manually added the around 300 images and image labels to the new uploaded products (took me 5 hours of brain death repeating a routine)  and now I got all the images duplicated in my FTP: /M/F/… so if I continue this path I will have 10 duplicates from each image on my sever. And I will have 50 more boring hours to go.

Can someone explain what I am doing wrong?


texts: After the installation, adminhtml doesn't work, how to fix it? Thanks


texts: how to get shopping cart price rule items in catalog page

texts:
I have configured the shopping cart price rule in Magento. Is it possible to fetch category IDs, product Ids that I configure in shopping cart price rule on product catalog page ?

If the product is eligible for some shopping cart price rule, I would like to get the shopping cart price rule name in product page ?

Awaiting for your valuable reply.


texts: Magento2: How to delete one word from attribute custom_name via DB

texts:
How to delete  one word from attribute custom_name via DB.

I want delete:
https://prnt.sc/sz08mb

Is any way to do for all products?


texts: Get the list of all products having Advanced Pricing, especially Customer Group Pricing in Magento 2

texts:
I want to get a list of all the products that have Customer Group Pricing which have Website as All Website

Any help is appreciated.


texts: How can I edit the custom options text in the created invoice PDF in Magento?

texts:
OK, so we have this site that has a lot of custom options and we'd like to ideally have the label and value on the same line when the invoice PDF is created. I have located the file responsible at

app/code/core/Mage/Sales/Model/Order/Pdf/Items/Invoice/Default.php

and have made a copy at

app/code/local/Mage/Sales/Model/Order/Pdf/Items/Invoice/Default.php

but my PHP is not good enough for me to figure out how to have the label and value on the same line.

This is the code in question:

$options = $this->getItemOptions();
if ($options) {
    foreach ($options as $option) {
        // draw options label
        $lines[][] = array(
            'text' => Mage::helper('core/string')->str_split(strip_tags($option['label']), 40, true, true),
            'font' => 'italic',
            'feed' => 35
        );

        if ($option['value']) {
            if (isset($option['print_value'])) {
                $_printValue = $option['print_value'];
            } else {
                $_printValue = strip_tags($option['value']);
            }
            $values = explode(', ', $_printValue);
            foreach ($values as $value) {
                $lines[][] = array(
                    'text' => Mage::helper('core/string')->str_split($value, 30, true, true),
                    'feed' => 40
                );
            }
        }
    }
}

Ideally, I'd like to keep the checks and just have the 'text' be in this form: 'label' - 'value'

Thanks!


texts:
PayPal announcing will have change on URL on Payflow.
https://ppmts.custhelp.com/app/answers/detail/a_id/1299

Do I need to do any modification on the Magento side?


texts: How to attach an image for a product using magento2 REST API?

texts:
Note: Currently I have products without images, so I want to set
  images for them.

URL of actual image that I'm using as base64_encoded_data: http://www.freeiconspng.com/uploads/black-iphone-6-cases-png-30.png

I'm using catalogProductAttributeMediaGalleryManagementV1(http://devdocs.magento.com/swagger/#/)

My PHP array which I'm later encoding as JSON to make post request to magento2 rest API

Array
(
    [entry] => Array
        (
            [id] => 0
            [media_type] => Image
            [label] => Iphone7
            [position] => 0
            [disabled] => 0
            [types] => Array
                (
                    [0] => image
                    [1] => small_image
                    [2] => thumbnail
                    [3] => swatch_image
                )

            [file] => /pub/media/catalog/product/i/p/iphone6.png
            [content] => Array
                (
                    [base64_encoded_data] => iVBORw0KGgoAAAANSUhEUgAAAV4AAAFeCAYAAADNK3caAAAKQ2l...
                    [type] => image/png
                    [name] => iphone6.png
                )

        )

)

My post request:

{"entry":{"id":0,"media_type":"Image","label":"Iphone7","position":0,"disabled":0,"types":["image","small_image","thumbnail","swatch_image"],"file":"\/pub\/media\/catalog\/product\/i\/p\/iphone6.png","content":{"base64_encoded_data":"iVBORw0KGgoAAAANSUhEUgAAAV4AAAFeCAYAAADNK3caAAAKQ2lDQ1BJQ0MgcHJvZmlsZQAAeNqdU3dYk\","type":"image\/png","name":"iphone6.png"}}}

I am getting this response from API:

{"message":"There is no MediaGalleryEntryConverter for given type","trace":"#0 \/var\/www\/html\/magento\/vendor\/magento\/module-catalog\/Model\/Product.php(2562): Magento\\Catalog\\Model\\Product\\Attribute\\Backend\\Media\\EntryConverterPool->getConverterByMediaType('Image')\n#1 \/var\/www\/html\/magento\/vendor\/magento\/module-catalog\/Model\/Product\/Gallery\/GalleryManagement.php(68): Magento\\Catalog\\Model\\Product->setMediaGalleryEntries(Array)\n#2 [internal function]: Magento\\Catalog\\Model\\Product\\Gallery\\GalleryManagement->create('iphone6', Object(Magento\\Catalog\\Model\\Product\\Gallery\\Entry))\n#3 \/var\/www\/html\/magento\/vendor\/magento\/module-webapi\/Controller\/Rest.php(307): call_user_func_array(Array, Array)\n#4 \/var\/www\/html\/magento\/vendor\/magento\/module-webapi\/Controller\/Rest.php(216): Magento\\Webapi\\Controller\\Rest->processApiRequest()\n#5 \/var\/www\/html\/magento\/var\/generation\/Magento\/Webapi\/Controller\/Rest\/Interceptor.php(24): Magento\\Webapi\\Controller\\Rest->dispatch(Object(Magento\\Framework\\App\\Request\\Http))\n#6 \/var\/www\/html\/magento\/vendor\/magento\/framework\/App\/Http.php(135): Magento\\Webapi\\Controller\\Rest\\Interceptor->dispatch(Object(Magento\\Framework\\App\\Request\\Http))\n#7 \/var\/www\/html\/magento\/vendor\/magento\/framework\/App\/Bootstrap.php(258): Magento\\Framework\\App\\Http->launch()\n#8 \/var\/www\/html\/magento\/index.php(39): Magento\\Framework\\App\\Bootstrap->run(Object(Magento\\Framework\\App\\Http))\n#9 {main}"}


texts: Magento 2.2.2 product image not updating

texts:
We have a magento 2.2.3 based website and a bunch of configurable products. Now we just tried to update the base image of the parent/configurable product we saved it and cleared cache and we see the new updated image in the admin panel however on the customer facing side the image still shows the original image. Even though we cleared browser cache and in magento reindexed and cleared cache.

suggestions?


texts: Magento 2 - Add To Cart Button Direct To Product Details With Non Required Options

texts:
I am on Magento 2.1.1 and I am trying to change the Add to Cart button behaviour in Grid / List Views.

At the moment, the add to cart button only directs the customer to the product detail page if there is a required custom option. If all of the custom options are non-required (as they have to be on my site), then the add to cart button simply adds the product to the cart.

I need the Add to Cart button to redirect the customer to the product detail page if there are any un-required custom options for the product - and for it to add to cart if there are no options at all.

I have read a question on the same topic for an earlier version of Magento, but it is different in Magento 2. I assume the answer lies somewhere in templates/product/list.phtml

I hope someone can help. Thanks.


texts: Magento category export and import with id and path

texts:
Is there a way to export and import categories with paths and ids?
Anyone maybe have already written code?


texts:
There are many topics here about password reset links that don´t work but I can´t find one that is about only some links that don´t work.
Our client some times receive messages from customers saying that their reset link is not working on click and also not when pasting directly in to browser.
When I test this the link always work but this has happened several times so I still think there could be some issue but no idea where to check since it´s not issue with all links.

We use magento 1.9.3.2


texts: Magento 2.3 Message only has text/html MIME parts

texts: In mail-tester there is a suggestion to ad text/plain to my new order email. How to do that? Is there a way to combine html format with text/plain?


texts: Get newsletter subscribed on customer save

texts:
I am trying to get the value of 'if newsletter subscribed' on customer save. I am using the event: customer_save_after_data_object for customer update and tried to get the subscription value by this piece code

protected $_subscriber;
public function __construct(
    \Magento\Newsletter\Model\Subscriber $subscriber
) {
    $this->_subscriber= $subscriber;
}
public function myUserDefinedFunction() {
    $checkSubscriber = $this->_subscriber->loadByEmail($customer->getEmail());
    $checkSubscriber->isSubscribed();
}

Though it is giving the before saved value for the subscription status. I've also tried by adding another event newsletter_subscriber_save_before, but no luck. Is there any other solution to get the desired result?


texts: Magento 2.3 dynamically add columns to ui grid component

texts:
I have an admin form created via an XML component which inserts a listing via the insertListing component. This listing takes data from a custom table I created for this module. The listing works: I can see the records from my custom table.
My custom table has a column that stores an array of data in a JSON format. Currently, my inserted listing shows the column with the JSON data. What I'd like to achieve is having a separate column for all the values in the JSON. The difficulty is that these JSON data can have different keys, so I cannot have the column declared statically in the XML and filled the column in with the values via dataProvider as I would normally do with UI components.
Example:

record A has a json of {X:1, Y:2}
record B has a json of {Y:1, Z:3}

What I currently see in the grid:

first row with column "jsondata" e value {X:1, Y:2}
second row with column "jsondata" e value {Y:1, Z:3}

What I'd like to achieve:

first row with 3 columns: column X with value 1, column Y with value 2 and column Z with value 0
second row with 3 columns: column X with value 0, column Y with value 1 and column Z with value 3

So what I'd need is a way to dynamically add columns to the XML. Is there a way to do it?


texts: Blurry image on list view in Magento 1.9.2

texts:
Although the images are in very good quality in the product view, in the list view have very poor quality and blurry
How can I fix that?


texts: Magento 2 endless "Please wait"... import message

texts:
I'm trying to update 100.000 products via CSV Import. I split my big CSV into a chunks 6000 lines each. When import starts, after 1-2 minute I have endless "Please wait..." message. I checked in the console and I see that when start importing, there's a request to:
https://url.com/admin_panel/admin/import/start/key/362cc72101809d40e3416235119245822c2db8aa75c01ea82bda7989b6a5bb19/?form_key=EEbHzRkToktXzTk9
which gives net::ERR_EMPTY_RESPONSE after 1-2 minutes.

When I import single line, this requests returns info about successful import.
In my php.ini max_execution_time is set to 3600


texts: How to check which js files were used in final merged js

texts:
With enabled javascript merging and bundling i get one javascript file.

How can i analyze which javascript files across the themes were involved? I suppose var/view_preprocessed should give an answer to this but i am not sure.

Now under the var/view_preprocessed/frontend i have 3 theme directories and those have other child directories, for example:

-bs_cogito
--bs_cogito1
--bs_cogito2
--bs_cogito3
--bs_cogito4

-Magento
--blank
--luma

-Venustheme
--need
--need_child

Is javascript across all these directories used in final merged javascript? The problem i try to solve is that currently my final javascript is very heavy, almost 1.2M(minified) and i am trying to figure out why it is so big, and how to reduce it's size. I think somehow i load js that is unnecessary or duplicated.


texts: Product updates via XML-RPC API not taking effect

texts:
I need to update the value of an attribute in all of my products, so I am trying to script it using the XML-RPC API.  Here's the gist of what I'm doing (using a Python API wrapper):

magento.catalog_product.update(
    1234,                         # product id
    {"weight": 3.14}              # "weight" is just an example attribute code
)

I have two different Magento servers for two different stores, both running 1.9.0.1.  On the one server, this code works perfectly; the attribute value is updated successfully in the product.  On the other server, the update does not take effect.  In both cases the method call returns True and does not throw any exceptions.  The API users and roles I'm using for both servers are also identical (including the resource access permissions).

Things I have tried:

updating the attribute value directly from the admin panel -- this works as expected, but is not feasible to do this for ~9000 SKUs
deleting and recreating the API user and role, just to be sure
setting the store view using catalog_product.currentStore before calling update (per this answer)
including the store view ID in the update call as a third paramter
checking the system and error logs -- saw nothing out of the ordinary
using a different API client -- I've tried a Ruby wrapper and a NodeJS wrapper to no avail

Any ideas what could be causing this strange behavior?  Am I missing something?  Like a magic switch somewhere that governs write access for the XML-RPC API?  I know for a fact this was working a couple of months ago before we updated to 1.9.

Edit: As @GregC suggested, here are some additional details on my Magento instances:

The instances are not copies of each other and there are different product attributes defined in each.
The instance that I am having difficulty with has one website/store with two store views.  The other instance has one website/store with one store view.  I realize that there is a difference here.  However, as I said, this was working before I upgraded the problematic instance to 1.9 via the clean install method.  The other instance was created recently with 1.9 installed from the beginning.
I have tried updating both standard built-in attributes as well as custom attributes.  None of them seem to update properly.
I have tried updating both textual (such as SKU, description) and numerical fields (such as weight, price) without success.
The problematic instance is hosted on SimpleHelix, who also performed the clean install of 1.9.  I will try contacting them to see if other customers have had similar issues.  The other instance is hosted in the Rackspace Cloud and was installed by myself.

At this point I am leaning toward a problem with one of the following:

A Magento core file that someone edited when installing a module or trying to workaround a problem
A remnant of v1.7 that is lurking around and causing issues, either in the database or on the filesystem
A module that is installed on the problematic instance but not on the other instance.  Unfortunately, there are several such modules and I can't just go around uninstalling them to see if it fixes the issue.

I realize that it would be nearly impossible to give me a straight solution to this problem, but any tips for how to track it down would be appreciated.  Are there any good ways to debug this type of issue?


texts: How to display the same products in new store / website

texts:
I already have a website/store with more products. I need to show the same products in new store/website. my old website url is localhost. and my new website/store url is localhost/store1. But if i click any category or product, it is loading like localhost/store1/category-name.html. But showing 404 error and showing old store design. But Home page is working fine.

Please help me to fix this issue.

Thanks in advance.


texts: Magento 2 - Why do SKU not change dynamically in configurable product view page

texts:
When you change an attribute in a configurable product the product image changes dynamically but the SKU doesn't change.

Also, if you add a configured product to your basket it gives you the image of the configurable product (and not of the simple product) which could be very confusion for customers.

Is there any fix for this issue(s)?


texts:
The extension is free available for M2 but removed for M1 from marketplace, Do anyone have magento's authorized.net extension, Kindly share the github link.
Magento version is 1.9.2.4


texts: How to add product attributes at admin dashboard bestsellers tab?

texts:
I would like to know, how to add product attributes ie SKU, Color, Size at admin dashboard bestsellers tab?

app\code\core\Mage\Adminhtml\Block\Dashboard\Tab\Products\Ordered.php

Collection Code:

$collection = Mage::getResourceModel('sales/report_bestsellers_collection')
            ->setModel('catalog/product')
            ->addStoreFilter($storeId)
        ;


texts: Kicked out of backend "Visible section not found."

texts:
Magento 2.2 is allowing me to login to the backend, but as soon as I click on something it sends me back to the login form and shows the message

  Visible section not found.

I don't see any errors in Apache's log, and there are no errors in any of Magento's var/log/*.log files.

I have manually removed Magento cache files. Also tried clearing the session table in the database and ran bin/magento setup:upgrade in verbose mode.

I have also run: bin/magento cache:flush  and bin/magento cache:clean

What other steps can I take to troubleshoot this?

Update:
I have found that this is caused by a module I used to help with the development process. However, it was basically just from turning modules on and off and testing each one.  There was NO indication in any log file of the cause.  Would still love to see suggestions on where I could have found this.


texts: Why we use  from magento 1 local.xml while migration from magento 1 to magento 2?

texts:
Because if I use that crypt_key from magento 1 and try to migrate another database, data-migration-tool runs and start to migrate that db.

Why is this happening?

What are the reasons to use that crypt_key?


texts: File uploader for adminhtml product page

texts:
Do anyone has tested and well working file uploader code for Magento 2.1.1? There are a few tutorials, but I am not sure which one would be suitable for this Magento version.

Adding such a fields would be the best in custom tab. What is more, are available some ui components to achieve that (I haven't found any in form modifiers) - adding multiple files would be nice.

What with upload file - should be uploaded in path like p/a/pathtofile manner?

I was trying to resue downloadable widget from downloadable product but my files are not uploaded. Also I have seen this one and I was trying to use modifiers from Downloadable module, but it also doesn't work for me.


texts: Magento 2 stores all messages in the cookie and uses Javascript to display these messages, creating problems for codeception-automatic testings

texts:
Magento 2 stores all messages in the cookie and uses Javascript to display these messages. That makes problems for codeception automatic testings of login functionality (which cannot use javascript) and also sometimes we have more messages then a cookie allows (max size of cookies is 4kb).
Does anybody have any idea how to fix this issue?


texts:
I have below code in phtml 1:

<?php $itemid = $item->getItemId() ?>
<a href="<?php echo $this->getUrl('history/customer/detail',
            ['item_id' =>$itemid]); ?>">Product Detail
</a>

How can I get variable $itemid with using function $_GET in phtml 2.

Can anyone show me?

Thanks.


texts: How to redirect customer to cart page after login?

texts:
/app/code/core/Mage/Customer/controllers/AccountController.php

protected function _loginPostRedirect()
    {
        $session = $this->_getSession();

    if (!$session->getBeforeAuthUrl() || $session->getBeforeAuthUrl() == Mage::getBaseUrl()) {
        // Set default URL to redirect customer to
        $session->setBeforeAuthUrl($this->_getHelper('customer')->getAccountUrl());
        // Redirect customer to the last page visited after logging in
        if ($session->isLoggedIn()) {
            if (!Mage::getStoreConfigFlag(
                Mage_Customer_Helper_Data::XML_PATH_CUSTOMER_STARTUP_REDIRECT_TO_DASHBOARD
            )) {
                $referer = $this->getRequest()->getParam(Mage_Customer_Helper_Data::REFERER_QUERY_PARAM_NAME);
                if ($referer) {
                    // Rebuild referer URL to handle the case when SID was changed
                    $referer = $this->_getModel('core/url')
                        ->getRebuiltUrl( $this->_getHelper('core')->urlDecodeAndEscape($referer));
                    if ($this->_isUrlInternal($referer)) {
                        $session->setBeforeAuthUrl($referer);
                    }
                }
            } else if ($session->getAfterAuthUrl()) {
                $session->setBeforeAuthUrl($session->getAfterAuthUrl(true));
            }
        } else {
            $session->setBeforeAuthUrl( $this->_getHelper('customer')->getLoginUrl());
        }
    } else if ($session->getBeforeAuthUrl() ==  $this->_getHelper('customer')->getLogoutUrl()) {
        $session->setBeforeAuthUrl( $this->_getHelper('customer')->getDashboardUrl());
    } else {
        if (!$session->getAfterAuthUrl()) {
            $session->setAfterAuthUrl($se**strong text**ssion->getBeforeAuthUrl());
        }
        if ($session->isLoggedIn()) {
            $session->setBeforeAuthUrl($session->getAfterAuthUrl(true));
        }
    }
    $this->_redirectUrl($session->getBeforeAuthUrl(true));
}


texts: I have magento 1 and a message popped  to change to magento 2. I purchased two extensions for the old platform now i have to purchase them again for the 2 version?


texts: This may be a very stupid question. I made a new page in Magento and I want to make a link to the page on my Magento homepage, but I dont know what the link url to use for that page. The url key for my page is over-ons My base url is: 127.0.0.1/html/magento/magento I cant seem to find out how to get to my new page. How do I link this to the home page? I've seen a tutorial on the official magento website itself and it said you have to make a new category but that doesn't seem right for such a small thing. How do I get to my new page?


texts: Exception #0 (Exception): Notice: Undefined variable: crumbs in /breadcrumbs.phtml on Custom Layout

texts:
Ive created a new page template xml which looks like:

<layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_layout.xsd">
<update handle="empty"/>
<referenceContainer name="page.wrapper" htmlClass="site-wrapper" htmlId="magento">
    <container name="header.container" as="header_container" label="Page Header Container" htmlTag="header" htmlClass="page-header" htmlId="header" before="main.content"/>
    <container name="business.types.top" as="business_types_top" label="Business Types Top" after="header.container"/>
    <container name="business.types.bottom" as="business_types_bottom" label="Business Types Bottom" after="main.content"/>
    <container name="footer-container" as="footer" before="before.body.end" label="Page Footer Container" htmlTag="footer" htmlClass="page-footer" htmlId="footer"/>
</referenceContainer>
</layout>

And in my default.xml I'm trying to add the breadcrumbs.phtml to the business.types.top container like:

<referenceContainer name="business.types.top">
        <block class="Magento\Framework\View\Element\Template" name="home.breadcrumbs" template="Magento_Theme::html/breadcrumbs.phtml"></block>
</referenceContainer>

However I receive the following error?

1 exception(s):
Exception #0 (Exception): Notice: Undefined variable: crumbs in /templates/html/breadcrumbs.phtml on line 10.

Can anyone please advise on how I can get the breadcrumbs to work on this page?

Thanks

UPDATE:
This is my breadcrumbs.phtml, which is working on other pages using the default page templates:

<?php if ($crumbs && is_array($crumbs)) : ?>

Home

        <?php foreach ($crumbs as $crumbName => $crumbInfo) : ?>
            <li class="item <?php /* @escapeNotVerified */ echo $crumbName ?>">
            <?php if ($crumbInfo['link']) : ?>
                <a href="<?php /* @escapeNotVerified */ echo $crumbInfo['link'] ?>">
                    <?php
                    if ($block->escapeHtml($crumbInfo['label']) != "Home") {
                        echo "Products";
                    } else {
                        echo $block->escapeHtml($crumbInfo['label']);
                    }
                    ?>

            <?php elseif ($crumbInfo['last']) : ?>

<?php echo $block->escapeHtml($crumbInfo['label']) ?>

            <?php else: ?>
                <?php echo $block->escapeHtml($crumbInfo['label']) ?>
            <?php endif; ?>

        <?php endforeach; ?>


texts:
I have created a custom js for customer add form. But I am getting the error "can not read property 'get' of undefined" in console.

Please help. Thanks in advance.

  Vendor/CustomCustomer/view/base/web/customercustom.js

define([
    "jquery",
    'jquery/ui',
    'underscore',
    'uiRegistry',
    'Magento_Ui/js/form/element/select',
    'mage/url'
], function (_, uiRegistry, Select) {
    'use strict';

    return function (Select) {
        return Select.extend({
            initialize: function (value) {
                this._super();
                var customerCompany = uiRegistry.get('index = customer_company');
                var defaultCompany = uiRegistry.get('index = extension_attributes.company_attributes.company_id');
                var vessels = uiRegistry.get('index = customer_vessels');
                var customerUsername = uiRegistry.get('index = customer_username');
                var password = uiRegistry.get('index = password');
                var cnfpassword = uiRegistry.get('index = confirm_password');
                if (this.value() != 1) {
                    customerCompany.show();
                    defaultCompany.hide();
                    vessels.show();
                    customerUsername.show();
                    password.show();
                    cnfpassword.show();
                } else {
                    customerCompany.hide();
                    defaultCompany.show();
                    vessels.hide();
                    customerUsername.hide();
                    password.hide();
                    cnfpassword.hide();
                }
                return this;
            },
            onUpdate: function (value) {
                var customerCompany = uiRegistry.get('index = customer_company');
                var defaultCompany = uiRegistry.get('index = extension_attributes.company_attributes.company_id');
                var customerUsername = uiRegistry.get('index = customer_username');
                var password = uiRegistry.get('index = password');
                var cnfpassword = uiRegistry.get('index = confirm_password');
                if (value != 1) {
                    customerCompany.show();
                    defaultCompany.hide();
                    customerUsername.show();
                    password.show();
                    cnfpassword.show();
                } else {
                    customerCompany.hide();
                    defaultCompany.show();
                    customerUsername.hide();
                     password.hide();
                     cnfpassword.hide();
                }

                return this._super();
            },
        });
    }
});


texts: Does anyone know a competition module suitable for magento that allows you to ask a question?

texts:
I want to set up a competition but the modules I have looked at just give you the basic form filling fields (name, postcode, email), disclaimer..etc

However, I cant seem to find one that allows you to ask a question for customers to answer...then submit there details.

Does anyone know any good competition modules that is compatible with magento community?


texts: Unable to process binding Knockout.js magento 2

texts:
I have created a new theme in Magento 2 and rewritten minicart.phtml, but when adding product to cart, mini-cart does not show items and have error JS (knockout.js) like this:

  Uncaught TypeError: Unable to process binding "if: function (){return getCartParam('summary_count') }"
  Message: Unable to process binding "foreach: function (){return { data:getCartParam('items'),as:'item'} }"
  Message: Unable to process binding "foreach: function (){return $parent.getRegion($parent.getItemRenderer(item.product_type)) }"
  Message: Cannot read property 'configurable' of undefined

Please help me fix this bug, thanks for all.


texts:
I need 2 custom fields to add in the product description and those fields should be saved in the database and show on front end also. How can I add/edit the product form Magento admin panel?

So, generally, I need just guideline how to add the new custom field in Magento 2 for the entire product. Please guide me or show me some article if you have.

Thank you in advance :)


texts:
I'm building a module, where the user can fill his homepage with blocks from the backend.
All blocks are taken in an admin grid ui compontent, and there's 3 different kinds of blocks to choose from: 1. Images 2. Sliders 3. Text

Of course every block needs it's own editing form in the admin, which leads me to my problem. The editing form of a block is based on two tabs: info and content. At the info tab, you would choose the form of content you want, which then should update the form on the content tab to suit your needs (either an image upload, or multiple for a slider, or just some text with a button).

Below is an image of the form i'm referring too, the content dropdown should change the form on the content tab.

Any advice is appreciated!


texts: Magento 2 controller_action_predispatch observer not working as expected

texts:
I have created a Observer controller_action_predispatch which triggers in all page.

Some thing happens strange with this When I clear all cache and login for the first time the observer triggers in home page but when I refresh or relogin it not triggering.

But it works in all other page even after refresh or second login it triggers.

How can I fix this.

I have made a echo of Action Name which comes on first login after cache clear.

sudo php bin/magento cache:clean;
sudo php bin/magento cache:flush;

For Second refresh and second login its not working

events.xml

<?xml version="1.0"?>

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
    <event name="controller_action_predispatch">
        <observer name="restrict_website" instance="Test\Dev\Model\RestrictWebsite" />
    </event>
</config>

RestrictWebsite.php

<?php

namespace SahiSdi\Dev\Model;

use Magento\Customer\Model\Context;
use Magento\Framework\Event\Observer;
use Magento\Framework\Event\ObserverInterface;
use Magento\Store\Model\StoreManagerInterface;

class RestrictWebsite implements ObserverInterface
{
    protected $_storeManager;

    /**
     * RestrictWebsite constructor.
     */
    public function __construct(
        \Magento\Framework\Event\ManagerInterface $eventManager,
        \Magento\Framework\App\Response\Http $response,
        \Magento\Framework\UrlFactory $urlFactory,
        \Magento\Framework\App\Http\Context $context,
        \Magento\Framework\App\ActionFlag $actionFlag,
        \Magento\Store\Model\StoreManagerInterface $storeManager
    )
    {
        $this->_response = $response;
        $this->_urlFactory = $urlFactory;
        $this->_context = $context;
        $this->_actionFlag = $actionFlag;
        $this->_storeManager = $storeManager;
    }

    /**
     * @param Observer $observer
     * @return void
     */
    public function execute(Observer $observer)
    {
        $request = $observer->getEvent()->getRequest();
        $actionFullName = strtolower($request->getFullActionName());
        echo $actionFullName;
    }
}


texts: Use secure urls on front end breaks ajax loading into cart

texts:
I want the site to only have ssl in the account and checkout pages.

It seems that if in the admin I select "Use Secure URLs in Frontend" I get that.

The issue is that while product pages, and links to products simply use HTTP (which is fine), it changes all the AJAX adding links to HTTPS.  And that causes the ajax error in Chrome:

No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://site.com' is therefore not allowed access.

I don't need the site to be in HTTPS when on the product page, so why are the ajax urls being created as HTTPS when the links to the products aren't?

How can I fix it so even though "use secure urls in frontend" is selected, it doesn't do that for the links?

EDIT:
This was a couple projects ago, but I had ended up fixing it on the client side.  Most of the ajax calls were sent through a js function.  I took the url, and used some regex to change all the requests to "//site.com/..."  basically just removed the http/https entirely.  I think that took care of the majority of it.


texts: Remove Create an account link in Magento 2

texts: I want to remove create an account link. can you help me how can I do?


texts:
Is it possible to install varnish cache and use it in localhost. I'm using xampp web server to run magento in my localhost. I can able to get plenty of documents in online to configure varnish cache and use it in the server level. I would need to know that can we able to do it in localhost.

If yes, Shall I follow the steps which has given in devdocs.magento.com?
or, if there is any other document in the online please share the link here. Or, please share the link if there is same kind of post available.

If no, please tell me that why cant we do that in localhost. So that I can be aware of it.

Thanks.


texts: Save an EAV attribute in Magento2 without touching the model, repository

texts:
This can be done easily in magento1 with the saveAttribute() -method of Mage_Eav_Model_Entity_Abstract . For example, if you only need to save the is_active -flag for a category, you can do:

$data = new Varien_Object();
$data->setEntityId($categoryId);
$data->setIsActive(1);

Mage::getSingleton('catalog/category')
    ->getResource()
    ->saveAttribute($data, 'is_active');

How can i do it in magento2 without using CategoryRepositoryInterface, only update one attribute?


texts: Unable to synchronized app import configuration failed

texts:
hi guys i am facing this issue (The configuration file has changed. Run app:config:import or setup:upgrade command to synchronize configuration.)

i want to run upgrade command but whenever i do it says hash has not been saved ,please re run di compile command , i pursue the error in deep and conclude in point that my app/etc/config file are unable to synchronize or update .

That's how my error log looks like :

  {"0":"The configuration file has changed. Run app:config:import or
  setup:upgrade command to synchronize configuration.","1":"#0
  C:\xampp\htdocs\chase\vendor\magento\framework\Interception\Interceptor.php(121):
  Magento\Deploy\Model\Plugin\ConfigChangeDetector->beforeDispatch(Object(Magento\Framework\App\FrontController\Interceptor),
  Object(Magento\Framework\App\Request\Http))\n#1
  C:\xampp\htdocs\chase\vendor\magento\module-page-cache\Model\App\FrontController\BuiltinPlugin.php(73):
  Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))\n#2
  C:\xampp\htdocs\chase\vendor\magento\framework\Interception\Interceptor.php(135):
  Magento\PageCache\Model\App\FrontController\BuiltinPlugin->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor),
  Object(Closure), Object(Magento\Framework\App\Request\Http))\n#3
  C:\xampp\htdocs\chase\vendor\magento\framework\Interception\Interceptor.php(153):
  Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))\n#4
  C:\xampp\htdocs\chase\generated\code\Magento\Framework\App\FrontController\Interceptor.php(26):
  Magento\Framework\App\FrontController\Interceptor->___callPlugins('dispatch',
  Array, Array)\n#5
  C:\xampp\htdocs\chase\vendor\magento\framework\App\Http.php(135):
  Magento\Framework\App\FrontController\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))\n#6
  C:\xampp\htdocs\chase\vendor\magento\framework\App\Bootstrap.php(256):
  Magento\Framework\App\Http->launch()\n#7
  C:\xampp\htdocs\chase\index.php(41):
  Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http))\n#8
  {main}","url":"/chase/admin","script_name":"/chase/index.php"}

and this error appears on console :


texts: How to select image from categories collection?

texts:
I have entity

\Magento\Catalog\Model\ResourceModel\Category\Collection $categoryCollection

And I'm trying following

$categoryCollection->addAttributeToSelect('image');

but this doesn't work for me. Any ideas?


texts: How to Add Admin page new menu and a sub menu under existing menu

texts:
I tried to create a simple module and menu.The Menu is successfully created and show.
My question is how to add the same menu as a sub menu of existing menus(Ex : System).

here is my Approach to achieve this.

My config.mxl file - Path(app\code\local\Muja\Hidh\etc)

<?xml version="1.0"?>
<config>
<modules>
<Muja_Hidh>
  <version>0.1.0</version>
</Muja_Hidh>
</modules>
<frontend>
<routers>
<hidh>
    <use>standard</use>
      <args>
        <module>Muja_Hidh</module>
        <frontName>hidh</frontName>
      </args>
  </hidh>
</routers>
</frontend>
<global>
<helpers>
  <hidh>
    <class>Muja_Hidh_Helper</class>
  </hidh>
</helpers>
<blocks>
  <hidh>
    <class>Muja_Hidh_Block</class>
  </hidh>
</blocks>
<models>
  <hidh>
    <class>Muja_Hidh_Model</class>
    <resourceModel>hidh_mysql4</resourceModel>
  </hidh>
</models>
<resources>
<hidh_setup>
    <setup>
      <module>Muja_Hidh</module>
    </setup>
    <connection>
      <use>core_setup</use>
    </connection>
  </hidh_setup>
  <hidh_write>
    <connection>
      <use>core_write</use>
    </connection>
  </hidh_write>
  <hidh_read>
    <connection>
      <use>core_read</use>
    </connection>
  </hidh_read>
</resources>
</global>
<admin>
<routers>
  <hidh>
    <use>admin</use>
    <args>
      <module>Muja_Hidh</module>
      <frontName>admin_pets</frontName>
    </args>
  </hidh>
</routers>
</admin>
<adminhtml>
<menu>
  <hidh module="hidh">
    <title>My Pets</title>
    <sort_order>100</sort_order>
    <children>
      <hidhbackend module="hidh">
        <title>Pet List</title>
        <sort_order>0</sort_order>
        <action>admin_hidh/adminhtml_hidhbackend </action>
      </hidhbackend>
    </children>
  </hidh>
</menu>
<acl>
  <resources>
    <all>
      <title>Allow Everything</title>
    </all>
    <admin>
      <children>
        <hidh translate="title" module="hidh">
          <title>Hidh</title>
          <sort_order>1000</sort_order>
          <children>
      <hidhbackend translate="title">
        <title>Muja Kuja</title>
      </hidhbackend>
          </children>
        </hidh>
      </children>
    </admin>
</resources>
</acl>
</adminhtml>
</config>

My Layout.xml was Muja_Hidh.xml : Path(app\etc\modules)

<?xml version="1.0" encoding="utf-8"?>
<config>
<modules>
    <Muja_Hidh>
        <active>true</active>
        <codePool>local</codePool>
    </Muja_Hidh>
</modules>

I can view the menu after system main menu.My question is how can i add it into under System menu.


texts: Modify price adjustment of configurable products through API.

texts:
I'm trying to modify my configurable attributes options that I have set in Magento, but upon save I recieve a PDO error saying that it's a duplicate. I haven't been able to find a way to set these through catalog/product, catalog/product_type_configurable_attribute, or catalog/product_type_configurable but this was my best and most understandable attempt. Can anyone tell me the best way to change this data? Thank you!

// Get a collection of all the configurables
$productConfig = Mage::getResourceModel('catalog/product_collection')->addAttributeToFilter('type_id', 'configurable');
foreach($productConfig as $product) {
    // Get an array of all of the configurable products and their options
    $product_attribute_options = $product->getTypeInstance(true)->getConfigurableOptions($product);
    $product_attribute_options = array_shift($product_attribute_options);
    foreach($product_attribute_options as & $child) {
        // Adjust arrays price in here
    }
    // Get a new fresh product just in case the collection product doesn't have everything.
    $config_product = Mage::getModel('catalog/product');
    $config_product->load($product->getId());
    // Set and save
    $config_product->setCanSaveConfigurableAttributes(true);
    $config_product->setConfigurableAttributesData($product_attribute_options);
    $config_product->save();
}

And here is the PDO error:

PHP Fatal error:  Uncaught exception 'PDOException' with message 'SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '2864-0' for key 'UNQ_CATALOG_PRODUCT_SUPER_ATTRIBUTE_PRODUCT_ID_ATTRIBUTE_ID'' in /lib/Zend/Db/Statement/Pdo.php:228
Stack trace:
#1 /lib/Varien/Db/Statement/Pdo/Mysql.php(110): Zend_Db_Statement_Pdo->_execute(Array)
#2 /lib/Zend/Db/Statement.php(300): Varien_Db_Statement_Pdo_Mysql->_execute(Array)
#3 /lib/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Statement->execute(Array)
#4 /lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('INSERT INTO `ca...', Array)
#5 /lib/Varien/Db/Adapter/Pdo/Mysql.php(419): Zend_Db_Adapter_Pd in /lib/Zend/Db/Statement/Pdo.php on line 234


texts: Unique Web Page Url after every transaction

texts:
I am building a book business website.

When the customer wants to download the book, first he has to pay the bill and then after the successful payment, the page redirects to the download page where the customer can download that book.

Here my question is how to create a unique web page address(for example : if the 1st customer pays the bill then the download page appears say (ex:www.downloadthebook.com/1) and if the 2nd customer pays the bill then the download page has to appear like this, say (www.downloadthebook.com/2).

And also if the customer copy the url of that download page and loads in the new tab. the url should not work. The download page only works if the payment is succesful.


texts: How to define data to show imageUploader UI element?

texts:
Today I trying to create new attribute in product_form.xml on M2 admin.
This is code I add my field:

<field name="xx" formElement="imageUploader">
    <settings>
        <label translate="true">Image</label>
        <componentType>imageUploader</componentType>
    </settings>
    <formElements>
        <imageUploader>
            <settings>
                <allowedExtensions>jpg jpeg gif png</allowedExtensions>
                <maxFileSize>2097152</maxFileSize>
                <uploaderConfig>
                    <param xsi:type="string" name="url">my/xx/save</param>
                </uploaderConfig>
            </settings>
        </imageUploader>
    </formElements>
</field>

Then I used custom code to save image and it's worked, with attribute value is "a/1/amge.jpg".
Now I don't know I can show image in imageUploader UI element. Somebody can let me know how I can this? Thanks.

The message I got is:

  TypeError: value.map is not a function in file-uploader.js


texts: Shopping Cart Rules based on if a row total ends in specific amount

texts:
I would like to implement a shopping cart rule in magento that allows me to check If a product has a price that ends in a specific number. For example, if a row total is something of the form XX.50, then I want to apply free shipping to the entire cart. So, the rule would be something like:

if row total *contains*: 0.50

Then apply free shipping to the cart. it doesn't seem like this is working for me, even after estimating shipping rates and clicking "get a quote". I do not want the customer to use a coupon code, I want this discount to be applied automatically when proceeding to checkout. Is this possible?


texts: I'm doing a custom JS code but i wanna know if user are logged in with Jquery.


texts: How to proceed order on payment failure?

texts:
We are using braintree.I want to know that how i proceed order on payment failure? we dont want to loose customer on payment failure thats why we want to store that order and we will contact customer later for their payment.
is it possible ?


texts: Fatal error: Call to a member function getCode() on a non-object in Customer/Model/Session.php

texts:
I have done a multi-website setup in Magento. The second website is configured in a sub folder and is accessible using the folder name as in the URL path.

Site 1 - http://192.165.3.193/
Site 2 - http://192.165.3.193/fvm/

I could see at times the following error popping up randomly in any page, this error disappears when I refresh the same page again. It is hard to reproduce this error as it just appears and doesn't come again for quite some time.

Fatal error: Call to a member function getCode() on a non-object in app/code/core/Mage/Customer/Model/Session.php

To add further

Mage::app()->getStore()->getWebsite()->getCode()

is the code which gives the error


texts:
In wishlist.php I am trying to add remove from wishlist.

I have created a block and pasted the code of remove from wishlist..
It seems some issue.

Error

Fatal error: Call to a member function getWishlistItemId() on null in PG2\vendor\magento\module-wishlist\Helper\Data.php on line 283

My code

 // Get LoggedIn user wishlist.
$wishlistProductsIds = $block->getCurrentWishListProductIDs();

 // Get product id.
 $objectManager = \Magento\Framework\App\ObjectManager::getInstance();
  $product = $objectManager->get('Magento\Framework\Registry')->registry('current_product');//get current product
 $productID = $product->getId();
?>

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

    <?php if (in_array($productID, $wishlistProductsIds)): ?>

        <?php
        $blockObjx = $block->getLayout()->createBlock('Magento\Wishlist\Block\AbstractBlock');

        // echo $productID . gettype($productID);

        // echo $blockObjx->getRemoveParams((object)$productID);

        // // echo $blockObjx->getItemRemoveParams($blockObjx->getItem());

        // exit;
        ?>

    <a href="#" class="action towishlist" data-role="remove" data-post-remove='<?php echo $blockObjx->getItemRemoveParams($blockObjx->getItem()); ?>' title="<?php /* @escapeNotVerified */ echo __('Remove Item') ?>" class="btn-remove action delete">
        <?php echo __('Remove from Wish List');?>

    <?php else: ?>

        <a href="#"
               class="action towishlist"
               data-post='<?php echo $block->getWishlistParams(); ?>'
               data-action="add-to-wishlist"><?php echo __('Add to Wish List') ?>

    <?php endif; ?>

<?php endif; ?>


texts:
I just want to add some fields in invoice pdf template. I found the file to edit, app/code/core/Mage/Sales/Model/Order/Pdf/Abstract.php.

I need to add my client address in the template. To do that I edited the above file and I'm getting error.

Please find the image here and help me to do the changes.

Please help me...


texts: How to after clicking color or size, the price will not change in magento 2

texts: I changed the product price by javascript. But after I click on color or Size, the product price displays the original product price. I don't wanna be like that, please someone please help me with this problem.


texts: Magento 2 shipping method is not overriding

texts:
I am trying to override UPS shipping method. But it is not override.

 <?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<preference for="Magento\Ups\Model\Carrier" type="Vendor\Module\Model\Carrier" />
</config>

Carrier.php

<?php
namespace Vendor\Module\Model;

class Carrier extends \Magento\Ups\Model\Carrier
{

    public function collectRates(RateRequest $request)
    {
        $this->setRequest($request);
        if (!$this->canCollectRates()) {
            return $this->getErrorMessage();
        }

        $this->setRequest($request);
        $this->_result = $this->_getQuotes();
        $this->_updateFreeMethodQuote($request);
        //$result = $this->enableShipping();
        //return $result;
        // custom logic code
       return $this->getResult();
    }


texts:
I would like to get product price with options price using a custom module that calculates product price by formula, i like to use the function without adding the product to the cart.

The function get a quote item paramter

public function getProductFinalPrice($item, $forReindex = false, $storeId = null)

So i thought about add a quote item with a info_buyRequest buy request
I tried this

    $product = $this->_objectManager->create('Magento\Catalog\Model\Product')->load(5862);
    $customOptions = $this->_objectManager->get('Magento\Catalog\Model\Product\Option')->getProductOptionCollection($product);
    $item = $this->_objectManager->create('Magento\Quote\Model\Quote\Item');

    $options = $this->_objectManager->get('Magento\Quote\Model\ResourceModel\Quote\Item\Collection');
    $quote = $this->cart->getQuote();
    $quote->addProduct($product);
    $quote->save();
    $options->setQuote($quote);
    //$options->addItemFilter($item->getId());
    $item->setQuote($quote)->setProduct($product)->setQty($qty);
    foreach ($options as $option) {
        $item->addOption($option);
    }
    $infoBuyRequest = [
            "info_buyRequest" => [
                "uenc" => "aHR0cHM6Ly93d3cud2V0YWcuY2EvZW5fY2EvbmFtZS10YWdzL25hbWUtdGFncy1pbnNwaXJhdGlvbi9jdXN0b20tbmFtZS10YWctb3JkZXIv",
                "product" => 5862,
                "qty" => $qty
            ]
        ];

    $option = $this->_objectManager->create(
        \Magento\Quote\Model\Quote\Item\Option::class,
        ['data' => $infoBuyRequest]
    );

    $item->addOption($option);
    $item->setProductOptions($infoBuyRequest);
    var_dump($this->_getBuyRequest($item));

  var_dump($this->_getBuyRequest($item)); return
  object(Magento\Framework\DataObject)#3647 (1) {
  ["_data":protected]=>
  array(2) {
    ["original_qty"]=>
     NULL
    ["qty"]=>
     int(100)
  }
 }

I like to get something with info_buyrequest

            [
            "info_buyRequest" => [
                "uenc" => "aHR0cHM6Ly93d3cud2V0YWcuY2EvZW5fY2EvbmFtZS10YWdzL25hbWUtdGFncy1pbnNwaXJhdGlvbi9jdXN0b20tbmFtZS10YWctb3JkZXIv",
                "product" => 5862,
                "qty" => $qty
            ]
        ]

This is the function _getBuyRequest

public function _getBuyRequest($item) {
    $option = $item->getOptionByCode('info_buyRequest');
    if ($option) {
        $value = json_decode($option->getValue(), true); //in M2.2 json used for the buy request
        if (is_null($value))
            $value = unserialize($option->getValue()); //in M<2.2 the buy request is serialized
    } else
        $value = [];

    $buyRequest = new \Magento\Framework\DataObject($value);

    // Overwrite standard buy request qty, because item qty could have changed since adding to quote
    $buyRequest->setOriginalQty($buyRequest->getQty())
            ->setQty($item->getQty() * 1);

    return $buyRequest;
}

So how to add info_buyRequest? i would like to load options in the quote item.


texts: Showing Invalid Block Type after Disabling TemplateMonster_FilmSlider

texts:
I am working on a project Magento 2.2 and having TemplateMonster theme.

I want to disable FilmSlider (which is available in theme) and wanted to show some video.

I disabled that specific TemplateMonster_FilmSlider by using command and after compile it shows error of invalid block type etc.

Can someone guide me that which step I didn't followed or need to do.

Thanks


texts: Images not showing on the Admin (back-end) after 1.9.3.7 upgrade

texts:
I upgraded my Magento CE to 1.9.3.7
When I try to upload images to the product manager no image shows up.

On the front-end, all previously added products show but not in the admin when I go to previously added products.

Thanks in Advance.


texts: Issue regarding css/js file path in magento 2.3

texts:
When i am using this command :

  bin/magento setup:static-content:deploy

the adminhtml, frontend folders are generating in pub/static. But in website frontend css,js file paths are

  pub/static/version1552047239/frontend

Any suggestion?


texts:
I setup store theme with demo.
It setup 5 stores with different homepage.

now my URI is including store name, which I dont need
my store URI should be 'xyz.com/'

How I can remove this /english1

Store

Edit
Also How can I remove all these Languages


texts: How can I change the search page column layout in Magento 2.1 to one column?

texts:
I've been searching for a while and I am only finding answers DevDocs that tell me that in order to modify the column layout for the search results page is to change the xml found in app/design/frontend/<Vendor>/<theme>/Magento_CatalogSearch/layout/
My problem is that my folder structure for my theme does not have a layout folder.  Seems like  remember seeing the layout setting in the backend config somewhere, but cannot seem to find it there either.

Any search that I perform on my website is resulting in a 4-column layout and I only want a 1-column layout or maybe 2-column with left sidebar.  ...all the same for advanced search.

I am using Magento 2.1.4.


texts: Export Orders from Magento MySQL DB without Magento

texts:
I have an old Magento database file, but the files associated with it are gone.

The database file is for Magento 7.02

I need to export the orders with the line items and a description of the item from the database.

Does anyone have a way that I can get this data from the database extract, without having the original files for Magento itself?

Fields:
Order -
Order ID, Customer Name, Email, Order Date, Amount

OrderContents -
OrderId, LineItem, Name, Description, Cost

Anyone have a good idea to extract the data?

Cheers


texts: magento 2.3.4 installation issue in localhost

texts:
Actually I have tried to install magento 2.3.4 using bitnami lampstack-7.2. I got an installation error at 3% itself like this

[ERROR] Magento\Framework\Setup\Exception: Unable to apply patch Magento\Catalog\Setup\Patch\Schema\EnableSegmentation for module Magento_Catalog. Original exception message: Invalid column data type ""

Couldnot downgrade MYSQL server version in lampstack for the version of 5.7. Can anyone suggest me the solution?

Thanks in advance


texts: I am converting my old website into magento. How i add my customer into Magento via program


texts:
Has anyone found an example of the product attribute with input type text and a source model?
With a select input type - it is easy, but I cant find anything with text type.


texts: How to add a customer custom-attribute in the customer address edit form?

texts:
I added a customer custom attribute as customer_address type and it runs correctly in the admin and in onepagecheckout as well as in shipping & billing address.

I created:
my_namespace/my_module/etc/module.xml and registration.php  composer.json files in the module base directory.

my_namespace/my_module/Setup/InstallData.php

namespace Namespace\Module\Setup;

use Magento\Framework\Module\Setup\Migration;
use Magento\Framework\Setup\InstallDataInterface;
use Magento\Framework\Setup\ModuleContextInterface;
use Magento\Framework\Setup\ModuleDataSetupInterface;

/**
 * @codeCoverageIgnore
 */
class InstallData implements InstallDataInterface
{
    /**
     * Customer setup factory
     *
     * @var CustomerSetupFactory
     */
    private $customerSetupFactory;

    /**
     * Init
     *
     * @param CustomerSetupFactory $customerSetupFactory
     */
    public function __construct(\Magento\Customer\Setup\CustomerSetupFactory $customerSetupFactory)
    {
        $this->customerSetupFactory = $customerSetupFactory;
    }

    /**
     * {@inheritdoc}
     * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
     */
    public function install(ModuleDataSetupInterface $setup, ModuleContextInterface $context)
    {
        /** @var CustomerSetup $customerSetup */
        $customerSetup = $this->customerSetupFactory->create(['setup' => $setup]);

        $setup->startSetup();

        // insert attribute
        $customerSetup->addAttribute('customer_address', 'attr_code',  [
            'label' => 'My attribute',
            'type' => 'varchar',
            'input' => 'text',
            'position' => 45,
            'visible' => true,
            'required' => false,
            'system' => 0
        ]);

        $MyAttribute = $customerSetup->getEavConfig()->getAttribute('customer_address', 'attr_code');
        $MyAttribute->setData(
            'used_in_forms',
            ['adminhtml_customer_address', 'customer_address_edit', 'customer_register_address']
        );
        $MyAttribute->save();

        $setup->endSetup();
    }
}

Now I need to add attribute field in the customer add and edit address form that are related to the file magento_customer/view/frontend/templates/address/edit.phtml

I added the field but I'm not able to get and save the value of that attribute.


texts:
Since upgrading our Magento 1.8.0.0 to 1.9.2.1 I have noticed that we're getting hundreds of errors in the log file:

2015-11-11T16:20:01+00:00 ERR (3): Warning: strpos(): Empty needle  in home/directory/public_html/lib/Zend/Controller/Request/Http.php on line 508

Having had a look at the file, I can see:

if (0 === strpos($requestUri, $baseUrl)) {
  // full $baseUrl matches
  $this->_baseUrl = $baseUrl;
  return $this;
}

if (0 === strpos($requestUri, dirname($baseUrl))) {
  // directory portion of $baseUrl matches
  $this->_baseUrl = rtrim(dirname($baseUrl), '/');
  return $this;
}

The last thing I want to do is edit this core file to make a cheap fix. Does anybody know what could be the cause of this problem? My base URL is obviously set do I don't understand what could be causing the issue!


texts: How to enable dependency profiling graphs | Magento 2.3

texts:
According to this article we can enable dependency profiling graph but did not find any command for the same.

As Mentioned on the page - To enable dependency graphs, use the "variable option". See attached screenshot.

What is the meaning of "variable option" here?

Thanks!


texts: Magento 2: How to get product old and new data on product save button in admin backend?

texts:
I am working on Admin Actions Log Extension. For the reference, I am using the link below

https://amasty.com/admin-actions-log-for-magento-2.html

I want to get old and new data of products while we save product data in admin.

I'm using catalog_product_save_after Observer for the product.

  app/code/Vendor/Module/etc/adminhtml/di.xml

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
      <event name="catalog_product_save_after">
         <observer name="product_save_after" instance="Vendor\Module\Observer\ProductSaveAfter" />
      </event>
</config>

  app/code/Vendor/Module/Observer/ProductSaveAfter.php

<?php

use Magento\Framework\App\RequestInterface;

class ProductSaveAfter implements ObserverInterface
{
    public function __construct(
        \Magento\Catalog\Model\ProductRepository $productRepository
    ) {
        $this->productRepository = $productRepository;
    }

    public function execute(\Magento\Framework\Event\Observer $observer)
    {
        $product = $observer->getProduct();

        // FIRST METHOD
        $compareArray = ['price','special_price','cost','weight','special_from_date','special_to_date','status','visibility','is_salable'];

        // $compareArray = [];
        // $id = $product->getId();
        // $productRepo = $this->productRepository->getById($id);
        // $attributes = $productRepo->getAttributes();
        // foreach ($attributes as $attr) {
        //     array_push($compareArray, $attr->getName());
        // }
        foreach ($compareArray as $value) {
            $old = $product->getOrigData($value);
            $new = $product->getData($value);
            if ($old !== $new) {
                // $event .= "CHANGE:- $value $old=>$new";
                $logs = [
                    'old_value' => $old,
                    'new_value' => $new,
                ];
                // $logs is saved to my custom table
            }
        }
    }

}

I'm getting only $compareArray attribute change. I want all getAttributes() attribute changes.

  When I use the first method to save the $logs it's working properly but while using the second method and trying to get the difference of $old and $new data somehow it doesn't save to my custom table.

 // SECOND METHOD
 $compareArray = [];
 $id = $product->getId();
 $productRepo = $this->productRepository->getById($id);
 $attributes = $productRepo->getAttributes();
 foreach ($attributes as $attr) {
      array_push($compareArray, $attr->getName());
 }
 foreach ($compareArray as $value) {
        $old = $product->getOrigData($value);
        $new = $product->getData($value);
        if ($old !== $new) {
            // $event .= "CHANGE:- $value $old=>$new";
            $logs = [
                'old_value' => $old,
                'new_value' => $new,
            ];
        }
    }

If anyone has a solution please let me know.


texts: How to append or change metadata from controller?

texts: How to change meta data(robots meta tag) from controller in Magento ? Is there a way to access head block from controller and append new value in it ?


texts: How to fix the «Undefined index: base_grand_total» error in the sales order grid in magento 2.3.5-p2

texts:
Notice: Undefined index: base_grand_total in /var/www/html/vendor/magento/module-sales/Ui/Component/Listing/Column/Price.php on line 68

<?php
 /**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
 declare(strict_types=1);

 namespace Magento\Sales\Ui\Component\Listing\Column;

 use Magento\Framework\View\Element\UiComponent\ContextInterface;
 use Magento\Framework\View\Element\UiComponentFactory;
 use Magento\Ui\Component\Listing\Columns\Column;
 use Magento\Framework\Pricing\PriceCurrencyInterface;
 use Magento\Directory\Model\Currency;

 /**
 * Class Price
 */
 class Price extends Column
 {
/**
 * @var PriceCurrencyInterface
 */
protected $priceFormatter;

/**
 * @var Currency
 */
private $currency;

/**
 * Constructor
 *
 * @param ContextInterface $context
 * @param UiComponentFactory $uiComponentFactory
 * @param PriceCurrencyInterface $priceFormatter
 * @param array $components
 * @param array $data
 * @param Currency $currency
 */
public function __construct(
    ContextInterface $context,
    UiComponentFactory $uiComponentFactory,
    PriceCurrencyInterface $priceFormatter,
    array $components = [],
    array $data = [],
    Currency $currency = null
) {
    $this->priceFormatter = $priceFormatter;
    $this->currency = $currency ?: \Magento\Framework\App\ObjectManager::getInstance()
        ->create(Currency::class);
    parent::__construct($context, $uiComponentFactory, $components, $data);
}

/**
 * Prepare Data Source
 *
 * @param array $dataSource
 * @return array
 */
public function prepareDataSource(array $dataSource)
{
    if (isset($dataSource['data']['items'])) {
        foreach ($dataSource['data']['items'] as & $item) {
            $currencyCode = isset($item['base_currency_code']) ? $item['base_currency_code'] : null;
            $basePurchaseCurrency = $this->currency->load($currencyCode);
            $item[$this->getData('name')] = $basePurchaseCurrency
                ->format($item[$this->getData('name')], [], false);
        }
    }

    return $dataSource;
 }
 }

Line No:68 ->format($item[$this->getData('name')], [], false);


texts: Magento 2 API: Filter orders by extension attribute

texts:
I have an extension with an attribute assigned to order items called warehouse.
I can see this attribute under the property "extension_attributes".
I need to filter orders based on this attribute.  I can't find any documentation on how to do this.

Example API response snippet:

[items] => Array(
    [0] => Array(
        [extension_attributes] => Array(
            [warehouse] => MyWarehouse
        )
    )
)

The following filter generates an internal error:

searchCriteria[filter_groups][2][filters][0][field]=warehouse,searchCriteria[filter_groups][2][filters][0][value]=mywarehouse,searchCriteria[filter_groups][2][filters][0][condition_type]=eq

Any suggestions on how I can filter orders using the warehouse attribute via the API?

- Additional point on  this question:

In this case, if we will follow Fooman blog.Then can we  filter the collection by  the extension* attribute?

  Collection filter by this extension Attribute Should be run Fast?
  If we use custom db table for save this extension attribute table    then how can filter?
  Should  it work magento frontend and backend also.
  where in need do modification and which class need to add  or any reference blog ?

Wait for good  and describe/brief answer on this points?


texts: Magento 2: add html in custom Payment method

texts:
I created a new payment method in Magento 2 using the instructions here

The payment method is created successfully. However, I want to add instructions under the payment method in the red box in attached image.

I checked this link, but It didn't help.

I am using magento 2.1.5 EE

Any help is appreciated.


texts: Script is not calling on Homepage Banner slider

texts:
https://www.depoto.com/ is my website.

I have used the weltpixel banner slider extension.
When i refresh the website, The banner slider is not working properly.


texts: Magento 2 : How to Get Product ID After Event

texts:
When I click on 'proceed-to-checkout', it start controller_action_predispatch_checkout_index_index event.
I tried with Zend_Debug::dump($observer->getProduct()->getId());
 but it doesn't work.

Do you have some tips?

Thanks


texts: SUPEE-8788 V1 and SUPEE-8788 V2 - NOT COMPATIBLE with 1.7.0.2 Magento

texts:
So I have SUPEE 1533 installed on 1.7.0.2, I DO NOT have SUPEE-3941 they are for 1.8-1.9, my version is 1.7.0.2

When I originally installed  SUPEE 8788 (VERSION 1 ) I had only ONE error, and thats because of SUPEE 1533:

**

patching file app/code/core/Mage/Adminhtml/controllers/DashboardController.php
Hunk #1 FAILED at 91.
1 out of 1 hunk FAILED -- saving rejects to file app/code/core/Mage/Adminhtml/controllers/DashboardController.php.rej

**

Now, magento released SUPEE 8788 (VERSION 2)
I get these errors.

patching file app/code/core/Mage/Adminhtml/Block/Dashboard/Graph.php
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file app/code/core/Mage/Adminhtml/Block/Dashboard/Graph.php.rej

patching file app/code/core/Mage/Adminhtml/controllers/DashboardController.php
Hunk #1 FAILED at 91.
1 out of 1 hunk FAILED -- saving rejects to file app/code/core/Mage/Adminhtml/controllers/DashboardController.php.rej

patching file downloader/lib/Mage/HTTP/Client/Curl.php
Hunk #1 FAILED at 372.
1 out of 1 hunk FAILED -- saving rejects to file downloader/lib/Mage/HTTP/Client/Curl.php.rej

patching file skin/adminhtml/default/default/media/flex.swf
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file skin/adminhtml/default/default/media/flex.swf.rej
patching file skin/adminhtml/default/default/media/uploader.swf
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file skin/adminhtml/default/default/media/uploader.swf.rej
patching file skin/adminhtml/default/default/media/uploaderSingle.swf
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file skin/adminhtml/default/default/media/uploaderSingle.swf.rej

I can try reinstalling Version 1 and I will get same error hunk 91.
 If I uninstall SUPEE 1533 I can install (8788 VERSION 1) the patch, but I will be missing 1533 patch.
But installing SUPEE 8788  (version 2) and keeping 1533 patch cannot happen. I can't even install Version 2 when I reverse SUPEE 1533. New Curl.php error (hunk 372) showing, Which was not present on Version 1. Looks like it can be fixed with SUPEE 3941, but its not available for 1.7.0.2

I feel Version 2 is not much better than Version 1, even more errors. Please share your through, what shall I/We do next.


texts:
Hi all I'm a newbie to Magento.

My question is how can I add left category sorting in the product list?

Just like this:

Thanks.


texts: How would I sort this this foreach loop?

texts:
This pulls a list of all our category thumbnails and the name. I want to sort it alphabetically.-

<?php
$category = Mage::getSingleton('catalog/layer')->getCurrentCategory();
$categories = $category->getCollection()
    ->addAttributeToSelect(array('name', 'thumbnail'))
    ->addAttributeToFilter('is_active', 1)
    ->addIdFilter($category->getChildren())
?>

<?php foreach ($categories as $category): ?>

        <a href="<?php echo $category->getUrl() ?>"><img src="<?php echo Mage::getBaseUrl('media') . 'catalog' . DS . 'category' . DS . $category->getThumbnail() ?>" alt="<?php echo $this->htmlEscape($category->getName()) ?>" />
            <?php echo $category->getName() ?>

<?php endforeach; ?>

I am trying to figure out how to sort it alphabetically.


texts: Magento2: move greet.welcome element at start in to.links section in header

texts:
In my Magento site, I want to move Welcome element which shows after login to the start of the top.links.
Currently it is showing in the end after login.
Without login:

With login:

Without login screen is fine and I want it in the same manner, but after login, it shows Welcome text at the end, whereas I want it in the starting.
I tried to add float: left to .welcome <li> but then it leave a space in the end when user is not loggedIn, as below:

Default Magento Blank looks like this:

Please help!


texts:
can somebody explain me how to change the product title visibility on top of the page (under breadcrumb) as a single line and not in the block above the add-to cart button?
i cannot find the source code where i can move that block!?


texts: Is there a list of all magento 2 functions like getName(), getPrice() etc

texts:
I'm trying to fetch information of certain products, just not sure what function is available.
I was wondering if there is a list of all magento 2 functions, like getName(), getPrice() etc.., then I can choose which I can use easily. thanks


texts:
I would like to send an automatic email to the client when he sends a contact form, I am tempted like this:

    $mailTemplate->addBcc($post['email']);
    $mailTemplate->setDesignConfig(array('area' => 'frontend'))
        ->setReplyTo($post['email'])
        ->sendTransactional(
            Mage::getStoreConfig(self::XML_PATH_EMAIL_TEMPLATE),
            Mage::getStoreConfig(self::XML_PATH_EMAIL_SENDER),
            array_keys($recipients),
            array_values($recipients),
            array('data' => $postObject)
        );


texts:
I am new to Magento, and today I ordered a web hosting plan; but I discovered that their servers does not support Magento CE version.

It took me 2 hours to search for a good web hosting but I couldn't find any one that I am sure is good.

Edit: I didn't read the rules (sorry for that), so my question was containing two parts. I will explain the first part, as the second part is not allowed.

I am planing to create a start-up store, and from what I saw the major companies provides three ways of hosting the website: Server (VPS or dedicated), shared hosting and cloud hosting. So for a start up its hard to cover the cost of the server, so what is better shared hosting or cloud? in terms of maintainability, usability and reliability.

My plan was to start with shared hosting, then move to the cloud service either AWS or any Magento partner company. So is the cloud service better than dedicated server, and can the cloud service replace the dedicated server in the future?


texts: Auto change comma for dot, Spanish language in Magento2

texts:
I have a problem with catalog price.

If my product price is $1,989.89

I want Magento to auto change , to . and display price this way.

My XML for es_MX is:

  Magento/zendframework1/library/zend/Locale/data/es_MX.xml

<numbers>
    <symbols numberSystem="latn">
        <decimal draft="contributed">.</decimal>
        <group draft="contributed">,</group>
        <percentSign draft="contributed">%</percentSign>
        <plusSign draft="contributed">+</plusSign>
        <minusSign draft="contributed">-</minusSign>
        <exponential draft="contributed">E</exponential>
        <superscriptingExponent draft="contributed">×</superscriptingExponent>
        <perMille draft="contributed">‰</perMille>
        <infinity draft="contributed">∞</infinity>
        <nan draft="contributed">NaN</nan>
    </symbols>
    <decimalFormats numberSystem="latn">
        <decimalFormatLength>
            <decimalFormat>
                <pattern draft="contributed">#,##0.###</pattern>
            </decimalFormat>
        </decimalFormatLength>

Help me to fix !!!


texts: How to create API User/Key for Zapier Integration

texts:
We are trying to setup an integration from Magento to Zapier. On the Zapier end, they are asking for a API User/Key, but do not detail how to actually generate this user or key.
Does anybody know the process to create this API user/key?


texts: Are there any mandatory attributes for Products attribute sets?

texts: When building a new Attribute set for Products in the backend. Are there any mandatory attributes that should be included in the custom attribute set?


texts: Performance issues post Magento 2.3.3 upgrade

texts:
A week before we upgraded Magento 2.2.8 to 2.3.3 edition. Post that we are facing huge performance issues. Existing version was run with 4 frontend nodes but post upgrade it takes 10 nodes to run. If we try minimize the nodes then site leads to 504 error.
Do we have any specific reason for that? Following screenshots took from NewRelic reports.


texts: Why file_get_contents(php://input) breaks down collectRates method in shipping method

texts:
I try to recieve additional data to my custom shipping method.

I get some info from checkout page and put it in my custom object quote.pickPoint.

Then, I add it to shipping-save-processor:

payload = {
    addressInformation: {
        shipping_address: quote.shippingAddress(),
        billing_address: quote.billingAddress(),
        shipping_method_code: quote.shippingMethod().method_code,
        shipping_carrier_code: quote.shippingMethod().carrier_code
    },
    pickPoint: quote.pickPoint()
};

In my custom shipping method I try to get additional info:

$rawReq = json_decode(file_get_contents('php://input'), true);

And then $rawReq contains correct array with my data

Array
(
    [addressInformation] => Array
        (
            [shipping_address] => Array
                (
                    [countryId] => RU
                    [region] => Russian Federation
                    [street] => Array
                        (
                        )

                    [telephone] => +79161234567
                    [postcode] =>
                    [city] => Moscow
                    [firstname] => Pavel
                    [lastname] => Shi
                )

            [billing_address] => Array
                (
                    [countryId] => RU
                    [region] => Russian Federation
                    [street] => Array
                        (
                        )

                    [telephone] => +79161234567
                    [postcode] =>
                    [city] => Moscow
                    [firstname] => Pavel
                    [lastname] => Shi
                    [saveInAddressBook] =>
                )

            [shipping_method_code] => svyaznoy
            [shipping_carrier_code] => svyaznoy
        )

    [pickPoint] => Array
        (
            [city] => Москва
            [region] => Москва г
            [address] => 105120 Золоторожский Вал ул 42
            [deliveryCost1] => 149
            [deliveryCost2] => 158
            [deliveryCost3] => 167
            [deliveryCost4] => 176
            [deliveryCost5] => 176
            [deliveryCost6] => 176
            [deliveryCost7] => 176
            [deliveryCost8] => 176
            [hash] => 691C7765E7B8EB872246B667E3617141
            [hash8] => 12A8F948EFCEEE375836B37705674CC2
            [hash16] => 1C307A3D17989B48487DF19563111DE1
            [name] => Площадь Ильича
            [returnCost1] => 238.4
            [returnCost2] => 238.4
            [returnCost3] => 238.4
            [returnCost4] => 238.4
            [returnCost5] => 238.4
            [returnCost6] => 238.4
            [returnCost7] => 238.4
            [returnCost8] => 238.4
            [shopId] => MD34
            [deliveryOperatorId] => 1
            [deliveryOperator] => Евросеть
        )

)

BUT!

When I try to set price and cost, its not working.

This code working:

$amount = 0;
$amount = 1;

$method->setPrice($amount);
$method->setCost($amount);

But this code not working:

$amount = 0;
if (isset $rawReq['pickPoint']) {
    $amount = 123;
}
$method->setPrice($amount);
$method->setCost($amount);

Shipping method always return 0 price.

Why?

Thanks beforehand!


texts: How to add schema for products in product page ? Magento 1

texts:
I am trying to create the product markup like below
   <script type="application/ld+json">
    {
      "@type": "Product",
      "@context": "http://schema.org/",
      "name": "My Product Name",
      "description": "My Description",
      "brand": { "@type": "Thing", "name": "My Brand Name" },
      "image": "https://yoursite.com/path-to-image.jpg",
      "sku": "product-sku-12345"
    }
    </script>

I am not sure how to integrate it in magento 1 product pages.
Any hint how to add this ?
Thanks


texts: Adding CSS and JS to  using a module layout.xml for block

texts:
Synopsis

I would like to add a block to my grouped product view and my simple product view.  This block will have some nice tooltips for hover states, i'm using a small library with one jquery plugin and one css stylesheet.

I wish to include these two resources in the  of magento on only these pages.

Notes

I am running a custom theme;
Caching is disabled; and
My files are inside the /js directory;

Thus far…

Nevertheless I knew one way was to use layout.xml in my module, at first this didn't work so I thought maybe I needed additional configuration inside my config.xml to tell Magento about my layout requirements - this too didn't work.

By didn't work what I mean is, my assets weren't loaded.

Please find the attached source below.

app/code/local/Vendor/Rating/etc/layout.xml

<?xml version="1.0"?>
<layout>
    <default>
        <reference name="head">
            <action method="addJs">
                <script>vendor/qtip/jquery.qtip.min.js</script>
            </action>
            <action method="addCss">
                <stylesheet>vendor/qtip/jquery.qtip.min.css</stylesheet>
            </action>
        </reference>
    </default>
</layout>

app/code/local/Vendor/Rating/etc/config.xml

<?xml version="1.0"?>
<config>

    ...

    <frontend>
        <layout>
            <updates>
                <vendor_rating>
                    <file>layout.xml</file>
                </vendor_rating>
            </updates>
        </layout>
    </frontend>

    ...

</config>


texts:
Is it possible to change the tax value based on the tax class of a product when it is added to the cart? To put this clear, I do not want to change the class itself or the percentage it's calculated against, but simply the value itself.

We have products on the site that are second hand items, and tax is worked out on the profit margin instead of the price alone. Therefore the tax is based on the price the customer pays minus the cost price. For example, If we have an item that's £1000, and the cost is £700, then the tax is calculated against £1000 - £700 = £300, and as the tax in the UK is 20%, this will come to £50. Therefore a generic tax class would not solve this issue as the tax percentage would be different each time. I could use Fixed Product Taxes instead, however it doesn't take into account automated Special Prices, and the admin users would have to enter all of these values against each product (there's 3000+ products, so this will be infeasible).

I have tried to create a plugin that listens to Magento\Checkout\Model\Cart, created an event that observes sales_quote_collect_totals_before, and abstracted Magento\Tax\Model\Sales\Total\Quote\Tax to eventually override updateItemTaxInfo - the final approach did save the required values into the quote_item table in the database, but upon traversing through the checkout, the cart seems to recalculate the tax again, and does not use the value saved in the table.

Any help would be highly grateful, thank you!


texts: How to make checkbox checked by default in magento system cinfiguration (Custom Module)

texts:
I have been working on custom module, It flows like when user comes in

Admin -> System -> Configuration -> My Module

There is a checkbox and its value is TERMS & CONDITIONS, So when page loads that checkbox have to be checked by default

Can anybody help ?


texts:
I currently have a website for Dutch clients. But now I'd like to have a separate website for customers from belgium. So if a customer from belgium visit the website the must see another page with different blocks specifically aimed at this target group.

Both sites have the same domain name.

How can I set this in magento.