Php 如何从Magento删除已完成订单的已保存信用卡号?
我们正在为我们的网站使用已保存的cc。我们希望刷新已完成订单的已保存信用卡信息。有人可以帮助完成此操作吗?最后,我创建了一个自定义扩展来完成此操作。Magento将cc信息存储在sales\u flat\u order\u payment和sales\u flat\u quote\u payment中。我扩展了order grid类并添加了自定义操作和控制器Php 如何从Magento删除已完成订单的已保存信用卡号?,php,mysql,magento,credit-card,magento-1.9,Php,Mysql,Magento,Credit Card,Magento 1.9,我们正在为我们的网站使用已保存的cc。我们希望刷新已完成订单的已保存信用卡信息。有人可以帮助完成此操作吗?最后,我创建了一个自定义扩展来完成此操作。Magento将cc信息存储在sales\u flat\u order\u payment和sales\u flat\u quote\u payment中。我扩展了order grid类并添加了自定义操作和控制器 `$updatefirsttable = "UPDATE `sales_flat_order_payment` SET `cc_numbe
`$updatefirsttable = "UPDATE `sales_flat_order_payment` SET `cc_number_enc` = NULL,`cc_exp_month`=NULL,`cc_exp_year`=NULL,`cc_type`=NULL WHERE `entity_id` =$transactions->entity_id";
$updatesecondtable = "UPDATE `sales_flat_quote_payment` SET `cc_number_enc` = NULL,`cc_exp_month`=NULL,`cc_exp_year`=NULL,`cc_type`=NULL WHERE `quote_id` =$transactions->quote_id";`
最后,我创建了一个自定义扩展来执行此操作。Magento将CC信息存储在sales_flat_order_payment和sales_flat_quote_payment中。我扩展了order grid类并添加了自定义操作和控制器
`$updatefirsttable = "UPDATE `sales_flat_order_payment` SET `cc_number_enc` = NULL,`cc_exp_month`=NULL,`cc_exp_year`=NULL,`cc_type`=NULL WHERE `entity_id` =$transactions->entity_id";
$updatesecondtable = "UPDATE `sales_flat_quote_payment` SET `cc_number_enc` = NULL,`cc_exp_month`=NULL,`cc_exp_year`=NULL,`cc_type`=NULL WHERE `quote_id` =$transactions->quote_id";`
这是我的扩展的一个链接,这个答案是life saver。这是我的扩展的一个链接,这个答案是life saver。适用于我的PHP脚本。别忘了从其他人那里关闭它:)这个PHP脚本适合我。不要忘记与其他人关闭:)