Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1003447
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T07:58:55+00:00 2026-05-16T07:58:55+00:00

I am trying to create a magento shopping cart module but things arent working

  • 0

I am trying to create a magento shopping cart module but things arent working out. Here is my steps

I first create a xml in the app etc…

<?xml version="1.0"?>
<config>
    <modules>
        <mywebwow_AdvancedCatalog>
            <active>true</active>
            <codePool>local</codePool>
        </mywebwow_AdvancedCatalog>
    </modules>
</config>

Then I create my folder in the local pool

/local/mywebwow/AdvancedCatalog/

In that folder I put the following files

/Block/AdvanceCatalog.php
/controllers/indexController.php
/etc/config.xml

I put the following in the block

AdvancedCatalog.php

<?php
class mywebwow_AdvancedCatalog_Block_Advancedcatalog extends Mage_Core_Block_Template
{
    public function _prepareLayout()
    {
        return parent::_prepareLayout();
    }

    public function getHelloworld()
    {
        return 'Hello world';
    }
}

indexController.php

<?php
class mywebwow_AdvancedCatalog_IndexController extends Mage_Core_Controller_Front_Action
{
    public function indexAction()
    {
        $this->loadLayout();
        $this->renderLayout();
    }
}

config.xml

<?xml version="1.0"?>
<config>
    <modules>
        <mywebwow_AdvancedCatalog>
            <version>0.1.0</version>
        </myweboww_AdvancedCatalog>
    </modules>
    <frontend>
        <routers>
            <AdvancedCatalog>
                <use>standard</use>
                <args>
                    <module>mywebwow_AdvancedCatalog</module>
                    <frontName>advancedcatalog</frontName>
                </args>
            </AdvancedCatalog>
        </routers>
        <layout>
            <updates>
                <AdvancedCatalog>
                    <file>advancedcatalog.xml</file>
                </AdvancedCatalog>
            </updates>
        </layout>
    </frontend>
    <global>
        <blocks>
            <AdvancedCatalog>
                <class>mywebwow_AdvancedCatalog_Block</class>
            </AdvancedCatalog>
        </blocks>
        <helpers>
            <AdvancedCatalog>
                <class>mywebwow_AdvancedCatalog_Helper</class>
            </AdvancedCatalog>
        </helpers>
    </global>
</config>

when i type in website.com/index.php/advancedcatalog/

I get a 404. no page found.

[EDIT]

I changed the block class from MyWebwow_AdvancedCatalog_Block_AdvancedCatalog to MyWebwow_AdvancedCatalog_Block_Advancedcatalog

I added advancedcatalog.xml it looks like the following…

advancedcatalog.xml

<?xml version="1.0"?>
<layout version="0.1.0">
    <advancedcatalog_index_index>
        <reference name="content">
            <block type="advancedcatalog/advancedcatalog" name="advancedcatalog" template="advancedcatalog/helloworld.phtml" />
        </reference>
    </advancedcatalog_index_index>
</layout>

then there is the following which I already had

/template/advancedcatalog/helloworld.phtml

helloworld.phtml

<h2><?php echo $this->getHelloworld(); ?></h2>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T07:58:55+00:00Added an answer on May 16, 2026 at 7:58 am

    A few things to fix, hopefully one will get you moving:

    1. Move your controller from indexController.php to IndexController.php. On case-sensitive systems, this very well could cause the controller not to be found.

    2. Have you defined a layout file? (e.g. advancedcatalog.xml). Your file defines advancecatalog.xml, which seems like it might be a typo, though it could work if you defined that file.

    3. Do you have any views defined? loadLayout will try to load a layout handle for the page and render blocks accordingly. This is where you’ll have to specify your advancedcatalog/advancedcatalog block. If you do have a layout and templates, please post those.

    4. Don’t use camelcase for the block name, it will confuse Magento. The block will need to be defined as advancedcatalog/advancedcatalog, but that will resolve to mywebwow_AdvancedCatalog_Block_Advancedcatalog (note no second cap). This will be an issue.

    Fix those and see if it starts working, let me know if you still have trouble.

    Thanks,
    Joe


    You don’t necessarily need a model unless you are invoking one. As for #4, it’s up to you whether you want to use mixed case on that one. In your config file, you specified the prefix for AdvancedCatalog blocks to be mywebwow_AdvancedCatalog_Block, so the mixed case shouldn’t be a problem. Conversely, though, you may want the tag inside of blocks to be lowercased, so that when you invoke your models you can stick w/ the existing Magento convention of lowercase. Do this:

    <global>
        <blocks>
            <advancedcatalog>
                <class>mywebwow_AdvancedCatalog_Block</class>
            </advancedcatalog>
        </blocks>
    ....
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to create a new custom module in magento but the layout
I'm trying to create my own Magento shipping module in Magento 1.6. Since I
I'm trying to create a custom module using Magento's EAV structure and have been
I am trying to build a module for Magento 1.6.0. Here is my config.
This is a very general question, but here goes: I'm trying to create a
I am trying to create a Magento module installer, that will in turn create
I am trying to create a custom module in magento admin. I have reached
While trying to create a cart via the Magento API, I am having trouble
I am trying to create a new module for Magento that is only visible
I'm trying to create a soap connection to Magento's web services, however I'm getting

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.