If you are familiar with woocommerce, I know that starting an online store is a good choice. Shopping cart function is more prominent than other online store platforms. But almost all other e-commerce software lacks some basic functions (such as product images on the checkout page). When viewing the settlement page, you will see that the order review form displays the product title, inventory and price, but does not display the image of each product. If you are the owner of the woocommerce store, you should know that the default payment page is not much optimized.
Woocommerce checkout customer experience optimization, therefore, this means that the woocommerce checkout page needs a lot of customization to make the conversion more friendly and increase the conversion. If you customize the customer user experience in woocomer checkout, you can also generate woocomer redirection after checkout and checkout articles on how to use the plug-in. Default woocommerce settlement page the following is the default appearance of the settlement page. This is where I came in. We will provide expert solutions to help you improve the conversion rate of payment pages.
This simple tutorial demonstrates how to add a product image to the billing page without redefining the template. Some solutions help to redefine the template, but this may conflict with the topic. You can easily use filters. Steps to add a product image to the settlement page of the woocommerce store. The steps to follow include: Log in to the WordPress site and access the dashboard as an administrator. In the panel menu, click shape Menu > theme editor menu. If the topic editor page opens, navigate to the topic function file and add the function of displaying product image in the payment page. Add the following code to the PHP file\/**
*@Display snippet woocomerce product image @ settlement page
*\/
add_filter( ‘woocommerce_cart_item_name’, ‘ts_product_image_on_checkout’, 10, 3 );
Functions ts_product_image_on_checkout ($name, $cart_item, $cart_item_key){
\/*If it is not a checkout page, return to**\/
if ( ! is_checkout() ) {
Return $name;
}
\/*Import product object**
$_product = apply_filters( ‘woocommerce_cart_item_product’, $cart_item[‘data’], $cart_item, $cart_item_key );
\/*Import product thumbnails**
$thumbnail = $_product – > get_image();
\/*Add rapper and some CSS to the image**
$image = ‘
‘
. $thumbnail.
‘
‘;
\/*Add image before name and return**
$returns the image$ name
}To view the results of this code, the checkout page must be refreshed and displayed as follows: You can now see the images of all the above products.
You can also choose to add the image to the order payment page after the user orders. The default value of the order payment page is: This can be used to optimize the page. In addition to a brief description, the user can also see the image of the purchased item. This operation is very simple, just follow the following steps: To add a product image to the order settlement page of the woocommerce store. Log in to the WordPress site and be on the dashboard as an administrator
visit. In the panel menu, click shape Menu > theme editor menu. After opening the theme editor page, on the \
*@Display snippet woocomerce product image @ order settlement page
*\/
add_filter( ‘woocommerce_order_item_name’, ‘ts_product_image_on_order_pay’, 10, 3 );
Functions ts_product_image_on_order_pay ($name, $item, $external){
\/*If it is not a checkout page, return to**\/
if ( ! is_checkout() ) {
Return $name;
}
$product_id = $item->get_product_id();
\/*Import product object**
$_product = wc_get_product( $product_id );
\/*Import product thumbnails**
$thumbnail = $_product – > get_image();
\/*Add rapper and some CSS to the image**
$image = ‘
. $thumbnail.
‘
‘;
\/*Add image before name and return**
$returns the image$ name
}To view the results of this code, the order payment page must be refreshed and displayed as follows: Conclusion this issue emphasizes two places where you can add commodity image, namely order settlement page and settlement page. It is not recommended to redefine the topic, as it may conflict with the topic. It is recommended that you use filters to perform the operations shown in the simple steps above.
Customize 23 best woocommerce plug-ins on the settlement page of similar articles. Woocommerce sets the method of recommended products. The method of adding a custom woocommerce settlement icon displays the method of woocommerce products according to the category of settlement page. The method of changing PayPal icon on woocommerce settlement page shopping basket You added a delete method to your message. Woocommerce redirection after check-out: the method of automatically redirecting to the custom page after check-out. Basic product sorting woocommerce deletion method woocommerce method of adjusting the size of product image woocommerce method of adding GTIN number to product woocommerce’s shopping page is a better company for hiding all products For the sake of user experience, the method of sorting woocommerce categories, the method of selling digital products, the method of hiding woocommerce coupon code field, the method of hiding PayPal icon on woocommerce settlement page, the method of deleting settlement details, the method of skipping shopping basket and redirecting to settlement page W How to change the payment button text in oocommerce woocommerce [order] how to confirm that the plug-in is active in WordPress [3ways] add and delete icons on the woocommerce payment page