Search
 
SCRIPT & CODE EXAMPLE
 

PHP

pass the product name to form field cf7 woocommerce

<button type="submit" value="<?php echo esc_attr( $product->get_id() ); ?>"
        class="single_add_to_cart_button button alt"><?php echo _e( 'Request', 'framework' ); ?></button>
<input type="hidden" name="product-id" value="<?php echo absint( $product->get_id() ); ?>" />
<input type="hidden" name="contact-subject" value="<?php echo esc_html( $product->get_title() ) ?>" />
Comment

PREVIOUS NEXT
Code Example
Php :: php multi string to single string 
Php :: php print fetch 
Php :: laravel get current user id 
Php :: drupal form show description 
Php :: laravel get last created id 
Php :: laravel id generator 
Php :: debugbar:clear in laravel 
Php :: how to get today week month ad year data in eloquent 
Php :: how to integrate google reCAPTCHA in codeigniter? 
Php :: while loop laravel 
Php :: php 8 null safe operator 
Php :: laravel hiding attributes JSON 
Php :: php artisan websockets serve 
Php :: add filter in wordpress 
Php :: php iframe add content 
Php :: php 30days 
Php :: php laravel string substring 
Php :: php access class variable 
Php :: how to get post by comment in laravel 
Php :: laravel get 
Php :: wordpress get all published post 
Php :: get the value without setter method laravel 
Php :: scss laravel 
Php :: how to write php in script file 
Php :: logout all users laravel 8 
Php :: pusher 
Php :: convert html to pdf php 
Php :: drop column laravel migration 
Php :: xampp php ini 
Php :: laravel lumen 
ADD CONTENT
Topic
Content
Source link
Name
9+8 =