Page 1 of 1

Remove module Upon Login (Updated)****

Posted: Fri Feb 16, 2018 5:40 pm
by jwreid
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.

Re: Remove module Upon Login (Updated)****

Posted: Sat Feb 17, 2018 10:16 pm
by straightlight
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.

Re: Remove module Upon Login (Updated)****

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

Re: Remove module Upon Login (Updated)****

Posted: Sat Feb 17, 2018 11:05 pm
by straightlight
******* 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.

Re: Remove module Upon Login (Updated)****

Posted: Sat Feb 17, 2018 11:06 pm
by jwreid
I will thanks