Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [varien]

The tag has no usage guidance.

0
votes
3answers
82 views

How can i add date and month text box with validation(No calender)

How can I add Magento custom validation for month and date text box? These two are input text box user can enter the number and I have to validate it via custom validation. Don't want a calender. <...
0
votes
1answer
53 views

Warning: is_readable() expects parameter 1 to be a valid path

I have been getting this error pointing to this function protected function _checkSrcIsFile($src) { $result = false; if (is_string($src) && is_readable($src) && is_file($src)...
0
votes
0answers
35 views

Warning: simplexml_load_string(): Entity: line 7: parser error

Just upgraded from 1.9.3 to 1.9.4, and now this is filling up system.log Warning: simplexml_load_string(): Entity: line 7: parser error : XML declaration allowed only at the start of the document ...
1
vote
0answers
74 views

getCollection()->getSize() not returning correct number of records

getCollection()->getSize() not returning correct number of records. Here is my code : /** @var $collection Mage_Reports_Model_Resource_Report_Collection */ $collection = Mage::...
0
votes
1answer
142 views

Magento show Address fields and validate registration form only under some conditions

I'm trying to customize the form for customer account creation and I would like to use the same form for different types of customers, i.e. private and companies. What I want to achieve is using the ...
0
votes
1answer
377 views

failed to open stream: No such file or directory in site/link/goes/here/Varien/Autoload.php on line 94

I am getting an error with my Magento site; here's an example of what I am seeing in my error log: [Tue Sep 19 00:02:39.321749 2017] [:error] [pid ######:tid ###########] [client ##.##.###:#####] PHP ...
1
vote
1answer
170 views

Site is down and admin log in is broken

I am stuck here. My Magento site is just a blank white screen, and the admin panel log in has three fields and no log in button. I have attached an image of the admin log in and also the error I saw ...
1
vote
1answer
456 views

Varien_Io_Sftp connection sometimes works, sometimes doesn't

I need to use FTP(S) and SFTP in my extension to receive and send files. I got FTP(S) to work with no problems whatsoever (using Varien_Io_Ftp), but I'm struggling with SFTP. The problem is that ...
0
votes
1answer
366 views

Filter in grid not working with Varien_Data_Collection

I have created custom collection with Varien_Data_Collection in admin grid like below : protected function _prepareCollection() { $collection = Mage::getModel("catalog/product")->getCollection(...
0
votes
2answers
94 views

Block type breaks when rewriting a block in custom module

Just installed Magento CE 1.9.3.1 into my local system. Then I tried to override the default text input field of Varien class just to add "placeholder" attribute. etc/config.xml of my module: <?...
3
votes
2answers
2k views

How to create a excel file and need to save in root directory?

I tried to create to a excel file and need to save that created file some places. $filename = 'request_quote.xlsx'; $exportData[0]['product_id'] = 123; $exportData[0]['product_name'] =...
2
votes
0answers
369 views

How can i Update My Product Export time consuming period for Bulk export products [duplicate]

In my store nearest 16,000 products are there, when i try to export both ways import/export or dataflow both are error. But when i export minimum of data i can able to export my products, which means ...
1
vote
1answer
833 views

Magento 1 : Filtering / Paging / Sorting with Varien_Data_Collection

I'm back to this good old problem where using a Varien_Data_Collection in a grid does not handle sorting, paging nor filtering. I've found some useful resources such as : https://www.maximehuran.fr/...
3
votes
1answer
534 views

Replacement for Varien_data_collection

What is the replacement for Varien_Data_Collection in magento 2? I know that Varien_Object has been replaced with \Magento\Framework\DataObject.
0
votes
1answer
2k views

VarienForm not working in magento 1.9.2 community edition

Hello I am developing a login and register form in magento. For form validation I am using this code var registerForm = new VarienForm('register-form', true); var loginForm = new VarienForm('login-...
1
vote
1answer
541 views

rm($filename) method in Varien_Io_Sftp does not delete remote file

I'm pretty new to Magento dev so forgive me if some of my terminology isn't quite right. My module needs to download and delete XML files from a remote FTP server using the sftp protocol. I'm using ...
0
votes
1answer
655 views

VarienForm js details and location

I'm looking for this file but i can't seem to locate it... I know that you run this bit of javascript to turn your plain old form into VarienForm <script type="text/javascript"> //<![CDATA[ ...
0
votes
1answer
1k views

Varien_Http_Client: getQuery() returns nothing

I'm trying to use Varien_Http_Client for calling external API, here's the code: $httpClient = new Varien_Http_Client(); $httpClient->setUri('https://api-host/api/endpoint'); $...
0
votes
1answer
151 views

Security Patch 7405 Pulling API 500 internal error logs

I've spent hours looking over the internet and cannot figure out where is the issue with the changed PHP lines. Problems only started after successfully updating patch 7405. Website and all other ...
4
votes
3answers
1k views

Remove specific criteria from Varien_Db_Select join

I have Varien_Db_Select object with some joins and I need to change condition in one of them. How can I do this? update: I found that condition in "from" part and then in "joinCondition" part. I can ...
1
vote
2answers
74 views

Construct a method name for customer object dynamically

I have a Magento website with four stores. For each customer different cut off time will be assigned for each store. User is restricted to add product from only one store at a time. When user come to ...
2
votes
1answer
535 views

invalid method in /lib/Varien/Object.php after update, causing maintenance mode

I just updated some modules and now my webshop keeps showing the maintenance page, whilst there is not maintenance.flag file in the root folder. I checked the /var/log and in the exception.log it ...
2
votes
2answers
146 views

Varien Queries AND and OR

I'm having some trouble mapping a SQL query to the "Varien syntax". So, I have a table where two of the columns are 'week' and 'year'. Now I want to grab a collection of data from that table where I ...
0
votes
1answer
913 views

Error after update to 1.9.2.0 - item detail page

I've done a update to Magento 1.9.2.0 - still after the update I get the error message at my item detail page. Have anyone a idea to fix the problem? Invalid method ...
0
votes
1answer
300 views

Create XLS File with Multiple Sheets

I found this class in Varien Varien_Convert_Parser_Xml_Excel however, I couldn't find any source on how to create an XLS file with multiple sheets in it. Note that it needs to be XLS not CSV.
5
votes
1answer
2k views

Fatal error: Call to a member function extend() on a non-object in /home/stevenst/public_html/upgrade/lib/Varien/Simplexml/Config.php on line 600 [closed]

I have created a clone of my original site in a subdomain. Now this is the error I keep getting. Fatal error: Call to a member function extend() on a non-object in /home/stevenst/public_html/...
2
votes
1answer
4k views

Why getSize() function is not working when apply filter

I want to get count after the collection filter by attributes.Actually i want filter order collections by non canceled ,non fraud' and use getSize() function to get count but it is given count result ...
3
votes
2answers
1k views

how does magento earn money?

How does magento profit as a company? If the community version is 100% free and they don't take a percent fee from extensions or add ons sold I know they charge for enterprise edition but is this ...
0
votes
1answer
148 views

Which [varien] object is required to successfully run getCompilerStatus()?

I'm attempting to programmatically determine if Magento's compilation status is enabled or disabled. I found the function getCompilerStatus() in app/design/adminhtml/default/default/template/compiler/...
0
votes
3answers
3k views

Getting error log for every URL hits in magento1.7

I am getting this error log for any url hit in my magento..What could be the reason and how to solve this? 2014-11-14T07:49:47+00:00 ERR (3): Notice: Undefined variable: cookieParams in /var/www/...
3
votes
1answer
2k views

Varien_Data_Tree_Node - Position nav menu items

Digging into the 1.9 RWD nav menu, I am fiddling with Varien_Data_Tree and Varien_Data_Tree_Node - I haven't worked with these classes directly before and they seem unfinished as there are several ...
0
votes
1answer
666 views

Magento product edit issue after adding new attributes - Fatal error: Class 'Mage_Fileattributes_Block_Form

I have just added some new attributes to my default magento product group. Now when I go in a product to edit it or to add a new product I get this error appear in red font. Frontend of website is ...
2
votes
2answers
1k views

Patching/rewrite files in lib/Varien

I would like to know people's thoughts on the best way to patch/rewrite Varien lib files. Specifically whey looking into a couple of issues one with checkboxes and one with image type inputs I found ...
2
votes
3answers
8k views

How to read CSV with multi columns and reside in magento root dir?

If a csv file with id, name, price columns reside in magento root dir How I can read this file and retrieve data using Varien_File_Csv() from custom model?
2
votes
1answer
1k views

How to Validate Checkbox in Magento

In Form I have added code for checkbox as follows. $fieldset->addField('title', 'checkboxes', array( 'label' => Mage::helper('custommodule')->__('Title'), 'class' => '...
1
vote
1answer
49 views

Strange arrays being output on front-end instead of website

Trying to setup version control on a pre-existing client's site. There have been a number of developers who have had their hands in this and I'm slowly modifying the .gitignore file in attempt to ...
2
votes
2answers
2k views

Parsing a CSV file for custom options script

First off I'm new to Magento, so please forgive me for my ignorance. I would like to read from a CSV file that has item_id, sku, and the custom options data so I can use it in a foreach loop. I'm ...
1
vote
1answer
3k views

How to delete order item from order object?

How to delete order item from order object? For example: $order = Mage::getModel('sales/order')->load(1); foreach($order->getAllItems() as $item) { $order->removeByItemId($item->...
0
votes
1answer
384 views

How do I use elements in Varien_Data_Form_Element_*?

In system.xml one can simply use elements like text and select and all the tutorials out there are using these two as examples. But how should I use other elements listed in lib/Varien/Data/Form/...
1
vote
1answer
2k views

Varien_Event_Observer getName() method returns null

I don't understand why the Varien_Event_Observer object has getters and setters for th 'name' attribute. However when using it in the method defined by my config xml, calling getName() returns null? ...
2
votes
1answer
125 views

Inconsistency in `Varien_Object` exporting methods

I've been studying the source code of Magento recently, and I came across this snippet in Varien_Object, which is puzzling me: /** * Convert object attributes to array * * @param array $...
4
votes
1answer
6k views

How to reset Magento Form Validation?

I have a custom form in my magento store, and use varienform validation. Everything works fine. But requirement is, I need a clear button so that I can click that button to reset the form inputs ...
1
vote
1answer
2k views

Controlling visibility of products by status (catalog and search)

What we have here is a class that extends Mage_Catalog_Model_Product_Status, and adds two CONST variables, STATUS_PENDING and STATUS_PREVIEW. What I am trying to find is the logic model that decides ...
2
votes
2answers
5k views

Uncaught Reference Form Is Not Defined

I have a form in my .phtml file with the following form tag: <form id="coupon-form" action="<?php echo $this->getUrl('checkout/cart/couponPost') ?>" method="post"> and the javascript:...
2
votes
1answer
3k views

How to validate dynamically created forms on same page with VarienForm?

I'm creating onepage customer account and I need to validate dynamically created additional address forms, all on same page. I understand that in Magento you should use new VarienForm to validate ...
-2
votes
1answer
1k views

getData() returns wrong data

I have a custom customer attribute, which isn't required, so it isn't set to every customer. but when i ask it if a customer has the data. (hasData('attribute')) if it doesn't exists it returns the ...
3
votes
1answer
3k views

Filtering error when using custom Varien object collection in admin grid

I have created a custom Varien object collection for my admin module (because the data is not from a db) and have got it successfully to show in an admin grid. I built the collection by using the ...