[Resolved] How to change internal links from /cart-2 to /cart ?

Home Forums Support How to change internal links from /cart-2 to /cart ?

  • This topic has 5 replies, 3 voices, and was last updated 1 month ago by Tom.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1260971
    Richard

    Hi,

    Newbie question here.
    I installed GP Premium, imported “Niche” theme and the WooCommerce plugin.
    I noticed duplicate pages (I’m giving the permalink names):

    /cart and /cart-2
    /checkout and /checkout-2
    /my-account and /my-account-2

    Can someone explain why the duplication? Just curious…
    (Note that I did a previous installation 24 hours before but completely removed WordPress, so I expect that isn’t responsible.)

    There is also:
    /shop-2

    To be tidy, I thought I’d like to delete the “-2” pages.

    But I see that numerous items are expecting the “-2” pages.

    e.g.
    “VIEW CART” icon in nav bar links to /cart-2
    “CHECKOUT” button (in cart page) links to /checkout-2
    “RETURN TO SHOP” button (in cart page) links to /shop-2

    So I can’t just go and create /cart and /checkout pages unless I can specify these for the buttons.

    I would be grateful if someone could help me understand:

    – Why did the duplication occur?
    – Why did the “-2” names occur?
    – Is there a way to specify where the “VIEW CART” icon and “CHECKOUT” button link to when clicked?

    Basically, how do I get everything to work without the “-2” ?

    I will really appreciate any advice.

    Thanks,
    Richard

    #1261405
    David
    Staff
    Customer Support

    Hi there,

    Did you install Woocommerce Plugin separately?

    #1261420
    Richard

    I did a fresh installation of WordPress.
    Then I went to Plugins in the usual way, and added the WooCommerce plugin.
    (That’s in addition to GP Premium plugin.)

    #1262095
    Tom
    Lead Developer
    Lead Developer

    It’s possible that WooCommerce created those pages for you, then the Site Library import created them again.

    You should be able to delete the duplicated ones and make sure the originals are set in your WooCommerce settings.

    Let me know ๐Ÿ™‚

    #1264526
    Richard

    Thanks, this worked.

    I deleted the duplicate โ€œ-2โ€ pages and pointed the WooCommerce settings at the correct pages. It only lets you specify the page title (such as Cart), not the page name (/cart, /cart-2). And the title (Cart) was the same for both, so thereโ€™s no new title to change it to. I found that the only way to get it to change was to point it to another random title and then back to โ€œCartโ€ etc after deleting the unwanted duplicate.

    Hard to explain but hope this makes sense!

    #1265135
    Tom
    Lead Developer
    Lead Developer

    Glad you got it sorted! ๐Ÿ™‚

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.