Jump to content

Display domain name and domain price in product config


Recommended Posts

48 minutes ago, REDOUANE said:

I want to display domain name and price in product configuration, i have display domain name but i can't display domain price, if someone can help me with this ?

the templates, configureproduct and ordersummary, wouldn't have access to the domain price at that stage.

if memory serves (and which you seem to have confirmed!), you'll have access to the domain name (from which you will be able to get the TLD) and period in both templates and that should be enough to pull a price from either the database or a feed... though the complicating factors are that you might also have to determine in the client is logged if and if they belong to a client group with a pricing slab; if there are promotion codes at play that could affect the domain price.

in configureproduct, you would at least have the option of a hook, whereas with ordersummary, I suspect you'd have to do everything in Smarty with no direct access to the database, so a domain price feed could be used.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated