- Posts: 42
- Thank you received: 3
Get cart class in Ajax function
3 years 11 months ago #345537
by JF
Get cart class in Ajax function was created by JF
-- url of the page with the problem -- :
eduquay.satumalaysiahosting.com/booklist
Hi there,
I am facing an error which I unable to get cart class in my ajax function. (Previously worked BTW)
The attachments below are my ajax function and product listing.
Hi there,
I am facing an error which I unable to get cart class in my ajax function. (Previously worked BTW)
The attachments below are my ajax function and product listing.
Please Log in or Create an account to join the conversation.
3 years 11 months ago #345540
by nicolas
Replied by nicolas on topic Get cart class in Ajax function
Hi,
You're not loading HikaShop in your code. It's possible it will work if you have a system plugin of HikaShop loading HikaShop before your plugin is triggered by com_ajax, but it's only luck.
You should yourself load HikaShop before trying to use HikaShop with such code:
That way, you're sure HikaShop is loaded before you try using it.
You're not loading HikaShop in your code. It's possible it will work if you have a system plugin of HikaShop loading HikaShop before your plugin is triggered by com_ajax, but it's only luck.
You should yourself load HikaShop before trying to use HikaShop with such code:
Code:
if(!@include_once(rtrim(JPATH_ADMINISTRATOR,DS).DS.'components'.DS.'com_hikashop'.DS.'helpers'.DS.'helper.php')){ return false; }
Please Log in or Create an account to join the conversation.
3 years 11 months ago #345633
by JF
Replied by JF on topic Get cart class in Ajax function
Its worked, thanks!!!
Please Log in or Create an account to join the conversation.
Time to create page: 0.232 seconds