magento

Size SKU in Magento

♀尐吖头ヾ 提交于 2021-02-19 05:40:08
问题 How can I allow SKU be longer than 34 characters (for simple products) for all products? When i add new product(simple) and enter more than 34 characters, Magento cuts it to 34 after saving. In the database the 'sku' attributes ( for quete item,order item,invoice item, shipment item) from eav_attribute table hold varchar(255). For Catalog_Product_Entity the attributed is VarChar(64). In either case, it is more than 34characters. Thus, I could change SKU to 64 characters without making any

Magento - Check if specific category is active

喜夏-厌秋 提交于 2021-02-19 03:39:10
问题 Is there any way of checking if one specific category is active? I have a hard coded navigation and I want to show or hide a link depending on the active status of a specific category. Perhaps something like this: // Check to see if the Sale category is active... $specificCatID = '90'; if(isCategoryActive($specificCatID)){ // Specific category is active, do something } I have searched high and low, and have yet to get close to being able to solve this. Any help, much appreciated. 回答1: I hope

Zapier Action Code: Python input_data[] stripping nulls from list

谁说我不能喝 提交于 2021-02-17 02:03:43
问题 I have been trying to create custom code for Zapier using Python. The code pulls in two lists from a Magento 2 invoice. They are details from the line items, we use the data to update inventory on our stock system. The unfortunate thing is bundled products display the child products and I need to zero out the quantity for the child products so they don't get removed from stock as well. I have the logic all sorted to set the stock items quantity to zero if the parent is a "bundle". The problem

Zapier Action Code: Python input_data[] stripping nulls from list

人走茶凉 提交于 2021-02-17 02:03:41
问题 I have been trying to create custom code for Zapier using Python. The code pulls in two lists from a Magento 2 invoice. They are details from the line items, we use the data to update inventory on our stock system. The unfortunate thing is bundled products display the child products and I need to zero out the quantity for the child products so they don't get removed from stock as well. I have the logic all sorted to set the stock items quantity to zero if the parent is a "bundle". The problem

Python Selenium: Block-Title is not properly verified. (Magento Cloud)

折月煮酒 提交于 2021-02-16 11:27:52
问题 Details: Currently I am writing within a project based on Magento Cloud test cases with Python-Selenium. So far everything is fine. Currently I only have one problem, which I can't explain anymore. Actually it's only about the verification of a text. Or the verification of a block title within a profile page. I would like to secure multiple times, and thus define 2 different test cases. issues I always get the following message. selenium.common.exceptions.StaleElementReferenceException:

Magento 2 Authorize.net DPM PCI Compliance

爱⌒轻易说出口 提交于 2021-02-11 15:43:06
问题 I'm hoping discuss how to use Magento 2 and Authorize.net in a way that removes most the PCI compliance risk. The Magento 2 Direct Post Method (DPM) appears to still contain a high level of risk and requirements. Our setup: Authorize.net was setup by our bank and had us use TrustWave to validate our PCI risk/compliance. We are currently using Authorize.net as the payment gateway and using the Out-Of-The-Box Authorize.net DPM module. One of the questions in the TrustWave questionnaire asks: Do

SSIS download from http - error SSL certification response obtained from server not valid

青春壹個敷衍的年華 提交于 2021-02-11 09:43:41
问题 I've created a SSIS package which downloads a CSV file from a HTTPS URL using C# script. Everything works fine when executed from Visual Studio. However, when I created a SQL Agent job the package fails. The package also fails if I execute the .dtsx file directly from the SQL Server. The error is "Download failed: SSL certificate response obtained from the server was not valid. Cannot process the request" I've tested opening the URL from the SQL server and can view the file. I've also added

Can't run npm install

一笑奈何 提交于 2021-02-11 08:05:00
问题 In here it says to run npm install , but I get this error when I run sudo npm install . sudo npm install npm WARN enoent ENOENT: no such file or directory, open '/var/www/html/mg/package.json' npm WARN mg No description npm WARN mg No repository field. npm WARN mg No README data npm WARN mg No license field. without sudo: npm install npm WARN enoent ENOENT: no such file or directory, open '/var/www/html/mg/package.json' npm WARN mg No description npm WARN mg No repository field. npm WARN mg

Can't run npm install

99封情书 提交于 2021-02-11 08:01:09
问题 In here it says to run npm install , but I get this error when I run sudo npm install . sudo npm install npm WARN enoent ENOENT: no such file or directory, open '/var/www/html/mg/package.json' npm WARN mg No description npm WARN mg No repository field. npm WARN mg No README data npm WARN mg No license field. without sudo: npm install npm WARN enoent ENOENT: no such file or directory, open '/var/www/html/mg/package.json' npm WARN mg No description npm WARN mg No repository field. npm WARN mg

Adding css file after all extensions css files

荒凉一梦 提交于 2021-02-10 22:00:41
问题 I am new to magento and i want to add one css file 'responsive.css' in the page.xml . But this file i want to add last of all css files including the extension's css files. <block type="page/html_head" name="head" as="head"> <!-- other css & js files --> <action method="addCss"><stylesheet>css/responsive.css</stylesheet></action> </block> And if i view the page source, my responsive.css file is showing before the extensions css files. So please help me how i can include at last of all css