In this post I am going to explain how to get country details by id in PrestaShop 1.7.
// Your Country Id
$id_country = 21;
// Load Country object
$country = new Country((int) $id_country);
// Validate Country object
if (Validate::isLoadedObject($country)) {
// Print Country Object
echo "<pre>";
print_r($country);
echo "</pre>";
}
Write an article about ecommerce that help people to grow their ecommerce business. You’ll find best ecommerce guide, news, tips & more!



Leave a Reply