Post by sjrh » Wed Aug 09, 2017 12:25 am

Hi,
Where would I find the code that populates the menu that appears on the right when you edit your account details?
I would like to remove some of the options such as recurring payments, downloads, etc...

Thanks,

Newbie

Posts

Joined
Wed Aug 09, 2017 12:23 am

Post by straightlight » Wed Nov 15, 2017 6:33 am

catalog/view/theme/<your_theme>/template/extension/module/account.twig file.

The most generated errors being found on Opencart forum originates from contributed programming.

Regards,
Straightlight


Legendary Member

Posts

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

Post by alexmath » Mon Dec 11, 2017 7:21 pm

Hello, how did you remove "some of" the options? forexample in my case i wanna remove downloads and recurring payments. how can i pull this off?
cant be achieved from admin->design layout... And i dont want to get rid of all of them. I want to keep some there.
something like:

Code: Select all

	{% for module in modules %}
  	   {% if 'Downloads' not in module %}
    	      {{ module }}
	   {% endif %}
  	{% endfor %}
gets rid of everything. which i dont want

Thanks.

New member

Posts

Joined
Sat Sep 23, 2017 7:35 am

Post by straightlight » Mon Dec 11, 2017 8:26 pm

No OC version provided, no route location provided.

The most generated errors being found on Opencart forum originates from contributed programming.

Regards,
Straightlight


Legendary Member

Posts

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

Post by alexmath » Mon Dec 11, 2017 9:02 pm

OC 3.0.2.0.
index?route=account/account -> users account page.

New member

Posts

Joined
Sat Sep 23, 2017 7:35 am

Post by straightlight » Mon Dec 11, 2017 9:10 pm

Well, your solution above is not an invalid one. It may simply be not relative for what you're trying to do specifically. ;)

By simply removing the lines manually in your account.twig file for each of those titles and links should be more than enough as it should resolve the issue.

The most generated errors being found on Opencart forum originates from contributed programming.

Regards,
Straightlight


Legendary Member

Posts

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

Post by alexmath » Mon Dec 11, 2017 11:18 pm

but account to twig has this
.....
general code
......
then

Code: Select all

{{ content_bottom }} </div> {{ column_right }}

since the ones I want to remove are on the right column, i checked column_right.twig and it has this

Code: Select all

  
{% for module in modules %}
    	      {{ module }}
  	{% endfor %}
  
it is not so straight forward.
Last edited by alexmath on Tue Dec 12, 2017 12:04 am, edited 1 time in total.

New member

Posts

Joined
Sat Sep 23, 2017 7:35 am

Post by straightlight » Mon Dec 11, 2017 11:25 pm

alexmath wrote:
Mon Dec 11, 2017 11:18 pm
but account to twig has this
.....
general code
......
then

Code: Select all

{{ column_bottom }} </div> {{ column_right }}

since the ones I want to remove are on the right column, i checked column_right.twig and it has this

Code: Select all

  
{% for module in modules %}
    	      {{ module }}
  	{% endfor %}
  
it is not so straight forward.
You must probably use a custom theme. The account.twig file does not contain a: {{ column_bottom }} in the codes from OC v3.0.2.0 default theme. If so, please contact the extension theme developer in order to integrate your requirements.

The most generated errors being found on Opencart forum originates from contributed programming.

Regards,
Straightlight


Legendary Member

Posts

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

Post by alexmath » Tue Dec 12, 2017 12:04 am

it is the default theme. sorry. that was supposed to be {{ content_bottom }}

New member

Posts

Joined
Sat Sep 23, 2017 7:35 am

Post by straightlight » Tue Dec 12, 2017 12:38 am

Since you want to remove the modules from the right column, this can always be done from your admin - > design - > layouts page. Each routes for each site content can be removed from the admin.

The most generated errors being found on Opencart forum originates from contributed programming.

Regards,
Straightlight


Legendary Member

Posts

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

Post by alexmath » Tue Dec 12, 2017 2:15 am

ok, i checked it out but i dont see where to put/remove the route.
Forexample say for the route:

Code: Select all

route=account/recurring
how would i remove that? There is nothing about recurring in the admin - > design - > layouts -> {{ whatever }}.
I checked them all

New member

Posts

Joined
Sat Sep 23, 2017 7:35 am

Post by straightlight » Tue Dec 12, 2017 2:24 am

This link can be edited from your catalog/controller/extension/module/account.php file.

The most generated errors being found on Opencart forum originates from contributed programming.

Regards,
Straightlight


Legendary Member

Posts

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

Post by alexmath » Tue Dec 12, 2017 4:11 am

ok thanks. ill try that

New member

Posts

Joined
Sat Sep 23, 2017 7:35 am
Who is online

Users browsing this forum: No registered users and 6 guests