product content updated via AJAX

Hi,



Im trying to wrap my head around exactly how cs-cart updates the product page content when an atrribute is selected.



Im tring to extend the content that is being returned in that ajax call with some content that is being loaded from another site… mainly stock info from our legacy platform.



I saw that the documentation had a little something about it… but it didnt have much.

[url=“http://docs.cs-cart.com/microformats-list#AJAX-updated_product_content”]http://docs.cs-cart.com/microformats-list#AJAX-updated_product_content[/url]



if I follow the code I see that it leads me to the products.post.php file in controllers/common but Im not sure whats going on there.



can anyone point me in the right direction?



thanks!

figured it out! in case your looking for the same answer…



i put this in the /addons/my_changes/hooks/products/product_data.post.tpl



{capture name="delivery_`$obj_id`"}





{/capture}

{if $no_capture}
{assign var="capture_name" value="delivery_`$obj_id`"}
{$smarty.capture.$capture_name}
{/if}





make sure to leave the last html comment in the cm-reload node…


```php


```



… or else it will just append the loaded content to div.helper-container.