Make 2nd product option invalid

  • Posts: 208
  • Thank you received: 10
10 years 4 months ago #198753

-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.4

In my store, I have a category called Virtual Assistant.

In that category, I have a product for Virtual Assistant that asks 2 questions:

1. Unit size
2. More mailings

If a customer chooses the Unit size of Try-me 50, Try-me 75 or Try-me 100....they get ONLY 3 mailings

If they choose the unit size of any other from 50 on up...they can have 6 mailings

Once they have 6 mailings, they can add onto that 4 more (for 10 mailings), 9 more (for 15 mailings) and so on.

My dilemma is that customers choose the Try-Me service can ALSO select the drop down to add more mailings!!!!

How can I restrict the more mailings option if they choose Try-Me in the first option for unit size??

(I added my website link in the information field when I started this topic so you can look at it)

Pam

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

  • Posts: 84304
  • Thank you received: 13698
  • MODERATOR
10 years 4 months ago #198781

Hi,

In your case I wouldn't use options for the unit size and the mailings number selection.
Instead, I would use two characteristics:
- one "unit size" characteristic with all the unit size ranges as values of the characteristic
- one "mailings amount" characteristic with all the mailings amounts as values of the characteristics.

Then, add both to the product and click on the "manage variants" button. You'll be able to delete the variants that don't exist for the try me mailings amount so that the customers can't purchase them. You'll also be able to edit the remaining variants and set the price you want for each combination.

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

  • Posts: 208
  • Thank you received: 10
10 years 4 months ago #198908

OK. I'll try that.

Thanks

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

  • Posts: 208
  • Thank you received: 10
10 years 4 months ago #198912

I don't think this is working....

I deleted the product option for Unit Size and created a characteristic instead.
I did the same for more mailings.

Now, there's a field to choose unit size and I choose Try-Me 50 ($45)
But the field for more mailings still shows the options to choose.

So I choose 10 mailings and it displays ($45). Now technically, that's correct, but I don't want the customer to THINK they have chosen 10 more mailings and will receive them but only pay $45 for them!!!

Is there any way I can cause an error message to display if a customer chooses any Try-Me service and attempts to choose more mailings?

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

  • Posts: 12953
  • Thank you received: 1778
10 years 4 months ago #198996

Hello,

So I choose 10 mailings and it displays ($45). Now technically, that's correct, but I don't want the customer to THINK they have chosen 10 more mailings and will receive them but only pay $45 for them!!!

Is there any way I can cause an error message to display if a customer chooses any Try-Me service and attempts to choose more mailings?

To do that you'll have to use some code customization or create a plugin which will check what you add on your cart.
Why don't you just use another characteristic named "More mailings" with a "Yes" and "No" value ?

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

  • Posts: 208
  • Thank you received: 10
10 years 4 months ago #199023

Thanks Mohamed.

I guess what I'm trying to avoid is a customer choosing the Try-Me...and then because the option to add more mailings is available...they choose YES... It seems simple to you and me...but if it's available, somebody will choose it.

I want to restrict them from even having the option to chose it.

Another problem is that I have no way of letting customers know that the add more mailings field is ONLY for those choosing the unit size of 6 or more since characteristics don't have one of those information buttons available like the product option does.

Is there any way I can put some text after the unit size option to let them know that? See example below:

Attachments:

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

  • Posts: 12953
  • Thank you received: 1778
10 years 4 months ago #199277

Hello,

I guess what I'm trying to avoid is a customer choosing the Try-Me...and then because the option to add more mailings is available...they choose YES... It seems simple to you and me...but if it's available, somebody will choose it.

If you're using a characteristic for the "Try Me" value, the solution will just be to remove the "add more mailings" and "Try Me" combination through the variants manager page of your product configuration page (you'll just have to press on "manage variants")

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

  • Posts: 208
  • Thank you received: 10
10 years 4 months ago #199353

Yes, that works! Now when customers choose a try me...the amount stays the same. I'll just make sure when I send a confirmation, they realize they haven't really chosen more mailings.....

Also, can you check my last question on that same post....about how to add text to the options?

Thanks
Pam

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

  • Posts: 84304
  • Thank you received: 13698
  • MODERATOR
10 years 4 months ago #199386

Hi,

You can edit the file "show_block_charactersitic" via the menu Display>Views and add your text at the bottom of the file

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

  • Posts: 208
  • Thank you received: 10
10 years 4 months ago #199480

Will that add it ONLY for this product...or will it add it on every product?

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

  • Posts: 84304
  • Thank you received: 13698
  • MODERATOR
10 years 4 months ago #199524

It will add that for every product.
If you want a different text for different products, you can instead create a custom product field via the menu Display>custom fields, and add such code in order to display it at the bottom of the show_block_characteristic view file:
<?php echo @$this->element->main->column_name; ?>
where column_name is the column name of your custom product field.

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

  • Posts: 208
  • Thank you received: 10
10 years 4 months ago #199558

OK. I'll try it.

Thank you

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

Time to create page: 0.072 seconds
Powered by Kunena Forum