Jump to content

Force user to go to Domain Configuration page before checkout


bigbro

Recommended Posts

Hi there,

I am new to WMHCS and trying to modify it so that it force user to domain configuration before checkout. Normally if someone add a domain to cart and view cart it does not direct him to domain configuration. Or I would like to know the code I can use in viewcart.tpl that can check the domain either it has Registrant Name: or not. If not and clicking on checkout it will direct him to domain configuration page.

 

can someone help me on this.

 

thanks in advance

Link to comment
Share on other sites

I don't think you should need to force it - with v7.2, you can add a domain to the cart, then press checkout and if the domain required configuration, it will take you to the domain configuration page.

 

Unable to display content. Adobe Flash is required.

 

I can recall with earlier versions it might take you straight to view cart, but it sounds like you might be adding to cart and then pressing viewcart directly... we'd have to see a link or video of your site to explain exactly what you're seeing.

Link to comment
Share on other sites

Hi Brian, Thanks for replying back, yes if i click on checkout from domain search page it takes to domain configuration. But, if i click on view cart after just adding the domain to cart from cart page it does not redirect to domain configuration page.

 

I want it a way that if a user view his cart and click on checkout if domain configuration Registrant Name name is blank it will redirect user to domain configuration page. I also tried fetching {$domainfield} data but couldn't find which code will show up the data.

 

Thanks again.

 

I don't think you should need to force it - with v7.2, you can add a domain to the cart, then press checkout and if the domain required configuration, it will take you to the domain configuration page.

 

Unable to display content. Adobe Flash is required.

 

I can recall with earlier versions it might take you straight to view cart, but it sounds like you might be adding to cart and then pressing viewcart directly... we'd have to see a link or video of your site to explain exactly what you're seeing.

Link to comment
Share on other sites

Hi Brian thank you for reply back. Actually what i am trying to implement is when the user add domain to cart and view his cart page (viewcart.tpl) and click on checkout from cart page than if Registrant Name from domain configuration is empty for any of the domain user will get redirect to domain configuration page again.

 

I also tried to fetch data using {$domainfield} but couldn't get it work on viewcart.tpl page.

 

Sorry I couldn't attach a video but I attached screenshot below:

http://i63.tinypic.com/2ltg3lz.jpg

 

 

 

thanks again.

 

 

 

 

 

I don't think you should need to force it - with v7.2, you can add a domain to the cart, then press checkout and if the domain required configuration, it will take you to the domain configuration page.

 

Unable to display content. Adobe Flash is required.

 

I can recall with earlier versions it might take you straight to view cart, but it sounds like you might be adding to cart and then pressing viewcart directly... we'd have to see a link or video of your site to explain exactly what you're seeing.

Link to comment
Share on other sites

Hi Brian thank you for reply back. Actually what i am trying to implement is when the user add domain to cart and view his cart page (viewcart.tpl) and click on checkout from cart page than if Registrant Name from domain configuration is empty for any of the domain user will get redirect to domain configuration page again.

 

I also tried to fetch data using {$domainfield} but couldn't get it work on viewcart.tpl page.

that wouldn't work as viewcart wouldn't necessarily have the information available to it to know.

 

I suspect the problem is being caused by your modifications in the templates - you have to be very careful with the cart process not to jump out in the middle of it... the cart is coded to follow a fixed path of steps and once you start bailing out in the middle, you're creating a lot of work for yourself down the road.

 

for example, in domainregister.tpl, you've added a direct link to viewcart that isn't included in the original template code...

 

<section id="header" class="HeaderAdjust">  <a style="text-align:center; background-color:#6AAF08; margin-left:40%; padding-top:7px; padding-left:10px; padding-right:10px; padding-bottom:7px; color:#fff;" href="http://cheaphoswhmcs.cheaphostinganddomains.com/cart.php?a=view" class="quick-nav"><i class="fa fa-shopping-cart"></i> <span class="hidden-xs">Go to Shopping Cart</span></a></section>

the quick fix for that might be to just change the link to use the domains configuration page instead...

 

<section id="header" class="HeaderAdjust">  <a  style="text-align:center; background-color:#6AAF08; margin-left:40%;  padding-top:7px; padding-left:10px; padding-right:10px;  padding-bottom:7px; color:#fff;"  href="http://cheaphoswhmcs.cheaphostinganddomains.com/cart.php?a=confdomains"  class="quick-nav"><i class="fa fa-shopping-cart"></i>  <span class="hidden-xs">Go to Shopping  Cart</span></a></section>

you might also want to consider using Language Overrides for the "Go To Shopping Cart" text - otherwise all users will see it in English.

 

one other error I spotted is on viewcart itself - there should be an edit button there to allow the user to go back to the domain configuration page if they've bypassed it - on your site, it's there... but the link is white and virtually invisible to the user. :roll:

 

IP0JPsn.png

Link to comment
Share on other sites

Thanks once again Brain for all your help. I really appreciate it and understand the problem that if there is no data there will be no query.

 

Is it possible that if user configuration his domain and enter his registrar name the edit button will appear normally but if its not entered or blank there will be a message that you need to configuration your domain information or something like that. The message will only show to the user didn't enter his domain confirmation informations else only the Edit button will show.

 

that wouldn't work as viewcart wouldn't necessarily have the information available to it to know.

 

I suspect the problem is being caused by your modifications in the templates - you have to be very careful with the cart process not to jump out in the middle of it... the cart is coded to follow a fixed path of steps and once you start bailing out in the middle, you're creating a lot of work for yourself down the road.

 

for example, in domainregister.tpl, you've added a direct link to viewcart that isn't included in the original template code...

 

<section id="header" class="HeaderAdjust">  <a style="text-align:center; background-color:#6AAF08; margin-left:40%; padding-top:7px; padding-left:10px; padding-right:10px; padding-bottom:7px; color:#fff;" href="http://cheaphoswhmcs.cheaphostinganddomains.com/cart.php?a=view" class="quick-nav"><i class="fa fa-shopping-cart"></i> <span class="hidden-xs">Go to Shopping Cart</span></a></section>

the quick fix for that might be to just change the link to use the domains configuration page instead...

 

<section id="header" class="HeaderAdjust">  <a  style="text-align:center; background-color:#6AAF08; margin-left:40%;  padding-top:7px; padding-left:10px; padding-right:10px;  padding-bottom:7px; color:#fff;"  href="http://cheaphoswhmcs.cheaphostinganddomains.com/cart.php?a=confdomains"  class="quick-nav"><i class="fa fa-shopping-cart"></i>  <span class="hidden-xs">Go to Shopping  Cart</span></a></section>

you might also want to consider using Language Overrides for the "Go To Shopping Cart" text - otherwise all users will see it in English.

 

one other error I spotted is on viewcart itself - there should be an edit button there to allow the user to go back to the domain configuration page if they've bypassed it - on your site, it's there... but the link is white and virtually invisible to the user. :roll:

 

IP0JPsn.png

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.

Guest
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