Jump to content

Search the Community

Showing results for tags 'magento'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • Welcome to PHP Freaks
    • Announcements
    • Introductions
  • PHP Coding
    • PHP Coding Help
    • Regex Help
    • Third Party Scripts
    • FAQ/Code Snippet Repository
  • SQL / Database
    • MySQL Help
    • PostgreSQL
    • Microsoft SQL - MSSQL
    • Other RDBMS and SQL dialects
  • Client Side
    • HTML Help
    • CSS Help
    • Javascript Help
    • Other
  • Applications and Frameworks
    • Applications
    • Frameworks
    • Other Libraries
  • Web Server Administration
    • PHP Installation and Configuration
    • Linux
    • Apache HTTP Server
    • Microsoft IIS
    • Other Web Server Software
  • Other
    • Application Design
    • Other Programming Languages
    • Editor Help (Dreamweaver, Zend, etc)
    • Website Critique
    • Beta Test Your Stuff!
  • Freelance, Contracts, Employment, etc.
    • Services Offered
    • Job Offerings
  • General Discussion
    • PHPFreaks.com Website Feedback
    • Miscellaneous

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start





Website URL








Donation Link

Found 9 results

  1. I am using extra fees extension, if customer chooses shipping method: Pick from the store how to remove Handling fees(extra fees extension). How to solve by using observer?
  2. Observer not triggered and log file not created. app/etc/modules/Gta_KolupadiRestrict.xml <?xml version="1.0" encoding="UTF-8"?> <config> <modules> <Gta_KolupadiRestrict> <active>true</active> <codepool>local</codepool> </Gta_KolupadiRestrict> </modules> </config> app/code/local/Gta/KolupadiRestrict/etc/config.xml <?xml version="1.0"?> <config> <modules> <Gta_KolupadiRestrict> <version>1.0.0</version> </Gta_KolupadiRestrict> </modules> <global> <models> <gta_kolupadirestrict> <class>Gta_KolupadiRestrict_Model</class> </gta_kolupadirestrict> </models> </global> <frontend> <events> <checkout_cart_product_add_after> <observers> <Gta_KolupadiRestrict_Model_Observer> <type>singleton</type> <class>Gta_KolupadiRestrict_Model_Observer</class> <method>cartevent</method> </Gta_KolupadiRestrict_Model_Observer> </observers> </checkout_cart_product_add_after> </events> </frontend> </config> app/code/local/Gta/KolupadiRestrict/Model/Observer.php <?php // Mage::log('fine dude', null, 'logfile.log'); //create class class Gta_KolupadiRestrict_Model_Observer { //create function public function cartevent(Varien_Event_Observer $observer) { $event = $observer->getEvent(); Mage::log($event->getName(),null,'event.log'); } } ?>
  3. I have one restricted product, here how to do selected single product should be purchased alone? No other products are eligible to add add-to-cart if this product available in the add-to-cart, same if other products available in add-to-cart this product not eligible to add add-to-cart. How to achieve this in Magento?
  4. Forgot Your Password Not working at the customer end, how to solve this error? Reset Password Email not sending to the customer mail account.
  5. Good evening, I'm trying to find where the image for a category on my homepage is set. I've looked at the Categories, clicked on the specific one, but when going to the 'Content' part, it is all empty. I've also looked at the Blocks and searched through each one but they do not show anything related. I've attached an image of the category section on my homepage. Many thanks, BSD
  6. Hello Guys, I have an interesting issue in Magento. After a site backup and transfer onto a new domain the front-end of my website loads fine, however when I try to navigate to: domain.com/index.php/admin I get a white page. I have enabled debugging mode and it displays this error: 1 Array ( [type] => 64 [message] => Cannot redeclare class Mage_Admin_Model_Session [file] => /var/www/vhosts/domain.co.uk/sub-domain.co.uk/includes/src/__adminhtml.php [line] => 504 ) Since finding this new error, I've tried to comment/remove every class that it cannot redeclare in the __adminhtml.php file, one by one.. Only to find that by the time I've commented them all out and refreshed the admin page, it gives no error whatsoever. Just a white page. Any ideas? Any help is much appreciated.
  7. I need some Help, I need to re-write my code slightly to read JSON files with Key:Value that there for VML. I just need to read json files instead of reading XML files. Can someone assist, I think it i simple adjustment, I am having hard time. /** * Function install * @param ModuleDataSetupInterface $setup * @param ModuleContextInterface $context * @return void */ public function install(ModuleDataSetupInterface $setup, ModuleContextInterface $context) { $setup->startSetup(); $reflector = new \ReflectionClass('Incomm\Cms\Setup\UpgradeData'); $reflector->getFileName(); $contentDirectory = dirname($reflector->getFilename()) . "/../Content/"; $cmsBlocksFiles = glob("{$contentDirectory}Blocks/*xml"); $cmsPagesFiles = glob("{$contentDirectory}Pages/*xml"); $homePageFiles = glob("{$contentDirectory}Homepage/*xml"); /* CMS Blocks */ foreach ($cmsBlocksFiles as $file) { $xml = simplexml_load_file($file, "SimpleXMLElement", LIBXML_NOCDATA); $json = json_encode($xml); $data = json_decode($json, TRUE); unset($data["version"]); $tmpBlock = $this->blockFactory->create(['data' => $data]); $this->blockRepository->save($tmpBlock); } /* CMS Pages */ foreach ($cmsPagesFiles as $file) { $xml = simplexml_load_file($file, "SimpleXMLElement", LIBXML_NOCDATA); $json = json_encode($xml); $data = json_decode($json, TRUE); $page = $this->pageFactory->create(); $page->setTitle($data['title']) ->setIdentifier($data['identifier']) ->setIsActive(true) ->setPageLayout($data['page_layout']) ->setStores(array(0)) ->setContent($data['content']) ->save(); } /* Home page */ $newPage = $this->pageFactory->create()->load( 'home', 'identifier' ); if ($newPage->getId()) { foreach ($homePageFiles as $file) { $xml = simplexml_load_file($file, "SimpleXMLElement", LIBXML_NOCDATA); $json = json_encode($xml); $data = json_decode($json, TRUE); $newPage->setContent($data["content"]); $newPage->save(); } } $setup->endSetup(); } }
  8. I've been given an unfortunate task of working with magento. My question might be magento-specific, but I'm not sure that it is. In short, I'm troubleshooting something and confused. This code... $user = $this->getUser(); ...would seem to be quite easy to troubleshoot, but it is not. The current class has no getUser function. Its base class has no getUser function. If I print a debug statement to examine $this, the class I'm looking at -- Session -- isn't the class at all! $this is some other class! In fact, the class that is shown doesn't exist anywhere in the source code. So... what the heck? How can $this not be $this ??
  9. Hi all, I have building a custom template for a client and have a problem where the price is displaying in the format $19.9500 The code i am using to call the price is: <?php echo $this->helper('catalog/output')->productAttribute($_product, $_product->getPrice(), 'price') ?>
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.