Forum Replies Created
-
AuthorPosts
-
Soft79Keymaster
The product is a subscription? Can you please try if the problem also exist for simple products?
Otherwise, can you send me credentials to admin at soft79.nl so I can take a look myself?
Soft79KeymasterHow did you hide the item?
Soft79KeymasterOne option would be creating a landing page for that. Just create a page in WooCommerce that shows some kind of ‘congrats you just got rewarded a free product’ and combine it with the free product query string.
March 5, 2016 at 8:33 am in reply to: 2 items are being added to Cart then adding coupon via URL #352Soft79KeymasterYes, it’s a known issue that I have to fix. For now please try the workaround that you can find here:
Soft79KeymasterCan you please temporary disable the other plugins and check whether the issue persists?
You are using my plugin the right way. It shouldn’t be required that the product has a $ 0 value.
Soft79KeymasterSounds like a conflict with another plugin, probably one that affects WooCommerce product prices. What other plugins are you using? Please let me know how to reproduce the issue on your site and, if possible, send admin credentials to admin at soft79.nl.
Soft79KeymasterDo you see the “Next randomize: 2016-xx-xx. Use wp-admin?reset_randomize=1 to execute randomize now.” notice in your admin interface?
Please send me shop manager account login to my email address and I will take a look.
Soft79KeymasterI think In your example the subtotal would be $20 because C is excluded. But anyhow… yes it is possible to only count subtotal of included products.
Soft79KeymasterWell not a bug, just an unexpected feature 😉
for now, just edit line 387 of wjecf-autocoupon.php:
replace
if ( $coupon->get_discount_amount( $cart_item['data']->price, $cart_item ) > 0 ) {
with
if ( $coupon->get_discount_amount( $cart_item['data']->price, $cart_item ) <> 0 ) {
I will fix this in a future version.
Soft79KeymasterI added the option ‘apply discount to …’ to the PRO plugin. Here you can choose to discount only the cheapest item or cheapest order line.
Soft79KeymasterHi Brian,
If you purchased through soft79.nl the file can be find on your account page, otherwise please let me know your order number (through the contact form). If you purchased through CodeCanyon; the new version has been sent for approval so it should be available soon.
Soft79KeymasterSorry for the late reply.
You can achieve this by overriding the template files of my plugin. Copy them into wp_content/themes/your_theme/woocommerce-auto-added-coupons and make the required changes.
You can use
wc_get_product_variation_attributes( $variation_id );
to get all the attributes of a variation.Look into woocommerce/includes/class-wc-cart.php function get_item_data on how to render them.
Soft79KeymasterOops, that’s nasty. And how many msecs for that function after the edit?
Soft79KeymasterYes, you’re right!
Fortunately the bug causes no issues, as later another check is performed to be sure it’s an autocoupon.
I will fix this in the next release, though. Thanks for letting me know!
I wonder, how did you stumble upon this?
Soft79KeymasterI just sent you a snippet that should fix the issue with WPML. Please let me know if it works and I will implement it in the next release.
-
AuthorPosts