Hello, you may override the function getProduct() used for rendering details page. http://docu.oxid-esales.com/CE/sourcecodedocumentation/4.6.2.46646/details_8php_source.html#l00735
there you can check if the article has only one variant (not sure if it does really make sense to have a not buyable parent article with one single variant) or what ever you want and then load the article/variant you want kind regards Marat Von: [email protected] [mailto:[email protected]] Im Auftrag von Gregor Walter Gesendet: Dienstag, 31. Juli 2012 11:38 An: [email protected] Betreff: [oxid-dev-general] Selecting variant automatically - if only one is available Hey there, I am struggling a bit with automatically selecting one available variant automatically. Either because there is only one variant (child) for that parent, or only one is "available" (all other sold out). Doing it with Javascript is a bit awkward, as it would have to reload the page right away after loading it.. thanks for your ideas Gregor ________________________________ Der Inhalt dieser Nachricht ist ausschlie?lich f?r den bezeichneten Adressaten bestimmt. Wenn Sie nicht der vorgesehene Adressat dieser Nachricht oder dessen Vertreter sein sollten, so beachten Sie bitte, dass jede Form der Ver?ffentlichung, Vervielf?ltigung oder Weitergabe des Inhalts dieser Nachricht unzul?ssig ist. Wir bitten Sie, sich in diesem Fall mit dem Absender der Nachricht in Verbindung zu setzen. Diese Nachricht wurde durch einen Virenscanner auf Viren und sonstigen sch?dlichen Inhalt gepr?ft, jedoch wird keinerlei Haftung f?r Sch?den wegen Viren ?bernommen. Auch wird keine Haftung f?r Sch?den ?bernommen, die aus einer Ver?nderung des Inhalts dieser Nachricht durch Dritte entstehen k?nnen. Wenn Sie auf diese Nachricht antworten, beachten Sie bitte, dass durch innerbetriebliche Regelungen Ihre E-Mail eventuell auch durch einen anderen als den bezeichneten Adressaten gelesen werden kann. This message is confidential and intended solely for the use of the individual or organization to whom it is addressed. Should you not be the intended addressee of this message or his or her representative, please note that publication, replication of the contents by any means or further communication of the content is not permissible. Should you have received this message in error, please notify the sender. This message was scanned by a virus and content filter but liability for any viruses transmitted will not be accepted. Furthermore we are not liable for damages arising from alteration of the contents of this message by a third party. If you reply to this message please keep in mind that due to innerorganizational regulations your message could probably be read by someone else than the intended addressee.
_______________________________________________ dev-general mailing list [email protected] http://dir.gmane.org/gmane.comp.php.oxid.general
