mercredi 31 décembre 2014

how access magento ProductConfigure.spConfig


I'm trying to load extra information for new orders thru javascript on admin area. I need to get the spConfig info from other script. but, I can't find how can access it. the file I'm using to load it is the /adminhtml/default/default/template/catalog/product/composite/fieldset/configurable.phtml



<script type="text/javascript">
var config = <?php echo $this->getJsonConfig() ?>;
if (window.productConfigure) {
config.containerId = window.productConfigure.blockFormFields.id;
if (window.productConfigure.restorePhase) {
config.inputsInitialized = true;
}
}
ProductConfigure.spConfig = new Product.Config(config);
</script>


any help would be great! thanx!





Aucun commentaire:

Enregistrer un commentaire