edit product page

Which file do I use to edit the individual product page?

  • espsjurs

    Hi kristy_walsh,

    Check out the file "marketpress/marketpress-includes/themes/Themeing_MarketPress.txt"..

    And here is my own mp_product.php taken from Framemarket with some modifications :slight_smile:

    <?php // custom template for product single view
    
    function eswd_product_image( $echo = true, $context = 'list', $post_id = NULL, $size = NULL ) {
      global $id, $mp;
      $post_id = ( NULL === $post_id ) ? $id : $post_id;
      // Added WPML
      $post_id = apply_filters('mp_product_image_id', $post_id);
    
      $post = get_post($post_id);
    
      $post_thumbnail_id = get_post_thumbnail_id( $post_id );
      $class = '';
    
      if ($context == 'list') {
        //quit if no thumbnails on listings
        if (!$mp->get_setting('show_thumbnail'))
          return '';
    
        //size
        if (intval($size)) {
          $size = array(intval($size), intval($size));
        } else {
          if ($mp->get_setting('list_img_size') == 'custom')
            $size = array($mp->get_setting('list_img_width'), $mp->get_setting('list_img_height'));
          else
            $size = $mp->get_setting('list_img_size');
        }
    
        //link
        $link = get_permalink($post_id);
    
        $title = esc_attr($post->post_title);
    
      } else if ($context == 'single') {
        //size
        if ($mp->get_setting('product_img_size') == 'custom')
          $size = array($mp->get_setting('product_img_width'), $mp->get_setting('product_img_height'));
        else
          $size = $mp->get_setting('product_img_size');
    
        //link
        $temp = wp_get_attachment_image_src( $post_thumbnail_id, 'large' );
        $link = $temp[0];
    
        $title = __('View Larger Image &raquo;', 'mp');
        $class = ' class="mp_product_image_link mp_lightbox" rel="lightbox['.$post_id.']"';
    
      } else if ($context == 'widget') {
        //size
        if (intval($size))
          $size = array(intval($size), intval($size));
        else
          $size = array(50, 50);
    
        //link
        $link = get_permalink($post_id);
    
        $title = esc_attr($post->post_title);
    
      }
    
        $image = get_the_post_thumbnail($post_id, $size, array('itemprop' => 'image', 'class' => 'alignleft mp_product_image_'.$context, 'title' => $title));
    
        //add the link
        if ($link)
          $image = '<a id="product_image-' . $post_id . '"' . $class . ' href="' . $link . '">' . $image . '</a>';
    
        if ($echo)
          echo $image;
        else
          return $image;
    }
    
    function the_breadcrumb() {
    	if (!is_home()) {
    		echo '<a href="';
    		echo get_option('home');
    		echo '">';
    		bloginfo('name');
    		echo "</a> » ";
    		if (is_category() || is_single()) {
    			$ID = $wp_query->post->ID;
    			$categoria = mp_category_list($ID);
    			echo $categoria;
    			if (is_single()) {
    				echo "</a> » ";
    				the_title();
    			}
    		} elseif (is_page()) {
    			echo the_title();
    		}
    	}
    }
    function eswd_product_meta() {
       global $post;
    
       //don't filter outside of the loop
     	if ( !in_the_loop() )
    		  return $content;
       $content = '<div class="product-meta-details">';
       $content .= '</div><hr/><div class="product-meta-details">';
       $content .= mp_category_list($post->ID, '<span class="grid_mp_product_categories">' . __( 'Categorized in ', 'mp' ), ', ', '</span>');
       $content .= '&nbsp;&nbsp;';
       $content .= mp_tag_list($post->ID, '<span class="grid_mp_product_tags">', ', ', '</span>');
       $content .= '</div><hr />';
       return $content;
     }
    
    function eswd_product_price( $echo = true, $post_id = NULL, $label = true, $fixed = false ) {
    	global $id, $mp;
    	$post_id = ( NULL === $post_id ) ? $id : $post_id;
    
    	$label = ($label === true) ? __('Price: ', 'mp') : $label;
    
    	$settings = get_option('mp_settings');
    	$meta = get_post_custom($post_id);
    	//unserialize
    	foreach ($meta as $key => $val) {
    		$meta[$key] = maybe_unserialize($val[0]);
    		if (!is_array($meta[$key]) && $key != "mp_is_sale" && $key != "mp_track_inventory" && $key != "mp_product_link" && $key != "mp_file" && $key != "mp_price_sort")
    		$meta[$key] = array($meta[$key]);
    	}
    
    	if ((is_array($meta["mp_price"]) && count($meta["mp_price"]) == 1) || !empty($meta["mp_file"])) {
    		if ($meta["mp_is_sale"]) {
    			$price = ' f&oslash;r <span class="mp_special_price"><del class="mp_old_price">'.$mp->format_currency('', $meta["mp_price"][0]).'</del>';
    			$price .= ', n&aring; <span class="mp_current_price">'.$mp->format_currency('', $meta["mp_sale_price"][0]).'</span></span>';
    		} else {
    			$price = '<span class="mp_normal_price"><span class="mp_current_price">'.$mp->format_currency('', $meta["mp_price"][0]).'</span></span>';
    		}
    	} else if ($fixed) {
    		if ($meta["mp_is_sale"]) {
    			$price = '<span class="mp_special_price"><del class="mp_old_price">'.$mp->format_currency('', $meta["mp_price"][0]).'</del>';
    			$price .= ' <span class="mp_current_price">'.$mp->format_currency('', $meta["mp_sale_price"][0]).'</span></span>';
    		  } else {
    			$price = '<span class="mp_normal_price"><span class="mp_current_price">'.$mp->format_currency('', $meta["mp_price"][0]).'</span></span>';
    		  }
    	} else {
    		return '';
    	}
    	$price = apply_filters( 'mp_product_price_tag', '<span class="mp_product_price">' . $label . $price . '</span>', $post_id, $label );
    
    	if ($echo)
    		echo $price;
    	else
    		return $price;
    }
    
    /*
     * Displays the buy or add to cart button
     *
     * @param bool $echo Optional, whether to echo
     * @param string $context Options are list or single
     * @param int $post_id The post_id for the product. Optional if in the loop
     */
    function eswd_buy_button( $echo = true, $context = 'list', $post_id = NULL ) {
      global $id, $mp;
      $post_id = ( NULL === $post_id ) ? $id : $post_id;
    
      $meta = get_post_custom($post_id);
      //unserialize
      foreach ($meta as $key => $val) {
    	  $meta[$key] = maybe_unserialize($val[0]);
    	  if (!is_array($meta[$key]) && $key != "mp_is_sale" && $key != "mp_track_inventory" && $key != "mp_product_link" && $key != "mp_file")
    	    $meta[$key] = array($meta[$key]);
    	}
    
      //check stock
      $no_inventory = array();
      $all_out = false;
      if ($meta['mp_track_inventory']) {
        $cart = $mp->get_cart_contents();
        if (isset($cart[$post_id]) && is_array($cart[$post_id])) {
    	    foreach ($cart[$post_id] as $variation => $data) {
    	      if ($meta['mp_inventory'][$variation] <= $data['quantity'])
    	        $no_inventory[] = $variation;
    			}
    			foreach ($meta['mp_inventory'] as $key => $stock) {
    	      if (!in_array($key, $no_inventory) && $stock <= 0)
    	        $no_inventory[] = $key;
    			}
    		}
    
    		//find out of stock items that aren't in the cart
    		foreach ($meta['mp_inventory'] as $key => $stock) {
          if (!in_array($key, $no_inventory) && $stock <= 0)
            $no_inventory[] = $key;
    		}
    
    		if (count($no_inventory) >= count($meta["mp_price"]))
    		  $all_out = true;
      }
    
      //display an external link or form button
      if (isset($meta['mp_product_link']) && $product_link = $meta['mp_product_link']) {
    
        $button = '<a class="mp_link_buynow" href="' . esc_url($product_link) . '">' . __('Buy Now &raquo;', 'mp') . '</a>';
    
      } else if ($mp->get_setting('disable_cart')) {
    
        $button = '';
    
      } else {
        $variation_select = '';
        $button = '<form class="mp_buy_form" method="post" action="' . mp_cart_link(false, true) . '">';
    
        if ($all_out) {
          $button .= '<span class="mp_no_stock">' . __('Out of Stock', 'mp') . '</span>';
        } else {
    
    	    $button .= '<input type="hidden" name="product_id" value="' . $post_id . '" />';
    
    			//create select list if more than one variation
    		  if (is_array($meta["mp_price"]) && count($meta["mp_price"]) > 1 && empty($meta["mp_file"])) {
    	      $variation_select = '<select class="mp_product_variations" name="variation">';
    				foreach ($meta["mp_price"] as $key => $value) {
    				  $disabled = (in_array($key, $no_inventory)) ? ' disabled="disabled"' : '';
    				  $variation_select .= '<option value="' . $key . '"' . $disabled . '>' . esc_html($meta["mp_var_name"][$key]);
    		      $variation_select .= "</option>\n";
    		    }
    	      $variation_select .= "</select>&nbsp;\n";
    	 		} else {
    	      $button .= '<input type="hidden" name="variation" value="0" />';
    			}
    
    	    if ($context == 'list') {
    	      if ($variation_select) {
            	$button .= '<a class="mp_link_buynow" href="' . get_permalink($post_id) . '">' . __('Choose Option &raquo;', 'mp') . '</a>';
    	      } else if ($mp->get_setting('list_button_type') == 'addcart') {
    	        $button .= '<input type="hidden" name="action" value="mp-update-cart" />';
    	        $button .= '<input class="mp_button_addcart" type="submit" name="addcart" value="' . __('Add To Cart &raquo;', 'mp') . '" />';
    	      } else if ($mp->get_setting('list_button_type') == 'buynow') {
    	        $button .= '<input class="mp_button_buynow" type="submit" name="buynow" value="' . __('Buy Now &raquo;', 'mp') . '" />';
    	      }
    	    } else {
    
    	      $button .= $variation_select;
    
    	      //add quantity field if not downloadable
    	      if ($mp->get_setting('show_quantity') && empty($meta["mp_file"])) {
    	        $button .= '<span class="mp_quantity"><label>' . __('Quantity:', 'mp') . ' <input class="mp_quantity_field" type="text" size="1" name="quantity" value="1" /></label></span>&nbsp;';
    	      }
    
    	      if ($mp->get_setting('product_button_type') == 'addcart') {
    	        $button .= '<input type="hidden" name="action" value="mp-update-cart" />';
    //	        $button .= '<br /><input type="image" src="http://demo.es-webdesign.no/Legg-til-handlekurv.png" border="0" alt="I handlekurven" title=" I handlekurven ">';
    	        $button .= '<input class="mp_button_addcart" type="submit" name="addcart" value="' . __('Add To Cart &raquo;', 'mp') . '" />';
    	      } else if ($mp->get_setting('product_button_type') == 'buynow') {
    	        $button .= '<input class="mp_button_buynow" type="submit" name="buynow" value="' . __('Buy Now &raquo;', 'mp') . '" />';
    	      }
    	    }
    
        }
    
        $button .= '</form>';
      }
    
      $button = apply_filters( 'mp_buy_button_tag', $button, $post_id, $context );
    
      if ($echo)
        echo $button;
      else
        return $button;
    }
    
    get_header();
    ?><?php the_breadcrumb() ;?>
    	<div id="content"><table bgcolor="#ede6d7" width=100%" border="0" cellpadding="10">
    		<tr><td colspan="3"><h1 class="post-title"><?php echo mp_category_list($post->ID).': '; ?><?php the_title(); ?></h1></td></tr>
    		<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    				<tr><td valign="top" width="300"><div class="product-photo"><?php eswd_product_image(true, 'single', null); ?></div><?php echo do_shortcode('[wdfb_like_button]'); ?></td>
    					<td align="left" valign="top" width="100"><?php echo do_shortcode('[gallery columns="1" link="file"]'); ?></td>
    					<td valign="top">
    						<table border="0" width="100%" >
    							<tr><td><div class="product-details"><div class="content-box"><?php the_content(); ?></div></td></tr>
    							<tr><td><b>
    								<?php if (do_shortcode('[ct id="ct_Farge_text_ce4b" property="title | description | value"]')) { echo 'Farge: '.do_shortcode('[ct id="ct_Farge_text_ce4b" property="title | description | value"]').'<br />';	} ?>
    								<?php if (do_shortcode('[ct id="ct_Hlhyde_text_69ef" property="title | description | value"]')) { echo 'Hælhøyde: '.do_shortcode('[ct id="ct_Hlhyde_text_69ef" property="title | description | value"]').'<br />';	} ?>
    								<?php if (do_shortcode('[ct id="ct_Materiale_text_3781" property="title | description | value"]')) { echo 'Materiale: '.do_shortcode('[ct id="ct_Materiale_text_3781" property="title | description | value"]');	} ?>
    							</b></td></tr>
    							<tr height="2"><td align="left" valign="bottom"><h2><?php echo eswd_product_price(false, false, false, true); ?></h2></td></tr>
    							<tr><td><?php echo eswd_buy_button(false, 'single'); ?></td></tr>
    						</table>
    					</td>
    				</tr>
    				<tr><td colspan="3"><?php echo eswd_product_meta(); ?>
    			</div>
    				<?php endwhile; else: ?>
    					<p><?php _e( 'Sorry, no posts matched your criteria.', 'framemarket' ) ?></p>
    				<?php endif; ?>
    	</td></tr></table></div>
    <?php get_sidebar(); ?>
    <?php get_footer() ?>

    This should give you some idea of how to do.. Save this in your theme folder

    Btw, this code works best with my own custom css (save in mp themes and activate in mp settings):

    /*
    MarketPress Style: MyStyle
    */
    div.mp_product_meta {
    clear: both;
    overflow: hidden;
    margin-top: 10px;
    }
    
    div.content-box {
    -webkit-margin-before: -1em;
    }
    
    form.mp_buy_form {
    float: left;
    }
    
    #mp_product_nav, #mp_product_nav a {
    color: #FF6600 !important;
    font-weight: bold !important;
    font-size: 30px;
    padding: 5px;
    text_decoration: none;
    background: #e2e2e2;
    border: 1px solid #e1e1e1;
    height: 40px;
    }
    
    form.mp_product_price {
    float: left;
    }
    
    .mp_product_price {
    }
    
    .product {
    border-top: 2px solid #cccccc;
    margin-top: 10px;
    padding: 10px 0 20px;
    }
    
    li.product {
    border: none;
    padding: 0px;
    }
    .mp_button_addcart, .mp_button_buynow, .mp_cart_col_updatecart input[type=submit], #mp_shipping_submit, #mp_payment_confirm {
    color: #333333;
    font-weight: bold;
    padding: 5px;
    text-decoration: none;
    background: #e2e2e2;
    border: 1px solid #e1e1e1;
    }
    #mp_payment_confirm {
    color: #FF6600;
    font-weight: bold;
    font-size: 30px;
    padding: 5px;
    text-decoration: none;
    background: #e2e2e2;
    border: 1px solid #e1e1e1;
    height: 40px
    }
    #mp_payment_confirm:hover {
    font-weight: bold;
    padding: 5px;
    text-decoration: none;
    background: #FF6600;
    color: #e2e2e2;
    border: 1px solid #e1e1e1;
    }
    #mp_payment_form {
    padding: 5px;
    background: #e2e2e2;
    font-weight: bold;
    }
    .mp_button_addcart:hover, .mp_button_buynow:hover, .mp_cart_col_updatecart input[type=submit]:hover, #mp_shipping_submit:hover, #mp_payment_confirm:hover {
    font-weight: bold;
    padding: 5px;
    text-decoration: none;
    background: #FF6600;
    border: 1px solid #e1e1e1;
    }
    
    a.mp_link_addcart, a.mp_link_buynow {
    float: right;
    font-weight: bold;
    padding: 5px;
    text-decoration: none;
    background: #e2e2e2;
    border: 1px solid #e1e1e1;
    }
    
    a.mp_link_addcart:hover, a.mp_link_buynow:hover {
    float: right;
    font-weight: bold;
    padding: 5px;
    text-decoration: none;
    background: #e2e2e2;
    border: 1px solid #e1e1e1;
    }
    
    del.mp_old_price {
    margin-right: 5px;
    }
    form.mp_buy_form .mp_adding_to_cart {
    color: #ffffff;
    font-weight: bold;
    padding: 5px;
    text-decoration: none;
    background: #82b33d;
    border: 1px solid #82b33d;
    }
    form.mp_buy_form .mp_no_stock {
    color: #ffffff;
    font-weight: bold;
    padding: 5px;
    text-decoration: none;
    background: #111111;
    border: 1px solid #9A0000;
    }
    
    #mp_cart_updated_msg {
    background-color: #FFFFE0;
    border: 1px solid #E6DB55;
    margin: 10px 0px;
    padding: .5em;
    }
    div.mp_checkout_error {
    background: #ffdddd;
    border: 1px solid #ffafaf;
    margin: 10px 0px;
    padding: 10px 10px 10px 30px;
    }
    table.mp_cart_login td, table.mp_cart_contents td, table.mp_cart_shipping td {
    vertical-align: middle;
    }
    th.mp_cart_col_price {
    width: 100px;
    text-align: right;
    padding:  0 10px 0 0;
    }
    th.mp_cart_col_product {
    }
    table.mp_cart_contents {
    width: 100%;
    }
    td.mp_cart_subtotal_lbl {
    text-align: right;
    font-weight: bold;
    }
    td.mp_cart_col_subtotal, td.mp_cart_col_discount, td.mp_cart_col_tax, td.mp_cart_col_total, td.mp_cart_col_price, td.mp_cart_col_shipping {
    font-weight: bold;
    text-align: right;
    padding:  0 10px 0 0;
    }
    td.mp_cart_col_quant input {
    margin: 0;
    text-align: center;
    }
    td.mp_cart_col_quant, th.mp_cart_col_quant {
    text-align: center;
    }
    td.mp_cart_col_updatecart input {
    margin: 0;
    }
    table.mp_cart_shipping input, table.mp_cart_shipping select {
    margin: 0;
    }
    p.mp_cart_direct_checkout, p.mp_cart_login_msg {
    text-align: right;
    margin-bottom: 5px;
    }
    a.mp_cart_direct_checkout_link {
    color: #333333;
    font-weight: bold;
    padding: 5px;
    text-decoration: none;
    background: #e2e2e2;
    border: 1px solid #e1e1e1;
    }
    
    a.mp_cart_direct_checkout_link:hover {
    color: #333333;
    font-weight: bold;
    padding: 5px;
    text-decoration: none;
    background: #e2e2e2;
    border: 1px solid #e1e1e1;
    }
    
    a.mp_cart_direct_checkout_link:hover {
    border-color: #ccc;
    }
    
    .mp_product_image_list, .mp_product_image_single, .mp_product_image_widget {
    border: 1px solid #eeeeee;
    float: none !important;
    }
    
    .mp_cart_contents_widget td {
    padding: 5px;
    }
    
    .mp_cart_contents_widget th {
    background: #eeeeee;
    }
    
    .mp_cart_contents_widget tr, .mp_cart_contents_widget td, .mp_cart_contents_widget tbody {
    border: 1px solid #eeeeee;
    }
    
    .mp_cart_actions_widget {
    padding-top: 10px;
    }
    
    .mp_checkout_link {
    float: right;
    }
    
    .mp_cart_contents thead, .mp_cart_shipping thead {
    background: #eeeeee;
    }
    
    .mp_product_categories {
    padding: 10px;
    border: 1px solid #e2e2e2;
    background: #eeeeee;
    }
    
    td.mp_cart_col_downloads {
    font-size: 80%;
    }
    
    .gallery-item {
    margin-top: 0;
    }
    
    /* 37438-1346867779 */

    Espen

  • aecnu

    Greetings kirsty_walsh,

    Yepper - I missed the boat on this one thinking of the theme while Espen was right on target coming at it from the Market press angle.

    And Espen is absolutely correct that the marketpress/marketpress-includes/themes/Themeing_MarketPress.txt contains all one needs to know about which files do what.

    With that said and now that it has been brought to your attention, this case is closed.

    Thank you @Espen for pointing out the error in my tactic concerning this ticket and some rep points sent your way.

    Thank you both for being WPMU Dev Community Members!

    Cheers, Joe

  • kirsty_walsh

    Hang on...I have read the themeingmarketpress.txt which tells me which files to CREATE to style the pages...however it doesn't tell me which file creates the page currently in my theme. (simplemarket - what a very misleading name!!)

    I have also wasted numerous hours reading post upon post about this very subject.

    All I can figure is that there isn't a page that I can currently edit, so I have to create my own page from scratch which seems a bit silly. The rest of the theme is structured for easy editing - yet this page is left to be created??

    I have such a tiny amendment to make that all that work seems completely unnecessary - I cannot get my head around why this has been made so very difficult??

  • aecnu

    Greetings kirsty_walsh,

    Thank you for your input, it is certainly appreciated.

    Espen was indeed right on the money with this, gave the code proving how it was/is done, and if you cannot get your head wrapped around it well ...

    I have indeed tried to be helpful though you obviously do not see it that way.

    Therefore I will certainly refrain from offering any more advice.

    Thank you and have a GREAT weekend!

    Cheers, Joe

  • kirsty_walsh

    Well what...I'm an idiot? That's not really very helpful...

    I'm not an idiot, I'm just not conversant with PHP and it was not made clear on purchase that I would need to be in order to make simple changes to the theme, that's all. Also, it's not the code I don't understand - it's why this has been made so difficult for people in the first place.

    All the code included above is already in the functions code for the site and the template - the page structure is already there somewhere so repeating the code surely shouldn't be necessary?

    WPMU are misrepresenting themselves by saying they provide excellent support as they really don't.

  • espsjurs

    Hi again kirsty_walsh,

    If you could share with us what kind of changes you want to do, we might be able to point you in the right direction.

    And yes, all the functions in my code exist in the original - but if you want to change something you sometime have to include the functions again with a new name and changes in the code.. If you want to change the original plugin code, you can do that.. But upgrade will reset.

    Espen

  • kirsty_walsh

    All I'd like to do is create a mp_product.php file that results in the same individual product page but allows me to add a permanent piece of text and change the text from 'Price' to something else - like you can do in the shortcode.

    That's it. Nothing complicated - nothing that should take hours and require me to duplicate code. In fact - I don't want to change the code at all...I want to use the same code that is there now.

    The current theme does not have a mp_product.php file or any file that seems to create the current individual product page for me to edit. Or maybe it does, and I just can't find it...who knows.

  • kirsty_walsh

    Just to clarify, and to return to my original question, all I want to know is:

    Which file, in the simplemarket theme, can I use to edit the individual product page?

    That's it.

    There is no mp_product.php file in the simplemarket theme.

    I know that I can create a mp_product.php page myself but I am happy to use the current page structure, functionality, css - everything. I just can't find it...

    If someone can direct me to where it is, I'd be very grateful.

    Thanks, Kirsty

  • aecnu

    Greetings kirsty_walsh,

    Thank you for your patience.

    Well what...I'm an idiot?

    I do not think that for a second but you are missing what we are trying to point out to you.

    Please open your mind a moment, I know you are frustrated, but we can get along a lot better if you hear me out through the entirety of this post.

    Lets start with that you want to modify the Market Press product page, obviously custom coding which is beyond the scope of the support we provide here as shown in that post from my direct in line Boss in which I am under no obligation to answer.

    This certainly meets that criteria and I tried to help you anyway.

    Esper is another member who is also just trying to help as well.

    Even though Esper and I have tried to help you, your not cooperating in the sense working with us instead of against us - we only want to help you and no other motive.

    simplemarket - what a very misleading name!!

    Not at all. By far the vast majority of folks have no problem with this theme at all, the truth here is that you are trying to custom code it to your liking and no where on any site or any theme, plugin, etc. does it mention you can easily custom code them.

    To make a statement like that one would need to know the custom coding abilities of the party wanting to do the custom coding.

    Once again Simple Market is simple, add it, activate it, and it works exactly as intended.

    With all that said lets see about getting to the bottom line.

    As Esper clearly pointed out he created the page he wanted and gave the code to do so without the need of getting Frame Market/Grid Market fired up and digging up the code yourself. That was certainly kind of him.

    He also pointed out the marketpress/marketpress-includes/themes/Themeing_MarketPress.txt

    This file points out the simple and advanced themeing techniques though Market Press itself does not have a theme.

    The bigger picture is that both Frame Market/Grid Market and Simple Market draw there product page display and information from Market Press as well as when using short codes in other themes.

    That is why the line in the Market Press Themeing_MarketPress.txt text file specifically states Basic styles are comprised of a css file and an optional images folder that is loaded and applied on store pages.

    I suspect that the reason why nobody else has tried to help here is that they clearly see you are barking up the wrong tree wanting to manipulate the mentioned product pages via the Simple Market theme when in fact that is not how it works.

    To answer your original question directly, in the Market Press file as directed by the themeing file.

    But what do you exactly want to do? You have never mentioned that.

    Here we are remotely trying to help you do what you want to do without first hand knowledge, not a clue as to what you want to accomplish/change etc.

    Please help us help you by explaining what you want to do?

    Cheers, Joe

  • kirsty_walsh

    No Joe, I feel you are missing the point.

    If I want to change the content on the individual product page I need to create a mp_product.php file as outlined in the theming_marketpress.txt file and described by Espen above.

    It has very little to do with css if I want to add some text to a file and certainly does not require an image folder.

    I have edited the code supplied by Espen above to make the mp_product.php as required however, if I could be so bold as to make a suggestion, it might make the user experience less painful if the simplemarket theme were updated to contain a mp_product.php and mp_productlist.php file by someone who is familiar with Marketpress as this is such a small job and would really improve the usability of the product (mp_product.php was ultimately 17 lines of code, only 3 of which are specific to this page).

    There are quite a few threads on here about this which do not provide an answer and it may reduce the repeated requests to the support forum.

    It may also be useful to include the themeing_marketpress.txt in the theme folder as well as the plugin too.

    Just a suggestion.

  • aecnu

    Greetings kirsty_walsh,

    Thank you, thank you for that wonderful input (no sarcasm)

    You are absolutely correct that the mp_product.php file is possibly required to add text, though depending on the text I would have possibly recommended using the Ultimate Branding plugin specifically the Network Wide Text Change which you can see in action here: http://marketpress.aecnuwpmu.us/store/products/phpinfo-php/

    Check out the price for any of the products :smiley: for example.

    There are more things that can easily be changed this way without editing any code, but one must need to know what you are wanting to change text, graphic box size (css file now) etc. to give a good answer.

    Which brings me to make a backup of the custom file you created so there is no chance that during an upgrade if it gets wiped out you can quickly replace it.

    The method Espen mentioned works, the methods I mentioned work, it comes down to what the individual wants to choose to modify which route is the best for them.

    In some cases possibly all three could be necessary.

    I am happy to hear that you got this going.

    Have a GREAT weekend!

    Cheers, Joe

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.