Originally Posted by
jsarwar
Thank you but there is only one language file for both. How I can define separately in 1 file?
I had downloaded the plugin to take a closer look and actually it will take more than duplicating the define in the language file as the icon is set in the function "product_stock_icon".
For the define, duplicate it like this:
Code:
define('PRODUCT_LISTING_STATUS_QTY_GREEN_ICON',zen_image(DIR_WS_TEMPLATE_ICONS . 'icon_status_green.gif', 'in stock', 10, 10));
So the above will be a separate define for the green icon for the product listing page. You will do the same for all other defines you need seperated. Now to use the new define for the product listing php file, the easiest way is to duplicate the function and change the relevant defines to the new one you made above. Just add this duplicate funtion below the one included.
And last in the product listing php file, change the function to your new function you created above.
This will now provide you with separate controls for both. This is the simplest way for you to do what you want.
Bookmarks