Jump to content

Adding Text on the product page depending customer level or id


BZZYBI

Recommended Posts

Hi guys I am very new at prestashop. 

I would like to have some text load on the product page example ( please register and wait for account approval to view prices and order forms). This text should only display for customer id 1 2 and 3.

After they would have registered and after I would have transferred them to another level which I have created Id 4

 

I would like to have this text removed after I would have transferred then to customer level id 4

Can anybody please help :-)

 

Link to comment
Share on other sites

The proper way to do this is via a module.  The module would use a product page 'hook' to insert this text based on the visitor/customer group.  The location of this text would be based on where your theme places these hooks.  So if you have a specific area, then you should take a screen shot of your product page and highlight where you want it to appear.  This is preferred since a module would likely work across different PS versions and you would not lose these changes because you upgraded your store or changed your theme

 

If you don't want a module, then the next thing would be to update your themes product.tpl, and then place the text where you want it to appear.  The product.tpl probably already has access to the customers groups, but if not, then the product page controller would need to be enhanced to look up the customers group and then provide the required information to the product.tpl via smarty engine.  This is less preferred because you would lose these changes if you changed your theme

 

 

If you are looking to hire a developer for this, feel free to send me a PM and I can provide you with an estimate for either option.

Link to comment
Share on other sites

Hi guys I am very new at prestashop. 

I would like to have some text load on the product page example ( please register and wait for account approval to view prices and order forms). This text should only display for customer id 1 2 and 3.

After they would have registered and after I would have transferred them to another level which I have created Id 4

 

I would like to have this text removed after I would have transferred then to customer level id 4

Can anybody please help :-)

 

"html box pro" is what you're looking for

i use it to display different shipping message for customer groups

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...