I love Tutor LMS and am really enjoying building my new site with it.
I wanted to see if it is possible to allow students to do the following:
Currently, if they would like to purchase a course as soon as they click ‘Add to basket’ they are required to either log in or make an account. Is it possible for me to set my site up so that students can add courses to there shopping basket, and only require them to log in or make an account once they click on the purchase button?
It would be perfect if students could see the items in there basket before they are required to log in. Is this possible, either in the free version or the Pro version of Tutor LMS?
Kindest regards
Paul?
]]>Trigger the basket drawer to open from the right hand side on WP 2024 theme when a user clicks some custom text on the header and not just the ‘basket icon’.
Attempted Solution
I wrote this JS as from what I saw in the DOM i could see that this is what was changing, so I thought that add this CSS when the user clicks my custom element would make the drawer open
document.querySelector('.sigurd-123').addEventListener('click', function() {
document.body.classList.add('drawer-open');
document.querySelector('.wp-site-blocks').setAttribute('aria-hidden', 'true');
});
Outcome right now..
However this does not work. The code is defs triggering and I put a console.log in there and it was working but no success.
I cannot go into the Woocommerce JS and see exactly what is happening because it is all minified and so it is impossible to read this code.
I would prefer not to put the website here, however it is just normal WooCommerce site that used the WP 2024 theme and so when you click the basket icon (which displays the number of basket items) the drawer opens from the right and you can see all the items in the basket or it will say that the basket is empty.
Thanks
]]>We are using a gift card plugin (https://www.pimwick.com/gift-cards/) in conjunction with WooCommerce, and when we add an emoji to the gift card message, the gift card is not able to add to cart.
We spoke to our gift card plugin support team and they tried deactivating all plugins including the gift card plugin, leaving on only WooCommerce. They then added the “Extra Product Options” plugin which will allow for a custom field to be added to the product page.
Then they created a Simple Product type and a simple Text field for the extra product option. When trying to add the product to the cart with an emoji, it also fails to add to cart.
So it seems like it is an issue with WooCommerce… Does anyone have any ideas how we might solve this?
Many thanks,
Paul
]]>I’m using the variation swatches plug-in, which i’m very happy with. I only have one problem.
Instead of ‘add to cart’ I use the phrase ‘add to basket’ on my website. When I’m at my shop page and I have selected the variation of a product I want to buy, it automatically says ‘add to cart’. Instead I want it to say ‘add to basket’.
How do I change this?
Kind regards
]]>We tried to install GTM4WP on our Oxygen website. When we tested the process of making an order we got a 403 forbidden error when adding a product to the shopping basket. When we deactivate the integration in GTM4WP of Enhanced ecommerce OR old ecommerce integration the error is gone. Unfortunately when these integrations are switched off we can not see the purchase event in Tag Manager.
Is there any solution for implementing GTM4WP with Oxygen with the integration enhanced ecommerce?
]]>I have added a products widget and when I am in edit mode the page looks like this. https://snipboard.io/61kvGL.jpg
However when I look at the live version it looks like this. https://snipboard.io/mT3WnL.jpg
Does anyone have any idea why the “add to basket” isn’t showing?
]]>On a page where I use the Hand Picked Products block, when I click to Add to Basket, what I then see is the words ‘View Basket’ that appear next to the ‘Add to Basket’ button. See screen grab on Droplr here: https://d.pr/i/97QiDH
Is that normal behaviour and if so, how can I change it to behave in the same way that ‘normal’ product buttons behave.
]]>Whenever I get a new user register for my site, the add to quote/basket button does not show? But I can see it as an admin. Why is this being hidden to subscriber and customer user accounts and how can I fix it?
]]>urgently need a valid fix for this issue.
I am testing that when a customer makes a payment for a course I’ve made on Tutor LMS via wooCommerce (either Paypal or Stripe) that they can then access the course (should be enrolled in other words)
This is not the case, once payment is made, if they go back to the course they are not enrolled and the “add to basket” button is still shown.
I have read all the other topics and tried every solution posted and I still have the same issue.
Solutions tried:
– Using WooCommcerce autocomplete as someone posted that in order to be enrolled the order status needs to be ‘completed’. This does update the amount of students enrolled but the user still cannot access the course.
– Update woocommerce.php: change ’10, 3);’ to ’10, 1);’
– add_action(‘woocommerce_new_order’, array($this, ‘course_placing_order_from_admin’), 10, 1);
add_action(‘woocommerce_thank_you’, array($this, ‘course_placing_order_from_customer’), 10, 1);
This didn’t work.
– I have gone through both Tutor LMS wizard and wooCommerce wizard again just to be sure I haven’t missed anything.
– I can enroll no issue when I make the product free.
– Settings:
1. woocommerce is selected in monetization tab for tutor lms.
2. product setup in woocommerce is ‘simple product’, virtual and for tutor is also selected.
3. Tutor lms ‘add product’ has the woocommerce product selected.
4. Both are published
Can someone please give me a solution that works. I am due to launch my course in a few days and I have no confidence that anyone will actually be able to use the course at this point in time.
Nothing seems to work.
I have just used the below php to add a quantity field to the woocommerce shop page.
However I can find a way to align it alongside the add to basket button.
Can anyone help?
Thanks!
/**
* Add quantity field on the archive page.
*/
function custom_quantity_field_archive() {
$product = wc_get_product( get_the_ID() );
if ( ! $product->is_sold_individually() && ‘variable’ != $product->product_type && $product->is_purchasable() ) {
woocommerce_quantity_input( array( ‘min_value’ => 1, ‘max_value’ => $product->backorders_allowed() ? ” : $product->get_stock_quantity() ) );
}
}
add_action( ‘woocommerce_after_shop_loop_item’, ‘custom_quantity_field_archive’, 8 );
function custom_add_to_cart_quantity_handler() {
wc_enqueue_js( ‘
jQuery( “body” ).on( “click”, “.quantity input”, function() {
return false;
});
jQuery( “body” ).on( “change input”, “.quantity .qty”, function() {
var add_to_cart_button = jQuery( this ).parents( “.product” ).find( “.add_to_cart_button” );
// For AJAX add-to-cart actions
add_to_cart_button.attr( “data-quantity”, jQuery( this ).val() );
// For non-AJAX add-to-cart actions
add_to_cart_button.attr( “href”, “?add-to-cart=” + add_to_cart_button.attr( “data-product_id” ) + “&quantity=” + jQuery( this ).val() );
});
‘ );
}
add_action( ‘init’, ‘custom_add_to_cart_quantity_handler’ );
]]>