Output the sku

I need this line of code to retrieve and display the sku and so far I cannot get it to echo the sku. Please help. <?php echo $this->escapeHtml($this->getSku());?>
5 Replies
Jochem
Jochem•2y ago
this is technically backend, PHP's exclusively a backend language As for your question, that's not enough code to be able to help you I'm afraid are you using a framework? What class are you calling $this in? What does getSku()'s function definition look like?
Spiritual Tech
Spiritual TechOP•2y ago
Is this the wrong place to ask for backend help? We use MAgento 1.9.
Jochem
Jochem•2y ago
there's a #back-end channel for it 🙂
Spiritual Tech
Spiritual TechOP•2y ago
Oh, okay I found it, thanks.
StefanH
StefanH•2y ago
Also please use code blocks
Want results from more Discord servers?
Add your server