magento2

Magento 2 404 error admin panel

五迷三道 提交于 2019-12-10 14:58:17
问题 Recently I installed Magento ver 2.0 After successfull installation, I tried to login to admin panel but it say 404 not found. I am really not getting what is causing such issue. Moreover from the URL it can seen that I am logged into admin oanel but the dashboards is not visible. URL: Can anyone shed some light on this ? 回答1: I had the same issue. I had to enable the mod_rewrite module and set the AllowOverride to all for /var/www/html directory in the apache configuration file. 回答2: Maybe a

Magento 2 - Programatically Add Credit Card into Vault (BrainTree)

蓝咒 提交于 2019-12-10 12:07:15
问题 I need to Add Credit Card details in to Vault Programmatically (BrainTree) in Magento 2.1.5 Basically what i want is After LoginIn there will be a separate section for Saved Cards . In that Customer is used to Add/edit/delete All his Credit card details. the Below Code is used to list all the Credit Card saved by the Customer use Magento\Vault\Api\PaymentTokenManagementInterface; use Magento\Customer\Model\Session; ... // Get the customer id (currently logged in user) $customerId = $this-

Magento 2 - No redirect to external payment provder

无人久伴 提交于 2019-12-10 11:39:55
问题 Today I started working on a payment module for Magento 2. After a lot of try and errors I now have a payment module that can be configured and has restrictions. Now, the next step would be to start a transaction request after placing the order. Within Magento 1 I would use getOrderPlaceRedirectUrl() to return an url where the consumer would be redirected to. When I try this with Magento 2 then the function is called but no redirect is done to the return url. Does anyone know if this has

Magento 2 can't find css and js files

痞子三分冷 提交于 2019-12-10 00:45:57
问题 thanks in advance for help! I moved my site based on Magento 2 from hosting to my localhost. I cleared cache, adjusted(secure and unsecure) urls in core_config, run static content deploy() using cli. Checked all permitions for "folder". Magento runs but with no css and js files. In console I can see the following: Please give some advice, what should I do to remove this issue? Thanks in advance! P.S: Win 10 Open Sever (PHP7x64, MySQL5,7x64, Apache-PHP7-x64+Nginx1.10) No external caching P.P.S

Magento2: REST API : Save Product Detail per store view not working

自古美人都是妖i 提交于 2019-12-09 10:40:15
问题 Using Magento2.1.0-rc1 Branch With Sample Data Using REST API catalogProductRepositoryV1 REF: http://devdocs.magento.com/swagger/index.html Get Key from Admin token API and use that key in POST /V1/products & PUT /V1/products/{sku} with parameter tried with both parameter one by one store_id=0 storeId=0 using following JSON { "saveOptions": "true", "product": { "name": "Test11_11", "sku": "TESTOPP_111", "attributeSetId": "15", "price": "10", "weight": "10", "status": "1", "visibility": "3",

Magento 2 - get order preview on success page

回眸只為那壹抹淺笑 提交于 2019-12-08 21:56:01
问题 Is there a way to show order information on success page after placing an order? The success phtml currently displays only order number information. The structure: ?> <?php /** @var $block \Magento\Checkout\Block\Onepage\Success */ ?> <div class="checkout-success"> <?php if ($block->getOrderId()):?> <?php if ($block->getCanViewOrder()) :?> <p><?php echo __('Your order number is: %1.', sprintf('<a href="%s" class="order-number"><strong>%s</strong></a>', $block->escapeHtml($block-

I have installed the magento2 successfully but there are a lot of js error

牧云@^-^@ 提交于 2019-12-08 17:32:06
问题 I have installed the magento2 successfully but there are a lot of js error. When see the console log through the firebug it shows a lot of errors and is there any thing else to config for the magento css and js. 回答1: try following : make bin/magento executable chmod +x bin/magento Clear cache etc in var folder rm -rf var/cache/ var/di/ var/generation/ var/page_cache/ Run Setup ( if any thing missing ) bin/magento setup:upgrade Deploy Static Content bin/magento setup:static-content:deploy Give

How to make Payment Gateway in magento 2?

喜你入骨 提交于 2019-12-08 14:14:54
问题 Please provide any official doc or any demo mode for this i was refer to http://inchoo.net/magento-2/implementing-payment-gateway-magento-2/ but no success yet 回答1: make sure to add js and html files in web folder and deploy static content using : bin/magento setup:static-content:deploy knockout js uses these files to display payment methods also this module has USD Currency hard coded in files , make sure that you change that as per your needs. here is module's GIT for your reference : https

How to remove empty attributes “N/A” in Magento 2?

旧时模样 提交于 2019-12-08 05:38:35
问题 I am using Magento 2 with Porto theme, I recently updated theme and magento now in product information I am also seeing empty attributes that are unrelated to the current products as N/A . how can I hide them? I saw people discussing here this in Magento 1. but it doesn't work for 2.0. please help if you know how to do it. thanks 回答1: Magento_Catalog/templates/product/view/attributes.phtml if(strpos($_data['value'],"N/A")===false):?> <tr> <th class="col label" scope="row"><?php echo $block-

Quickbooks PHP SDK OAuth2, How to get and store access / refresh tokens

僤鯓⒐⒋嵵緔 提交于 2019-12-08 05:06:17
问题 I have a Magento 2.3 store that I'm trying to sync some data to Quickbooks Online. I've created a QBO App but this is my first time using oauth and I'm a bit confused on how to store and use the access / refresh tokens. According to Quickbooks doc I need to store the latest refresh token: Each access token can only be valid for an hour after its creation. If you try to make an API call after an hour with the same access token, the request will be blocked by QBO. That is what refresh token