Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

Help with php settings

Home / Forums / Virtue Theme / Help with php settings

This topic is: Not Resolved
[Not Resolved]
Posted in: Virtue Theme
October 20, 2015 at 10:33 am

Hi, I passed my provider data stock with ” Stock ” , ” Out of Stock ” and “Little Stock ” . You can configure the program I use to import the file using those words to the Stock I have to configure the function.php file with the following command:
my_stock_translate function ( $ x ) {

if ( $ x == ” STOCK “, ” LITTLE STOCK “) {

return ” instock ” ;

} else if ( $ x == ” OUT OF STOCK “) {

return ” Outofstock ” ;

}

}

But every time I do I unconfigures the subject and can not enter to continue working. You know what the problem is ?
Thank you!

  • The forum ‘Virtue Theme’ is closed to new topics and replies.