magento-1.7

Trying to upgrade from Magento 1.6.2.0 to 1.7.0.2 via downloader fails

江枫思渺然 提交于 2020-01-06 17:59:21
问题 I've tried to upgrade my existing 1.6.2.0-Installation to 1.7.0.2 via the downloader by the following command: ./mage upgrade http://connect20.magentocommerce.com/community Mage_All_Latest --force This results in the following message: Already installed: community/Mage_All_Latest 1.6.2.0, skipping [...] [...] But if I'm checking "./mage list-upgrades" I can see that there is an update for Mage_All_Latest: Mage_All_Latest: 1.6.2.0 => 1.7.0.2 Next I tried to install 1.7.0.2 by the following

Magento backend, capture onclick events on different elements

谁说胖子不能爱 提交于 2020-01-06 06:53:26
问题 I've a working backend module with various forms to manage several different tables. On one of the forms I have a radio button group ( radios element on Magento). Here is the code snippet for this radio group: //radio group $fieldset->addField('radio_group', 'radios', array( 'label' => Mage::helper('banners')->__('Select campaign type'), 'name' => 'title', 'onclick' => '', 'onchange' => '', 'value' => '1', 'values' => array( array('value'=>'1','label'=>'Imagen'), array('value'=>'2','label'=>

How to Get select option parameters in Magento Cart page

可紊 提交于 2020-01-05 08:47:09
问题 I have a multi option in single product. How can i get all the product option parameters in cart page. please advise. cart page already loading in default.phtml page. this page call to renderer page. i am trying many ways but not working. Please Advise i can print the configureaction() in Cart controller page public function configureAction() { // Extract item and product to configure $id = (int) $this->getRequest()->getParam('id'); $projectid = (int) $this->getRequest()->getParam('projectid'

How to display cutom options dropdown on the product page Magento?

随声附和 提交于 2020-01-05 04:25:46
问题 I have a custom made Magento product page display, so there's no where selectors of color,size ... etc. In the product details -> custom options, I've made the Color option, and right now if i try to buy that product, is required to select the color but there's no drop down for it right now. also i can't see the error of the option is not selected in the product page, i can see it only when i access the cart which is empty but it shows the errors. so what i need is: 1.How to show the custom

Magento filter products by custom attributes

不想你离开。 提交于 2020-01-04 03:01:12
问题 I think I tried everything and read everything, but I'm pretty confused about filtering product collection in Magento. I created a new product attribute 'syncron_state', but I can't manage to filter the product_collection by this filter. When I try to filter by core attributes it works and that's clear. $productsCollection = Mage::getResourceModel('catalog/product_collection') ->addAttributeToFilter('sku', array('eq' => '000001')) ->setCurPage(1)->setPageSize(10) ->load(); But if I try to

Magento Module SQL does not run

半城伤御伤魂 提交于 2020-01-04 01:53:05
问题 My module will setup correctly and all the relavant files are installed correctly. But the database tables are not being created. I have followed this tutorial. My config xml is as below. <?xml version="1.0"?> <config> <modules> <Myname_Mygateway> <version>1.0.0</version> </Myname_Mygateway> </modules> <global> <resources> <Mygateway_setup> <setup> <module>Myname_Mygateway</module> </setup> <connection> <use>core_setup</use> </connection> </Mygateway_setup> <Mygateway_write> <connection> <use

Need help writing to multiple database through single Magento installation

Deadly 提交于 2020-01-03 05:34:11
问题 I'm new to Magento (I am loving it) and developing a desktop application to run side-by-side with our Magento CE 1.7 store. The desktop application will have it’s own database but we need to fetch almost all information from magento. So, I have already copied the whole database of magento and used it in the application’s database. What I need is to write in the application’s database too when there is something written in the magento’s database through magento’s site. We do not need to read

Programmatically created configurable item doesn't show options until I manually save it in the admin panel

二次信任 提交于 2020-01-02 07:47:10
问题 I am creating a a configurable product in code (am doing an import module) and everything looks Ok. The attributes are added, the simple stock items are added to the configurable product with no problems however, when I view the item on the font end it shows as a simple product would (without options) but when I save open and save the product in the admin panel it then shows the options on the front end correctly. I am using the following code before and after the re-save of the item to check

Correct usage of addAttributeToFilter in Magento

余生颓废 提交于 2020-01-02 06:59:28
问题 I'm having issues filtering a product collection with a customer attribute using 'addAttributeToFilter.' I have a dropdown menu attribute with the options 'yes' and 'no' and I'd like to to show only a list of products with the attribute set to 'yes.' I'm currently using: public function getReleasesCollection() { $products = Mage::getModel('catalog/product')->getCollection() ->addAttributeToFilter('preorder', array ('eq' => 1)) ->addAttributeToSelect('name') ->addAttributeToSelect('releasedate

Disable a Magento mobile theme for tablet & iPad

末鹿安然 提交于 2020-01-02 05:12:06
问题 I made a website that include desktop as well as mobile theme. It works perfectly fine, but in tablet & iPad it shows mobile theme that I don't want. so I use the following exception (iPhone|iPod|BlackBerry|Pre|Palm|Googlebot-Mobile|mobi|Safari Mobile|Windows Mobile|Android|Opera Mini|mobile)|(!iPad|Silk|Kindle|Xoom|SCH-I800|Tablet) but now also it shows mobile theme. Please help me how can I call desktop theme in tablet & iPad. 回答1: I try a lot of strings. At last by using this string: