Author Topic: "Generic Child Variant" - Prevent adding Parent to Shopping cart  (Read 35343 times)

motografik

  • Beginner
  • *
  • Posts: 4
    • MotoGrafik
  • Skype Name: klattr1
Re: "Generic Child Variant" - Prevent adding Parent to Shopping cart
« Reply #45 on: May 17, 2013, 16:11:52 pm »
Hi all,

All of you are doing great work here and thanks for all your help.
After reading this post I'm totally confused though :-\

In summary; is there a way to make a custom field (cart variant) as "required" that the customer MUST make the choice and to display "please choose" or similar as a first option in 2.0.18a version?

Thanks in advance.
I am looking for this solution too. To prevent customers from accidentally choosing the wrong drop-down value.

dsrpmedia

  • Jr. Member
  • **
  • Posts: 332
Re: "Generic Child Variant" - Prevent adding Parent to Shopping cart
« Reply #46 on: May 17, 2013, 20:00:29 pm »
I had it working in a previous version, but in one of the new updates the hack stopped working.

I wound up just creating a child named 'please select' with no price, and set it so that it was the first child in the dropdown, not very elegant but it works

solmab

  • Beginner
  • *
  • Posts: 23
Re: "Generic Child Variant" - Prevent adding Parent to Shopping cart
« Reply #47 on: June 01, 2013, 01:07:44 am »
If that works that's great! does not work in Joomla! 2.5.6 VM 2.0.20b

What version are you using dsrpmedia.  If you set a child named 'please select' with no price- it still lets you add that to cart  ???

Any update on how to get round this issue?

Using Joomla! 2.5.6 VM 2.0.20b

dsrpmedia

  • Jr. Member
  • **
  • Posts: 332
Re: "Generic Child Variant" - Prevent adding Parent to Shopping cart
« Reply #48 on: June 01, 2013, 04:01:56 am »
hmmm I`m using joomla 2.5.9, VM 20.20b

the product 'please select' is not orderable - I don `t think I did anything to the code see


http://spectrum.rejuvasolutions.co/wellness/immunity/nasal-sinus-pray-detail

solmab

  • Beginner
  • *
  • Posts: 23
Re: "Generic Child Variant" - Prevent adding Parent to Shopping cart
« Reply #49 on: June 01, 2013, 23:49:01 pm »
Thanks dsrpmedia. It does work.   :)

I had template override.

jgbauer

  • Beginner
  • *
  • Posts: 12
Re: "Generic Child Variant" - Prevent adding Parent to Shopping cart
« Reply #50 on: June 03, 2013, 19:08:02 pm »
can someone clarify the final solution on this issue?

Danny Poole

  • Beginner
  • *
  • Posts: 12
    • D.P. Web Design
Re: "Generic Child Variant" - Prevent adding Parent to Shopping cart
« Reply #51 on: December 05, 2013, 05:00:18 am »
In 2.0.14 you can not longer add the parent, however the first item in the drop down box is your first child so it appears to the customer that they can't order the first child variant. The first item in the drop down box should say something similar to Select Your Variant.

This one worked for me but I changed it so if it is selected after another selection is made it doesn't boot me out to the home page.
Code: [Select]
array_unshift($options, array('value' => '#', 'text' => 'Please select an option'));
Currently using VM3.0.6 on Joomla 3.4 PHP 5.4.30

LTCreations

  • Beginner
  • *
  • Posts: 37
  • Mr. Garrison
    • City Directory On Line
Re: "Generic Child Variant" - Prevent adding Parent to Shopping cart
« Reply #52 on: January 13, 2014, 22:38:00 pm »
There seems to be a lot of confusion - for many reasons. One reason is that some people are using a "Parent/Child" situation and creating resolutions. Those of us who "cannot" use that method are still using an independent product with "Custom Fields" due to the way the clients' products need to be tracked with the SKU "and" inventory.

Hence, there is no method for mandating a customer select something. At least, there has been nothing posted that actually works in the latest J2.5.17 and VM2.0.26d

I've tried many of the solutions, even some hacks. But nothing works - at least nothing I've tried to follow.
I don't want and cannot have my products a child of something. Each product needs to be independent.
And the "hacks" that I've read will be overwritten with any updates - they are not written as overrides. Those that had it working in previous versions, I'm sure, have found that the solutions no longer work...from what I've come across.

Here it is, January 2014, and this simple issue of making a selection "required" eludes VM2.0.26d

