Show cart module only when it has something in
Try to use the following Javascript if there is no products in the cart:
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
if there is no products in the cart:
You can add the previous code in the php check like:
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
You can try to add a suffix to the module in the Joomla option, set something like "-cart".
Then use the code:
Replace "moduletable-cart" by the class of your module, you can find it with, for example, firebug.
Please Log in or Create an account to join the conversation.
Please log in or register to see it.
Please Log in or Create an account to join the conversation.
Could you give me a backend access via mp ?
Please Log in or Create an account to join the conversation.
i m trying to do the same thing and i have the same problem
could you help please ?
Please Log in or Create an account to join the conversation.
Well the solution is the same. You shoudl be able to do it with AMM. Otherwise, the code modification proposed by Xavier is also a solution. Just do as explained in the previous messages.
Please Log in or Create an account to join the conversation.
i tried to use xaviers code but it does not hide the title of module
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
The way to do that is:
- In the Joomla cart module options, at the end of the "Module Class Suffix" option add :
Please Log in or Create an account to join the conversation.
after this script
when i click on the categories (Κατηγορίες) on one of the subcategories the module disappears and only the title remains
helppp !!!!
Please Log in or Create an account to join the conversation.
The problem don't come from the script.
It's due to the parameters of the module "Κατηγορίες", it display content depending on the category displayed.
If the category have no sub categories so it's empty.
Please Log in or Create an account to join the conversation.
i m not sure i understood that. could u please tell me the steps to fix it ????
regards
Please Log in or Create an account to join the conversation.
If you don't want that, you should use the solution with AMM.
Please Log in or Create an account to join the conversation.
what xavier did and said to me worked perfectly to the module i wanted
the problem is to another module so i asked whats wrong with the other one and how to fix it !
regards
Please Log in or Create an account to join the conversation.
That's because you have the "Synchronize with currently displayed item when possible" turned on in the hikashop options of your module. You should turn off that option.
Please Log in or Create an account to join the conversation.
I have tried your last solution with the Module Class Suffix and Product/Cart and it does hide the cart when empty. However the problem is that when you add an item to the cart, the cart doesn't show up. It only shows up once you've refreshed the page.
Can you help?
Thanks
Erik
Please Log in or Create an account to join the conversation.
Do you have the latest version of HikaShop ?
Can you try to change the value for the option "Use AJAX when possible for add to cart buttons", option in Config > Main > Advanced settings.
Please Log in or Create an account to join the conversation.