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

  • Home
  • SEARCH
  • 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 7744307
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T09:44:13+00:00 2026-06-01T09:44:13+00:00

I am working on a theme for Opencart and am finding I need access

  • 0

I am working on a theme for Opencart and am finding I need access to different variables than provided by the default controllers.

For example, in the Category view, I would like to access the full product image rather than the thumbnail which is what the controller provides by default.

Coming from WordPress, I would be used to simply calling a function to retrieve a different image size, but I assume that in MVC, this functionality needs to be in the controller.

However, I see no way to write a custom controller and editing the original means huge problems when updating.

As a very basic fundamental question, is the only solution to write a Module? Is this the proper practice when developing a theme for opencart? Somehow, I have not found a very definitive clear explanation of how I am supposed to work with opencart themes (a la wordpress codex).

  • 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-06-01T09:44:14+00:00Added an answer on June 1, 2026 at 9:44 am

    This doesn’t need to be done in the controller at all, the view can access just as much information as the controller can. You just need to use this in the product loop

    $prod = $this->model_catalog_product->getProduct($product['product_id']);
    $full_image = empty($prod['image']) ? 'no_image.jpg' : $prod['image'];
    

    Note however that you should resize the image from there using the resize method of the tool/image model to the dimensions you want for consistency

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working with a Drupal theme, and I see a lot of variables
I'm working on a wordpress theme and I'm trying to call the parent category's
I'm completely stuck. I've been working on a theme that offers 5 different layouts
I'm working on my own custom WordPress theme, using a blank, default template to
working on a highly complex WordPress theme that features many different custom post types
I am working on a wordpress theme and need to select posts that are
I'm working on a blog theme and I need help. I have two scripts
i use a CMS (elgg : http://www.elgg.org ) working with view, equivalent to theme/template.
A wordpress theme I'm working on has headlines which span across the entire content
I am working with prestashop and in the theme I have added my own

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.