Hello,

It seems that without items the cart gets disabled(hidden?), only after you add a minimum of 1 items, it get's visible and even if you remove that items for that session remains visible.

Is it a bug? How can i make it visible permanently?

Comments

neraprojects created an issue. See original summary.

  • quantumized committed 632e4ae on 7.x-1.x
    Issue #2708205: Pop cart buton disabled without items
    
3cwebdev’s picture

I've added a config option to select whether you want to display the cart icon if the cart is empty. It is off/false by default.

3cwebdev’s picture

Status: Active » Closed (fixed)
neraprojects’s picture

Hello,

Well actually it should've worked, but it doesn't.
Three things happened now:
1. If there is zero items (and it says "0"), when hovering there isn't a message anymore that "The cart is empty"! It's just blank. But, if there are NULL items it says "The cart is empty"!
2. And the block doesn't appear if i'm a "first time in the site" anonymous user. Still i need to buy something to appear.
3. Also the Total is not displayed anymore, and i don't see a css "hidden" element.

neraprojects’s picture

Component: Miscellaneous » Code
Status: Closed (fixed) » Needs review
3cwebdev’s picture

Before I troubleshoot this further, please confirm the version of the module that you currently have installed and the 'display empty' value that you have configured. Also please clear the site caches and try once more and let me know the results.

EDIT: I was able to setup the module in a test environment and confirm the issues you reported. Please try the new DEV version and let me know if all issues have been resolved.

  • quantumized committed bc8218e on 7.x-1.x
    Issue #2708205: Pop cart button disabled without items
    
3cwebdev’s picture

Status: Needs review » Closed (fixed)
neraprojects’s picture

Status: Closed (fixed) » Needs work

I activated "Show when cart is empty" and i got this error:

Fatal error: Unsupported operand types in "(root)/includes/theme.inc" on line 1088

EDIT: Weird fact, i don't get the error if i'm logged with the admin user. And the message "cart is empty" still not there.

3cwebdev’s picture

I'm not seeing any errors, not even in the watchdog logs. I also disabled, uninstalled then re-enabled the module so I'd get a fresh start and it still works perfectly for me. Please try reinstalling the module yourself and also clearing the caches just in case then let me know if you still have any issues. If you do, please rovide any further info that may help in troubleshooting.

neraprojects’s picture

Hi,

I did like 4-5 tries like this:

1. On "https://simplytest.me" i got this error:
Fatal error: Unsupported operand types in /home/d0y4v/www/includes/theme.inc on line 1088
The block was in the header nothing else was installed except popcart.

2. Aquaia dev desktop, Commerce Kickstart install, no shop content, no other modules, and same error.

3cwebdev’s picture

Thank you for the information. Although I could not reproduce the issue on my setup, I was able to find one potential cause. Please try the newest DEV snapshot and let me know if you still see the issue. If not, please close the issue.

neraprojects’s picture

Status: Needs work » Fixed

Hello,

Yes the bug visibility issue is fixed.
Great job.

Thank you.

3cwebdev’s picture

Status: Fixed » Closed (fixed)