• Hello,

    I am using the built-in addons of woocommerce product, not the plugin
    and i am getting Error on the printed recipt _addon_items Array

    What should i do to get the addon of items to be printed?
    Its seems that the part of the code below doesn’t get the addon into the Araay.

    <?php $meta = array_map(function ($meta, $key) {
    			$result = '<tr>';
    			$result .= '<td>' . $key . '</td>';
    			$result .= '<td>' . $meta . '</td>';
    			$result .= '</tr>';
    			return $result;
    		}, $meta, array_keys($meta));
    		echo implode(PHP_EOL, $meta);
    		?>

    the code is from details-html.php template.

    i really need help here i must finish my project

    Thanks

Viewing 1 replies (of 1 total)
  • Plugin Author bizswoop

    (@bizswoop)

    Can you please share with us more information about the plugin you are working to develop compatibility with for the template? Official plugin name and link to documentation.

    A quick note, we don’t recommend modifying the default template code. The reason, each time we push an update, this modified template code will be overridden. We’d recommend you create a custom print template: https://www.bizswoop.com/wp/print/developer/

    Using this method will allow you to develop a print template plugin. This acts like a WordPress Plugin, once uploaded you can select the custom print template from the template list under the Location.

Viewing 1 replies (of 1 total)
  • The topic ‘_addon_items Array Error’ is closed to new replies.