[Solved] Information from the sales_flat_order table [closed]

So here is a base example to get you started with PHP. If you need to get queries from a database this is the most suitable option. Firstly, change your file extension to .php not .html Then: Create your database connect file: /** * database.php */ class Database { private $host = “localhost”; private $db_name … Read more

[Solved] duplicate magento extensions [closed]

download the extension using this: http://freegento.com/ddl-magento-extension.php extract the content replace the content in all files from “Bkash” to “Bkash2” in files ie: the content of find . -type f | xargs sed -i “s/Bkash/Bkash2/g” replace all bkash to bkash2 in files find . -type f | xargs sed -i “s/bkash/bkash2/g” rename all files and directories … Read more

[Solved] How do i edit home page of magento

First please check from where the content of the home is come from. you can you template path for it. if its comes from CMS Page you can edit form the admin CMS page. if its a comes from Static block you can change it from the CMS blocks in admin. and if its a … Read more

[Solved] Need more about magento basic

You can easy learn i have searched it It’s a great and simple tutorial which help you step by step(After covering this tutorial you will be able to handle admin panel of the magento) http://www.templatemonster.com/help/ecommerce/magento/magento-tutorials/ http://leveluptuts.com/tutorials/magento-community-tutorials 2 solved Need more about magento basic

[Solved] addTab in adminhtml_sales_order_view: “Invalid Blocktype: Mage_…”

AdminModifications -> MyNamespace_AdminModifications <action method=”addTab”> <name>order_custom</name> <block>MyNamespace_AdminModifications/adminhtml_sales_order_view_tab_custom</block> </action> because <blocks> <MyNamespace_AdminModifications> <class>MyNamespace_AdminModifications_Block</class> </MyNamespace_AdminModifications> </blocks> Tip for the future: if you ever see magento trying to load Mage_* class instead of your class – 99% that you have an error in your config.xml file or typo in calling a block/model/helper by config name (like <MyNamespace_AdminModifications> in … Read more

[Solved] Parse error: syntax error, unexpected T_STRING in app/design/frontend/base/default/template/catalog/product/new.phtml on line 37 [closed]

This is caused by the third param of your Mage::helper(‘core/string’)->truncate() call, where the ending string delimiter seems to be missing. You get the unexpected T_STRING error, because the interpreter reaches the next string (‘short’), while knowing that the previous string end wasn’t found yet. Replace this line <h3 class=”product-name”><a href=”https://stackoverflow.com/questions/10328245/<?php echo $_product->getProductUrl() ?>” title=”<?php echo … Read more

[Solved] Magento : issue in shopping cart

May i know the products are different. if the products having same sku it will take only one price. For this u need to add two products with same name and different “SKU”. I think it will work.. 2 solved Magento : issue in shopping cart

[Solved] Array compare with key and other array’s values with amazon configurable product in magento API [duplicate]

Please note that the function you are searching for is a validator. Just coded a simple on for you : $data = array( ‘size’ => ‘small’, ‘color’ => ‘red’, ); $validator = array( array( ‘name’ => ‘size’, ‘value’ => ‘small’, ), array( ‘name’ => ‘color’, ‘value’ => ‘red’, ), ); function validateData(array $data, array $validator, … Read more

[Solved] How to get single product from category id in magento? [closed]

<?php foreach($this->getStoreCategories() as $_category) { $cur_category=Mage::getModel(‘catalog/category’)->load($_category->getId()); $collectionnn = Mage::getModel(‘catalog/product’) ->getCollection() ->joinField(‘category_id’,’catalog/category_product’, ‘category_id’, ‘product_id = entity_id’,null, ‘left’) ->addAttributeToSelect(‘*’) ->addAttributeToFilter(‘category_id’,array(‘in’ => $cur_category->getId())); foreach($collectionnn as $product) { echo “<a href=”https://stackoverflow.com/questions/23627152/.$product->getProductUrl().”>”.$product->getName().”</a><br>”; break; } } ?> 4 solved How to get single product from category id in magento? [closed]