Jump to content

(Solved) Text in stead of price for customer group


kajos

Recommended Posts

36 minutes ago, kajos said:

Thanks for your reply, can you explain a little bit how it can be done by a controller?

John

If you want to do it in the controller, just look for the init, get the current user group if guest or customer and then if its guest pass the additional text or variable through smarty assign function. Your controller will pass this variables to the corresponding template. Look for it in the themes, probably in the catalog then put it somewhere in the template.

Edited by ML Software Services (see edit history)
Link to comment
Share on other sites

My solution is as folow:

in themes\MyTheme\templates\catalog\_partials\product-prices.tpl i add the following code at the end of the file before   {/if}

{else}
          <div>
          <h6 class="h6">Retailer: <a href="https://www.mydomain.nl/mijn-account">u kunt hier registeren of inloggen om de prijzen te zien.</a><br></h6>
          <h6 class="h6">particulier: <a href={str_replace("mydomain","customerdomain",$product.url)} target="_blank">u kunt dit artikel bestellen op www.customerdomain.nl</a><br><br></h6>
        </div>
  

Thnxs for the advise @ML Software Services

 

 

Link to comment
Share on other sites

  • kajos changed the title to (Solved) Text in stead of price for customer group

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...