Questions tagged [magento]

Magento, a PHP-based e-commerce platform, offers a reliable solution for online businesses. This tag is specifically dedicated to inquiries regarding code development for Magento v1.x. However, for more general queries related to Magento, such as administration concerns, it is recommended to seek guidance from the experts at magento.

Retrieve the number of categories that have products only within their subcategories

Struggling to determine the count of products in a category collection that also includes products from any subcategories. Specifically, I'm looking to filter this count based on a product collection, only including products that match certain criteria... ...

Using a Select Query to Retrieve Multiple Rows from a Join Table in a Collection in Magento

Is it possible to execute a Select Statement in _preparecollection within Magento when the main table is joined with another table that has 2 rows containing 1 parent ID? The current tables available are: Main Table: https://i.stack.imgur.com/DWrep.png ...

Using JQUERY to customize the quantity box in Magento's list.phtml file

I'm looking to incorporate a quantity box into Magento's list.phtml file. The current code for the box is as follows: <div> <button type="button" style=" margin-left:185px; min-height:48px;"title="<?php echo $this->__('Add to Cart') ...

group-based pricing for products

Seeking assistance in extracting product prices from Magento based on customer groups. Instead of utilizing tier pricing, I have set different prices for each customer group on a standard-priced product. However, I am facing difficulty in retrieving this ...

Devising a method to display configurable products as related items along with their customizable options in Magento

I am in the process of creating an e-commerce website using Magento for a client. The issue I am facing is that when I include a configurable product as a related item, it displays the product but without a checkbox. From what I have researched, Magento do ...

On the initial page load, Magento is failing to load the CSS properly

I've been tinkering with the Magento website over at For some reason, the CSS on the Home page doesn't load initially, but it loads fine when you click on any other link like Products or Gallery. Any ideas why this might be happening? Thanks in advance! ...

How can I show the mini-cart on the top menu in Magento 1.9?

Recently diving into the world of Magento 1.9, I find myself facing a challenge with my custom theme. My goal is to incorporate a functional mini-cart in the top menu. However, I am currently unsure of the best approach to make this happen. Any tips or g ...

Guide on eliminating checkout option on PayPal standard in Magento 1.9

I recently set up PayPal Standard on my website, but it seems to be acting as an express checkout instead. I do not want PayPal checkout on the website. How can I change it to a more traditional payment method like PayUmoney or CC Avenue? Additionally, I ...

Utilize the left sidebar in Magento to showcase categories

Embarking on the journey of creating an e-commerce website using Magento 1.7 has been quite the challenge for me as a newcomer to the platform. I have written the following code in /app/design/frontend/default/default/layout/catalog.xml: <block type=" ...

Encountering Internal Server Error during Magento's mass reindexing process

Is there a way to reindex a Magento 1.7.02 version site with over 24,000 products and numerous categories? Whenever I attempt to reindex the product price index in Magento Admin Index Management, it triggers an internal Server Error 500. Upon inspecting t ...

Flexible Magento layered navigation

Can anyone provide assistance on how to implement the collapse and expand functionality for Magento layered navigation? I have come across this code, but I am unsure of how to use jQuery with the dd dt class. <dl id="narrow-by-list"> <?php $ ...

Is there a discrepancy in Magento between the getPrice() and getFinalPrice() methods returning the same price?

Currently, I am in the process of setting up a tracking pixel for a client that requires the price (post-discounts) for each purchased item. The tracking pixel is fired on the success page where I iterate through the items to retrieve the price. However, ...

What is the code for displaying and concealing the "add to cart" button using PHP

I am modifying my addtocart.phtml file on my Magento website. My goal is to use PHP code to hide or show the add to cart button based on the product's category. Here is what I have in mind: <?php if($_product_category == "beds"){ <div class="add ...

Congratulations! Your product has been successfully added to Magento using Ajax

