magento

Magento after Onepage checkout adding new products to cart

i would like to add some Products after the Checkout I have an observer and it's listening on 'checkout_onepage_controller_success_action' when i try $this->_getCart()->addProduct($product, $params); and save the cart the success page will be loaded but no new products in the cart. Any idea what's wrong? ...

Language Switching in Magento

Hi, Thanks in advance, I am new to Magento and I need help switching languages for users. When a customer visits my website it should use their IP to determine their country and switch the language appropriately. For example, if I am visiting from France my site should display in French. If any others try from any country the website ...

Magento models: how to get data from an array, rather than a database?

Typically, Magento's models are "backed" by a MySQL database--this is where the data comes from, and is persisted to. How can I get the data from a standard PHP array? Is there some sample code available anywhere? (I'm especially interested in the "reading" aspect at the moment, but it would be useful to know how to "write" too.) ...

slow category import in magento

Hi I wrote a custom adapter for importing 6K categories using the advanced profiles. The import is too slow. I've tried increasing the number of records from 1 to 5 but it doesn't help. I also tried using ->setDisplayMode($dispMode) and ->setIsMassupdate(true) before saving the category but it also doesn't help. Any idea how to speed t...

In-depth explanation of Magento's Store / Store View / Website layers?

Could anybody point me towards a good technical explanation of Magento's Store Views/Websites system on a programming level? I am considering a customization of the system, but am not yet sure which one of these levels to use. ...

Magento Product Insert Function

Hi, I need to add a custom option to all products as they get saved. For that I need to find the function that inserts the products into the database, which I'm not able to find. Please, any help would be appreciated. thanx ...

inserted custom option not displaying only displays after refresh

hello , i inserted a code in the "product/view.phtml" page which inserts a custom option for the product when the page is loaded but it is not displaying the custom option on first load even if the custom option has been already inserted , but displays only after refreshing the page the code i used is : $_helper = $this->helper...

Change price of product on store's website (Magento)

Is there a way(by codehack if neccesary) to change the price of a product per store website, so from display in search results and individual product view all the way to checkout and order information I need this for a multishop website where some shops can offer a product at lower price depending on how much they paid and there's an ex...

Magento xml action path

Hello Everyone, I have the following magento XML code: <action method="addLink" translate="label" module="customer"><name>myorders</name><path>chepri/myorders/customer</path><label>Standing Orders</label></action> I was wondering where you would go about coding the handler for the "chepri/myorders/customer" how does it know which pa...

Magento E-bay Integration

Hi, Please help, I need to integrate all the products and category of ebay in my magento store, do any one have script or idea how to do this ..? Thanks, Jeet.... ...

reindex Catalog URL Rewrites in magento never ends

Hi I've imported 6K categories and 16K products to magento using a custom import profile. When I'm trying to reindex everything works except for 'Catalog URL Rewrites' that keep showing PROCESSING but never completes. log and exceptions files don't show anything. Is there something I can do to make the index work? Can I just ignore th...

Add custom options to dropdown via code in Magento

hi, i had to add custom options automatically when a product is added , the code works fine but i need to create a drop down menu with options and i dont know how to add options to the drop down created , my code is public function Add_CustomOptions_Automatically($observer) { $product = $observer->getEvent()->getProduct(); ...

Magento: Extending a community module

Hi, I want to extend a community module's Unirgy_Dropship_Block_Adminhtml_Shipment_View class which extends Mage_Adminhtml_Block_Sales_Order_Shipment_View to My_Bshipment_Block_Adminhtml_Shipment_View below is my xml <?xml version="1.0" encoding="UTF-8"?> <config> <modules> <My_Bshipment> <version>0.1.0</version> </My_Bshipment...

Can't require mage.php from an interactive shell

I would like to try some code snippets (about to make a script) which uses Magento's models and classes. The problem is that I get the following error: fdr@fderose-gtrade:/var/www/globaltrade$ fdr@fderose-gtrade:/var/www/globaltrade$ php -a Interactive shell php > require './app/Mage.php'; Fatal error: Class 'Mage' not found in /va...

Filter a product collection by two categories in Magento

Hi I'm trying to find products that are in two categories. I've found an example to get products that are in category1 OR category2. http://www.alphadigital.cl/blog/lang/en-us/magento-filter-by-multiple-categories.html I need products that are in category1 AND category2. The example in the blog is: class ModuleName_Catalog_Model_Resou...

Cannot add items to Magento cart

I'm going to lay this out as simply as I can while still telling all pertinent details. I'll list site details below: http:///www.bubblegenius.com (front page currently locked off) You can access the site inside and see exactly what's happening by going to http://www.bubblegenius.com/soap.html. A client of mine ran a Magento-run ecomme...

Magento: addAttributeToFilter but ignore for products that don't have this attribute?

I'm trying to show add some filters on my store, but they have a nasty side effect. Suppose I have product type A and B. Now I want to only show A where color = blue/red. $collection = Mage::getResourceModel('catalog/product_collection') ->setStoreId($this->getStoreId()) ->addCategoryFilter($this) ->addAttributeToFilter(ar...

Add page title to custom theme on Magento

How would you add a page title to custom theme out of content area. ...

Magento Onestep checkout

Hello everyone I would like to add a custom field under the billing information tab of magento onestep checkout. Does any one know how i could get this done. I am pretty much new to magento Thank you ...

Magento programmatically creating a sales/quote_address object

Hello, I am having an issue with creating and adding sales/quote_address objects to the multishipping checkout process. Currently, whenever I create a new address object, it is just reusing the exact same object over and over; Thus, when I add items to one address, it will add them to all addresses. As a check, I put a for loop after ...