php,magento,e-commerce,magento-1.9
I finally found it the hard way that it's not good to create a module by yourself. If you make a mistake you could end up your precious time finding where things went wrong. Its best to install a module creator extension from Ultimate Module Creator or use a online...
jquery,magento,prototype,magento-1.9
This looks like jQuery and or prototype lib is missing or conflicting on your install. In your theme, you have to make sur that those 3 lines appear in first in the block of name head under the node <default> on the file app/design/frontend/your_package/your_theme/layout/page.xml and in that exact order. <action...
Are you using Firegento_MageSetup? Then the string is "Excl. %s Tax, excl. <a href=""%s"">Shipping Cost</a>" (you forgot to replace the price with the placeholder %s) Otherwise, find out how exactly it is translated in the template: search for __('excl. <a href= in your code base and you should find out....
To display the "out of stock" label on product view page, write the below code in the file app/design/frontend/rwd/default/template/catalog/product/view.phtml $stock = Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product); $qty $stock->getQty(); if($qty <= 0) { <span class="out-of-stock"><span>Sold Out</span></span> } And if you want the label on the category page, write in app/design/frontend/rwd/default/template/catalog/product/list.phtml NOTE : It is assumed...
I found solution for this. We can get this with below code all detail is store in table core_config_data so you use this $logo_src = Mage::getStoreConfig('design/header/logo_src', $store_id) $logo_alt = Mage::getStoreConfig('design/header/logo_alt', $store_id) ...
.htaccess,magento,magento-1.9,review,trailing-slash
Hope this work, try this rule instead RewriteCond %{REQUEST_URI} !\.(php|phtml|html?|ico|pdf|flv|jpg|jpeg|png|gif|svg|js|css|swf|otf|woff|ttf|eot|xml|GIF|sql)$ RewriteRule ^(.*)([^/])$ http://%{HTTP_HOST}/$1$2/ [L,R=301] This will add trailing slash to all url if the condition is meet. Note : this will redirect the ajax url in onepage checkout also, so if you are using SSL in onepage checkout, add slash...
Try this: <global> <blocks> <zeon_manufacturer> <rewrite> <adminhtml_manufacturer_edit_tab_form>MyModule_ZeonExt_Block_Adminhtml_Manufacturer_Edit_Tab_Form</adminhtml_manufacturer_edit_tab_form> </rewrite> </zeon_manufacturer> </blocks> </global> OR <global> <blocks> <manufacturer> <rewrite>...
Find the below easy steps to display the thumbnail image. Add this below code in your edit ->tab->form file ex: Package_Campaign_Block_Adminhtml_Campaign_Edit_Tab_Form $fieldset->addType('image','Package_Campaign_Block_Adminhtml_Campaign_Helper_Image'); Create the below helper class file to display the thumbnail image. class Package_Campaign_Block_Adminhtml_Campaign_Edit_Tab_Form extends Varien_Data_Form_Element_Abstract{ public function __construct($data) { parent::__construct($data); $this->setType('file'); } public function...
php,soap,magento-1.9,access-denied
previous i was using this address. either php or soapui works. http://localhost/magento/index.php/api/?wsdl now i am using this address in both my soapui and php. both are working now. http://localhost/magento/index.php/api/soap/?wsdl...
php,magento,attributes,magento-1.9
$collection = Mage::getModel('catalog/product')->getCollection(); $collection->addAttributeToSelect('*'); $collection->addAttributeToFilter('generatepdf','1'); ...
You can not set the 'limit' for catalog/product_list block in such a way. The best place (please correct me if there is a better place/event) is via the event 'core_block_abstract_prepare_layout_before'. This will allow you to instantiate the toolbar and change the limit. The code is easy and straightforward. Your observer...
php,magento,magento-1.9,magento-1.9.1
Try adding the product list update inside of the local.xml file after the mystore_site_index_shop block. Inside local.xml <mystore_site_index_shop> <update handle="product_list"/> </mystore_site_index_shop> --Edit-- Even though I was able to get this working using the method i posted above. The correct method from my understanding is to build your entire theme as...
php,jquery,ajax,magento,magento-1.9
You probably miss application initialization. if this is your entire php code: <?php $children = Mage::getModel('catalog/category')->getCategories($id); foreach ($children as $subcategory) { echo $subcategory->getName(); } ?> you need to add Mage.php and start Mage::app(); <?php require_once ('app/Mage.php'); Mage::app(); $children = Mage::getModel('catalog/category')->getCategories($id); foreach ($children as $subcategory) { echo $subcategory->getName(); } ?> it...
Found a solution. Magento connect installs the files into the RWD folder by default. If, like me, you use a custom theme - copy skin/frontend/rwd/default/css/webandpeople/ to your theme folder. Hope this helps others....
There is no setting in the admin for this. You must edit your template file. Go into app/design/frontend/your-theme/template/catalog/view.phtml and add it there. ...
If anyone else is having this problem. I couldn't find an official way to stop pagination, so I found a work around. In the themes local.xml file I defined a new range(100) for the pagination, and set to the default. Then I hide the toolbars via the list.phtml file. This...
In order to register the custom tab in the new product and the edit product I changed my code to app/design/adminhtml/default/default/layout/customtabs.xml <?xml version="1.0"?> <layout> <adminhtml_catalog_product_new> <reference name="product_tabs"> <action method="addTab"> <name>my_custom_tab</name> <block>customtabs/adminhtml_catalog_product_tab</block> </action> </reference> </adminhtml_catalog_product_new> <adminhtml_catalog_product_edit>...
magento,magento-1.9,magento-1.9.1
I had the same problem. I have partially solved this problem by running a reinstall of all 1.9.1.1 components that installed successfully and setting the components you listed above to upgrade at the same time. This finally upgraded the components together. However, Magento_Mobile 1.9.1.0 package is still getting this error...
By default the value is null in getActiveCarriers getActiveCarriers($store = null) So you can pass the store as a parameter. You can get the current store with Mage::app()->getStore()->getStoreId() So the function you will use is Mage::getSingleton('shipping/config')->getActiveCarriers(Mage::app()->getStore()->getStoreId()) ...
here is the code you are looking for;) <?php $loadProductData = Mage::getModel('catalog/product')->load($productId); $quote = Mage::getSingleton('checkout/session')->getQuote(); $OrderquoteItem = Mage::getModel('sales/quote_item'); $quoteItem = $OrderquoteItem->setProduct($loadProductData); //custom options to show user on cart page $a_options = array( 'options' => array( 'label' => 'OptionLabel :', 'value' => "OptionaValue", )); //add above options array to this cart...
magento,category,product,magento-1.9
You need to find the category template, which should be in your theme directory here; app/design/frontend/XXX/YYY/template/catalog/category/view.phtml Where XXX YYY is the directory of the template you are using. If there is no view.phtml file in there, magento will fall back to the base version here; app/design/frontend/base/default/template/catalog/category/view.phtml I suggest you copy...
For this i think creating a custom option for the product would be the best idea. It is easier to create and very helful in these type of situation. Think about that. If you have same options for other product than there is an extension called Custom Option replicator which...
magento,search,dynamic,order,magento-1.9
For this you need to follow the following steps: Create a form to search for order details You can add your custom code on your desired location. Then you need to submit your search form on the URL where you want to show the order details. there must be one...
below i provide the code snippet to show the logic what you should do.This is not the complete code but should provide the idea how to achieve your requirement. <?php $count=0; $count1=0; ?> <?php foreach ($_productCollection as $_product): ?> <!-- get current category of the product--> <?php $currentCategory = $_product->getCategoryIds();...
It seems that you have Magento Compilation enabled. Try after disabling it from backend.
magento,magento-1.8,magento-1.9
etc/system.xml: <date translate="label"> <label>Date</label> <frontend_type>text</frontend_type> <frontend_model>your_module/date</frontend_model> <sort_order>1</sort_order> <show_in_default>1</show_in_default> <show_in_website>1</show_in_website> <show_in_store>1</show_in_store> </date> Block/Date.php <?php class Your_Module_Block_Date extends Mage_Adminhtml_Block_System_Config_Form_Field { protected function...
magento,e-commerce,magento-1.9,magento-1.9.1,amazon-payments
You took the client ID that was given to you by wizard. I ran into the same problem. Go to your Amazon SellerCenter Account. Then from Top right drop-down list select Login with Amazon. From right side select the Application you want the information for. Under Web Settings take the...
magento,search,order,magento-1.9
In magento every order has two IDs Order ID - is Magento internal order ID Order Increment ID - is the ID display on communicate (email, etc) with your customer See Confusion with order id, order increment id and I am not getting order id as 20001201 To load order...
php,magento,paypal,magento-1.9
You can try to override the class Mage_Paypal_Block_Standard_Redirect into something like this: protected function _toHtml() { $standard = Mage::getModel('paypal/standard'); //... foreach ($standard->getStandardCheckoutFormFields() as $field=>$value) { if ($field == 'REASON_CODE') { $myvalue = Mage::getSingleton('customer/session')->getCustomer()->getMyvalue(); $value .= $myvalue; } $form->addField($field, 'hidden', array('name'=>$field, 'value'=>$value)); } //... return $html; } I have added a...
magento,magento-1.7,magento-1.8,magento-1.9
There no events is exits name of add_to_cart_before. You can use other event like: checkout_cart_save_before checkout_cart_add_product_complete etc ...
Best practices Your config.xml files seems like this <?xml version="1.0" encoding="UTF-8"?> <config> <modules> <Mynamespace_CustomContacts> <version>0.1.0</version> </Mynamespace_CustomContacts> </modules> <frontend> <routers> <contacts> <args> <modules> <Mynamespace_CustomContacts before="Mage_Contacts">Mynamespace_CustomContacts</Mynamespace_CustomContacts> </modules> </args> </contacts> </routers>...
Solved! this is really embarrising... the solution was in the Admin Panel all the time. Magento gives the option to choose the country of the states list (and if you want to set that field as required, too). In my case is was setted to United States (which is NOT...
Found! :) It's extension conflicts! How to resolve: Check extension are conflicted with this free magento module: http://www.magentocommerce.com/magento-connect/modules-conflict-detector.html Locate conflicted extension and use one solution for resolve (read bottom "How do I resolve conflicts?") Clear cache In my case, a simply add extension order into the "depends" capability: <depends> <Mage_Catalog...
You could create two Custom Dimensions, each for Type and another for Country As per your need define the appropriate Scope of the dimension, a Hit level or Session level scope would be appropriate. You need to push custom dimensions into Google Analytics i.e. additonal JS code in your site....
magento,layout,block,magento-1.9
Here are two things I notice which should be changed: Your layout update file should have a unique name that won’t conflict with existing modules. In your config.xml you have specified <file>local.xml</file>. The problem with this is, local.xml will already be loaded automatically by Magento. So you should not use...
Issue was with hosting company. They had failover issues which locked the filesystem to read only!
if you are working with user defined module, then in frontend layout xml, you can write code like ... <catalog_product_view> <update handle="content"/> <reference name="content"> <block type="tabledata/tabledata" after="-" name="tabledata" template="tabledata/tabledata.phtml" /> </reference> </catalog_product_view> If not using module, then go to catalog layout and override the layout file, and add the above...
php,function,magento,controller,magento-1.9
$this->renderLayout(); get layout output and process this output to response body and append response $this->loadLayout(); creates XML tree at backend....
css,magento,permissions,magento-1.9
This could be due to 2 things, Permission Issue : cannot access the css files. Incorrect base Url. Try inspecting the links in the browser, and check if you can access the raw CSS files....
Here's a working standalone file: <?php require_once( 'app/Mage.php' ); umask(0); Mage::app('default'); // This has to run to authenticate customer and checkout session calls. Mage::getSingleton('core/session', array('name' => 'frontend')); // Get any customer model you desire. $oSession = Mage::getSingleton( 'customer/session' ); $oCustomer = $oSession->getCustomer(); $oCheckout = Mage::getSingleton( 'checkout/session' ); $oQuote = $oCheckout->getQuote();...
This is not a definitive answer, just a note of what i've done in the meantime: Edit app/design/frontend/base/default/template/catalog/product/list.phtml In the file you'll find two instances of "img src", for each of those two src attributes I changed the value to: src="getSmallImage() ?>" Edit app/design/frontend/base/default/template/catalog/product/view/media.phtml Search for id="image" changed the src...
magento,import,export,magento-1.9,magento-1.9.1
Try multiselect attributes with below format [data][space][comma][space][data][space]... So for your example: 13 , 14 ...
Within entities tag you can define another table with tag. For example <entities> <test> <table>pfay_test</table> </test> <test2> <table>pfay_test2</table> </test2> </entities> ...
php,email,magento,backend,magento-1.9
please check the codes below. any way this is my first answer on stackoverflow. $templateName = "Tests"; $templateID = Mage::getModel('core/email_template')->loadByCode($templateName)->getId(); ...
magento,magento-1.9,magento-1.9.1
Magento by default wraps prices in <span> elements with class "price-excluding-tax" or "price-including-tax". You can just use javascript to show or hide them. For example, if you're using jQuery: if(exTax radio button is clicked){ jQuery('.price-including-tax').hide(); jQuery('.price-excluding-tax').show(); }else{ jQuery('.price-including-tax').show(); jQuery('.price-excluding-tax').hide(); } Also make sure Magento is configured to display both including...
php,magento,magento-1.8,magento-1.9,magento-1.9.1
Add these headers and pass it: $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $to = "[email protected]"; $subject = "Product in demand"; $txt = "Hello Admin.'<br />Customer'.".$pincode."wants to be notified when the below product is available in our inventory<br /><p>Item Name :".$name."</p><p>SKU :".$sku."</p><p> Search Code...
I haven´t looked at the new RWD theme but there is some good "boilerplate" themes out there. https://github.com/webcomm/magento-boilerplate Based on Bootstrap 3 https://github.com/zeljkoprsa/waterlee-boilerplate Based on ZURB Foundation 5...
Try changing <model>cron/cron::oredrStatus</model> to <model>satish_cron/cron::oredrStatus</model>
facebook-opengraph,magento-1.9
First of all, correct the URL and make sure there is no misplaced whitespace, with http or https (if you got a certificate): <meta property="og:image" content="https://www.rekinza.com/images/rekinza-fb_logo.jpg"/> Then, check out the specifications for Open Graph images: https://developers.facebook.com/docs/sharing/best-practices#images...
javascript,css,layout,magento-1.9
For css you need to include the files in xml file as following: <action method="addItem"> <type>skin_css</type> <name>css/html5boxplayer.css</name> </action> For js you need to do the same operation as following: <action method="addItem"> <type>skin_js</type> <name>js/html5lightbox.js</name> </action> Pay attention for type declaration. Of course all the files should be placed on their specific...
Sadly, I don't think there is a way of doing that. Events in Magento are dispatched trough Mage::dispatchEvent() The definition of this function can be found in app/Mage.php around line 445 /** * Dispatch event * * Calls all observer callbacks registered for this event * and multiple observers matching...
php,magento,search,magento-1.9
I have solved the issue of search not working. I tried all the above things stated in the question comments, but after that I came up with a solution to compare the catalogsearch.xml file with base catalogsearch.xml file which solved my issue. The issue was I had commented two blocks...
Write this code in your module config.xml file. <config> <adminhtml> <menu> <cms> <children> <feedback module="feedback"> <title>Feedback</title> <sort_order>10</sort_order> <action>feedback/adminhtml_feedback</action> </feedback > </children> </cms> </menu> </adminhtml> </config> ...
Ok, so for your information, ngnix is not parsing htaccess at all and Magento heavily rely on htaccess for security. Before even considering your problem, please know that, if your server have anything else than a local access, you are at risk, because, as you can see in the app/etc/local.xml...
magento,login,admin,backend,magento-1.9
If everything works on the front end like you said, and you just can't log into the admin, most probably you have the original adminhtml cookie pointing to your original domain, (www.site.com) and an extra adminhtml cookie for your development domain (subdomain.site.com). In Chrome, in Developer Tools (right-click on any...
html,twitter-bootstrap,magento-1.9
I experienced this exact problem today (although I was using Spree rather than Magento). My mistake was placing the bootstrap modal html within an existing form element. Chrome automatically removes form tags within an existing form element. See question here. Moving your modal window to the bottom of the body...
I have found out many solutions to it and created a blog to how I solved this issue. You can find solutions here at Magento Search solution...
magento,magento-1.9,magento-1.9.1
Sales order grid is build from sales_flat_order_grid table. The column order_campaign_params exists in sales_flat_order table and not sales_flat_order_grid table. So you need to MySQL join with sales_flat_order_grid table sales_flat_order table like below: $select = $collection->getSelect(); $select->joinLeft(array('order' => Mage::getModel('core/resource')->getTableName('sales/order')), 'order.entity_id=main_table.entity_id', array('order_campaign_params' => 'order_campaign_params')); $select->joinLeft(array('custeav'...
This works for me : Setup your URLs as “pointers” – all pointing to your Magento installation’s root directory Navigate to your Magento Admin under System > Configuration > Web > Url Options and select “No” for “Auto-redirect to Base URL”. That’s it! It should work exactly how you want...
magento,magento-1.8,magento-1.9
You need to use customer_login On the Mage_Customer_Model_Session model's method setCustomerAsLoggedIn() the event customer_login is dispatched. config.xml <customer_login> <observers> <yourobservername> <type>model</type> <class>yourmodule/path_to_class</class> <method>customerLogin</method> </yourobservername> </observers> </customer_login> and your Observer class YourCompany_YourModule_Model_Observer { public function customerLogin($observer) { $customer =...
magento,magento-1.7,magento-1.9
<frontend> <events> <controller_action_layout_load_before> <observers> <magento_test> <class>magento_test/observer</class> <method>changeLayoutEvent</method> </magento_test> </observers> </controller_action_layout_load_before> </events> </frontend> public function changeLayoutEvent($observer) { if(preg_match('/(?i)msie [1-10]/',$_SERVER['HTTP_USER_AGENT'])) { // if IE<=10 Mage::getDesign()->setArea('frontend')...
xml,magento,layout,magento-1.9
The <remove> directive does not remove blocks, but instead sets a flag to ignore block rendering of itself and all of it's children. If you wish to relocate a block, you need to use the <action> directive with the method of insert or append. <reference name="right> <action method="unsetChild"> <name>right.adjreminder</name> </action>...
Fixed it guys! restarted the memcached service on the server....
magento,shopping-cart,magento-1.9,magento-rules,magento-dev
You can set this using Catalog Price Rules. You can access this in backend from Top Navigation Promotions >> Catalog Price Rules. You can specify products valid for this rule using their attribute value. Here is the screenshot for this: ...
After i searched for way to long i tried to just load in an block that creates a form. So i simply loaded that block and it was done. No html just clean magento code: In your phtml file: echo $this->getLayout()->createBlock('module/adminhtml_dir_blockname')->toHtml(); And offcourse your block: <?php class Foo_Module_Block_Adminhtml_Dir_Blockname extends Mage_Adminhtml_Block_Widget_Form...
php,magento,navigation,magento-1.9
I have solved this problem. During my R&D I did found multiple solutions of the problem which are listed below. The basic and most easy solution is https://www.youtube.com/watch?v=gt1ZF8mQxk4 You can also achieve the same thing by creating a content block and including following code: <?php $_category = $this->getCurrentCategory(); $collection =...
I will show you how to convert dropdown and multi-select options into table format. This is the code that do the trick. <?php $product = Mage::Registry('current_product'); $options = $product->getOptions(); //check for option exists if($options): foreach ($options as $option) : //table format allows only for select options if($option->getType()== Mage_Catalog_Model_Product_Option::OPTION_TYPE_DROP_DOWN || $option->getType()...
Main problem was in extension Sugarcode_Bestsellersort so disabled it in xml and I got happiness. Now fully working answer. local.xml <catalog_category_layered> <reference name="breadcrumbs"> <block type="catalog/product_list" name="toolbar_only" template="catalog/product/list/toolbar_only.phtml"> <block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml"></block> <action method="setToolbarBlockName">...
php,html,magento,templates,magento-1.9
without seeing its had to infer solution. possibilities are: 1) There can be an issue of improperly selected Magento Package. system->configuration->Design->Package 2) If you want to see which template using on Template Path hints system->configuration-> Developer -> Debug -> Template Path Hints select to on clear cache and refresh the...
php,xml,magento,helper,magento-1.9
I have solved it, I needed to add two file directories that were in different folders. Means in first step I need to install app,js,media,skin etc, and in second step I need to install etc modules also. Thanks guys.
magento,payment-gateway,magento-1.9,payment-method
I don't think you have to create another payment method for this. Since I didn't see your code. So I can tell the logic only. Just disable minimum order. So we can place all order using this payment method. And add simple logic in your code that verify the order...
Perhaps since you're rewriting the catalog module, you need your translates to look like this: <translate> <modules> <Mage_Catalog> <files> <feno>Feno_Catalog.csv</feno> <!-- name it something other than default, to avoid conflict with Mage_Catalog --> </files> </Mage_Catalog> </modules> </translate> Also, you can try looking in app/code/core/Mage/Core/Model/Translate.php around line 131-134. That is where...