Hello,
I am trying to add the sku into the Advanced layout builder product purchase button. Any help or getting me pointed in the right direction would be appreciated.
Cheers,
BC
Hey smoke_house!
The function of add to cart is actually really hard and strange to play with.
If you want to hook the SKU there, it will do take a lot of time.
The easiest way is to try hire a freelancer to help you out with that.
Thank you
Best regards,
Basilis
Hi Basilis,
I appreciate the quick response. That’s fine but can you please tell me which file it is in?
Hi!
You have to modify the config-templatebuilder > aviashortcodes > product_snippet_button.php file. If you don’t want to modify the file, just use the following hooks.
// woocommerce_before_add_to_cart_button
// woocommerce_after_add_to_cart_button
Example:
// https://kriesi.at/support/topic/product-page-star-rating-under-cart-button/#post-94392
// https://kriesi.at/support/topic/how-to-show-product-price-on-product-detail-page/#post-87571
Cheers!
Ismael
Thanks Ismael!
Appreciate the support!