Hallo,
habe einen neuen Shop aufgesetzt mit den Multi Variants. Eigentlich perfekte Lösung um verschieden Farben, Größen oder sonstiges in einem "Selbsterstellten Feld" zu steuern.
Nur leider werden die Änderungen an den Auswahlfeldern im Frontend nicht übernommen. Es findet also keine Aktualisierung der Seite statt.
Habe als Test auch nochmal die produktdetails-default.php von Virtuemart ausprobiert, um auszuschließen, dass es an der produktdetails-default.php des Templates liegt.
Habe auch versucht mit dem PlugIn jQuery Easy einen evtl. jQuery Konflikt zu lösen. Komme ich aber nicht mit weiter.
Auf dieser Seite habe ich eine Multi Variante laufen:
https://bow.oakmountain.de/index.php...n/karte-detail
Vielleicht hat hier ja jemand eine Idee.
Joomla 3.4.4, Virtuemat 3.0.10
Mittlerweile habe ich im Netz etwas gefunden was helfen könnte, bin aber kein PHP-Experte, und weiß daher nicht ob und wie ich diesen Code in die produktdetails default.php einfügen soll. Vielleicht kann ja jemand von Euch etwas damit anfangen:
add this here:
<?php } // Product Packaging END
?>
<?php
//comment if there are something different to it, i add it:
echo shopFunctionsF::renderVmSubLayout('customfields',array('product'=>$this->product,'position'=>'onbot'));
echo shopFunctionsF::renderVmSubLayout('customfields',array('product'=>$this->product,'position'=>'related_products','class'=> 'product-related-products','customTitle' => true ));
echo shopFunctionsF::renderVmSubLayout('customfields',array('product'=>$this->product,'position'=>'related_categories','class'=> 'product-related-categories'));
?>
<?php // onContentAfterDisplay event
and it must at the end:
<?php
echo $this->loadTemplate('reviews');
//new here
// Show child categories
//if (VmConfig::get('showCategory', 1)) {
// echo $this->loadTemplate('showcategory');
//}
$j = 'jQuery(document).ready(function($) {
Virtuemart.product(jQuery("form.product"));
$("form.js-recalculate").each(function(){
if ($(this).find(".product-fields").length && !$(this).find(".no-vm-bind").length) {
var id= $(this).find(\'input[name='virtuemart_product_id[]"]\').val();
Virtuemart.setproducttype($(this),id);
}
});
});';
//vmJsApi::addJScript('recalcReady',$j);
/** GALT
* Notice for Template Developers!
* Templates must set a Virtuemart.container variable as it takes part in
* dynamic content update.
* This variable points to a topmost element that holds other content.
*/
$j = "Virtuemart.container = jQuery('.productdetails-view');
Virtuemart.containerSelector = '.productdetails-view';";
vmJsApi::addJScript('ajaxContent',$j);
echo vmJsApi::writeJS();
?>
</div>
EDIT: I put it in:
/templates/mytemplate/html/com_virtuemart/productdetails/default