I need a simple modification to the Ajax Attribute Manager addon.
I want a product colour selected from the selectbox to be passed as a $colour variable to the catalog\includes\modules\pi\product_info\pi_gallery.php page each time the colour selection changes and reload the page.
I know that the attributes form(s) loaded on the pi_gallery.php page are derived from the catalog\includes\modules\pi\product_info\templates\tpl_pi_options_attributes.php file but can't see the full code as output in html.
<div class="col-sm-<?php echo $content_width; ?> pi-options-attributes mt-2">
<h6><?php echo PI_OA_HEADING_TITLE; ?></h6>
<?php
foreach ($options as $option) {
echo '<div class="form-group row">' . PHP_EOL;
echo ' <label for="input_' . $option['id'] . '" class="col-form-label col-sm-3 text-left text-sm-right">' . $option['name'] . '</label>' . PHP_EOL;
echo ' <div class="col-sm-9">' . PHP_EOL;
echo ' </div>' . PHP_EOL;echo $option['menu'] . PHP_EOL;
echo $fr_input;
echo '</div>' . PHP_EOL;
}
?>
</div>
I could have done this myself but as I don't know where code for html output is, I am unable to do it. Is this something you can help with?
Many thanks.