WordPress Woocommerce HiPay Wallet Pro plug-in

Plug-in shortcodes

Woocommerce HiPay Wallet Pro allows the use of shortcodes to display certain elements. Follow the steps to add the shortcodes to your site.

Woocommerce HiPay Wallet Pro plug-in
, ,
179

Use Woocommerce HiPay Wallet Pro shortcodes

Woocommerce HiPay Wallet Pro allows you to display certain information with shortcodes. You can display the tokens number the customer has in various forms, and you can also display a button anywhere on your site that allows the customer to order a product from your store with a single button click.

Woocommerce HiPay Wallet Pro: tokens shortcodes

Display tokens in the user account

Woocommerce HiPay Wallet Pro allows you to display certain information with shortcodes. You can display the tokens number the customer has in various forms, and you can also display a button anywhere on your site that allows the customer to order a product from your store with a single button click. The Woocommerce My Account page will present the tokens that the customer has as in the screenshot on the right:

Woocommerce HiPay Wallet Pro: display tokens in the user account

Customer tokens display

Shortcodes for displaying a customer’s tokens have several parameters, depending on the desired display.

To display the available tokens to the customer on your site, from the my_golden_product Variable in database, without displaying the label, add the following shortcode:

[woohipaypro_tokens meta=”my_golden_product” label=”no”]

To display to the customer on your site the tokens he has, from the Variable in database my_golden_product, with the label, add the following shortcode:

[woohipaypro_tokens meta=”my_golden_product” label=”yes”]

To display to the customer on your site all the tokens he has, and thus display the list of all configured tokens on your site, in the form of a drop-down list, add the following shortcode:

[woohipaypro_tokens_list color=”light”]

To display the same list of tokens, but this time in a dark version, add the following shortcode:

[woohipaypro_tokens_list color=”dark”]

To display a simple list of tokens, for example in the sidebar of your site, add the following shortcode:

[woohipaypro_tokens_simple_list color=”light”]

To display this same simple list of tokens, but this time in a dark version, add the following shortcode:

[woohipaypro_tokens_simple_list color=”dark”]

Woocommerce HiPay Wallet Pro: dropdown-list of tokens
Woocommerce HiPay Wallet Pro: simple list of tokens

Use the shortcode to create a payment button

Woocommerce HiPay Wallet Pro allows you to create and display a payment button attached to a product in your shop so that when the customer clicks on it, it is directly redirected to the basket. To display a payment button attached to the ID 45 product for example, add the following shortcode:

[woohipaypro_button_order product_id=”45″ class=”mybuttonclass” label=”Buy”]

The product_id parameter therefore targets the product ID in your shop (you must attach the button to an existing product in your shop).

The class parameter allows you to add CSS classes to optimize the design of your button.

The label parameter is used to define the label of the button.

Change the price of the targeted product

Depending on the context in which you display the payment button, you may want to change the price of the targeted product. For example, if you develop a form with dynamic fields to place an order, and according to the user’s choices the price of the order could vary, so you can modify the price by adding the price parameter to the shortcode, like this:

[woohipaypro_button_order product_id=”45″ class=”mybuttonclass” label=”Buy” price=”10″]

You can also enter a value with decimals in the price parameter, using the dot as a separator:

[woohipaypro_button_order product_id=”45″ class=”mybuttonclass” label=”Acheter” price=”10.75″]

Related posts

WordPress Woocommerce HiPay Wallet Pro plug-in
Woocommerce HiPay Wallet Pro settings on a product
WordPress Woocommerce HiPay Wallet Pro plug-in
Content restriction with Woocommerce HiPay Wallet Pro
You must be logged in to post a comment.
Menu