Require checkbox to purchase certain products?

  • Posts: 190
  • Thank you received: 2
9 years 2 months ago #242189

-- url of the page with the problem -- : www.veggievore.com
-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.5.1
-- PHP version -- : 7.0.6
-- Error-message(debug-mod must be tuned on) -- : No error messages. I am asking a how to and advice type of question.

Our store currently sells products that we package and ship and which have tax rates associated with them.

We are about to add a couple services which are telephone consults and do not have shipping or sale tax rates.

What we need is the ability to create an AGREEMENT just for these new services for liability reasons. We would like them to check the box to agree to the conditions. This is separate from the terms of service for the web site that we already have posted.

I am wondering how to do that. It looks like I have to create a custom field which will somehow contain the text of the disclaimer / terms of service. In a perfect world this text would appear on the Product page for these services and have to be checked in order to accept the terms of service.

Any pointers in the right direction (especially step by step ones) will be greatly appreciated.

PS. I just renewed our subscription for another two years!

Last edit: 9 years 2 months ago by scarney.

Please Log in or Create an account to join the conversation.

  • Posts: 84233
  • Thank you received: 13675
  • MODERATOR
9 years 2 months ago #242232

Hi,

You're right, a custom field should allow you to do that.
You'll want to create a custom field of the table "item" and of the type "checkbox" via the menu Display>Custom fields. You can restrict it either to a category that you'll add to all the products which need the checkbox, or to all these products directly.
You can also create a custom field of the type "custom text" to add text, like the agreement text, before the checkbox.

Please Log in or Create an account to join the conversation.

  • Posts: 190
  • Thank you received: 2
9 years 2 months ago #242321

Thank you very much,

I am sure I made some good progress. I have a sample page now at www.veggievore.com/advice/half-hour-custom-consult

I am assuming I can paste in HTML to format the agreement that is above the checkbox.

However, I am also wondering if there is a way to include an html page. Basically I am tempted to write up a document for this agreement and then wonder if that document could be loaded into a space for the notification.

The reason I ask is because I would like to have the agreement not display as one big blog of text but rather wish it was possible to have it appear in a section of text with a bar on the right for scrolling up or down. Then the people could scroll to the bottom and hit the checkbox that states they have read and agree.

Thanks for any ideas you might have on best or the closest I can get to this behaviour.

Also, there must still be something I need to do to get the checkbox to display!

Sean

Last edit: 9 years 2 months ago by scarney.

Please Log in or Create an account to join the conversation.

  • Posts: 84233
  • Thank you received: 13675
  • MODERATOR
9 years 2 months ago #242357

Hi,

Having a scrollbar on a blob of text is not a problem. Just add a bit of CSS to the website based on the element's class or id.
You don't even need to do anything special in the custom text field.
stackoverflow.com/questions/838545/div-vertical-scrollbar-show

Also, I'm not able to access your product page with the link you provided.
You must have changed something in the way the SEF URLs are generated or something.

Please Log in or Create an account to join the conversation.

  • Posts: 190
  • Thank you received: 2
9 years 2 months ago #242447

Sorry about the url change. Here are the two product pages I am creating now:

www.veggievore.com/advice/half-hour-cust...oaching-consultation

www.veggievore.com/advice/one-hour-custom-coaching-consultation

I would like to change the layouts to match my DVD product pages but have another ticket for that. :-) Once I have the layout then I can worry about making sure the checkbox is in place and also that the titles for the extra fields don't show on the sides.

Thank you for the link to the scrolling div instructions!

Sean

Please Log in or Create an account to join the conversation.

  • Posts: 84233
  • Thank you received: 13675
  • MODERATOR
9 years 2 months ago #242452

So for example, you could use such CSS:
#hikashop_product_custom_item_value_63{
overflow-y: scroll;
display: block;
height: 200px;
}

For the checkbox, did you add a value to your checkbox custom field in its settings ?

Please Log in or Create an account to join the conversation.

  • Posts: 190
  • Thank you received: 2
9 years 2 months ago #242590

Thank you so much. that helped me make progress. I will try to resolve my other ticket first and then return here to try the CSS code you gave me. Can I please as where you got the number 63 from in the following string?: #hikashop_product_custom_item_value_63{

Thanks, Sean

Please Log in or Create an account to join the conversation.

  • Posts: 84233
  • Thank you received: 13675
  • MODERATOR
9 years 2 months ago #242610

I just looked at the HTML of the custom field on that page, as explained in the documentation on how to customize the display which explains how to find the classes and ids to use for your custom CSS:
www.hikashop.com/support/documentation/1...ize-the-display.html

The following user(s) said Thank You: scarney

Please Log in or Create an account to join the conversation.

  • Posts: 190
  • Thank you received: 2
9 years 2 months ago #242705

Thank you so much!!!

Please Log in or Create an account to join the conversation.

Time to create page: 0.067 seconds
Powered by Kunena Forum