• To whom it may concern:
    It is possible to return a simple back to store button from some functions from wc-template-functions.php so that it will be appeared in product details page which is of use with pagination but in the next woocommerce update the code addition shall be gone. To improve that from what I have learnt I can develope a separate plugin as an extension of woo-commerce plugin or may be there is already a setting or add-on in regard with that or a layout override?
    Also in product details page, I do not want to have previous-next links toward products in a category, the same story as above.
    Kian William

    • This topic was modified 4 years, 8 months ago by Kian William.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Rynald0s

    (@rynald0s)

    Automattic Happiness Engineer

    Thread Starter Kian William

    (@kianwilliam)

    This code is good yet it is like using browser back button, suppose you sit at a station,
    you go to a product listed at page 100 of a category, you view product, going to product details page and suddenly something urget happens and you leave your station, then a colleague comes and advertently or accidently clears browser history, you come back and click back store button now instead of going back to page 100, you would be returned to no where and you have to start again. I know this is not very likely but in the world of security, it must be considered. A computer programming code must serve 2 subjects:
    1-performance 2-security
    yet thanks any way
    Kian William

    Thread Starter Kian William

    (@kianwilliam)

    Here is the logical way:
    From pagination links get category and page number , assign them to a variable or even a session variable (or a file or even a table in database or cookie)to be used in product details page serving the link for back to store button. It has both security and logic with compatibility !
    Kian William

    Thread Starter Kian William

    (@kianwilliam)

    I have developed a very simple plugin for store back button, now in the next update of woocommerce the button shall stay, being busy prevented me from informing sooner

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Store Back Button’ is closed to new replies.