Hello @bobbyjr,
I install it and tested. It is good plugins. But I want to give my feedback about some little bugs:
Thank you so much.
1. In woocommerce, If we not put Price in Price Area. The add to cart button is disappear by default. And also we can set inventory to purchase only individual order, so the quantity button also disappear
When this plugin active, it force all the products to have add to cart button active even we disable (not put the price)
And also force all the products (whether crowdfunding or not) to have quantity button even we enable the inventory to single purchase
You know, if you select/back a campaign, you can’t add any normal product on the cart. So, it redirects to the checkout page. It’s common. But, if you select normal product you’ll redirect to cart page not checkout page. Can you please check your settings?
Also, you read the plugin documentation: https://www.themeum.com/docs/wp-crowdfunding-introduction/
Read the blog post:
– https://www.sitepoint.com/wp-crowdfunding-the-complete-solution-for-fundraising-websites/
– https://www.maketecheasier.com/wp-crowdfunding-plugin-review/
Let me know if you want to know more information.
Kind Regards,
Fahim Murshed
Themeum Support Engineer
Hello Fahim, Thanks for your answer
No, It is not related to redirect. It is about
1. Add to Cart Button in Single Products and
2. Quantity Button, add Plus Minus quantity
A. In woocommerce if simple products and not virtual. We can set the product To sold individually, by click in Inventory setting. After it click
– Quantity button in Single Product will disappear. Because we only allow customer to purchase one
B. Second, We can hide add to cart button in single product by making the price empty
But unfortunately, when this plugins active is forcing
A. Quantity button still appear even we enable the single order only (it suppose to disappear)
B. Add to cart button also still appear even we disable the price (we put blank) (it suppose to disappear)
This is specific I am talking about simple product affected. Maybe you can simulate to create simple product and enable sold individually in inventory and also make the price blank
But in crowdfunding products and all is fine. it is the best
Dear @bobbyjr,
You can sell regular products as well! These can be on a separate page OR the same page. They work exactly as a normal product would with WooCommerce and can have add to cart buttons on the post grid page.
I want to check your site.
Can you please email me your site URL to [email protected]
Regards,
Fahim
Hello,
I have tested WP Crowdfunding plugin enable/disable mode and yes it has a bug on the “Add to cart” button.
Here is the solution:
Go to modify this file:
/wp-content/themes/YOUR-THEME/woocommerce/single-product/add-to-cart/simple.php
Replace this code or cope from this link https://pastebin.com/kthNUnFP
Codes
<?php $_regular_price = get_post_meta(get_the_ID(), '_regular_price', true); ?>
<?php if ($_regular_price == true): ?>
<form class="cart" action="<?php echo esc_url( apply_filters( 'woocommerce_add_to_cart_form_action', $product->get_permalink() ) ); ?>" method="post" enctype='multipart/form-data'>
<?php do_action( 'woocommerce_before_add_to_cart_button' ); ?>
<?php
do_action( 'woocommerce_before_add_to_cart_quantity' );
woocommerce_quantity_input( array(
'min_value' => apply_filters( 'woocommerce_quantity_input_min', $product->get_min_purchase_quantity(), $product ),
'max_value' => apply_filters( 'woocommerce_quantity_input_max', $product->get_max_purchase_quantity(), $product ),
'input_value' => isset( $_POST['quantity'] ) ? wc_stock_amount( wp_unslash( $_POST['quantity'] ) ) : $product->get_min_purchase_quantity(), // WPCS: CSRF ok, input var ok.
) );
do_action( 'woocommerce_after_add_to_cart_quantity' );
?>
<button type="submit" name="add-to-cart" value="<?php echo esc_attr( $product->get_id() ); ?>" class="AA single_add_to_cart_button button alt"><?php echo esc_html( $product->single_add_to_cart_text() ); ?></button>
<?php do_action( 'woocommerce_after_add_to_cart_button' ); ?>
</form>
<?php endif ?>
Add this code to the theme functions.php
add_action( 'after_setup_theme', 'wpneo_theme_support' );
function wpneo_theme_support() {
add_theme_support( 'woocommerce' );
}
Kindly check and let me know if this works or not.
Eagerly waiting to hear from you.
Regards,
Fahim
-
This reply was modified 7 years, 8 months ago by
FahimMurshed.
Hello, I am using Flatsome Themes
And there is no this file: simple.php
And no “add-to-cart” folder also in this path: /wp-content/themes/YOUR-THEME/woocommerce/single-product/add-to-cart/simple.php
Should I put in other folders?
Thanks and best regards
Yes, please.
Add new dir and create that file.
Thanks.
Hello,
I have a request you to reconsider your review 4stars to 4 stars.
Your review inspires us to make our products better and improve our support quality.
Regards,
Fahim
Hello,
I edited to 5 star. But I don’t know. It is still not working
So which code should I replace? Thanks
Dear @bobbyjr,
Thank you so much for reconsider the review. You are awesome.
Can you please email me- [email protected]?
I’ll assist you personally.
Regards,
Fahim