Greetings. I am using Concrete 5 - V 8.5.5 and installed community store add-on for ecommerce. All the product information are uploaded via automated excel and i did scripted to create the page via custom program. By default, the community store product details page works with full page template. Instead of that, i have created custom template “product details” and wants to load the product details information in the front end. Some how, the product details didn’t load correctly if am using my custom template id in the program. Here is the snippet
Custom program snippet :-
$templateID = 16; [New Template ID instead of Full page] Product::getByID($pId)->generatePage($templateID); Product::getByID($pId)->updatePage(); Product::getByID($pId)->updateUrlSlug($newurl);
My Product details page contains this snippet
<?php $a = new Area('Main'); $a->setAreaGridMaximumColumns(12); $a->display($c); ?>
Kindly let me know what went wrong !! ?