magento-1.7

Magento CE 1.7.0.2 – Imported products do not show up in frontend

╄→尐↘猪︶ㄣ 提交于 2019-12-09 13:33:02
问题 I've been battling with this issue for the last week now, and am really hoping someone here might be able to help me with it. After repeatedly importing products from a CSV generated by a different (and slightly older) Magento store, using both the Import and the Dataflow/Import All Products tools, I can get them to show up in the backend , seemingly with all the data intact and with images and everything, but they simply will not show up in the frontend . It seems that the only way to make

How do I get the category ids that a product is in with respect to the store that I'm currently on

烈酒焚心 提交于 2019-12-09 13:21:14
问题 I'm on a product page and have the product object but when I try to get the category ids using: $_product->getCategoryIds(); or: $_product->getResource()->getAttribute('category_ids')->getFrontend()->getValue($_product); it gets me all the category ids and I just want the ones for the store I'm on. It's a multistore environment so hence my problem. Everything else seems ok and the category list works fine. This is my only problem. Can anyone help? 回答1: Pretty similar to Alans answer, maybe a

importing configurable products in Magento from CSV

守給你的承諾、 提交于 2019-12-09 11:01:02
问题 I'm trying to append complex data to my database products in Magento ver. 1.7.0.2, some are simple and other configurable. The exported Magento CSV doesn't greet with the needs for importing. I have this file for example for importing data: sku,_store,_attribute_set,_type,_category,_root_category,_product_websites,price,special_price,special_from_date,special_to_date,image,media_gallery,news_from_date,news_to_date,url_key,url_path,minimal_price,visibility,custom_design,custom_layout_update

add catalog product in wishlist programmatically in magento

青春壹個敷衍的年華 提交于 2019-12-08 12:24:42
问题 I have created a product with custom option and I have showed the detail of this product on a custom page. Now I want to add the product in wishlist with filled custom option by user. If i have to just add the product in wishlist, I can simply use the following code. <a href="'.Mage::helper("wishlist")->getAddUrl($_product).'" class="link-cart">Add to Wishlist /a> but i want to insert the product with custom option. For this i have use following code but it gives me error "Cannot specify

Magento: Checkout Continue button not proceeding to next step

放肆的年华 提交于 2019-12-08 11:58:45
问题 I was working on adding a section to Magento Onepage Checkout and after running into many issues I went back and deleted all the modules and all the files attached to them. I go back to Checkout and now everything is working normally except that the "Continue" button is stuck at the billing section when I'm logged in. I believe it is connected to the onclick="billing.save() inline function. I am new to Magento and new to Stack Overflow so here is my code for billing.phtml . Let me know if any

Every store have their own media folder?

随声附和 提交于 2019-12-08 11:09:25
问题 i have a code in magento that i need to overwrite, code can be found in /app/code/core/Mage/Core/Model/Config/Options.php. The code goes something like this : protected function _construct() { $appRoot= Mage::getRoot(); $root = dirname($appRoot); $this->_data['app_dir'] = $appRoot; $this->_data['base_dir'] = $root; $this->_data['code_dir'] = $appRoot.DS.'code'; $this->_data['design_dir'] = $appRoot.DS.'design'; $this->_data['etc_dir'] = $appRoot.DS.'etc'; $this->_data['lib_dir'] = $root.DS.

Magento extensions not loaded

扶醉桌前 提交于 2019-12-08 10:02:16
问题 I have a brand new installation of Magento CE 1.7.0.2 on my local machine, and cannot get any extensions to load. They install properly in the Magento Connect Manager and appear in the list as installed, but there is no effect in the admin interface. I have successfully installed Magento and these extensions before, so I'm not a complete noob. The extensions I'm trying to get working are these (both theoretically compatible with 1.7): http://www.magentocommerce.com/magento-connect/customer

Magento Observer Event not firing in server but working in local

纵然是瞬间 提交于 2019-12-08 08:28:46
问题 I am facing the issue when i move the code to server.It is working fine in my local system. when i searched about the issue i found i have to use capital letters in config file. I have updated the config file to caps but still the issue exist. Please suggest. Config.xml <?xml version="1.0"?> <config> <modules> <Mdl_Ajaxcheckout> <version>0.1.0</version> <depends> <Mage_Customer /> <Mage_Checkout /> </depends> </Mdl_Ajaxcheckout> </modules> <global> <models> <mdlajaxcheckout> <class>Mdl

magento - get attribute option label by store view

可紊 提交于 2019-12-08 07:34:05
问题 Like the title, how can I get the attribute option value of a specific store view instead of the current store view ? What I am trying to implement is something like this : public function getAttributeOptionValue($attributeCode, $attributeOptionLabel, $storeView) The attributeOptionLabel is the current attribute option label. 回答1: Simple! Ref Mage_Eav_Model_Entity_Attribute::getStoreLabel() [link]: <?php include 'app/Mage.php'; Mage::app('default'); //Generic access $eavConfig = Mage:

Can we add more than one special price in magento using price type attribute?

て烟熏妆下的殇ゞ 提交于 2019-12-08 06:45:23
问题 I have product having price value defined, if I do not provide special price for that product, I want to display another price other than price and special price using some attribute. And when user adds the product to cart that time this new price should be applied to product. Is this possible in magento if yes, how can I implement this? update : config.xml <?xml version="1.0"?> <config> <modules> <New_Price> <version>1.0.0</version> </New_Price> </modules> <global> <models> <price> <class