All Questions

Filter by
Sorted by
Tagged with
0
votes
0answers
4 views

magento 1.9 redirect to cart page

i am using magento 1.9 i have some products on home page and on category pages there is a button called "Buy Now" when user click on the button its make redirect to "Add cart" page,...
0
votes
0answers
3 views

How can set the Tax for specific country in Magento 2?

I have set the TAX for UAE and that is working fine but it should work only for UAE but it has applied for all the countries. I need to enable this only for UAE and it should not apply if customer is ...
0
votes
0answers
6 views

Product Thumbnails Showing up in Admin but not Frontend

I have small_image, thumbnail and base assigned for our product thumbnail images in the admin (which are visible there) which should be showing up on the frontend category pages. The placeholder ...
0
votes
0answers
4 views

How to I add a field in order email to show order count

I want to show a field in the order confirmation which has a count of the current customers orders, how can I get that done? (for Magento 1.9)
0
votes
0answers
3 views

Magento 2 - Show modal if no quote shipping address

I am trying to alert the user that they have not added a postcode into their session when clicking "Add to cart" I have created a mixin, "catalog-add-to-cart-mixin.js" within my ...
0
votes
0answers
3 views

Multistore website where one storeview has a path

I'm looking to set up a multistore website where a single store view will have a path within the URL. For example, website.co.uk will be the UK store view and website.com/en_US will be the US store ...
0
votes
1answer
9 views

Magento2: Products lists images - very poor quality

example: on products list is "small image". on product page is "base image". a) on the products list "small image" products in one line the quality is very poor due to ...
0
votes
1answer
8 views

Magento 2.4 how to call out Bundle item selection attribute values?

Bundle item drop down selection name is called out like this: $this->escapeHtml($selection->getName()) in Magento\Bundle\Block\Catalog\Product\View\Type\Bundle (Option.php) I want to call out ...
0
votes
0answers
8 views

Product Images sorting programmatically is not working for configurable products

I'm trying to enhance Magento functionality with the ability to sorting/positioning products in mass. I wrote a piece of code as a Controller for custom extension, but I found that it doesn't work for ...
1
vote
2answers
20 views

In Magento2 does redis and elasticsearch need password protection

I'm new to Magento2. I'm using a dedicated server with 24core and 32GB ram with 1Gb/s net speed for my eCommerce website. As it is a very powerful server I'm running the databases locally on the ...
0
votes
0answers
14 views

How to maintain equal space gap between two li items using css?

This is my design, in this i want first and last item at corner and other items in center but with equal space gap. right now i can manage either corners or equal gap. is there any way to manage both ...
0
votes
1answer
13 views

RabbitMQ shared by live and staging installs using Magento 2?

Is it possible/recommended for 2 separate installs of M2 to share the same RabbitMQ install? Is there a way to separate their data like with Elastic Search where you define a separate prefix?
0
votes
0answers
12 views

Magento 2 - How to add facebook recent posts into my custom phtml page

I want to show recent Facebook posts into my custom phtml file, how to include them on Magento website?
0
votes
0answers
6 views

How to send email only for Admin and Customer on changing the order status for 'On Hold' and 'Cancel' status?

