| @@ -142,8 +142,11 @@ | ||
| 142 | 142 | wp_send_json_success([ |
| 143 | 143 | 'wishlist_id' => $result['wishlist_id'], |
| 144 | 144 | 'count' => $result['count'], |
| 145 | 145 | 'state' => !empty($result['success']) ? ($this->service->has_item($product_id, $variation_id, $wishlist_id) ? 'added' : 'default') : 'default', |
| 146 | + 'page_html' => $this->shortcode_page([ | |
| 147 | + 'wishlist_id' => $result['wishlist_id'] ?? '', | |
| 148 | + ]), | |
| 146 | 149 | ]); |
| 147 | 150 | } |
| 148 | 151 | |
| 149 | 152 | /** |