Jump to content

How to add product description to ajax pop up?


Rollaen

Recommended Posts

Hello guys,

 

 

I am trying to display short description in ajax pop up which pops right after adding to cart.

 

 

I tried to add following code to the ajax-cart.js:

$('#product-desc-cart').text(product.description_short);

I am adding the official code, which is similar however does not contain short description:

if(ajax_popup){
$('#layer_cart_product_title').text(product.name);
$('#layer_cart_product_attributes').text('');
if (product.hasAttributes && product.hasAttributes == true)
$('#layer_cart_product_attributes').html(product.attributes);
$('#layer_cart_product_price').text(product.price);
$('#layer_cart_product_quantity').text(product.quantity);
$('.layer_cart_img').html('<img class="layer_cart_img img-responsive" src="' + product.image + '" alt="' + product.name + '" title="' + product.name + '" />');

I can not figure out which (product."something") combination is the right if it is even defined somewhere.

 

Any help is much appreciated.

 

 

Best regards

 

Rob

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...