I have read Themeing_MarketPress.txt and understand that I can name a file mp_product.php in order to create a new template for the product page (for example). From reading other questions on this in this forum I understand that the theme file single.php is the "starting point" for this..
Before creating mp_product.php, everything looks *almost* perfect as it is; I just need to make a slight change. I have started by simply renaming single.php as mp_product.php, so that I can use that as a starting point for just some slight adjustments. However, when I do this, almost nothing that shows up on the product page normally, disappears: no image, no "add to cart" button. There is just the Title and Description.
Now, I understand that you can include the functions from template-functions.php to create your own template. However, if I want to add the image back in after it has mysteriously disappeared, I assume that I am to copy the code from "* Displays the product featured image" (function mp_product_image, about line 1596). However...I don't understand WHERE this goes on my new mp_product.php or really how to integrate it.
My mp_product.php is basically this:
get_template_part( 'loop', 'single' );
So, where, within that, would I put function mp_product_image? I have tried inserting it in many different places (yes, within the PHP brackets), but no matter where I put it, I get errors such as:
Fatal error: Cannot redeclare mp_product_image() (previously declared in /usr/www/users/mccmhost/pechepassion/wp-content/plugins/marketpress/marketpress-includes/template-functions.php:1603) in /usr/www/users/mccmhost/pechepassion/wp-content/themes/pechepassion/mp_product.php on line 98
More importantly, for user friendliness and easy templating why did you not simply provide a mp_product.php file for us that we could edit?? Urgh. I truly do not understand the methodology for templating Marketpress and I very much need some RAPID help! Thank you.