Hide quote form when no items in cart

asked Jan 20, 2015 by fippu82 (600 points)
Hi, can you give me a hint how to achieve that the quote form is only displayed when the cart actually contains items? Otherwise it looks a bit silly on the checkout page with the quote form, but no items in the cart. I know that the checkout widget displays "no items in cart" in this moment, but the quote widget unfortunately doesn't. I am planning to buy the paypal add-on later and use the checkout widget when the business got running, but in the beginning I can live with manual payments as I only do pickups within my city for the beginning.

Thanks,
Philippe

1 Answer

answered Jan 20, 2015 by Artem (1,320 points)
selected Jan 23, 2015 by fippu82
 
Best answer
hello, Philippe
you need to put your quote form in magicspace like this :

{paymentgateways}

{$plugin:authorize:creditcard}
{$quote:form:firstname:lastname:company:email*:address1:address2:country:city:zip:phone:disclaimer}

{/paymentgateways}
commented Jan 20, 2015 by fippu82 (600 points)
Thanks for your answer. However, I don't get it. What exactly does the Magic space do? I mean, if I use quotes, I don't. Need the paymentgateway - I also didn't install the authorize plugin.
commented Jan 20, 2015 by Artem (1,320 points)
this is just an example, you don't need authorize plugin, just wrap widget of quote form
commented Jan 23, 2015 by fippu82 (600 points)
Got it, important was to keep the checkout widget there as well! I have removed it because I thought it's not needed if there's a quot form.
...