我想为Windows平台开发应用程序&至少我需要一个基于Windows OS (2008)、SQL Server、IIS和Visual Studio的服务器。看起来光是VS2010专业版就要花1000多美元。有没有更便宜的选择来获得微软软件?我记得很久以前有一个MSDN订阅选项,它允许用户访问基于服务器的操作系统和其他服务器应用程序,并具有成本效益的限制性许可。我再也看不到那个选项了。此外,我不是一名学生&我知道微软以折扣价为学生提供软件。有什么建议吗?
我有一个问题,一个插件是如何在一个变量选择后,在一个可变的产品页面上显示融资价格。
原始代码:
if (is_product())
{
/**
* Calculate and display installmentes for each child in variation product
*/
add_action('woocommerce_before_single_variation', array($this, 'fswp_variable_installment_calculation'), 99);
}
正
我有以下表格:
discount table:
id
name
description
amount
discount_exception
id
from_date
to_date
discount_id (foreign key to discount table)
折扣例外表用于存储折扣对用户不可用的日期范围,因此不应显示折扣。请注意,discount和discount_exception之间存在1:M的关系。换句话说,一个折扣可以有很多例外。
现在,我编写SQL的方法是获取所有折扣,然后在数组中循环它们,并查询discount_exception表,以确定每个折扣是否在特定的日期范围内