Jump to content

Adding custom field to checkout


ducky77ar
 Share

Recommended Posts

hello,

Aside from the customer_comments, I need to add an additional field to the checkout page.

I created a new table with zip codes and available delivery dates, I wrote a query that looks for the zip code entered at checkout and creates a dropdown list of all available dates and time frames for that specific zip code.

Now I'm stuck trying to figure out how to add that new field right before the customer comments field.

Any help would be greatly appreciated

 

Thank you!

Link to comment
Share on other sites

Do you plan to allow a customer to checkout as a ghost? Or allow shipping to the non-billing address? That is, during checkout, normally, the customer can change the details of the delivery address. Has this been locked down?

If the customer changes the delivery details, I think the Foundation skin auto-submits an "Update Basket" command and CubeCart will recalculate all the shipping. Hopefully, your code will also be recalculated.

So, ignore the above concern.

Link to comment
Share on other sites

hmmmm no idea.

whatever is easier i guess.  I read through almost all the php pages contained in cubecart but i could not find where to add that additional field.  i believe they are currently allowed to checkout as ghost.  And I don't think it will be a problem to disallow shipping to the non billing address.

Are you interested in doing that work for me?  I don't know how much you charge or if you are even interested in coding something like that, but if you are we can talk :)

Thank you

Link to comment
Share on other sites

I added more to my response above. Please refresh the page.

We can try to solve this on the forums. If, however, you wish to take this to email, that can be done as well.

The template you are looking for is content.checkout.confirm.php near the bottom.

Will the added data be a drop-down selector? If so, we can use the country selector code as the basis for the delivery date code.

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.

 Share

×
×
  • Create New...