Jump to content

[SOLVED] Reset CMS Link Numbers


Recommended Posts

Hi,

I had deleted all my information/cms pages to setup new ones but the links back to them are now dead.

The link for the Paypal logo in the left column goes to cms.php?id_cms=5 but there is no 5

My cms pages now start from 12 up to 20. Is there anyway of resetting these numbers or changing the link above?


thanks
regards
Spazzo

Link to comment
Share on other sites

I worked out how to do it.

You have to:

Delete all your CMS entries like terms & what ever pages you made.

Then go to you database phpMyAdmin in your cpanel

Click on your shop database to see a list of ps_ tables

Click on the ps_cms table to 'browse'

Click on the tab at the top called 'operations'

There is a box called Table Options. In that box is AUTO_INCREMENT . Change the value here to 1. Then click 'Go'

Return to your back office cms and start adding your cms links like terms etc.

thats it

regards
Spazzo

Link to comment
Share on other sites

  • 3 months later...

That's great, but I have written 4 or 5 pages already and not liking the idea of deleting them and starting over.

The links all seem to work fine regardless of how they're numbered - the only problem I seem to be having is on checkout with ToS. It's showing the wrong cms page when "customer" attempts to read it before agreeing, yet it displays correctly when clicked on from the footer or info box. Any idea how to correct this?

Thanks

Link to comment
Share on other sites

In PrestaShop v1.4, you can change which page is the "Terms and conditions" page on the Preferences tab. In PrestaShop v1.3, you cannot, so you must manually change line 376 of order.php (in PrestaShop v1.3.5):

$cms = new CMS(3, intval($cookie->id_lang));



Change 3 to the ID of the page you want to be used as the terms and conditions page.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...