Descrizione
Looking for a flexible way to display items in your site’s WooCommerce cart? Look no further! This plugin allows you to insert a shortcode anywhere on your site that generates an a href link.
Parametri:
- icon – Any Font Awesome icon. Most of the time you’ll want to use
shopping-cart
orshopping-basket
. - empty_cart_text – The text to display when there are zero items in the cart. You may want this to default to “Shop”.
- items_in_cart_text – The text to display when there are one or more items in the cart. You may want this to default to “Cart”.
- total_text – il testo da mostrare qiando ci sono uno più elementi nel carrello. Potresti devidere di lasciarlo di default impostato su “Totale:”.
- show_items – Enter “true/false” to show/hide items in the cart in parentheses. The item count will only show when there are one or more items in the cart.
- custom_css – Any custom CSS you’d like to add to the link.
- show_total – Inserisci vero o falso per mostrare o nascondere il prezzo totale dei prodotti nel carrello
Esempi:
[cart_button]
[cart_button icon="basket"]
[cart_button show_items="true"]
[cart_button show_items="true" show_total="true"]
[cart_button show_items="true" show_total="true" total_text="Total Price:"]
[cart_button show_items="false" items_in_cart_text="Cart"]
[cart_button show_items="true" empty_cart_text="Store"]
[cart_button items_in_cart_text="Cart" custom_css="custom"]
Installazione
- Carica i file del plugin nella directory
/wp-content/plugins/plugin-name
, o installalo dalla schermata “plugin” di WordPress (consigliato). - Attiva il plugin attraverso la schermata ‘Plugin’ in WordPress
- includi lo shortcode ovunque nel tuo sito web:
[cart_button icon="shopping-cart" empty_cart_text="Shop" items_in_cart_text="Cart" custom_css="custom"]
FAQ
- Installation Instructions
-
- Carica i file del plugin nella directory
/wp-content/plugins/plugin-name
, o installalo dalla schermata “plugin” di WordPress (consigliato). - Attiva il plugin attraverso la schermata ‘Plugin’ in WordPress
- includi lo shortcode ovunque nel tuo sito web:
[cart_button icon="shopping-cart" empty_cart_text="Shop" items_in_cart_text="Cart" custom_css="custom"]
- Carica i file del plugin nella directory
Recensioni
Contributi e sviluppo
“Shortcode Contatore del Carrello WooCommerce” è un software open source. Le persone che hanno contribuito allo sviluppo di questo plugin sono indicate di seguito.
CollaboratoriTraduci “Shortcode Contatore del Carrello WooCommerce” nella tua lingua.
Ti interessa lo sviluppo?
Esplora il Codice segui il Repository SVN iscriviti al Log delle Modifiche. Puoi farlo tramite RSS con un lettore di feed.
Changelog (registro delle modifiche)
1.0.0
- Prima relase!
- Testato con WordPress 4.4.2 e WooCommerce 2.5.5.
1.0.1
- Add parameter
show_total
to make this shortcode can show total price in cart
1.0.2
- Add parameter
total_text
to custom text for total price in cart
1.0.3
- Prevent fatal error when WooCommerce does not get initialized properly.
1.0.4
- Use
WC()
instead of the global variable$woocommerce
. - Add 3 filters below to allow users to modify the generated markup.
wccs_cart_icon_html
wccs_cart_count_html
wccs_cart_total_html