Forum Replies Created

Viewing 12 replies - 151 through 162 (of 162 total)
  • Plugin Contributor ModDish

    (@moddish)

    sure.

    Plugin Contributor ModDish

    (@moddish)

    no, but they are changes you could easily make to the plugin.Kinda negates the point for the plugin thou.

    if you have products already, you could simply create a shortcode to echo the information of the pages/post in question no need for a plugin to do that.

    Forum: Plugins
    In reply to: [Grid Products] How to use
    Plugin Contributor ModDish

    (@moddish)

    shey are shortcode options.

    ex :

    [product cat=”whatever” buttontext=”your button text”]

    Forum: Plugins
    In reply to: [Grid Products] How to use
    Plugin Contributor ModDish

    (@moddish)

    From the installation file :

    The plugin registers a new custom post type, so you'll want to update your permalinks. No need to change your permalink structure, just go to "Settings->Permalinks" and click "Save Changes" without making any modifications.

    Forum: Plugins
    In reply to: [Grid Products] How to use
    Plugin Contributor ModDish

    (@moddish)

    didn’t have anything to do with your version, look at the instructions, you needed to click save on your permilinks page to add the need permilink created by the plugin, simply goto permilinks and click save.

    Plugin Contributor ModDish

    (@moddish)

    you can reuse the about to add as many fields as you like, just siply duplicate this line

    echo '<div class="listingfieldholder">Price: </div><input type="text" id="_grid_product_price" name="_grid_product_price" placeholder="Property Price" class="admininputfield"value="'.get_post_meta( $_GET[post], '_grid_product_price', true ).'"> <br/>';

    and this line

    ‘update_post_meta( $post_id, ‘_grid_product_price’, $_POST[‘_grid_product_price’] );’

    changing the field name _grid_product_price to _grid_product_whatever in all instances of the duplicated lines.

    I used this for a property site, and added all the property listing fields to the products, then created a single template to echo them all.

    Plugin Contributor ModDish

    (@moddish)

    Hey

    yes you could add fields to the products to support pricing.

    add something like this to line 24

    //--------------------------------------------PRODUCT PRICE------------------------------------------
    //--------------------------------------------PRODUCT PRICE------------------------------------------
    //--------------------------------------------PRODUCT PRICE------------------------------------------
    
    add_action( 'add_meta_boxes', '_grid_product_price_box' );
    function _grid_product_price_box() {
        add_meta_box(
            '_grid_product_price_box',
            __( 'Property Details', '_grid_product_price' ),
            '_grid_product_price_box_content',
            'grid_products',
            'side',
            'high'
        );
    }
    
    function _grid_product_price_box_content( $post ) {
    	wp_nonce_field( plugin_basename( __FILE__ ), '_grid_product_price_box_content_nonce' );
    	echo '<div class="listingfieldholder">Price: </div><input type="text" id="_grid_product_price" name="_grid_product_price" placeholder="Property Price" class="admininputfield"value="'.get_post_meta( $_GET[post], '_grid_product_price', true ).'"> <br/>';
    }
    
    add_action( 'save_post', '_grid_product_price_box_save' );
    function _grid_product_price_box_save( $post_id ) {
    
    	if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE )
    	return;
    
    	if ( !wp_verify_nonce( $_POST['_grid_product_price_box_content_nonce'], plugin_basename( __FILE__ ) ) )
    	return;
    
    	if ( 'post' == $_POST['post_type'] ) {
    		if ( !current_user_can( 'edit_page', $post_id ) )
    		return;
    	} else {
    		if ( !current_user_can( 'edit_post', $post_id ) )
    		return;
    	}
    
    update_post_meta( $post_id, '_grid_product_price', $_POST['_grid_product_price'] );
    }
    
    //--------------------------------------------PRODUCT PRICE END------------------------------------------
    //--------------------------------------------PRODUCT PRICE END------------------------------------------
    //--------------------------------------------PRODUCT PRICE END------------------------------------------

    then to echo it

    $price=get_post_meta( get_the_ID(), '_grid_product_price', true );
    echo $price;
    Forum: Plugins
    In reply to: [Grid Products] How to use
    Plugin Contributor ModDish

    (@moddish)

    you would add a product, to the product section via the back-end, the same you would a page or post.

    add a title, content featured image and select a category.

    Plugin Contributor ModDish

    (@moddish)

    also cart66 is not needed, it will work stand alone, and is compatible with cart66 for easy layouts of your products. also works with several other wordpress shopping carts.

    Forum: Plugins
    In reply to: [Grid Products] How to use
    Plugin Contributor ModDish

    (@moddish)

    Sorry guys wrote this for a client, and posted for others to use quickly

    the shortcodeis [product] all the others are “shorcode options” and should be added to the original shortcode :

    eg

    [product cat=”whatever”]

    Plugin Contributor ModDish

    (@moddish)

    Sorry ,wrote this for a client, and posted for others to use quickly

    the shortcode needs to start with [product] all the others are ” shorcode options” and should be added to the original shortcode :

    eg

    [product cat=”whatever”]

    Plugin Contributor ModDish

    (@moddish)

    Sorry guys wrote this for a client, and posted for others to use quickly

    the shortcode needs to start with [product] all the others are ” shorcode options” and should be added to the original shortcode :

    eg

    [product cat=”whatever”]

Viewing 12 replies - 151 through 162 (of 162 total)