Post by jwreid » Fri Feb 16, 2018 5:40 pm

I have an avatar account module in the left hand column for my (logged in) customers to upload their pic and access their account with a "My Account" button. My left hand column scrolls with the rest of the website so that my customers can access their account at any position. In order to balance the left hand column so that It does not overlap the footer, I need an extension that removes one of my left hand modules upon login so that the addition of the account module will not disrupt the format and create overlap. If any body knows an extension or some code that would allow this to happen or just steer me in the right direction that would be great.

******* In a nutshell I need an xml file that will remove a module from the left-hand column when a customer logs in.
******* Opencart 1.5.6.4 Using OpenShop theme.

User avatar
Active Member

Posts

Joined
Sun Oct 27, 2013 6:27 pm
Location - Canada

Post by straightlight » Sat Feb 17, 2018 10:16 pm

You could use VQMod by simply using an IF statement with PHP:

Code: Select all

if ($this->customer->isLogged()) {
    // your condition statement here
}
Otherwise, more information would be needed.

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 jwreid » Sat Feb 17, 2018 11:03 pm

Say for instance, I had the information module in the left hand column and when a customer logged in it would disappear. It would then reappear when the customer logged out. Unfortunately, my coding is not at at a level where I can fill in the blanks. thanks

User avatar
Active Member

Posts

Joined
Sun Oct 27, 2013 6:27 pm
Location - Canada

Post by straightlight » Sat Feb 17, 2018 11:05 pm

******* Opencart 1.5.6.4 Using OpenShop theme.
Unfortunately, my coding is not at at a level where I can fill in the blanks. thanks
Then, contact the extension developer of the Openshop to add your desired requirements.

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 jwreid » Sat Feb 17, 2018 11:06 pm

I will thanks

User avatar
Active Member

Posts

Joined
Sun Oct 27, 2013 6:27 pm
Location - Canada
Who is online

Users browsing this forum: No registered users and 36 guests