Hi guys, so I need to know how to add Products programtically without getting this error. Fatal error: Call to a member function getPosition() on a non-object in \app\code\core\Mage\Bundle\Model\Product\Type.php on line 854 This is my code: class TCK_Forty_CartController extends Mage_Core_Controller_Front_Action { public function addAction() { $prdId = $this->getRequest()->getParam('product'); $cart = Mage::getModel('checkout/cart'); $cart->init(); $_return = array('code' => 0, 'message' => 'Something went wrong...'); if (!empty($prdId)) { $product = new Mage_Catalog_Model_Product(); $product->load($prdId); if ($product->getTypeId() == Mage_Catalog_Model_Product_Type::TYPE_BUNDLE) { $typeInstance = $product->getTypeInstance(true); $optionCollection = $typeInstance->getOptionsCollection($product); $selectionCollection = $typeInstance->getSelectionsCollection( $typeInstance->getOptionsIds($product), $product ); $this->_options = $optionCollection->appendSelections($selectionCollection, false, Mage::helper('catalog/product')->getSkipSaleableCheck() ); $bundle_option = array(); foreach ($this->_options as $key …

Member Avatar
Member Avatar
+0 forum 2

Some weeks ago I posted this and I realized from the referrals that it may help to be as a code snippet. This is an example of getting products details from categories – subcategories using ajax call. I am fond of OOP and this is not , but I believe that will help others understand of how this things can happen. Demand: There are some sound systems of cars (products) each of them has an article link and some other details (e.g. Voltage) ,those products can be categorized , so we have categories of them. The categories can have either …

Member Avatar
Member Avatar
+1 forum 3

Hi all, I am creating a function, that filters products, that are allready loaded into the DOM. JSFiddle: http://jsfiddle.net/Klemme/8CFVa/2/ Please read on, two get the issue :-) In each product div, I have listet an HTML5 data attribut like this example: data-options="{"brand":"acer","screenSize":"17","processor":"intel","grafik":"intel"}" I have 2 groups of checkboxes working now, that makes it possible to show/hide products, based on the value of the checked checkbox, matched against the corresponding value in each products data-options attributte. It is not dynamic, and I have realized that whenever I want to add more sort options (more check boxes), I have to run through …

Member Avatar
+0 forum 0

I have heard about this Internet Marketing for years now, How can you make some profit while sitting on your desktop? Thank you for your shared knowledge :)

Member Avatar
Member Avatar
+0 forum 17

Not all online stores provide RSS feeds to all of their products, so its difficult to keep track of good deals. Do you guys know of any tool that I can use to covert a webpage into RSS feed that can pull up all elements such as title, description, picture, price, etc? I found one free service which works pretty good, but gives a very basic view. check out rssa.at and you will know what I mean.

Member Avatar
+0 forum 0

I have no idea if it is possible to post selling product if there's no human operation. What I mean is this scenario. this is a bookstore that wants to create an online page of shopping cart for their own. Among the thousands of items in that bookstore that is available. a person has determined during the inventory hours to which is the top 5 selling products of their bookstore. Problem: Is there a way that only a machine could determine dynamically implemented to which among the thousands of items in that bookstore is the TOP 5 selling products, with …

Member Avatar
Member Avatar
+0 forum 5

I'm not a big programmer by any means, but a customer has requested a program that does the following: Lists products After clicking on a certain link on the products page, lists product dealers A CMS back-end for adding both the products and dealers. My question is: is there an existing script out there that provides similar functions? Obviously this is a long-shot, since those are awfully specific, but I'd appreciate any help I can get from you folks. Thank you!

Member Avatar
Member Avatar
-1 forum 1

The End.