WordPress.org

Ready to get started?Download WordPress

Forums

MarketPress - WordPress eCommerce
[Plugin: WordPress eCommerce - MarketPress] Products Permalink Issue. (13 posts)

  1. projectfuturism
    Member
    Posted 2 years ago #

    Howdy,

    I have this issue where the Marketpress permalink structure will work fine, except until it gets to the product page itself.

    Ie the structure of my store is like:

    http://XXX.com/store/products/

    Then I go to an actual product, and it decides to add the /news/ permalink to the url, like:

    http://XXX.com/news/store/products/myproduct/

    Now, obviously I've set my permalink structure to:

    'Custom Structure': /news/%postname%/

    So it's putting that news tag in. But I don't wan't it to. Obviously removing /news/ from my custom structure will fix the problem, but then creates a problem for all my news items (posts)!!!

    There is the permalink options panel under 'presentation', but it has every permalink structure except for the product itself, so I can't change it here.

    Does anyone have any ideas!?!?

    http://wordpress.org/extend/plugins/wordpress-ecommerce/

  2. DavidM
    Member
    Posted 2 years ago #

    Hi projectfuturism,

    That appears to be the way that WordPress itself handles the permalinks in general. You'll notice the same occur with other plugins, especially ones that use custom post types.

    I'll ask the developers if there might be an easy workaround but you may want to consider not using that particular format as similar issues would occur with a lots of other plugins.

    Cheers,
    David

  3. projectfuturism
    Member
    Posted 2 years ago #

    OK, I get this, and understand this and I guess I will have to alter my permalinks.

    But all I'm recommending is...you have options to alter all the other permalinks for the store's URL's...except the actual product page.

    So all the other permalinks work fine (checkout, order status, shopping cart etc) because they have a custom option built into the settings, but not the actual individual products.

    PF.

  4. projectfuturism
    Member
    Posted 2 years ago #

    OK, the other reluctance I have about moving ALL of my news items from XXX.com/news/post-name to XXX.com/post-name is the fact that I have facebook comments integrated, and I will therefore lose ALL of my facebook comments when I change the URL...

    Can you please just insert an option to choose where the individual products are permalinked??

  5. m@
    Member
    Posted 2 years ago #

    PF

    See my post near the bottom of this thread:

    http://wordpress.org/support/topic/plugin-marketpress-lite-wordpress-ecommerce-marketpress-ecommerce-plugin?replies=20

    This sounds like the same issue you are having. I remedied this by modifying line 644 of marketpress.php
    from:
    'rewrite' => array('slug' => $settings['slugs']['store'] . '/' . $settings['slugs']['products']), // Permalinks format
    to:
    'rewrite' => array('slug' => $settings['slugs']['store'] . '/' . $settings['slugs']['products'], 'with_front' => false), // Permalinks format

    hope that helps.

    -m@

  6. projectfuturism
    Member
    Posted 2 years ago #

    Fantastic! You are a genius!

    I assume the 'with_front' control defaulting to 'true' means that it displays the custom slug, and false switches this off.

    I think the developers of this plugin should give an option as to whether this is true or false in the settings.

    Such a great plugin, I really like it though - just this one minor annoyance.

  7. DavidM
    Member
    Posted 2 years ago #

    m@, thanks a bunch for mentioning that. As Mason mentioned in your other thread, we'll get this passed on to the developers.

    @projectfuturism, sorry for the delay, but glad m@ had ya covered there!

  8. troepi
    Member
    Posted 2 years ago #

    Hi so far this looks like the only plugin that does what I want which is using the new PayPal options such as chained payments.

    So I downloaded to see how it will work and look.

    I have a question and a suggestion

    I would like to be able add products into regular posts and/OR have products show up in the post loop instead of just on the roducts page.

    Is there a template tag that I can use to insert products into the post loop? Such as get_marketperss_product($product id)? With the option to include the buy button and other product details, so they can be shown in excerpt lists etc.?

    Thanks

  9. troepi
    Member
    Posted 2 years ago #

    Hi so far this looks like the only plugin that does what I want which is using the new PayPal options such as chained payments.

    So I downloaded to see how it will work and look.

    I have a question and a suggestion

    I would like to be able add products into regular posts and/OR have products show up in the post loop instead of just on the roducts page.

    Is there a template tag that I can use to insert products into the post loop? Such as get_marketperss_product($product id)? With the option to include the buy button and other product details, so they can be shown in excerpt lists etc.?

    Thanks

    Ok so I got the loop working. All this time I thought the post type was products But it's product. The menu name in the admin area threw me off. It says products.

  10. projectfuturism
    Member
    Posted 2 years ago #

    Why don't you try using one of the shortcodes, and then altering the code it injects? This would be a much more flexible answer wouldn't it?

  11. DavidM
    Member
    Posted 2 years ago #

    The shortcodes should work too, but for more customization options, there are template tags included and detailed in marketpress-includes/template-functions.php within the MarketPress folder.

    Of course, you could always use do_shortcode() but the template functions are a more efficient method.

  12. troepi
    Member
    Posted 2 years ago #

    Shortcodes would work, BUT this will be a members website, and I want to keep it as simple as possible. Members add product, info, picture, price, DONE!

    But I figured it out now and found the template tags.

    Thanks.

  13. troepi
    Member
    Posted 2 years ago #

    I have anothe question.

    I'm selling digital products with various licenses.

    It is the same product in other words.

    License A costs $10

    License B costs $30 etc.

    I really like the way products are created with your plugin but unfortunately there isn't support for digital product variations.

    So I'm trying to figure out how I can get this done in the same post?

    I would have to use two different shopping carts is all I can think of so far.

    Anyone have any other suggestions or ideas?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic