marcusjwilson
El Presidente
Friendly Neighbour
Member Likes (0)
Hi -
We're using MarketPress (along with WPML/WPML MarketPress) on a new bilingual travel ecommerce site, as we've found it to be a good, solid and straightforward platform for online sales.
However, we're experiencing some problems, with errors being generated on some of the core MarketPress pages ("Call to a member function options() on a non-object in /home/OURSITE/public_html/wp-content/themes/impression/page.php"), and associated "Add to Cart" buttons not appearing on MarketPress pages.
I contacted the Theme developers (AIT Themes), and was told:
"Problem is that plugin wants to find some settings of theme, which don't exist in this case. Plugin wants to use template page.php of theme, but plugin should use its own template. We have not used template page.php for example. To make it work, theme coding need to be changed. " Seems like AIT have thrown a lot of WP conventions out the window when coding their themes.
We want to avoid coding a new Theme from scratch, and so my question to WPMUDev is:
What are the requirements of a Theme (particularly page.php) to get MarketPress to successfully integrate? Realistically, is this something that our developer can fix within a day, or do we need to go back to square one with a new Theme?
Any help appreciated!

Responses (4)
Inactive (joined February 2012) Likes (0)
Hey @marcusjwilson
MarketPress is designed to work with every other WordPress theme. MarketPress can have its own templates as well, when they do not exist, it goes for the standard templates.
I think all you need to do here is to create those templates for MarketPress, I can give you the names you need. Basically, you just need to look into Grid Market (child theme of frame market) and see how it is: http://premium.wpmudev.org/project/frame-market-theme
Create these templates in your theme directory. The files that will be used when they do not exist are in the brackets. Use the code from the equivalent template in your theme.
mp_cart.php (page.php)
mp_category.php (category.php)
mp_orderstatus.php (page.php)
mp_product.php (single.php)
mp_productlist.php (I think it is category.php or maybe page.php)
mp_store.php (page.php)
mp_tag.php (tag.php)
mp_taxomony.php
I hope your developer can figure it out. Good luck!
Member (joined December 2009) Likes (0)
Many thanks, Arun
I'll take a look over the weekend
All good things
Member (joined December 2009) Likes (0)
Thanks, Arun -
I just tried to add those specific files to the AIT Theme directory we are using.
Now when I try and load the MP page, I get:
Fatal error: Call to undefined function framemarket_grid_mp_list_products() in /home/wildarts/public_html/wp-content/themes/impression/mp_store.php on line 8
Should we also be loading other functions files from FrameMarket or GridMarket to our Theme?
Inactive (joined February 2012) Likes (0)
Hey @marcusjwilson
You shouldnt be copying the templates from the Grid Market themes. Like the function framemarket_grid_mp_list_products() is a function defined in the Frame Market theme's framemarket\library\functions\marketpress.php
What files (template) does your theme use to display PAGES and single POSTS? Copy that template into the equivalent MarketPress templates and use them.
Like, if I was using it with the Responsive theme I would make a copy of single.php and rename it into mp_product.php and so on.
I hope you get it :)
Become a member