How to display button “buy” for 1 product via shortcode without a cycle?
-
EN:
Hello!
Can you please tell me how to display a button on a landing page (WP page) created from Gutenberg blocks?
there is no cycle of goods.
is it possible to use the product id for the “Buy in 1 click” button and how to make it a shortcode?
it is assumed that the product in the store exists. And its name and price must be edited in the admin panel like a regular product. It just has its own landing page and a redirect to the landing page from the regular product page.
The shortcode only needs a button.
[viewBuyButton id=”345″]
[viewBuyButtonCustom id=”345″]or maybe there is a shortcode in WooCommerce ready to display 1 product as it looks in the category (icon, title without a link to the product page, price, “buy” and “add to cart” buttons) ?
RU:
Здраствуйте!
подскажите пожалуста как вывести кнопку на лендинге (странице WP) созданном из блоков Гутенберг?
цикла товаров нет.
можно ли использовать id товара для кнопки “Купить в 1 клик” и как это правильно сделать шорткодом?
предполагается что товар в магазине существует. И его название и цену надо редактировать в админке как у обычного товара. Просто для него сделан свой лендинг и редирект на лендинг с обычной страницы товара.
в шорткоде нужна только кнопка.
[viewBuyButton id=”345″]
[viewBuyButtonCustom id=”345″]или может есть шорткод в WooCommerce готовый чтобы вывести 1 товар как выглядит в категории (иконка, название без ссылки на страницу товара, цена, кнопки “купить” и “в корзину”) ?
- The topic ‘How to display button “buy” for 1 product via shortcode without a cycle?’ is closed to new replies.