Let me ask the developers. What will it take to have the following issues resolved:
selection required to "any" list of custom fields
strikethrough "easily" assigned to the original price
tax per total in cart by US city (AlvaTax is NOT an option)
"Select a shipping method" AND "Select a payment method" hidden when there is ONLY 1 option offered

Will it take money? Time? Expertise?
Those same 4 issues have been now 2 years that I've watched the forums with no resolve.
I don't know how to word this message without it sounding like a complaint. But I truly am asking, what "will" it take for these resolves? Is it because they are only issues in the US?

green-products.co.uk

  • Beginner
  • *
  • Posts: 5
  • A beginner
    • green-products.co.uk
  • VirtueMart Version: 3.0.8
Re: "Generic Child Variant" - Prevent adding Parent to Shopping cart
« Reply #53 on: May 30, 2015, 12:21:50 pm »
Hello,

I know I am adding to an old topic but I cant find anything recent that comes close.

I have the same problem where in the dropdown I want "Please select" or something similar as the first option. Instead I see the description for the parent, and when I click, that is then added to the cart which I really don't want. Only child products should be ok to add to the cart.

Can anyone help with this please. I'm a Joomla and VM novice and I have spent hours trying to fix this. I'm using the Multi Variant Custom Field type.
VM 3.0.8
Joomla 3.4.1

David
Regards

David

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9853
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: "Generic Child Variant" - Prevent adding Parent to Shopping cart
« Reply #54 on: June 04, 2015, 09:30:41 am »
All of the above problems are solved.

When you use the multivivariant just select for your parent in the matrix for one selection "none", done. Download the fullpackage and install the sampeldata
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

green-products.co.uk

  • Beginner
  • *
  • Posts: 5
  • A beginner
    • green-products.co.uk
  • VirtueMart Version: 3.0.8
Re: "Generic Child Variant" - Prevent adding Parent to Shopping cart
« Reply #55 on: June 22, 2015, 17:27:01 pm »
Hello,

I have uploaded the sample data into a staging environment so I can check product setup.

I am still having a problem though with Parent and child setup. When I view categories or do a search the search results show both parent and child - that isnt what I would expect to happen. I have checked the sample data and been through the configuration and matched the setup of the multi-variant custom field exactly but I still see the parent and the child products.

I would appreciate any help I have been trying to fix this for weeks.

Thanks

David
Regards

David

green-products.co.uk

  • Beginner
  • *
  • Posts: 5
  • A beginner
    • green-products.co.uk
  • VirtueMart Version: 3.0.8
Re: "Generic Child Variant" - Prevent adding Parent to Shopping cart
« Reply #56 on: June 24, 2015, 12:14:05 pm »
Hello,

I've found a workaround for this purely by chance.

I noticed that when I upload products with a parent and child relationship from a csv file I get exactly what I needed, so I deleted the incorrect products then just replaced them from a csv file.

No idea why this works given all other things are the same (all setup such as custom fields),but that's how I will be setting them up in future.

David
Regards

David

biltong

  • Jr. Member
  • **
  • Posts: 125
    • Starfish Websites
Re: "Generic Child Variant" - Prevent adding Parent to Shopping cart
« Reply #57 on: October 05, 2016, 17:07:21 pm »
All of the above problems are solved.

When you use the multivivariant just select for your parent in the matrix for one selection "none", done. Download the fullpackage and install the sampeldata

Not quite Milbo - if you already have custom fields setup of a different type to multivariant, e.g. string and assigned values to products then there is still no out-of-the-box solution for this without changing the custom field setup, which is not a viable option if the site is already mostly built.

I don't understand why when all that is needed is a simple Required checkbox for checkout, which is configured in the Custom Field edit.

What am I missing here?

lausianne

  • Jr. Member
  • **
  • Posts: 50
Re: "Generic Child Variant" - Prevent adding Parent to Shopping cart
« Reply #58 on: March 20, 2018, 11:30:49 am »
Bumpring this. Is there any news on the issue, new existing solution or upcoming?
Thank you!

biltong

  • Jr. Member
  • **
  • Posts: 125
    • Starfish Websites
Re: "Generic Child Variant" - Prevent adding Parent to Shopping cart
« Reply #59 on: March 20, 2018, 12:26:20 pm »
I recenty used the services of my template developer to implement a custom solution that makes a cart string custom field 'required'.

See it in action here https://www.trendco.co.uk/shop/rae