Hi,
We would like to see the merchant product id and model information on the product details page.
Is it possible to know how to do that?
Thanks
currentstyle
17-09-09, 11:32
In your shopwindow templates/default/elements folder, you will find a file called product_display.tpl (assuming you're using the default template, if not, then substitute the default above for the name of your template folder)
This is where the product details are shown.
In your classes/class.shopcore.php file on line 433 you will need to add to the returned fields
$oProductParams->aColumnsToReturn = array('sAwImageUrl','sDescription', 'sPromotion','sMerchantProductId');
For adding merchant product Id and model information where they exist, change the above line to
$oProductParams->aColumnsToReturn = array('sAwImageUrl','sDescription', 'sPromotion','sMerchantProductId','sModel');
Then add the new information to your product_display.tpl file
Change this line
<p>{$oProduct->sPromotion}</p>
to
<p>{$oProduct->sPromotion}</p>
<p>{$oProduct->sMerchantProductId}</p>
<p>{$oProduct->sModel}</p>
Not too sure if these fields are generally populated, but, it's what you asked for :D
The list of available returned fields is here
http://wiki.affiliatewindow.com/index.php/Product_PSAPI