• Resolved primetime2

    (@primetime2)


    Hi there,

    Hi there,

    I am using the woocommerce intergration to add a subscription to the cart.
    I have put the shortcode on a product. The product is not the domain, it is a hosting plan.
    The link works ok to buy now, such as /cart/?add-to-cart=1561&domain=gfhgfhfgh.com
    The problem is that the cart item does not include the details of the hosting plan. It only has the domain name.
    How do I get the product that the buy now button was on into the shopping cart?
    For example the sku, product name etc.

    I understand the details in the cart are coming from the linked purchase product in the individual TDL settings section. This is fine. But I would like to add some extra details from the current product to it.

    Thanks

    -P

    • This topic was modified 1 year, 7 months ago by primetime2.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter primetime2

    (@primetime2)

    I have solved this using chat-gtp ??

    Can you share how to do this?

    • This reply was modified 1 year, 6 months ago by licenseprox.
    Thread Starter primetime2

    (@primetime2)

    If I recall correctly, you can use jQuery to grab the values from the webpage and store them in Advanced Custom Fields. In Advanced Custom Fields you can set a field group to display on an order. Then you can retrieve the field data anywhere you have an order_id. My suggestion is just to ask chatgtp what you want and be patient with it because it might take a few goes to get the right answer.

    Plugin Author WP24

    (@wp24dotorg)

    Could you explain how you have configured your products and how the domain should be added?
    You have different hosting plans as products and the domain should be added before or afterwards?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Include current product details in the cart’ is closed to new replies.