WordPress.org

Plugin Directory

Cf Shopping Cart

BE CAREFUL: This version 2.0 is NOT COMPATIBLE with 0.8. Cf Shopping Cart is simple shopping cart plugin for WordPress. This plugin be working with C

Settings

Shortcode

  • [cfshoppingcart_reset_cart_link] This shortcode output reset cart link.

  • Options: -- text : link text -- url_only: true/false

  • [cfshoppingcart_message] This shortcode output message.

  • Options: -- not_output_if_no_message: true/false -- if_ajax_disabled : true/false

  • [cfshoppingcart_result] Insert this shortcode and MW WP Form shortcode to Complete Page.

e.g. [mwform_formkey key="xxx"] [cfshoppingcart_result] Complete! [else] Has been changed stock before checkout. Again order please. [/cfshoppingcart_result]

  • [cfshoppingcart_cart] Insert this shortcode to Cart Page.

  • Options: -- class : class name -- product_title : Caption -- product_fileds: Product ID,Name,Color,Price,Stock,Quantity -- total_title : Caption -- total_fileds : Gross Number,Total Price -- type : table/dl

e.g. [cfshoppingcart_cart]Shopping Cart is empty.[/cfshoppingcart_cart]

  • [cfshoppingcart_widget] Insert this shortcode to Text Widget.

  • Options: -- see cfshoppingcart_cart shortcode.

e.g. [cfshoppingcart_widget]Shopping Cart is empty.[/cfshoppingcart_widget]

  • [cfshoppingcart_check_out] Insert this shortcode and MW WP Form shortcode to MW WP Form Content.

  • Options: -- see cfshoppingcart_cart shortcode.

e.g. Name: [mwform_text name="your-name" size="40"] E-mail: [mwform_text name="email" size="40"] Phone: [mwform_text name="tel" size="40"] Address: [mwform_text name="address"] Note: [mwform_textarea name="note"] Order: [cfshoppingcart_check_out] [mwform_backButton value="Return"] [mwform_submitButton name="mwform_submitButton-422" confirm_value="Confirm" submit_value="Send"]

  • [cfshoppingcart_cart_link] This shortcode output Cart Page link.

  • Options: -- text : link text -- url_only: true/false

  • [cfshoppingcart_check_out_link] This shortcode output Check Out Page link.

  • Options: -- text : link text -- url_only: true/false

Custom Field

  • Quantity Field:

Nothing or #text or #number

or

= select

= Red|add=10.25 (additonal price) Green Blue

Example CSS

@charset "UTF-8";

.cfshoppingcart table th { text-align: left; }

.cfshoppingcart table { width: 94%; }

article .cfshoppingcart table { border-collapse:collapse; }

article .cfshoppingcart table th, article .cfshoppingcart table td { padding: 4px; border: 1px solid #ccc; }

.cfshoppingcart table th { width: 20%; }

.cfshoppingcart_widget table { width: 100%; }

.cfshoppingcart_widget table th { width: 50%; }

.cfshoppingcart_widget table { border-bottom: 1px solid #aaa; }

.cfshoppingcart_cart table .quantity { text-align: center; line-height: 1.5rem; min-width: 50px; background-color: #fff; border: 1px solid #ccc; border-radius: 4px; display: inline-block; }

input[type="text"], input[type="submit"], select, button { min-width: 80px; padding: 4px 10px; }

button[value="quantity_plus"], button[value="quantity_minus"] { min-width: 40px; }

Filter

  • Add Header and Footer.

  • Edit theme functions.php: -- Appearance Editor Theme Functions (functions.php)

e.g. function cfshoppingcart_filter_test($content, $post_id) { return '

Header Post-ID:'.$post_id ."

". $content ."

Footer!

"; } add_filter('cfshoppingcart_filter_the_content', 'cfshoppingcart_filter_test', 11, 2); add_filter('cfshoppingcart_filter_cart', 'cfshoppingcart_filter_test', 11, 2); add_filter('cfshoppingcart_filter_widget', 'cfshoppingcart_filter_test', 11, 2); add_filter('cfshoppingcart_filter_check_out', 'cfshoppingcart_filter_test', 11, 2);

  • Add Image to Cart Page.

  • Active QF-GetThumb-wb plugin.

  • Edit theme functions.php: -- Appearance Editor Theme Functions (functions.php)

e.g. function put_image_to_cart($content, $post_id) { global $post; $save_post = $post; $post = get_post($post_id); $img = the_qf_get_thumb_one('width=120&crop_h=90&height=120&crop_w=120'); $post = $save_post; return $img . $content; } add_filter('cfshoppingcart_filter_cart', 'put_image_to_cart', 10, 2);

Requires: 4.1 or higher
Compatible up to: 4.2.4
Last Updated: 2015-8-13
Active Installs: 70+

Ratings

0 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1 100,1,1
100,1,1
100,1,1 100,1,1
100,2,2
100,1,1 100,1,1 100,1,1
100,1,1
100,1,1 100,1,1 100,1,1 100,1,1 100,1,1
100,1,1 100,1,1 100,1,1 100,2,2 100,1,1 100,1,1
100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1
100,1,1 100,1,1 100,1,1
100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1
0,2,0 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1
100,1,1 100,1,1 100,2,2 100,2,2 100,2,2 100,1,1 50,2,1 100,1,1 100,1,1 100,1,1
67,3,2