Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Quick View with Configurable Products Problem
 
Riti
Member
 
Total Posts:  33
Joined:  2010-03-09
 

Hello,

I am working on Quick view of Products(configurable) on catalog list page.
But when I write

$result .= “<script language=\"text/javascript\">
var optionsPrice = new Product.OptionsPrice(".$att2->getJsonConfig().");
</script>”;

$result .= “ <!----- MORE CODE HERE TO SHOW PRODUCT AND ATTRIBUTES DROP DOWN --->”;

echo $result;

code for changing prices on select of some attribute.
It shows an javascript error

optionsPrice is not defined
[Break on this error] optionsPrice.changePrice(’config’, price);

Similar is the case when I try to submit my new custom form with help of varien’s function

var productAddToCartForm = new VarienForm(’product_addtocart_form’);
productAddToCartForm.submit = function(){

if (productAddToCartForm.validator.validate()) {

productAddToCartForm.form.submit();
}
}

productAddToCartForm is not defined

I have checked the form name, its correct.

I am writing all this stuff in my custom module’s ProductController.php.

Big Problems ::
1.  I am not able to modify price on selection of any attribute (Color Black has +10)
2.  Unable to submit for to cart page with varien’s class in product.js.

However I am able to submit it via simple javascript and its show correct selected attribute options on cart page.

Can anyone help me regarding this problem?

Thanks,
Riti

 
Magento Community Magento Community
Magento Community
Magento Community
 
sanjeevkj
Jr. Member
 
Avatar
Total Posts:  6
Joined:  2009-09-13
 

Hello,

Same problem here.
I have displayed product view page using ajax but add to cart and drop-down functionality is not working.
Please post solution if you got it.

Thank You

 
Magento Community Magento Community
Magento Community
Magento Community
 
sukhwantc
Jr. Member
 
Total Posts:  29
Joined:  2013-04-17
 

I am also facing the same problem. Everything works fine except for configurable products. Dropdown is showing but with no options.

Please share the solution if found. Will keep posted if solution found

regards
Sukhwant

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top