Jump to content

in cart domains


echonex

Recommended Posts

i have a problem...

 

i use orderforms/default

 

and forexample i try to buy only domain than near domain there is a link do you buy to hosting for this domain, i click to this link and open hosting packages and select one of them then after this it must show

 

incartdomains

 

registerdomain

 

transferdomain

 

owndomain

 

but it doesnt show incartdomain select

 

if i use orderforms/cart it show this selection

 

how can i solve this problem?

Link to comment
Share on other sites

I noticed that too. It seems the domain is lost in the process of buying the hosting, so the user has to start the domain registration process all over (pick the hosting package, then type the domain name again, then check to register...)

Link to comment
Share on other sites

  • 1 month later...

Oh, by the way, I found a solution to the problem.

 

Apparently, at least this is what I have been told by Matt, the 'default' template is a 'single product' template, not designed to handle orders consisting of multiple domains. The 'cart' template however _does_ support this.

 

So I got to it, and started customising our orderform all over again (based on the 'cart' template) when I stumbled onto a few lines at the bottom of products.tpl (default template):

 

{php}

if (isset($_SESSION["cart"])) {

unset($_SESSION["cart"]);

}

{/php}

 

This clears out the shopping cart session, so the server doesn't even know what domains were left in the cart to assign a hosting package to!

 

Removing these lines from products.tpl therefor fixes all problems :)

 

Be sure to place a few "view cart" links/buttons at strategic points in the template, to make sure clients get a warm and cosy feeling when browsing through the order forms ;-)

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