<?php
Yii::setAlias('@common', dirname(__DIR__));
Yii::setAlias('@frontend', dirname(dirname(__DIR__)) . '/frontend');
Yii::setAlias('@backend', dirname(dirname(__DIR__)) . '/backend');
Yii::setAlias('@console', dirname(dirname(__DIR__)) . '/console');
var productId = $(this).attr('product_id');
let that = $(this);
function productDeleteWish() {
// $that.load('/?option=com_ajax&module=jshopping_wishlist&product_id='+productId+'&format=raw&method=myProductDeleteCart', function(response) {
// $that.attr('delete_url', response);
// //alert(response);
// });
$.get('/?option=com_ajax&module=jshopping_wishlist&product_id=' +productId+ '&format=raw&method=myProductDeleteCart', function(data){
that.attr('delete_url', '/wishlist/delete?number_id=' +data+ '&ajax=1');
});
};