In the current competitive market, green products are becoming more and more in demand across all customer demographics due to environmental contamination. Consequently, this has a direct impact on the notable rise in product demand. Conversely, a product cannot be used or repurposed if its maximum useful life has already elapsed. Therefore, the product's maximum lifespan plays a crucial role in inventory management. Advance payment is a critical component of the supplier–retailer relationship for a seasonal product with high demand. By integrating these issues, an inventory model for perishable goods is created, wherein the demand for the good is impacted by both its selling price and its green level. The model also includes linearly time‐dependent holding costs. According to this model, product greenness has an increasing effect on per‐unit costs. Different numerical examples are studied for supporting this model. Optimality of the objective function is shown graphically as well as numerically with the help of MATHEMATICA software. Finally, a fruitful conclusion is reached after performing a sensitivity analysis and visually depicting the impact of changing various factors.