News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Can`t select first child option

Started by drevokocur, May 07, 2014, 14:59:27 PM

Previous topic - Next topic

drevokocur

If I have more child items, and the parent is not orderable. I can't add the first selected child to the cart.  I actually have to chose the second child item, then select the first again for it to be enabled to be added to the cart.

I need there also a someting like a first empty position like "Please select variant" or something like that.

I have also searched the forum, and found this, but the hack didn`t worked for me: https://forum.virtuemart.net/index.php?topic=110203.msg410620

Joomla! 2.5.14
VM 2.0.24c

GJC Web Design

from memory I got around this by making a dummy first child called Select with 0 price etc
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

drevokocur

Quote from: GJC Web Design on May 07, 2014, 15:11:31 PM
from memory I got around this by making a dummy first child called Select with 0 price etc

I need a global code-solution for this, I think this is a bug. Funny is, that by some products (or by one child parameter) it works, and others not:
works: http://www.zvarmat.sk/zvaracka-esab-heliarc-283i-ac-dc
works not: http://www.zvarmat.sk/nehorlava-krycia-textilia-esab-1850

And child options settings are the same...

GJC Web Design

there must be something different between the two produt setups then - the base problem is the working one has a  "Selected" option the 1st one is "selected" when you open the page in a html sense

works
<option selected="selected" value="/zvaracka-esab-heliarc-283i-ac-dc">Prosím vyberte</option>

doesn't work
<option value="/nehorlava-krycia-textilia-esab-1850-rozmer-2m-x-1m">Nehorľavá krycia textília ESAB 1850 rozmer 2m x 1m</option>
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

drevokocur

Quote from: GJC Web Design on May 07, 2014, 18:26:09 PM
there must be something different between the two produt setups then - the base problem is the working one has a  "Selected" option the 1st one is "selected" when you open the page in a html sense

works
<option selected="selected" value="/zvaracka-esab-heliarc-283i-ac-dc">Prosím vyberte</option>

doesn't work
<option value="/nehorlava-krycia-textilia-esab-1850-rozmer-2m-x-1m">Nehorľavá krycia textília ESAB 1850 rozmer 2m x 1m</option>

I have found the difference. The first that works is a product, where the parent can by ordered, but by the second the parent can`t be ordered. But I don`t know how to fix it. :(