Close

Add Product to Cart Custom Code Integration

cirkadia
8 years ago
#9346 Quote
Avatar
  • 8
Hi

I have a nop customization which includes modifications to ShoppingCartController methods

AddProductToCart_Catalog
AddProductToCart_Details
AddItemsToCartFromWishlist

The changes are to do with managing product packaging in specific ways, so each of these includes a call to my custom method which is also in ShoppingCartController.

When I check “Enable Nop Ajax Cart” you seem to be overriding ShoppingCartController and I don’t go into the standard nop methods and therefore my method doesn’t get called.

If I uncheck “Enable Nop Ajax Cart” then I go into the standard code, but I don’t get the nice popup.

Can you suggest a way that I can either:
*call my custom method after your overridden method
*cause the popup to come up when using the standard method

Or any other suggestions you may have…

Thanks
iliyan.tanev
8 years ago
#9352 Quote
Avatar
  • Moderator
  • 347
Hi,

I don't think this is possible without the source code of the plugin.

cirkadia wrote:

call my custom method after your overridden method


Maybe you can achieve this using ActionFilter, but this will require you to reference AjaxCart DLL.

cirkadia wrote:

cause the popup to come up when using the standard method


I think you can not do it because the popup is too tight up with the backend methods.
Regards,
Iliyan Tanev
Nop-Templates Dev Team
cirkadia
8 years ago
#9360 Quote
Avatar
  • 8
Thanks for your reply!

Could you expand on how to do this:

iliyan.tanev wrote:
Maybe you can achieve this using ActionFilter, but this will require you to reference AjaxCart DLL.
iliyan.tanev
8 years ago
#9364 Quote
Avatar
  • Moderator
  • 347
Hi,

Can you open a ticket with link to this post and we will continue the conversation there, because we would need to expose information for our infrastructure, which is not suitable for the forum ? 
Regards,
Iliyan Tanev
Nop-Templates Dev Team
cirkadia
8 years ago
#9379 Quote
Avatar
  • 8
Thanks Iliyan! Opened ticket #1840.