I have created an observer to send mail and i have used $order = $observer->getEvent()->getOrder(); if ($order->getState() == 'canceled') { $_objectManager = \Magento\Framework\...
0
votes
0answers
10 views

How to Make Product Weight Attribute searchable in magento2.4.2?

Hello I am using magento2.4.2 in that when i try to enable Product Weight Attribute the search filed is stop to work and i got below error in exception, i want Product weight attribute searchable.
0
votes
0answers
16 views

Magento 2.4: How to change the data format?

We are running multi website and want to change the date format for one of the website. Followed the below suggestion but its not working Magento 2: How to change the Date format in frontend? Can you ...
0
votes
0answers
11 views

Can we add pagination for a custom collection which get by passing parameter?

We can add pagination for a custom collection. Example - custom collectiom is getNews(). But can we add pagination if the collection get by passing parameter like getNews($id)? Here is the answer for ...
0
votes
0answers
15 views

How to make a marketplace with magento for my website vexagame.com?

I have a website that focuses on games, we will review various games and from all platforms. not only that, vexagame.com also provides information about technology, lifestyle, games & education. ...
0
votes
2answers
35 views

How to redirect to custom cms in magento2

When quote table or customer session destroy page is rediecting to cart empty page. I want to redirect to my custom cms page. how to do that? I used below code but not working: $this->...
0
votes
1answer
8 views

Getting issue while updating cart price

Hi i am trying to update cart price based on a system config option using observer but its not working below is my code CheckoutCartProductAddAfterObserver.php class ...
0
votes
1answer
23 views

How can i set wish list for guest user also in magento 2?

i need set Wishlist for guest users also Guest can also able to add item in Wishlist. after add item guest login into account that time Wishlist must be marge. all Wishlist functionality must be ...
0
votes
0answers
22 views

Magento 2 : How to disable COD payment method for specific users?

I have Magento 2.3.1 and I want to disable the cash on delivery (COD) method for specific users on the checkout page. I have a list of users as email Ids. I want to prevent that all email ids from ...
0
votes
0answers
11 views

Magento 2 : Alter Category Child Product Positions

The Category Child Product Positions script pushes positions for every single product from the parent to the child (subs) effectively undoing the previous merchandising for all products of all child ...
0
votes
1answer
18 views

Magento 2 RestAPI shows wrong stockid

I ran the Magento Rest API to get the stock id for a particular product but it's showing me the wrong stock id. We have three websites and each website has a separate stock, but when we call Magento ...
0
votes
0answers
20 views

What is the correct way to configure Magento, so that products will be visible on storefront?

I am completely new to magento. Trying to add some products on store, product saved successfully. But it is not visible on storefront. Checked all the configuration settings, all are correct. I found ...
0
votes
1answer
15 views

Magento 2.3.6 - Admin session times out to early

I have some issues where my Magento admin session times out way before what it should. I found this GitHub link where they say you need to add this code to php.ini: php_value session.gc_maxlifetime ...
0
votes
0answers
13 views

Magento 2 | Questions regarding taxes

With the beginning of the next month theres a reformation of the tax system in the EU and we need to adapt a few critical changes in order to comply to everything. Basically we need to charge the tax ...
0
votes
1answer
13 views

how to write API credentials in admin login page?

I wrote a custom module to do the API cron job. However I included all the API path and access token inside the cron job. I would like to have in admin page for user to store their API path ...
0
votes
0answers
16 views

Magneto2: Your site contains scripts with similar behavior to typical malware code (217)

I am getting this issue after Site Scan on marketplace. Your site contains scripts with similar behavior to typical malware code (217). Suspected malicious code detected in these resources: /static/...
-1
votes
2answers
34 views

I need to display table data in my custom module at the front end of the site. Its saying wrong argument for $collection

/*Showdata.php Controller\Index */ <?php namespace Eaglerocket\Customquote\Controller\Index; use Magento\Framework\App\Action\Context; use Magento\Framework\View\Result\PageFactory; use Magento\...
0
votes
1answer
23 views

How to disable Magento 2 Content Security Policy with theme edit only

I have searched alot on the internet and I want to hide this error (magento 2.4) content security policy error , we don't have authority to disable magento_csp module and we can not create module, we ...
0
votes
0answers
11 views

Magento 2 export products via PHP WITH attribute text NOT id

I have created a module with Command which will export all products to CSV and do some custom business rules. It works - however I seem unable to find an efficient way to get select attributes text vs ...
0
votes
2answers
23 views

Missing css from source code magento 2.4.2

When upgrading to Magento 2.4.2 all of the core css is missing front both the back and frontends. Looking at the source I see no reference to such lines such as <link rel="stylesheet" ...
0
votes
1answer
26 views

How to send email to Admin in Magento 2.4 when order status change ( Cancel and Hold )

I want to send Email in Magento 2 when order status change in ( Cancel and Hold ) My current code is : <?php namespace Hlemail\Customemail\Observer; use Magento\Framework\Event\ObserverInterface; ...
0
votes
0answers
16 views

Magento 2: Show disabled subcategory products in parent category

I'm using Magento 2.3.4 and I have an anchor parent category that has some disabled subcategories. When I disabled these subcategories, all the subcategory products are not showing in the parent ...
0
votes
1answer
42 views

how to add multi store functionality

i am using Magento 2 , and in my case i have added the ui_components fields , it works fine , but the value entered is applicable to all store view , i want to add multi-store functionality to those ...
0
votes
0answers
9 views

Magento 2 - How to extend core adminhtml less file?

I try to extend the file vendor\magento\module-page-builder\view\adminhtml\web\css\source\_buttons.less to add my custom styles to it. I tried to add it to my custom module and added my custom styles: ...
0
votes
0answers
13 views

Magento 2.4 move to /pub/ folder, redirects in .htaccess now prepend /pub/. Where are rewrite rules supposed to go now?

So, I have a rewrite rule that is supposed to redirect an old URL to a new one: RewriteRule ^(.*)/-/manufacturers/(.*)$ $1/manufacturers--$2 [R=301,NC] This is located in the .htaccess for the domain (...
0
votes
1answer
21 views

How to access custom attributes from the current product in JavaScript?

I added the following in view/frontend/layout/catalog_product_view.xml: <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
0
votes
0answers
10 views

Getting Cron Status by Job_code

I'm looking for a way to fetch a Cron-Jobs current/latest Status by using only the Job_Code. From what I can see there is no specific Repository dedicated to the CronJobs. I found a Tutorial that ...
0
votes
0answers
11 views

Magento 2.4.2 : Adobe sensei product recommendations missing product URL data

I am using magento2.4.2 EE and configured Adobe Sensei product recommendations. But facing issues of product url is missing in generated product recommendations html data-bind. I've debugged response ...
0
votes
1answer
13 views

Invalid template file: 'post/head.phtml' in module: 'Carpetcall_Blogs' block's name: 'mpblog.post.head'

I need to override the following file function in my custom module File - Mageplaza\Blog\Block\Post\View Function Name - getBlogTitle() As I need to remove '- Blog | Ideas & Advice | Carpet Call' ...
0
votes
0answers
31 views

Why is there CartInterface instead of QuoteInterface?

Standard practice is to have Entity and EntityInterface (Order - OrderInterface, Customer - CustomerInterface). But for Quote this rule is broken, regardless class Quote is the one implementer of ...
0
votes
3answers
8 views

Single Store Mode & Template Hints

I have enabled single store mode (scoped multi store mode is not an option for this site) on my Magento 2.4.2 (developer mode) website and I cannot get template path hints to display either by the ...
0
votes
1answer
11 views

Javascript issues in Magento 2 cart page

In my magento 2 theme in cart page in console, I have errors: Uncaught SyntaxError: Unable to parse bindings. Bindings value: if: getCartParam(summary_count') Message: missing ) after argument list ...
0
votes
1answer
11 views

Collect quote totals at init checkout page and cart page?

i'm using magento v2.4.1. I tried to add the product to the cart programmatically using salesrule_validator_process observer, this is to add a product if a cart rule being applied to the cart: $quote =...
0
votes
0answers
16 views

Magento 2 - How to completly override a core .less file?

I need to completly replace this .less file from magento 2 core with my own file: vendor\magento\module-page-builder\view\frontend\web\css\source\content-type\button-item\_default.less but I can't ...
1
vote
1answer
24 views

Magento 2.3.5: Sorting Products with text type attribute with Flat Catalog Product Function on causes wrong sorting

I created a text type attribute called display_order with the following settings. Catalog Input Type for Store Owner - Text Field Used for Sorting in Product Listing - Yes The display_order text for ...
0
votes
1answer
10 views

REST API > Create Product = 400 error “Please select a product type”

I'm trying to create a Product with a call to the REST API POST https://mymagentodomain.com/V1/products { "product":{ "price":8, "sku":"123456789", ...
0
votes
1answer
21 views

Magento 2: How to load all product images from external url in front end and backend?

Magento 2, How to load all product images from external url in front end and backend

15 30 50 per page
1
2 3 4 5
2146