magento

Toggle dropdown mini-cart when product added to basket

穿精又带淫゛_ 提交于 2020-01-15 05:38:53
问题 I have a jQuery dropdown mini cart placed in the header of my Magento store. When the "Your Cart" link is hovered the menu dropsdown to display recently added items. I have now integrated the Ajax add to cart extension which allows customers to add to cart without refreshing the page. The problem I have now is that when products are added there is no way of telling without hoevering over the "Your Cart" link. I would like to be able to have the mini-cart drop down automatically when a product

Magento Override Core Block

余生长醉 提交于 2020-01-15 03:22:14
问题 I'm trying to override class Mage_Catalog_Block_Navigation located at app/code/core/Mage/Catalog/Block/Navigation.php I've created this three files: 1.- app/code/local/Global/Catalog/Block/Navigation.php 2.- app/code/local/Global/Catalog/etc/config.xml 3.- app/etc/modules/Global_All.xml Code: Global_All.xml <?xml version="1.0"?> <config> <modules> <Global_Catalog> <active>true</active> <codePool>local</codePool> </Global_Catalog> </modules> </config> Config.xml <?xml version="1.0"?> <config>

Magento - Programmatically added products don't show up

旧时模样 提交于 2020-01-15 03:20:47
问题 I am trying to import products using a custom made import profile. Here I set some values on the product and then save it, like this: $product = Mage::getModel('catalog/product'); $data = array(); // Inbetween I fill $data with some values $product->addData($data); $product->save(); However, the products do show up in the admin, but do not show up on the frontend (I did add them to categories). The odd thing is, they do appear on the frontend once I open them in the admin and save them again

Magento Path to CSS and JS incorrect

我的梦境 提交于 2020-01-15 03:10:47
问题 This website has broken after cache clearing: http://isaacgrainger.co.uk/ I've done the following as per other suggestions on here: checked folder permissions ran SQL script to turn merge CSS and JS off checked all permissions media and var folders checked base URLs- all fine I am totally stumped. in the backend (unstyled) there seems to be no way to change CSS preferences. I didn't build this project so I don't know how the original developer configured the back end of Magento. 回答1: Check

MAGENTO getting the descriptions from a sub category

懵懂的女人 提交于 2020-01-15 03:08:07
问题 Hi I'm new to magento and have been trying to set up a static block that displays a list of sub categories within a category. I've been succesfull a grabbing the sub-category images and names, but for some reason I can't seem to get the descriptions to show. Here's the code can't anyone explain why it won't work and how I can fix it? I've commented out a few lines because I was trying different things to get it to work. helper('catalog/output'); $category = $this->getCurrentCategory();

Magento: How to modify the HTML of the order confirmation page?

只愿长相守 提交于 2020-01-14 19:57:09
问题 I would like to add some HTML to the order confirmation aka checkout success page of my Magento store (the page whose url ends with index.php/checkout/onepage/success/). Is there a way to do this from the Admin Panel? I don't see it under any of the existing menus (http://grab.by/N1Ek). 回答1: You can add HTML with a widget: Go to CMS > Static Blocks, create a new static block with your HTML code as content Go to CMS > Widgets, add new widget instance Choose type "CMS Static Block" and your

Magento Reindexing Data - Risks

瘦欲@ 提交于 2020-01-14 19:21:13
问题 I have a Magento site in which the cross-selling products do not seem to be appearing. After looking on Stack and Google it seems that 'reindexing the data' has solved this issue for a lot of individuals. My question is, are there any risks associated with performing this task? Or is it a relatively straight forward procedure? 回答1: Indexing is a fundamental part of Magento and will not effect your site in a negative way. Magento uses a complex EAV (entity-attribute-value) database structure

Magento: Shopping cart price rule gets applied, but discount not subtracted from subtotal

為{幸葍}努か 提交于 2020-01-14 14:51:07
问题 I have created a shopping cart price rule in my Magento store (version 1.4.1.1), and it seems to get applied without issue on the frontend, but the discount isn't actually reflected in the subtotal or final total. The original item price is $45.00, and the discount should be $35.00, making the final price $10.00. Here are some screenshots of the setup. (Sorry, because I'm a new user it won't let me post images directly in this posting.) http://imgur.com/a/hdYDb Main rule page Actions page

How to get last running transaction Id in magento

北慕城南 提交于 2020-01-14 13:11:13
问题 How can I get the last running transaction Id ? (eg: 10000001) I've tried numerous ways, with no success. 回答1: I was suddenly enlightened when I looked at the problem again at home. Why not get the last order increment id from the sales/order collection? $orders = Mage::getModel('sales/order')->getCollection() ->setOrder('increment_id','DESC') ->setPageSize(1) ->setCurPage(1); echo $orders->getFirstItem()->getIncrementId(); Tested and working on Magento 1.3.2.3 回答2: Try this: $orderId = Mage:

How to get last running transaction Id in magento

雨燕双飞 提交于 2020-01-14 13:10:29
问题 How can I get the last running transaction Id ? (eg: 10000001) I've tried numerous ways, with no success. 回答1: I was suddenly enlightened when I looked at the problem again at home. Why not get the last order increment id from the sales/order collection? $orders = Mage::getModel('sales/order')->getCollection() ->setOrder('increment_id','DESC') ->setPageSize(1) ->setCurPage(1); echo $orders->getFirstItem()->getIncrementId(); Tested and working on Magento 1.3.2.3 回答2: Try this: $orderId = Mage: