WPLMS Woo plugin – add description attributes to URL

Home Forums WPLMS AddOns WPLMS WooCommerce WPLMS Woo plugin – add description attributes to URL

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #68186
    bashudee
    Spectator
    I am trying to show variation descriptions that I have created with the WPLMS Woo Commerce plugin in my Woo Commerce cart. Customer flow:  Product landing page -- select options -- click button custom URL to add the variation that they have chosen directly to the cart.  Customer will never see Woo Commerce product page. I can get the URL to add the product to the cart, but it only shows the generic description so customers won't know what variables they are getting. For example, I get an error with https://sensiblemoneysolutions.com/cart/?add-to-cart=3630&variation_id=3649&attribute_pa_Duration=OneYear&attribute_pa_Students=2&attribute_pa_LiveSessions=No  Error says Duration, Students, and LiveSessions are required fields. But if I use https://sensiblemoneysolutions.com/cart/?add-to-cart=3649 it will add the right product, variations & price to the cart, but won't show the customer that they have bought one year access for 2 students without any live sessions. I tried looking for product slug under products - attributes but there are none set up there.  The plugin must put them somewhere else?  Where can I find the product slugs created by the plugin?
    #68317
    H.K. Latiyan
    Participant
    The variations are actually stored as posts and the connected information is stored in the post meta. So, if you have the post meta value, you can get the connected wplms variation information from the post meta information. refer function get_post_meta The slugs are stored in the posts table under the post_name column, refer function get_post_field
Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘WPLMS Woo plugin – add description attributes to URL’ is closed to new replies.