Questions tagged [php]

This tag is used for questions that involve PHP code in any way. So as soon there is a PHP Exception returned or error report generated, this question qualifies to be tagged with PHP.

Filter by
Sorted by
Tagged with
0
votes
1answer
83 views

access parent class on class overwrites in magento, from a sibling

It is required to overwrite customer_resource class. I added required config.xml options for resource rewriting, but when overwritten class method calls parent class method from itself, it actually ...
0
votes
0answers
43 views

Magento plugins Disable/enable problems

I am noticing really weird problems after installing plugins. Sometimes the plugins get disappeared in the backend when we refresh the backend and sometimes it appears in the backend. I havent used ...
0
votes
1answer
276 views

Magento Admin Session Issue

I am working on simple php script with email functionality which is depends on admin login in magento admin panel. I use this code for check session of admin in my php file. if (Mage::getSingleton('...
0
votes
1answer
243 views

Magento change sort order of selective categories in Admin

I am trying to change sort order of sub-categories from the array of category id's following is my code. $catOrder = array(47,54,66,88,89); $position = 1; foreach ($catOrder as $catId) { $...
0
votes
0answers
65 views

Add sub categories option is not working in magento?

when I am going to add new sub categories and clicking on add sub categories only page refresh and new adding option is not showing please help. I am using 1.9.2 magento.
0
votes
1answer
60 views

Pull variables from sucess page for Google trusted store

i want to pull variables from the order confirmation/sucess page and pass these variables to Google trusted store script. Trusted store script is of this format MERCHANT_ORDER_ID DOMAIN ...
0
votes
1answer
83 views

How to change array index position in Magento

Actually i used this code in my live site <?php $path = $_SERVER["HTTP_REFERER"]; $pathParts = explode('/', $path); if (count($pathParts) == 3) { echo $currParentCategory = ...
0
votes
0answers
444 views

How to Fetch Product child Function Outside External file in Magento

I want to fetch all child function of magento outside of it.I have CORE_PHP with some jquery functionality and php function,In that Files,I need to add Product Children Function of magento into that ...
0
votes
1answer
289 views

Want to remove index.php from the URL

Hi My site name is xpressbuyer.com. I have tried almost all solution, but nothing seems to be working. Below things i have done. Add code in .htaccess Set Use Web Server Rewrites to YES in Search ...
0
votes
1answer
825 views

how to get Category description to the bottom of the page magento 1.9 [duplicate]

How can you move the categories description to the bottom . all the answers on the web say go to theme/category/view.phtml search description ...... copy that and replace it at the botto and voilla ...
0
votes
1answer
185 views

How to add select menu to shipping method and display the inserted text in the Admin Panel

I know my question is not clearly correct, but i want to ask. I am using Magento 1.9.0.1. I am working on a custom shipping method module and i've created it without any problems. When i go to the ...
0
votes
1answer
320 views

Products always in stock - even when out of stock?

So, after trawling through the internet for days and trying hundreds of fixes - i really can't understand why this is happening... My store configuration is set to show out of stock items and i've ...
0
votes
2answers
316 views

Need Help to make some customization code for stop popup from showing in the mobile mode?

Please, need some help to stop the popup from showing in mobile devices. <script type="text/javascript"> jQuery(function($) { var check_cookie = $.cookie('newsletter_popup'); ...
0
votes
1answer
82 views

Hardcoded link stuck in navigation magento

I can't find the exact code I used, all I know is I put some code in a cms block and also wrote the link to the block in top.phtml and topmenu.phtml in both rwd and base. I've gone through all these ...
0
votes
1answer
2k views

Magento custom module with custom database table admin page [closed]

I wants to view your custom table datas in admin panel
0
votes
1answer
28 views

?&price=10-100 Has no effect

I'm trying to filter my products using the method in the title, but when I run it, nothing happens. Is this not the way to filter products by price?
0
votes
0answers
957 views

Invalid api path magento buit in api

I have created customized api for magento. Some built in api's call like "catalogCategoryTree" giving error: "Invalid api path" below are the files which I have created for custom api api.xml <?...
0
votes
1answer
363 views

getAllowWriteReviewFlag() Returns False so Can't write reviews

OK so we're in magento 1.8.1.0 and for some reason the following logic returns false all the time <?php if ($this->getAllowWriteReviewFlag()): ?> Even if I log in, I have the option "System ...
0
votes
1answer
157 views

Magento Chinese Locale is not showing

We are using Magento Enterprise edition. We can not see the Chinese language option in locale (System -> Configuration -> General -> Locale Options -> Locale). As shown in the attached picture. Can ...
0
votes
1answer
237 views

Adminhtml - How to add custom template for custom product attribute in magento

I want to add field image upload, file upload pdf, textarea field, date field How can I add these fields in custom templatefor custom product attribute. I saw below link Adminhtml - How to add ...
0
votes
1answer
207 views

Magento newsletter queue grid recipients column

i am extend the newsletter module in mangento(1.9), in the newsletter queue grid having column name recipients, but in table don't have a column name like that. May i know from where that field value ...
0
votes
1answer
315 views

magento admin page can not able to login [duplicate]

i am working with magento(1.9), now i can not able to login to admin as well as front end. Here i attached the screen for your further reference.
0
votes
1answer
33 views

Magento Products cannot be saved

I'm trying to add new product in my Magento theme, but it cannot be added the button (save) that add the product doesn't work. this problem appeared suddenly although my website was running without ...
0
votes
0answers
26 views

currency stating which country first

I have just realized that my site has somehow started displaying a products price with 'US' infront of it. I am not sure why all of a sudden its doing this never the less is there a way to quickly ...
0
votes
1answer
39 views

How do I stop customers on Magento from using the same email on different store views?

I have a wholesale and retail version of my store. I have these setup on Magento as different store views, which means they can access the same database, which makes it simple to stock manage etc. My ...
0
votes
2answers
71 views

Is the order notification email avaiable by default in Magento 1.9.1 version?

but in magento 1.9.1 the order notification email are available by default ?, because It does not work
0
votes
1answer
434 views

profile image access forbidden

I have created a custom customer attribute (profile_image) when I display it in the profile page it throws error Forbidden You don't have permission to access /media/customer/1/0/100876954-...
0
votes
0answers
657 views

Export all product media gallery paths?

We are currently working on a Magento Migration and have so far exported all products to CSV where our client has been making amendments so that we can import the data into a new version of Magento ...
0
votes
1answer
317 views

hide empty attributes from product page attributes tab

i have this code to hide product attributes which has no value (empty attributes) from frontend: <?php $_attribute = $_product->getResource()->getAttribute($_data['code']); if (!is_null($...
0
votes
1answer
812 views

Custom extension not displaying additional fee in admin order view page

I am currently developing a custom extension and i am stucked at the admin order view page. Let me describe my problem with images so you can get it easier. Here is a screenshot of the page before ...
0
votes
1answer
489 views

Custom Helper issue with fopen and fwrite [closed]

I am currently working on a custom extension to provide server-side LESS compiling (beyond what the current offerings are) for Magento 1x installs. I have the extension 99% done with the exception of ...
0
votes
1answer
132 views

Adjusting additional_info info before adding to sales_flat_order_payment

I want to remove some information from being added to the serialized column called additional_info before it is saved to the sales_flat_order_payment I see that there is a function called: ...
0
votes
1answer
904 views

Magento : add custom php code into product description

I wrote a php script that resizes jpeg images provided by external URL. The script works well on my server with a test page, but it seems that Magento doesn't allow custom php code into product ...
0
votes
1answer
719 views

Magento Custom theme template file is not calling

I create a new theme in magento like below Namespace : ndot , Template : english, then in admin configuration i defined this is my theme. Copy the layout files form app/design/frontend/base/default/...
0
votes
1answer
615 views

Custom module block file function is not called

config.xml : <config> <modules> <Ndot_Helloworld> <version>0.1.0</version> </Ndot_Helloworld> </modules&...
0
votes
0answers
496 views

Add a disable checkbox to Magento Product Custom Option

I want to add a checkbox to each product custom option to disable/enable that custom option. i know that i can remove custom options which i don't need. but some times i need to remove a custom option ...
0
votes
0answers
34 views

How to send email on order status change [duplicate]

i'm using Magento 1.9.0.1. I've created a function for mass order status change. Here is my code: public function NewMass1Action() { $orderIds = $this->getRequest()->getPost('order_ids', ...
0
votes
1answer
81 views

Save data in Magento from outside [closed]

I have created one module in magento 1.9. There is a requirement to save data from outside the root folder. Can any one help me in solving this. I have connected this using the following code. ...
0
votes
2answers
190 views

How can I have different catalog image sizes for different categories

I am building the website cuff and collar - www.cuffandcollar.com.au. There are two different categories, one being tailor made shirts, the other being bow ties. The tailor made shirts look great ...
0
votes
2answers
38 views

How to recognize which form is calling the saveAction?

I currently have two forms, each on a different page, and each with a different model (Each model links to its own table in the database), in the same adminhtml module. My structure is as follows: ...
0
votes
2answers
146 views

Unable to Install New Theme. Dashboard goes blank

I m running a magento site with default theme and products loading at the main page. Now i m trying to get new theme for which i copied app/themename directory to app/design/frontend/default and skin/...
0
votes
1answer
685 views

email confirm order not function

in my store magento 1.9.1 if buy a product not send email, but normal contact form function , i have follow this guide New order email confirmation not being sent and after this have solved for email ...
0
votes
2answers
885 views

Problem with quotation marks on PHP export

I could use your help once again... I'm currently building a php export to hand our products off to a comparison website. One of their requirements is that every string is wrapped in double quotes. I'...
0
votes
1answer
756 views

Add Minimum Order Total to a shipping method [duplicate]

How to add Minimum Order Total price to a shipping method just like payment methods?
0
votes
1answer
417 views

Magento : Custom Options fields position

Can you help me how can I change the position of Custom Options on product page. I mean: First product-options fields are displayed, then add_to_cart fields. I'm Very appreciated for your help. ...
0
votes
1answer
240 views

hide qty box from out of stock product page [closed]

i made a little bit changes in qty box in my view.phtml page. then my qty box won't hide in out of stock product pages. this is my view.phtml : <?php $_helper = $this->helper('catalog/output');...
0
votes
2answers
766 views

Magento Custom field in order grid

I want to add a custom column in magento order grid which should have a input field to populate. This is for screen purpose only so that agent can see information quickly and populate it. customer ...
0
votes
1answer
3k views

Magento cart is always empty on chrome and opera

After i add some products to card and i open cart page it shows "the cart is empty". it just happens in chrome and opera; but every thing is ok in firefox. i have checked cookie management and every ...
0
votes
0answers
112 views

API V1 - Multicall updates only first digit

I am trying to update the inventory using multiCall, but it seems that it's only taking the first digit. Here is my php code: $stockItemData = array( 'sku' => 'somesku-30', 'qty' => '32'...
0
votes
1answer
302 views

Conditional upsell message

I have my upsells in a block on my product page as default but I would like to display a message or custom block in the same position as my upsells would go if a product has no upsells products ie "...