While using Firebug, I discovered that JSON generates a message within the success function. However, I am having trouble figuring out how to display it. As a workaround, I attempted to add the following code snippet: if(data.status == 'ERROR'){ ...

Is there a specific location within Magento where I can access the product category page?

Being new to Magento, I am trying to customize the product category page but struggling to locate the necessary file. The exact location of the category file eludes me. I am unsure of where to find this specific page. Thus far, I have observed that the p ...

The Magento MySQL database is experiencing an issue where there are too many keys specified, with a maximum allowance

Encountering an error message while working on a Magento PHP file and executing a CREATE TABLE query: SQLSTATE[42000]: Syntax error or access violation: 1069 Too many keys specified; max 64 keys allowed The section of code causing the issue is as follows ...

How to dynamically retrieve submitted form data using AngularJS

Currently, I am dealing with a project involving angularjs and magento. The challenge I am facing is that in magento, I am unable to add ng-model to each form element due to them being created dynamically. To retrieve the submitted data using jQuery, I hav ...

Experiencing difficulties with Magento operations

Currently facing an issue while attempting to set up Magento on my server. I have transferred all files from another server to mine, but now encountering an error. Could this be related to the symlinks I generated or is it caused by something else? Encoun ...

Update the configurable product process for the custom attribute 'delivery_time' in Magento 1.9.2

I am currently using Magento 1.9.2.4 (1.9.2.3 in my Testpage) and I have a few configurable products with multiple options. Each product (child of the configurable one) has a different delivery time. To achieve this, I created an attribute called "delivery ...

The Magento TAF encountered an error: "curl_init() function is undefined."

Currently, I am attempting to integrate Selenium into Magento TAF within Netbeans using a Wamp Server. However, when I execute the test, I encounter the following error: Call to undefined function curl_init() in C:\wamp\bin\php\php ...

Encountering Issues While Setting Up Magento on WAMP Server

An error occurred while attempting to process your request Issue with file: "C:\wamp\www\magento\app\code\core\Mage\SalesRule\sql\salesrule_setup\upgrade-1.6.0.0-1.6.0.1.php" - SQLSTATE[42000]: Syntax ...

Creating an integer product attribute in Magento is a straightforward process that involves defining the

It seems like the support provided by Varien for those who purchase the Enterprise Edition is not very helpful, so I am turning to this community for guidance. In Magento, I want to create a product attribute of type int. However, when I try to do this fr ...

Utilizing SQL (specifically MySQL) to generate categories and products in Magento 1.9

My product list is quite large (10000 items) and using ORM for adding a new category and product is proving to be very slow. I am considering utilizing SQL for direct database access instead. However, with numerous tables to navigate, I am unsure of whic ...

Discount on Shipping and Free Coupons at Magento

My shipping free rule is set up as follows: Applicable to all customer groups No coupon required Limited to 0 uses per customer Conditions: Cart total must be >= 100, and Shipping country must be NL, BE, or DE Free shipment available for matching items. ...

having difficulty understanding how to incorporate a layout update in my recently developed module

Help needed to integrate a custom script on the success page. I have created a file called luisvalenciaaffiliatecj.xml with the following path: /app/design/frontend/base/default/layout/luisvalenciaaffiliatecj.xml <?xml version="1.0"?> <layout ve ...

Invalid file format for product images in Magento version 1.9.0.1

Every time I try to upload an image in the product option, Magento 1.9.0.1 gives me an error saying "Disallowed file format." ...

Dynamic Magento Profile Editing with AJAX

I am seeking assistance to update an avatar picture using Ajax in Magento. Currently, my form is functioning without AJAX, utilizing the default form action="<?php echo $this->getUrl('customer/account/editProfile') ?>" Here is my code : < ...

Ways to assign an id to an element when the body includes a specific class and the element id includes a class

In this scenario, the code is designed to assign the class "active" to the element with the ID "39" under two specific conditions. Firstly, the body must contain the class "hotel-stores", which can come in variations like hotel-stores, hotel-stores-1, hote ...

Identifying Magento Bundle Products with Product ID

For the past few days, I've been grappling with a specific task in my Magento store. I am trying to dynamically display the bundles that include the current product on every product page. If anyone can point me in the right direction or provide some help ...

Can anyone point me to the core functions in Magento 1.8 for sending emails?

Despite making changes or deleting app/code/core/Mage/Core/Model/Email/Template.php, emails are still being sent. I have tried modifying the functions but my changes do not seem to take effect. I have uninstalled all modules and there are no modules locat ...

I'm encountering issues with running my installation script on Magento

Currently, I am in the process of enhancing the registration form with my module by adding a new field. For this purpose, I need to introduce an attribute. Although my "install script" serves as an upgrade to the customer entity, the issue lies in the fact ...

Obtaining address information from a textor

I've been searching for a solution to my problem, but haven't come across one yet. The issue is similar to this query: Extract address from string However, I'm struggling to modify the php code in order to resolve my specific problem. Using Magento, I ha ...

Transforming the add to cart button into a view button within the product listings: an easy guide

I am currently developing a unique ecommerce website called bookslab.in. To enhance the user experience, I would like to replace the "add to cart" button with a "view details" button when users view the list of available products. Furthermore, when users c ...

How to easily include a CMS page in multiple stores using Magento

I have set up multiple stores on my website. Let's say the second store is called Test. I've included the index.php file in the Test store using the following code: $mageRunCode = isset($_SERVER['MAGE_RUN_CODE']) ? $_SERVER[&ap ...

Introducing a grid view option on the customer edit page within the admin interface by adding a new tab

My goal is to add a custom tab to the customer edit page. When this tab is clicked, I want a Grid view to open with sorting and filtering functionality. Currently, I am able to display data in a grid. However, when I include 'filter' => tr ...

Uncovering the Secrets: Extracting Data from a Custom MySQL Table for Magento's Adminhtml Grid Table

I'm currently running Magento 1.9.0.1! At the moment, I am developing a custom Magento extension where I need to display data from a custom MySQL table in an HTML grid table on a custom page. Here are all the files that I have created to accomplish this: ...

Displaying Magento's Shopping Cart Price Rules Directly on Product Pages

Currently seeking a solution to implement 'Shopping Cart Price Rules' on the product page itself, before adding the item to the cart. The reason for not opting for 'Catalog Price Rules' is due to its limitations in functionality. Specif ...

The "Submit Review" button is malfunctioning, as it inadvertently adds the product to the cart

I found this code snippet: <div class="buttons-set"><button type="submit" title="<?php echo $this->__('Submit Review') ?>" class="button"><span><span><?php echo $this->__('Submit Review') ?></span></span& ...

In which database can the original release date for the Set product be located?

As someone new to Magento, I am curious about where the "set product new from date" values for each product are stored in the database. I looked into the catalogrule_product table and found a column named from_time, but I'm unsure if this is the correct ...

Is it feasible to include the password in JSON format, along with other information, when using Magento 2 REST API for customer registration?

When attempting to register a new Customer on my Magento portal using the REST API in Postman, I encountered an issue. The standard approach for Magento API registration only allows certain details to be sent via the POST Method; password cannot be include ...

Restructuring XML using SimpleXML

Currently, I am working on developing an API that will enable data transfer from Magento to my POS system. To ensure compatibility with my POS supplier's requirements, I need to write the data in XML 1.0 format based on a specific code provided by them. I ...

Create a custom Magento module to retrieve information from the backend

I am facing an issue with retrieving data from the backend to display it in my controller. For instance, consider this module: In config.xml, I will configure a routers for the controllers <frontend> <routers> <custompay> ...

Using Magento's Paypal Express feature, customers can easily checkout using their Paypal

Running my E-commerce store on Magento, I encountered an issue with Paypal Express checkout. After selecting Paypal as the payment option and logging in on the Paypal platform to confirm the payment, I was redirected back to my Magento shop's review page ...

"Enhance your Magento store with the ability to showcase multiple configurable products on the category page, even when dropdown values are not

As I work on adding multiple configurable products to a category list page in Magento 1.7.2, I am facing some challenges due to using the Organic Internet SCP extension and EM Gala Colorswatches. While following tutorials from various sources like Inchoo a ...

Is there a way for me to gain access to alter the price function within Magento?

Now, I am faced with the task of customizing the discounted price for my Shopping cart. After some independent research, I discovered that by modifying the view.phtml and item.phtml files, I can properly display the desired price. However, I still feel uns ...

Working with the WYSIWYG field in a custom module in Magento

My Magento Module includes a wysiwyg field where I encounter an issue with processing the image path. When using the "Insert image" button in the wysiwyg, it generates the following code: <img src="{{media url=" wysiwyg/slide.jpg"}}" alt=""/> The i ...

What could be the reason for the absence of product images on the Magento frontend?

As a newcomer to the Magento platform, I find myself exploring its functionalities. Recently, I successfully installed version 1.7 of the Community Edition on my localhost environment. After adding a product and attaching corresponding images to it, I enc ...

Magento is loading the catalog/product/view.phtml file twice

I am working on creating a Magento sidebar box that can display products from a specific category. I have developed a file named most_sold_list.phtml which generates a list of products in a designated category, containing the following code... <?p ...

Is there a way to make the product list view in Magento much more compact and smaller in size?

My issue is pretty straightforward. I find Magento's product display in list view to be too large for my liking. The images are bigger than necessary and each product takes up too much space. I want to resize the listing so that each product only occu ...

Enhance your Magento experience by displaying various action links in a single column on the backend grid

Currently, I am in the process of creating a custom product list within the Magento backend. Here is the code snippet I am using to add a new row: $this->addColumn('action_widget', array( 'header' => Mage::helper( ...

Incorporate a specialized module assistant within the template file of a separate module

After developing a new module connected to another database, I attempted to call the helper class from a different module template file named "description.pthml". The code I used is as follows: $_helper = $this->helper('ForumProdPosts/output'); Unfort ...

Unable to connect to Magento 2.3.6 REST APIs from localhost due to CORS policy restriction

Encountered CORS Policy Error While Trying to Access Magento REST APIs from Localhost I initially used the code snippets generated by "postman generate code snippets" in Postman, which worked fine. However, when I tried using Axios and other types of AJAX ...

What is the best way to narrow down a Magento product collection by using multiple attribute conditions?

Recently, I decided to add a location attribute to my products and wanted to filter them based on distance from a specific location using geocodes. However, the code snippet below has not been successful in achieving this functionality. $productCollection ...

Error encountered during Magento installation

After downloading the Magento community edition and sample data, I attempted to install Magento using XAMPP. The installation process seemed to be going smoothly until I encountered an error message after clicking on the install button. The error specifica ...

Present a personalized content block on the main page of your Magento website

I came across this solution on Stack Overflow, but I can't seem to make it work. I'm attempting to add a custom block to my homepage. These are the steps I have taken: 1. Added the following code to my layout file: <cms_index_index> <refere ...

Changing images based on location in Magento - a step-by-step guide

I am looking to update the search image in Magento. Currently, when searching in Magento, the image file used is btn_search.gif located in skin/frontend/default/default/images. The file /app/design/frontend/default/default/template/catalogsearch/form.mini. ...

The catalog search feature is malfunctioning in Magento version 1.9.0.1

I'm looking to customize my search function to only include the product title. I have already removed the description from the catalog search in the backend, but it's still searching based on the description as well and not giving me the results I want. ...

Incorporate External Data Source into Magento Admin Products Grid

I'm working on creating a split screen view with one grid displaying products from a remote repository, and another grid showing products from a local repository. To simplify things, all I really need help with is incorporating the remote source into ...

What is the cause of nearly a 2-second delay in "Time to First byte"?

Even though I have activated a PHP profiler for Magento, it seems to function as expected, recording all processing steps and database queries involved in creating a page from the initial request. https://i.stack.imgur.com/KQaGY.png In my testing environ ...

End browser without clearing session automatically

Is it possible to clear the session after closing the browser (not just the tab)? I would like to automatically log out any user who closes their browser. I tried configuring the settings in "system -> configuration -> web" and setting the cookie Lifetim ...

Combining two custom collections in Magento using a JOIN clause after applying filters

My situation involves two custom models, named "myorder" and "myarticle". Each "myarticle" model contains a foreign key called "rif_ord_app" that is related to the "rif_ordine_vsp" field in the "myorder" model. My goal is to filter both collections and the ...

Submitting a form without redirecting (using Facebook static and Magento)

This situation appears uncomplicated at first glance, but there are some complexities... I have a static Facebook FBML page where I am looking to have users sign up for my Magento newsletter. Typically, one would include the form code below in the fbml p ...