Post by Majnoon » Fri Feb 05, 2021 8:34 pm

Hi Guys & Girls

I am using OC 3.0.3.5 with default theme.
I have installed this extension https://www.opencart.com/index.php?rout ... n_id=28268

It has installed successfully refresh modifications and clear the theme cache , Sass cache etc and enable it from admin side.
But somehow this extension is not showing up on store front.

I have try to reach to extension developer for the help but he is not available any more.

Any help will be highly appreciated.

Thanks in advance
Last edited by Majnoon on Sun Feb 07, 2021 7:06 pm, edited 1 time in total.

Active Member

Posts

Joined
Fri Feb 05, 2021 8:29 pm

Post by straightlight » Sat Feb 06, 2021 2:01 am

Since this extension is free and there's no response from the extension developer after contact him, you could always create a new service request in the Commercial Support section of the forum, or contact me directly via PM to get it properly installed as a custom job or look on the Marketplace for a relative extension that might help you.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by Majnoon » Sat Feb 06, 2021 11:34 am

Is there any help to troubleshoot
why it is not appearing in the store front.
Thanks

Active Member

Posts

Joined
Fri Feb 05, 2021 8:29 pm

Post by xxvirusxx » Sat Feb 06, 2021 4:28 pm

You added that module to a Layout?

Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by kestas » Sat Feb 06, 2021 5:00 pm

You should add your extension like xxvirusxx have said, to the layout. In your admin dashboard go to Design->Layout choose your layout or create new one and assign your extension there.

Custom OpenCart modules and solutions. You can write PM with additional questions... Extensions you can find here


Active Member

Posts

Joined
Tue Oct 12, 2010 2:23 am

Post by Majnoon » Sun Feb 07, 2021 1:10 pm

Hi guys,
Thanks for replying i have added the module to layout and refresh modifications and clear Theme & Sass Cache but yet it still doesn't shown up in store front.
I have attach the image.

As for the catalog side code

catalog/controller/extension/module/showcredit.php

Code: Select all

<?php
class ControllerExtensionModuleShowcredit extends Controller {
	public function index() {
			$status = $this->config->get('module_showcredit_status')&&$this->customer->isLogged();

		if ($status) {
			$this->load->language('extension/module/showcredit');

			$data['heading_title'] = $this->language->get('heading_title');
		
			$data['balance'] = $this->currency->format( $this->customer->getBalance(),$this->session->data['currency']);

			return $this->load->view('extension/module/showcredit', $data);
			
		}
	}
}
catalog/language/en-gb/extension/module

Code: Select all

<?php
// Heading
$_['heading_title'] = 'Your Store Credit';

// Text
$_['text_contact']  = 'Contact Us';
$_['text_sitemap']  = 'Site Map';
catalog/view/theme/default/template/extension/module

Code: Select all

<div class="panel panel-default center-column content-with-background">
  <h3 style="text-align: center;">{{ heading_title }}</h3>
  <hr>
  <p style="text-align: center;">{{ balance }}</p>

</div>

Attachments

store-credit.png

store-credit.png (96.37 KiB) Viewed 583 times


Active Member

Posts

Joined
Fri Feb 05, 2021 8:29 pm

Post by straightlight » Sun Feb 07, 2021 1:30 pm

Majnoon wrote:
Sat Feb 06, 2021 11:34 am
Is there any help to troubleshoot
why it is not appearing in the store front.
Thanks
The solution was already provided on the above.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by xxvirusxx » Sun Feb 07, 2021 5:08 pm

You don't create a new Layout...you add that module in account Layout and when customer is logged can see that in the account...
You didn't watched the video?
https://www.youtube.com/watch?v=XxEf8Y9UkB8

Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by Majnoon » Sun Feb 07, 2021 7:05 pm

xxvirusxx wrote:
Sun Feb 07, 2021 5:08 pm
You don't create a new Layout...you add that module in account Layout and when customer is logged can see that in the account...
You didn't watched the video?
https://www.youtube.com/watch?v=XxEf8Y9UkB8
Hi XXVIRUSXX,
Thank you so much for the help. it worked now as per following the video.

Active Member

Posts

Joined
Fri Feb 05, 2021 8:29 pm

Post by xxvirusxx » Sun Feb 07, 2021 7:11 pm

The video was on module page...scroll down next time :laugh:

Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by khnaz35 » Sun Feb 07, 2021 7:14 pm

Sometimes it happens :laugh: :laugh: :laugh:

Urgent Questions shoot here: khnaz35@gmail.com
Enjoy nature ;) :) :-*


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia

Post by khnaz35 » Sun Feb 07, 2021 9:23 pm

If you are using Journal theme 3 simply add this code into your
catalog/view/theme/journal3/template/account/account.twig
where ever you want to show the store credit. ;)

Code: Select all

        
        <li class="transaction"><a href="{{ transaction }}">{{ text_credit }}</a></li>

Urgent Questions shoot here: khnaz35@gmail.com
Enjoy nature ;) :) :-*


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia
Who is online

Users browsing this forum: JNeuhoff, nonnedelectari and 104 guests