Skip to content

Instantly share code, notes, and snippets.

@PepDevils
Created November 2, 2017 12:39
Show Gist options
  • Select an option

  • Save PepDevils/431abfdd5151eaea8b51a9fffb2bcdbe to your computer and use it in GitHub Desktop.

Select an option

Save PepDevils/431abfdd5151eaea8b51a9fffb2bcdbe to your computer and use it in GitHub Desktop.
para mudar a ordem dos produtos, quando vem uma nova coleção, para que esta fique em primeiro
Arquitectura BD - Open Cart
Imaginando que a nova colecção tem 30 produtos, basta fazer em SQL:
UPDATE oc_product SET sort_order = sort_order + 30;
os novos produtos podem então iniciar a contagem outra vez apartir do 1,2,3,4.. etc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment