How to replace the price (txt inserted) with a price returned from a shorcode
Please, check this site I created: http://www.descontomail.com.br
I’ll install a new theme (Mystile) with Woocommerce on this site.
I’m doing offline tests.
Do you think it’s possible to do what I want:
Change what is displayed on the product price, which is entered manually when a post of products is created, replaced by a shortcode?
See that on my home page now. There is a ladder advertised, with their own prices and an store icon. The price, the icon, and the link to where the user is sent, is created from a shortcode.
In this shorcode (in each post) I will add multiple links of different stores for the same product. In this theme functions.php file I added a php script created by myself of comparison price, which returns to the shortcode: the price, store icon, and the button link to the store that has the lowest price.
I would like to show this same way using the Woocommerce.
The pages of product categories, ones that list a lot of products, should display below of the image the product price, returned from the shortcode. And on the product page, besides the price, return the icon of the store and in the “buy” or “go to the store” button, the respective link returned from shortcode. Therefore, both the price, as the link will not be inserted into the product creation page. They will returned from the shortcode with a list of links to different stores.
- The topic ‘How to replace the price (txt inserted) with a price returned from a shorcode’ is closed to new replies.