trying to determine what I can do to fix my production site

I'm on a very old version of marketpress because the new one (3.0) broke my site due to it's lack of product categories being defined in the permalink/slug section .... so everyone of my urls were broken. I'm testing on another site of mine and now, I don't have the store base slug showing in the url either... my url is http://tristadeleon.com/scentsy/suri-seahorse , but it should be http://tristadeleon.com/buy/scentsy/suri-seahorse , again this is a test site as I'm trying to determine what I can do to fix my production site (scentswarmers.com)

The old setup I have is like this :

but after version 3, there is no product category url setting, which will destroy my site.. I'm not sure how other people got around this

  • tristajensen

    So let me make sure I get this right, in order for me to upgrade to markepress 3+ -
    I will have to create new store pages to match those that I already have (virtually) -
    AND since you did away with the product categories slug:
    I will have to create a single page for every single one of my categories and apply a shortcode on that page in order to continue to display the category pages? That should be a lot of fun since I have 86 of them. Please tell me there's a way around this....
    Will my CSS stay the same from 'icons' theme in marketpress 2.9 ???

  • Panos

    Hi tristajensen ,

    Hope you are doing well today :slight_smile:

    MarketPress 3 does have product categories:

    What you are sharing in your description are the store pages, which are pages that the plugin uses. In MarketPress 3 you can set these pages from admin > Store Settings > Presentation.

    Regarding your categories, you can set the "Products List" to a page with slug "site.com/store/products" (this is set by default if you follow MP installation guide.) . Now you categories you have a url: yourstie.com/store/products/category/your-category-slug/

    You can set these store pages to so they have the slugs that you prefer to use. By default the pages are
    Store (Parent page)
    > Products
    > Cart
    > Checkout
    > Order status

    You can modify their titles and slugs as any other page.

    I would first recommend to try MarketPress 3 out in a testing site.

    Please let me know if I am missing something here :slight_smile:

    Thanks!

  • tristajensen

    My url needs to remain the same as it is in this old version - A category page is like this
    /buy/scentsy/products/premium-warmers
    which is store base, Products List, product category base, then the actual product category.

    The Single page product is like this -
    /buy/scentsy/charity-warmer
    which is store base, Products List, Product
    That's how it worked in 2.9.4 and I cannot change the url to all my products... so how would I achieve this ???

    I have been testing mp 3 on a test site for over a month.. so much is broken. My css styling no longer works.. my permalinks are now all messed up... this is so much work just for an upgrade... I have an active site with a lot of products.. I work full time along with doing this site and I don't have time to spend trying to figure all this out..

  • Panos

    Hi tristajensen ,

    Sorry to hear you are having difficulties with MP3.

    First thing to do is set the store page. Please go to admin > Store Settings > Presentation and scroll down to "Store Pages" section.

    In the Store page add the page you want to use as your store base and that should have the slug buy in it's permalink. If you have the default page it should have store, you can edit it's slug and change it to buy:

    Similar do the same for "Products List" page, and change slug from products to scentsy.

    One note here ragarding these pages. In case you are creating new pages instead of editing default ones, they should contain some shortcodes. So, again only in case you are creating new pages, please make sure you are using the correct shortcodes.

    In order to change the category please add the following snippet in a mu-plugin or your theme's functions.php:

    add_filter( 'mp_register_product_category', function( $product_category ){
    
    	return array(
    			'hierarchical'      => true,
    			'labels'            => array(
    				'name'                       => _x( 'Product Categories', 'product_category', 'mp' ),
    				'singular_name'              => _x( 'Product Category', 'product_category', 'mp' ),
    				'all_items'                  => __( 'All Product Categories', 'mp' ),
    				'edit_item'                  => __( 'Edit Product Category', 'mp' ),
    				'view_item'                  => __( 'View Product Category', 'mp' ),
    				'update_item'                => __( 'Update Product Category', 'mp' ),
    				'add_new_item'               => __( 'Add New Product Category', 'mp' ),
    				'new_item_name'              => __( 'New Product Category Name', 'mp' ),
    				'parent_item'                => __( 'Parent Product Category', 'mp' ),
    				'parent_item_colon'          => __( 'Parent Product Category:', 'mp' ),
    				'search_items'               => __( 'Search Product Categories', 'mp' ),
    				'separate_items_with_commas' => __( 'Separate product categories with commas', 'mp' ),
    				'add_or_remove_items'        => __( 'Add or remove product categories', 'mp' ),
    				'choose_from_most_used'      => __( 'Choose from the most used product categories', 'mp' ),
    				'not_found'                  => __( 'No product categories found', 'mp' ),
    			),
    			'capabilities'      => array(
    				'manage_terms' => 'manage_product_categories',
    				'edit_terms'   => 'manage_product_categories',
    				'delete_terms' => 'manage_product_categories',
    				'assign_terms' => 'edit_products'
    			),
    			'show_ui'           => true,
    			'show_admin_column' => true,
    			'rewrite'           => array(
    				'with_front' => false,
    				'slug'       => mp_store_page_uri( 'products', false ) . 'products',
    			),
    		);
    
    }, 10 );

    Then go to admin > Settings > permalinks and click save.

    In case you need further assistance could you provide admin and ftp info? You can send that privately through our contact form: https://premium.wpmudev.org/contact/#i-have-a-different-question

    Send in:Subject: "Attn: Panos Lyrakis"

    - Admin login:
    Admin username
    Admin password
    Login url

    - FTP credentials
    host
    username
    password
    (and port if required)

    - link back to this thread for reference

    Thanks!

  • tristajensen

    At this point, I don't see an option for me to continue to use Marketpress and continue the subscription being that I'm unable to go past 2.9 - the restructure of the store and CSS classes will kill my site. The URL's will be broken. This really sucks that no one can dedicate some time to tell me how to upgrade and handle this being that the classes have changed and I can't even carry across my custom css to make my site work. It will be a lot of work, as in a whole new design to get it where it is today, AND still, my URLS will change for all my products. Just confused as to how other people handled this.. they didn't care about it or their stores were so small and didn't have this much traffic to their site ??? I don't know, this is very frustrating. I've dealt with at least 5 different support reps in the last two months and they all get what the problem is.. but can't help and say they'll talk to the developer of the application.. then I hear nothing but to provide login info.

  • Panos

    Hi tristajensen ,

    Sorry you feel this way :slight_frown:

    Just today I noticed your email reply, tested again but still no access.

    I would really like to help out and make your site work with Marketpress 3, the thing is that we do need to connect in order to see what you meant with :

    I'm getting an area with the last line of code above
    }, 10 );

    That's after I provided you what you need to insert in the functions.php file (or a mu-plugin). The code I provided in that post: https://premium.wpmudev.org/forums/topic/trying-to-determine-what-i-can-do-to-fix-my-production-site#post-1257674 should give the product pages the url you asked for.

    As for the css, the new MP3 has different layout and might need allot of work to make it match the current style. This is considered customization and thus exceeds our support purposes. However we are willing to help out there, but again we need file access.

    Leaving from Marketpress you will still have to do the css changes plus allot of custom coding to make products work with your other solution.

    I have already re-asked to send cpanel access again from email. Please do check them before sending them. Also make sure there is no IP or country blocking on your server. I would also suggest to ask you host about this.

    In case you decide to resend credentials via email please also reply in one of the threads so I can get notified faster.

    Thanks!

  • tristajensen

    thanks for responding - there is no error anymore, I figured that part out. My problem is the css. Someone said they were going to talk to the developer to see if they can get what the classes changed from > to. What did everyone else do when they did the upgrade to 3? re-do their whole design? no one cared that the css is totally different and there are no longer the css style themes? I even created the css theme and applied it and still, no luck because the classes changed. So, that's what I'm waiting on.... I'm not expecting someone to do it for me... Im asking for someone to tell me what you changed the classes to, so that I can fix all this.

  • Panos

    Hey Trista!

    I am not sure how to present to you the changes in the layout. There is not only a change in class names but in different layout too. I could share the html code for each but I don't think it's gonna help.

    For example, in 2.9 the price is after product content, but in 3 it's been moved on top so it's easier to find and click on it. Same for the categories list of the product. The "Buy now" button is created with different elements and different number of elements. Just to take an idea of the change, here is the html that the "Buy" button is consisted of in 2.9 :

    <form class="mp_buy_form" method="post" action="...">
    										<input type="hidden" name="product_id" value="281">
    										<input type="hidden" name="variation" value="0">
    										<span class="mp_quantity">
    											<label>Quantity:
    												<input class="mp_quantity_field" type="text" size="1" name="quantity" value="1">
    											</label>
    										</span>
    										<input type="hidden" name="action" value="mp-update-cart">
    										<input class="mp_button_addcart" type="submit" name="addcart" value="Add To Cart »">
    									</form>

    and here is in 3:

    <form id="mp-buy-product-511-form" class="mp_form mp_form-buy-product  " method="post" data-ajax-url=".../wp-admin/admin-ajax.php?action=mp_update_cart" action="..." novalidate="novalidate"><input type="hidden" name="product_id" value="511">
    				<div class="mp_product_options_atts">
    					<div class="mp_product_options_att">
    						<strong class="mp_product_options_att_label">Color</strong>
    
    						<div class="mp_product_options_att_input_label">
    							VARIATION OPTIONS...
    						</div><!-- end mp_product_options_att_input_label -->
    					</div><!-- end mp_product_options_att -->
    
    					<div class="mp_product_options_att">
    						<strong class="mp_product_options_att_label">Quantity</strong>
    						<div class="mp_form_field mp_product_options_att_field">
    							<input id="mp_product_options_att_quantity" class="mp_form_input mp_form_input-qty required digits" min="1" type="number" name="product_quantity" value="1" aria-required="true">
    						</div><!-- end mp_product_options_att_field -->
    					</div><!-- end mp_product_options_att -->
    
    				</div><!-- end mp_product_options_atts -->
    
    				<button class="mp_button mp_button-buynow" type="submit" name="buynow">Buy Now</button>
    			</form><!-- end mp-buy-product-form -->

    Where I want to conclude is that it's definitely easier to set new css to match old site as much as possible.

    What did everyone else do when they did the upgrade to 3? re-do their whole design?

    To be honest I don't know, but I believe that this is a change required to make in a business that's constantly changing. The css has to do with the specific plugin parts. The products list, product page, cart page, floating cart and checkout page. It does require allot of work to change them all, but at least it is doable. The option to replace the classes/ids in your existing css seems impossible to me.

    I would suggest to keep the layout of the version 3 and do css changes to match colors only.

    Please let me know if I could help on the css any further :slight_smile:

    Thanks!

  • tristajensen

    I upgraded to version 3. There are a couple of issues I'm having with the css that was already done before in older versions... 1) I'd like the buy now to be a button again.. instead of just text. 2) Product Price doesn't stand out anymore 3) Is there a way to get the related products to be the default instead of the 'description' that's underneath the product on individual page? 4) The mobile version of the store is all messed up again.. this was the hardest part for me before. I don't want one column of products to show for the product grid pages... I'd like two columns to show at least.

  • tristajensen

    You gave me code above (pasted below for your reference) to fix the category problem, but I noticed that in webmaster tools there were errors trying to find the pages below - which are links coming from my home page. the links they can't find, include the category. why is it even looking for that url when the url should be excluding the category?

    add_filter( 'mp_register_product_category', function( $product_category ){

    return array(
    'hierarchical' => true,
    'labels' => array(
    'name' => _x( 'Product Categories', 'product_category', 'mp' ),
    'singular_name' => _x( 'Product Category', 'product_category', 'mp' ),
    'all_items' => __( 'All Product Categories', 'mp' ),
    'edit_item' => __( 'Edit Product Category', 'mp' ),
    'view_item' => __( 'View Product Category', 'mp' ),
    'update_item' => __( 'Update Product Category', 'mp' ),
    'add_new_item' => __( 'Add New Product Category', 'mp' ),
    'new_item_name' => __( 'New Product Category Name', 'mp' ),
    'parent_item' => __( 'Parent Product Category', 'mp' ),
    'parent_item_colon' => __( 'Parent Product Category:', 'mp' ),
    'search_items' => __( 'Search Product Categories', 'mp' ),
    'separate_items_with_commas' => __( 'Separate product categories with commas', 'mp' ),
    'add_or_remove_items' => __( 'Add or remove product categories', 'mp' ),
    'choose_from_most_used' => __( 'Choose from the most used product categories', 'mp' ),
    'not_found' => __( 'No product categories found', 'mp' ),
    ),
    'capabilities' => array(
    'manage_terms' => 'manage_product_categories',
    'edit_terms' => 'manage_product_categories',
    'delete_terms' => 'manage_product_categories',
    'assign_terms' => 'edit_products'
    ),
    'show_ui' => true,
    'show_admin_column' => true,
    'rewrite' => array(
    'with_front' => false,
    'slug' => mp_store_page_uri( 'products', false ) . 'products',
    ),
    );

    }, 10 );

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.