In Magento there is a functionality where you can define the order of total calculation by specifing before and after which totals a total should be run. I added a custom total and if I add the following lines to the config.xml, the sorting is wrong. Wrong means: tax_shipping comes before shipping. This causes the [...]
Archive: magento development
I am trying to create a WYSIWGY field in category page in magento backend but it doesn’t seem to work. I am writing an install script as: ‘fabric_and_care’ => array( ‘type’ => ‘text’, ‘backend’ => ”, ‘frontend’ => ”, ‘label’ => ‘Fabric and Care Instructions’, ‘input’ => ‘textarea’, ‘class’ => ”, ‘visible’ => true, ‘required’ [...]
I have a problem with Magento. My admin part doesn’t work because here is what I found in the source: <script type=”text/javascript” src=”/var/www/vhosts/vps355363-1.lcnservers.com/myshoponline.co.uk/tesc/js/prototype/prototype.js”></script> <script type=”text/javascript” src=”/var/www/vhosts/vps355363-1.lcnservers.com/myshoponline.co.uk/tesc/js/prototype/window.js”></script> <script type=”text/javascript” src=”/var/www/vhosts/vps355363-1.lcnservers.com/myshoponline.co.uk/tesc/js/scriptaculous/builder.js”></script> <script type=”text/javascript” src=”/var/www/vhosts/vps355363-1.lcnservers.com/myshoponline.co.uk/tesc/js/scriptaculous/effects.js”></script> instead of <script type=”text/javascript” src=”http://myshoponline.co.uk/tesc/js/prototype/prototype.js”></script> <script type=”text/javascript” src=”http://myshoponline.co.uk/tesc/js/prototype/window.js”></script> <script type=”text/javascript” src=”http://myshoponline.co.uk/tesc/js/scriptaculous/builder.js”></script> <script type=”text/javascript” src=”http://myshoponline.co.uk/tesc/js/scriptaculous/effects.js”></script> Can someone tell me why it does this and [...]
I want to install magento shoping cart v 1.4.0.1 with WP Blog on my local server.I want to upgrade the Magento version 1.4.0.1 to 1.6* first locally. But I found the following Error during the installation: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘magento.wp_options’ doesn’t exist Trace: 0 /opt/lampp/htdocs/hassan/edigital/lib/Zend/Db/Statement.php(300): Zend_Db_Statement_Pdo->_execute(Array) 1 /opt/lampp/htdocs/hassan/edigital/lib/Zend/Db/Adapter/Abstract.php(468): [...]
I want to attach a gallery design as a custom option to the product while adding the product to the cart. I have online Design gallery and I am already showing this gallery to the users. I want user to select a design from the gallery and attach that design with a product while adding [...]
I want every user, that registers on my Magento instance, to upload a certificate that shows me that he registered a business. I already added the fields in the template. But how can I fetch the file and save the filename / contents in the customer record? Is there a way to extend the functionality [...]
Hi I developed a magento payment module, It shows in Admin area but not in Frontend Store Check out page. folder structure app/local/Company/Cashondelivery/Block app/local/Company/Cashondelivery/Model app/local/Company/Cashondelivery/controller app/local/Company/Cashondelivery/etc app/local/Company/Cashondelivery/helpers The etc/config.xml <?xml version=”1.0″?> <config> <modules> <Company_Cashondelivery> <!– declare module’s version information for database updates –> <version>0.1.0</version> </Company_Cashondelivery> </modules> <global> <!– declare model group for new module –> [...]
I’m using the following code to get some data from a table. $collection = Mage::getModel(‘bannerslider/bannerslider’)->getCollection() ->addFieldToFilter(‘status’,1) ->addFieldToFilter(‘is_home’,$this->_display) ->addOrder(‘position’, ‘ASC’) ; Just for my curiosity, I want to check the query that is executed here and I’m echo using this code $collection->printLogQuery(true); var_dump((string)$collection->getSelect()); Now, my problem is that the string SELECT `main_table`.* FROM `bannerslider` AS `main_table` [...]
I’ve created a new product type and need to create and associate some custom attributes with it. Is there a way it can be done in the setup code? Update: When I say setup code I mean in the “module/sql/module_setup/mysql4-install-0.1.0.php” file for when Magento first uses the module. Custom attributes for custom product type Possibly [...]
I need to get the parent configurable product from a simple product, even if the parent product is marked as disabled. I also need to get the status of the configurable product (enabled or disabled). Right now I’m getting the parent product like this: $parentIds = Mage::getResourceSingleton(‘catalog/product_type_configurable’)->getParentIdsByChild($product->getId()); if (isset($parentIds[0])) { $product = Mage::getModel(‘catalog/product’)->load($parentIds[0]); } This [...]