Reputation: 39
I would like to add product description in a quick view section of my big commerce store. So please any one how can i achieve this?
I have already tried to add this panel %%Panel.ProductDescription%% in to my Quickview.html file.but no luck.
Please any one..
Upvotes: 0
Views: 1640
Reputation: 83
There is a BC variable that can be used to display the Product Description excerpt in quick view: %%GLOBAL_QuickViewProductDescription%% add it to QuickViewContent.html
Upvotes: 1
Reputation: 1
I have done some Ajax script call
you need to add below script inside "Panels/QuickViewContent.html" Panel.
it will fetch the description from it's product Page.
function processData(item){
return function(data){
var desc = jQuery(data).find("#ProductDescription .ProductDescriptionContainer").text();
desc = desc.substr(0,450);
jQuery("#QuickViewContent").find('.PriceRow').after("<div class='desc'>"+desc+"...<a class='read-more' href='"+item+"'>more</a></div>");
}
}
jQuery(document).ready(function(){
var path = '%%GLOBAL_QuickViewProductURL%%';
if(path!="") {
path = path.replace("http://","//").replace("https://","//");
var item = path;
$.ajax({
url: path,
type: "GET",
async: true,
success: processData(item)
});
}
});
Upvotes: 0