• Resolved garbure64

    (@garbure64)


    Hello there,

    This plugin works like a charm, many thanks! Had a small compatibilty issue with another plugin but found better designed tool anyway.

    Just a quick question : do you think I could use this plugin to add an information (the units) just after the “+” button ? I would like my customers to know exactly what they are ordering, for exemple “<-> 3 <+> packs <Add to cart>”

    I’m sure it’s quite easy but I’m not that skilled, I guess the field “sku” could be used there, but have no idea how to add it.

Viewing 1 replies (of 1 total)
  • Plugin Author taisho

    (@taisho)

    Hello,

    unfortunately, I can’t solve individual needs that are not in the scope of the development of this plugin. For the product page, an example call in child theme functions.php would be:

    add_action( 'woocommerce_before_add_to_cart_button', 'name_of_your_function_that_generates_unit_info_based_on_product' );

    For shop & category pages, assuming that they have a standard structure:

    add_action( 'woocommerce_after_shop_loop_item', 'name_of_your_function_that_generates_unit_info_based_on_product', 9 );

    This said, constructing a function to get the product info and later assign values to it, can be challenging.

    Best regards,

    Ryszard

Viewing 1 replies (of 1 total)

The topic ‘Displaying SKUs after button’ is closed to new replies.