varunsridharan / woocommerce-quick-donation

Online Donation Using Woocoomerce. for woocommerce user's
https://wordpress.org/plugins/woocommerce-quick-donation
GNU General Public License v2.0
7 stars 11 forks source link

WooCommerce Mini Cart Widget being overwritten on shop page #65

Closed erralb closed 8 years ago

erralb commented 8 years ago

On my shop page, when I add the WC cart widget on the sidebar, it is using the template from plugins/woocommerce-quick-donation/template/cart/donation-mini-cart.php instead of themes/mytheme/woocommerce/cart/mini-cart.php

My site has a WC shop and the WCQD pluign... Is it possible to display the "donation cart" only on some specific page / sidebar ?

BurlesonBrad commented 8 years ago

@ierpe There are several options for this. You can either hard code some conditional rules so that only certain widgets are displayed on certain pages. However a better solution might be to use a plugin so that you can customize these options much easier: https://www.google.com/search?num=20&q=show+widget+on+specific+page

erralb commented 8 years ago

Hey Brad, thanks for your answer!

I probably explained myself a bit wrong here. The thing is, on my shop page(s), like the main products page or the single product page of WooCommerce (and not WC Quick Donation), the mini cart template that is being used is : plugins/woocommerce-quick-donation/template/cart/donation-mini-cart.php or themes/mytheme/woocommerce/donation/cart/donation-mini-cart.php

When it should be, in my opinion, using the template plugins/woocommerce/templates/cart/mini-cart.php or themes/mytheme/woocommerce/cart/mini-cart.php

Do you see what I'm getting at? The template for the WC shop pages should not be using the WCQD donation mini cart template, at least not on the WC pages. Somehow it should be a different Widget all together for WCQD, but right now when you add the WC cart widget in a sidebar, you're getting the WCQD mini cart widget template... know what I mean?

varunsridharan commented 8 years ago

@ierpe sorry i think its a code mistake in my plugin. let me check and solve this and update here. thanks for reporting the bug here

@BurlesonBrad Thanks for your contribution :)

varunsridharan commented 8 years ago

Fixed And Updated in github